body {
    background-color: #fff;
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.625;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.aq-header {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border-bottom: 2px solid #33058D;
}

.aq-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
}

.aq-logo {
    max-width: 30%;
}

/*.aq-logo img {
    height: 150px;
    width:150px;
}*/

.aq-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px
}

.aq-nav a {
    color: #172F57;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* ===== Dropdown sub-menus ===== */
.aq-nav li {
    position: relative;
}

/* Mobile-only toggle arrow (hover handles desktop) */
.aq-submenu-toggle {
    display: none;
}

/* Caret indicator on items that have a sub-menu */
.aq-nav .aq-has-children>a::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid #F7B422;
    border-bottom: 2px solid #F7B422;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s ease;
}

.aq-nav .aq-has-children:hover>a::after,
.aq-nav .aq-has-children:focus-within>a::after {
    transform: translateY(1px) rotate(-135deg);
}

.aq-nav .aq-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 240px;
    max-width: 340px;
    background: #fff;
    border-radius: 10px;
    border-top: 4px solid #F7B422;
    box-shadow: 0 12px 30px rgba(23, 47, 87, .22);
    padding: 8px 0;
    margin-top: 14px;

    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;

    /* Animated reveal */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}

/* Small bridge so the menu doesn't close while moving the cursor into it */
.aq-nav .aq-submenu::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.aq-nav .aq-has-children:hover>.aq-submenu,
.aq-nav .aq-has-children:focus-within>.aq-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s ease, visibility 0s;
}

.aq-nav .aq-submenu li {
    border: 0;
}

.aq-nav .aq-submenu a {
    display: block;
    padding: 11px 18px;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    white-space: normal;
    color: #172F57;
    border-left: 3px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.aq-nav .aq-submenu a:hover,
.aq-nav .aq-submenu a:focus {
    background: #f4f6fb;
    color: #33058D;
    border-left-color: #F7B422;
}

.aq-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.aq-login-btn {
    background: #F7B422;
    color: #172F57;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: bold;
}

.aq-search {
    font-size: 20px;
    color: #333;
    text-decoration: none
}

.aq-divider {
    border: 0;
    height: 3px;
    background: linear-gradient(90deg, #6b2d89, #b96fd6);
    margin: 0
}

@media (max-width:800px) {
    .aq-nav ul {
        gap: 12px
    }

    .aq-header-inner {
        padding: 12px
    }
}

/* ===== Mobile responsive overrides for AQ theme ===== */

.aq-header img,
.aq-footer img,
#main img {
    max-width: 95%;
    height: auto;
}

@media (max-width: 979px) {

    #main.container,
    .aq-header-inner,
    .aq-footer-inner {
        max-width: 100%;
        width: auto;
        box-sizing: border-box;
    }

    #main .row,
    #main .row-fluid,
    #main .row.clearfix {
        margin-left: 0;
        margin-right: 0;
    }

    #main [class*="span"] {
        float: none !important;
        display: block;
        width: auto !important;
        min-height: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    #main .row [class*="span"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    #main .row [class*="span"] {
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 0;
    }

    #main .row table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #main .row img,
    #main .row iframe,
    #main .row video,
    #main .row embed,
    #main .row object {
        max-width: 80%;
        height: auto;
    }

    #main .row [class*="col-"],
    #main .row [class^="col-"],
    #main .row>.col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        display: block;
        padding-left: 0;
        padding-right: 0;
    }

    #main [style*="display:flex"],
    #main [style*="display: flex"],
    #main [style*="display:-webkit-flex"],
    #main [style*="display:-ms-flexbox"] {
        flex-direction: column !important;
    }

    #main [style*="display:flex"]>*,
    #main [style*="display: flex"]>*,
    #main [style*="display:-webkit-flex"]>*,
    #main [style*="display:-ms-flexbox"]>* {
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
    }

    #main [style*="display:grid"],
    #main [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        grid-auto-flow: row !important;
    }

    #main .row [style*="float:left"],
    #main .row [style*="float: left"],
    #main .row [style*="float:right"],
    #main .row [style*="float: right"] {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }

    #main .row [style*="width:"] {
        max-width: 100% !important;
    }
}

.aq-hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.aq-hamburger-bar {
    display: block;
    width: 24px;
    height: 3px;
    background: #172F57;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.aq-hamburger.is-open .aq-hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.aq-hamburger.is-open .aq-hamburger-bar:nth-child(2) {
    opacity: 0;
}

.aq-hamburger.is-open .aq-hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 800px) {
    .aq-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        row-gap: 10px;
        padding: 12px;
    }

    .aq-logo {
        flex: 0 1 auto;
        order: 1;
        text-align: left;
        max-width: 45%;
    }

    .aq-logo img {
        max-height: 70px;
        width: auto;
    }

    .aq-actions {
        flex: 0 0 auto;
        order: 2;
        align-items: center;
        gap: 10px;
    }

    .aq-hamburger {
        display: inline-flex;
    }

    .aq-nav {
        flex: 1 1 100%;
        order: 3;
        display: none;
    }

    .aq-nav.is-open {
        display: block;
    }

    .aq-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid #eee;
    }

    .aq-nav li {
        border-bottom: 1px solid #eee;
    }

    .aq-nav a {
        display: block;
        padding: 12px 8px;
        font-size: 1rem;
    }

    /* Leave room for the toggle arrow on the right */
    .aq-nav .aq-has-children>a {
        padding-right: 52px;
    }

    /* Hide the inline desktop caret; mobile uses the toggle button instead */
    .aq-nav .aq-has-children>a::after {
        display: none;
    }

    /* Yellow toggle arrow pinned to the right edge */
    .aq-submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        /* Match the link row height so the arrow stays put when the
           sub-menu expands (the <li> grows but the button does not) */
        height: 46px;
        background: transparent;
        border: 0;
        padding: 0;
        cursor: pointer;
    }

    .aq-submenu-toggle::before {
        content: "";
        width: 9px;
        height: 9px;
        border-right: 2px solid #F7B422;
        border-bottom: 2px solid #F7B422;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .25s ease;
    }

    .aq-has-children.is-expanded>.aq-submenu-toggle::before {
        transform: translateY(2px) rotate(-135deg);
    }

    /* Sub-menus stack inline (indented), collapsed until expanded */
    .aq-nav .aq-submenu {
        position: static;
        min-width: 0;
        max-width: none;
        border: 0;
        border-radius: 0;
        border-left: 3px solid #F7B422;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: #f4f6fb;

        /* Collapsed by default; expanded via the toggle arrow */
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .aq-has-children.is-expanded>.aq-submenu {
        max-height: 600px;
    }

    .aq-nav .aq-submenu::before {
        display: none;
    }

    .aq-nav .aq-submenu a {
        padding-left: 24px;
        font-size: .95rem;
        text-transform: none;
        border-left: 0;
    }
}

@media (max-width: 800px) {
    .aq-footer {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .aq-footer .aq-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .aq-footer .aq-footer-left,
    .aq-footer .aq-footer-center,
    .aq-footer .aq-footer-right {
        flex: 1 1 100%;
        min-width: 0;
        text-align: center;
    }

    #main .aq-footer .aq-footer-left>div,
    .aq-footer .aq-footer-left>div {
        flex-direction: row !important;
        justify-content: center;
    }

    .aq-footer .aq-footer-center img {
        height: auto !important;
        max-height: 120px;
        max-width: 90%;
    }

    .aq-footer .aq-footer-right img {
        width: 160px !important;
        height: auto !important;
    }
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor,
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg,
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active,
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover,
.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited {
    color: currentColor;
    fill: currentColor;
}

.wp-block-social-links .wp-social-link svg {
    height: 1em;
    width: 1em;
}

/* Footer social icons (AQ theme) */
.aq-footer .aq-footer-left {
    display: flex;
    align-items: center;
}

.aq-footer .wp-block-social-link-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    text-decoration: none;
    box-shadow: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.aq-footer .wp-block-social-link-anchor:last-child {
    margin-right: 0;
}

.aq-footer .wp-block-social-link-anchor svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Ensure the svg path uses the AQ purple */
.aq-footer .wp-block-social-link-anchor svg path {
    fill: #33058D;
    /* icon color matching theme */
}

.aq-footer .wp-block-social-link-anchor:hover,
.aq-footer .wp-block-social-link-anchor:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.aq-footer .wp-block-social-link-anchor:focus {
    outline: 3px solid rgba(255, 255, 255, 0.15);
    outline-offset: 2px;
}

/* Visually hidden label for screen readers */
.aq-footer .wp-block-social-link-label,
.screen-reader-text {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.content {
    min-height: 67vh;
    max-width: 1100px;
    margin: 0 auto;
}

/* Small adjustments for smaller viewports */
@media (max-width: 600px) {
    .aq-footer .aq-footer-inner {
        justify-content: center;
        text-align: center;
    }

    .aq-footer .aq-footer-left {
        order: 1;
        margin-bottom: 12px;
    }

    .aq-footer .aq-footer-right {
        order: 3;
        margin-top: 12px;
    }

    .aq-footer .aq-footer-center {
        order: 2;
    }
}

.accordion {
    margin: 0 0 20px 0;
}

.accordion .accordion-title {
    display: block;
    cursor: pointer;
    padding: 12px 16px;
    background: #172F57;
    /* Primary Colour (Blue) */
    color: #fff;
    /* title text white */
    font-weight: 600;
    border: 0;
    position: relative;
    border-radius: 4px 4px 0 0;
    margin-bottom: 8px;
    transition: background .15s ease, color .15s ease;
    text-decoration: none;
    /* ensure default no underline */
    border-radius: 25px 25px 25px 25px;
    font-size: 20px;
}

.accordion .accordion-title:hover,
.accordion .accordion-title:focus,
.accordion .accordion-title a:hover {
    background: #122947;
    /* slightly darker on hover */
    color: #fff;
}

.accordion .accordion-title:after {
    content: '\002B';
    /* plus sign by default (closed) */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #fff;
}

.accordion .accordion-title.minus-sign:after {
    content: '\2212';
    /* minus sign */
}

.accordion .accordion-title.minus-sign {
    border-radius: 25px 25px 0 0;
    margin-bottom: 0;
}

.accordion .accordion-content {
    background: #ffffff;
    /* white content area */
    color: #333333;
    /* standard dark text used site-wide */
    padding: 15px 16px;
    display: block;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 25px 25px;
    margin-top: -6px;
    /* visually attach to title */
    font-size: 18px;
    line-height: 1.5;
}

.accordion .accordion-content.accordion-collapse {
    display: none;
}

.pad-top15px {
    padding-top: 15px;
}

/* ensure links inside accordion title inherit styles */
.accordion .accordion-title a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Make sure icons inside title (if any) are visible on dark background */
.accordion .accordion-title svg,
.accordion .accordion-title img {
    filter: brightness(0) invert(1);
}