/*
 * maggsweb.co.uk - site-specific styling on top of Bootstrap 5 (CDN).
 */

@import url('logo.css');

body {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.5715;
    color: #333;
}

a {
    color: #40a0c0;
}

a:hover {
    color: #2f7a94;
}

.text-muted {
    color: #747372 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, .lead {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
}

h1, .h1 {
    font-size: 34px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2, .h2, .lead {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 34px;
}

h3, .h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

h4, .h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

h5, .h5 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

h6, .h6 {
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Maintenance-mode banner (shown only to a logged-in admin bypassing it) */

#maintenanceBanner {
    margin: 0 -1.5rem;
    padding: 0.6rem 1.5rem;
    background: #fcf3d9;
    color: #6b5514;
    border-bottom: 1px solid #e6d190;
    font-size: 0.85rem;
    text-align: center;
}


/* PAGE TITLE BAR ------------------------------ */

.page-title-bar {
    background-color: #40a0c0;
    color: #fff;
    padding: 24px 0;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .2);
}

.page-title-bar h1 {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-title-bar .lead {
    margin-top: 8px;
    margin-bottom: 0;
}

.page-next-prev-bar {
    background-color: #40a0c0;
    padding: 12px 0;
    margin-top: 24px;
    box-shadow: 0 -2px 3px rgba(0, 0, 0, .2);
}

.page-next-prev-bar a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.page-next-prev-bar a:hover {
    text-decoration: underline;
}

/* HOMEPAGE ------------------------------- */

.home-intro {
    background: linear-gradient(rgb(77, 172, 204) 0%, rgb(41, 140, 173) 62%);
    color: #fff;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .2);
}

.home-intro h1 {
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 1px #666;
}

.promo-box p.mt-auto {
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

.promo-box h3 {
    font-size: 28px;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 1px 1px 1px #ccc;
}

.promo-box-content p {
    margin-bottom: 10px;
}

/* BUTTONS ----------------------------------- */

.button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #444;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
}

.button:hover {
    background-color: #333;
    color: #fff;
}

/* LOGO ----------------------------------- */

.logoWrapper {
    position: relative;
    height: 38px;
}

/* NAVIGATION ----------------------------------- */

.navbar .nav-link {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
    .navbar-nav .nav-item.dropdown:focus-within > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-item.dropdown > .dropdown-menu {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        padding-left: 1rem;
    }
}

.navbar-nav .dropdown-menu {
    padding: 8px 0;
    border: 0;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

.navbar-nav .dropdown-menu > li:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
}

.navbar-nav .dropdown-item {
    font-size: 13px;
    padding: 10px 20px;
    border-left: 3px solid #ccc;
    transition: background-color .15s ease, border-left-color .15s ease, color .15s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: #eaf5f9;
    border-left-color: #40a0c0;
    color: #2f7a94;
}

.navbar-nav .dropdown-item.active {
    background-color: #eaf5f9;
    border-left-color: #2f7a94;
    color: #2f7a94;
}

/* FOOTER --------------------------------------------- */

footer.border-top {
    box-shadow: 0 -2px 3px rgba(0, 0, 0, .2);
}

footer .list-inline {
    text-transform: uppercase;
    letter-spacing: .5px;
}

footer p.small {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 15px;
}

footer .link-light {
    color: #999 !important;
}

footer .link-light:hover {
    color: #fff !important;
}

footer .link-secondary {
    color: #444 !important;
}

footer .link-secondary:hover {
    color: #fff !important;
}

/* External-link marker on footer links that open in a new tab */
footer a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 4px;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* TinyMCE's own image alignment classes -------------- */

.content h2 {
    clear: both;
    color: #747372;
    padding-bottom: 10px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 20px;
}

.content h3 {
    clear: both;
    color: #407587;
    margin: 40px 0 20px;
}

.content p,
.content ol,
.content ul,
.content table {
    clear: both;
}

.content table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.content table th,
.content table thead td {
    background-color: #efefef;
    font-weight: bold;
}

.content th,
.content td {
    padding: 8px;
    line-height: 1.42857;
    vertical-align: top;
    border: 1px solid #ddd;
}

.content img.left {
    float: left;
    margin: 0 1rem 1rem 0;
    max-width: 45%;
    height: auto;
}

.content img.right {
    float: right;
    margin: 0 0 1rem 1rem;
    max-width: 45%;
    height: auto;
}

.content img.fullWidth {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.content hr {
    clear: both;
}

.content img {
    max-width: 100%;
    height: auto;
    padding: 5px;
    border: 1px solid #ccc;
}

.content pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 30px;
    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.42857;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* BLOG CATEGORY TABS --------------------------- */

.category-tabs {
    padding: .25rem 0 0;
}

.category-tabs .nav-link {
    color: #333;
    padding: .75rem 0 1rem;
    margin-right: 2.5rem;
    border: 0;
    border-bottom: 3px solid rgba(64, 160, 192, .35);
    border-radius: 0;
    transition: color .15s ease, border-color .15s ease;
}

.category-tabs .nav-link:hover,
.category-tabs .nav-link:focus {
    color: #40a0c0;
    border-bottom-color: #40a0c0;
}

.category-tab-name {
    display: block;
    font-size: 20px;
}

.category-tab-meta {
    display: block;
    font-size: 13px;
    color: #747372;
}

.category-tabs .nav-link:hover .category-tab-meta,
.category-tabs .nav-link:focus .category-tab-meta {
    color: #40a0c0;
}

/* BLOG FEATURED CARDS --------------------------- */

.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #747372;
    margin-bottom: 1rem;
}

.featured-card {
    border: 1px solid #dee2e6;
    border-top: 3px solid #40a0c0;
}

.featured-card-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 4.5rem;
    padding: .75rem 1rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #dee2e6;
}

.featured-card-title-wrap .featured-card-category {
    align-self: flex-start;
}

.featured-card-title-wrap .card-title {
    font-size: 17px;
}

.featured-card-category {
    background-color: #40a0c0;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
}

.featured-card-category:hover {
    background-color: #2f7a94;
    color: #fff;
}

.featured-card-image {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

/* HOMEPAGE --------------------------------- */

.hero-slideshow {
    position: relative;
    height: 42vh;
    min-height: 18rem;
}

.hero-slideshow #homepageSlideshow {
    position: absolute;
    inset: 0;
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-slideshow #homepageSlideshow .carousel-inner,
.hero-slideshow #homepageSlideshow .carousel-item {
    height: 100%;
}

.hero-slideshow #homepageSlideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slideshow #homepageSlideshow .carousel-caption {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-width: 50%;
    padding: .35rem .75rem;
    text-align: right;
    background-color: rgba(0, 0, 0, .45);
    border-radius: 4px;
}

.hero-slideshow #homepageSlideshow .carousel-caption p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.3;
}

/* Bootstrap disables carousel transitions under prefers-reduced-motion;
   force the slide animation back on for this decorative homepage carousel. */
@media (prefers-reduced-motion: reduce) {
    .hero-slideshow #homepageSlideshow .carousel-item {
        transition: transform .6s ease-in-out;
    }
}

.hero-slideshow .navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: transparent !important;
    border-bottom: 0;
}

.hero-slideshow .nav-link {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

.hero-slideshow .nav-link:hover,
.hero-slideshow .nav-link.active {
    color: #fff;
    text-decoration: underline;
}

.hero-slideshow .navbar-toggler {
    border-color: rgba(255, 255, 255, .5);
}

.hero-slideshow .navbar-toggler-icon {
    filter: invert(1);
}


/* FAQs --------------------------------- */

#faqSearch {
    border: 1px solid #40a0c0;
    border-radius: 0.3rem;
    padding: 10px;
    margin-bottom: 20px;
}

#faqSearch form {
    display: flex;
    gap: 10px;
}

#faqSearch input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
}

.category-tabs .nav-link.active {
    color: #40a0c0;
    border-bottom-color: #40a0c0;
}

.faq-category-tab-name {
    font-size: 20px;
}

.faq-category-tab-count {
    font-size: 20px;
    color: #747372;
}

.button-small {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    background-color: #444;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
}

.button-small:hover {
    background-color: #333;
    color: #fff;
}

.faqTags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.faq-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 8px;
    border: 1px solid #40a0c0;
    border-radius: 999px;
    color: #2f7a94;
    font-size: 13px;
    text-decoration: none;
    background-color: #fff;
}

.faq-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #40a0c0;
}

.faq-tag:hover {
    border-color: #2f7a94;
    color: #2f7a94;
}

.faq-tag-active {
    background-color: #40a0c0;
    border-color: #40a0c0;
    color: #fff;
}

.faq-tag-active::before {
    background-color: #fff;
}

.faq-tag-active:hover {
    background-color: #2f7a94;
    border-color: #2f7a94;
    color: #fff;
}

.faq-item-tag,
.faq-item-tag:hover {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 3px;
    color: #747372;
    font-size: 12px;
    text-decoration: none;
    cursor: default;
}

#faqTagList p.faqTags {
    margin-bottom: 15px;
}

#faqAccordion {
    --bs-accordion-btn-bg: #f5f5f5;
    --bs-accordion-active-color: #2f7a94;
    --bs-accordion-active-bg: #e0e0e0;
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232f7a94' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --bs-accordion-btn-focus-box-shadow: none;
}
