
/* =========================================================
   iOTA MARKETS — COMPLETE THEME COMPATIBILITY STYLESHEET

   Restores the shared header, body, navigation, footer,
   colors, typography, icons and responsive styling.

   Brand palette:
   Primary Gold: #d89633
   Footer Gold:  #c2842c
   Hover Gold:   #ffdf80
   Dark Navy:    #2b335c
========================================================= */


/* =========================================================
   01. GLOBAL VARIABLES
========================================================= */

:root {
    --iota-primary: #d89633;
    --iota-primary-dark: #c2842c;
    --iota-primary-light: #ffdf80;
    --iota-nav-dark: #2b335c;

    --iota-white: #ffffff;
    --iota-black: #171717;

    --iota-text: #374151;
    --iota-muted: #6b7280;

    --iota-border: #e5e7eb;
    --iota-light-bg: #f8fafc;

    --iota-green: #4CAF50;
    --iota-blue: #1E90FF;

    --iota-container: 1280px;

    --iota-font:
        'Inter',
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================================================
   02. BODY AND GLOBAL ELEMENTS
========================================================= */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;

    font-family: var(--iota-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    color: var(--iota-text);
    background: var(--iota-white);

    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
    font-family: var(--iota-font);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--iota-primary-light);
    outline-offset: 3px;
}

::selection {
    background: var(--iota-primary);
    color: #fff;
}


/* =========================================================
   03. BASIC COLOR COMPATIBILITY

   These rules protect important brand colors even
   when the Tailwind CDN fails to initialize.
========================================================= */

.bg-primary {
    background-color: var(--iota-primary);
}

.text-primary {
    color: var(--iota-primary);
}

.bg-footerDark {
    background-color: var(--iota-primary-dark);
}

.bg-navDark {
    background-color: var(--iota-nav-dark);
}

.text-navHover {
    color: var(--iota-primary-light);
}

.bg-white {
    background-color: #fff;
}

.text-white {
    color: #fff;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}


/* =========================================================
   04. HEADER MAIN WRAPPER
========================================================= */

#main-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    z-index: 9990;

    background: var(--iota-white);

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.09);

    transition: transform 0.3s ease;
    will-change: transform;
}

#header-spacer {
    display: block;
    width: 100%;
    min-height: 0;
}


/* =========================================================
   05. HEADER UTILITY BAR
========================================================= */

#top-bar {
    position: relative;
    z-index: 20;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid #f0f0f0;
}

#top-bar > div {
    max-width: var(--iota-container);
    margin-left: auto;
    margin-right: auto;

    padding: 8px 24px;

    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;
    align-items: center;

    gap: 12px;
}

#top-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 27px;

    padding: 4px 24px;

    border: 1px solid;
    border-radius: 30px;

    background: transparent;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.4;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

#top-bar a:first-child {
    color: var(--iota-green);
    border-color: var(--iota-green);
}

#top-bar a:first-child:hover {
    color: #fff;
    background: var(--iota-green);
}

#top-bar a:last-child {
    color: var(--iota-blue);
    border-color: var(--iota-blue);
}

#top-bar a:last-child:hover {
    color: #fff;
    background: var(--iota-blue);
}


/* =========================================================
   06. MAIN NAVIGATION BAR
========================================================= */

#main-nav {
    position: relative;
    z-index: 10;

    width: 100%;

    background: var(--iota-primary);
    color: #fff;
}

#main-nav > div:first-child {
    max-width: var(--iota-container);
    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;
}

#main-nav > div:first-child > div {
    min-height: 60px;
    height: 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* =========================================================
   07. HEADER LOGO
========================================================= */

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    padding-top: 8px;
    padding-bottom: 8px;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-branding .custom-logo {
    display: block;

    width: 70px;
    height: auto;

    max-height: 52px;

    object-fit: contain;
}

.site-branding .site-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
   08. DESKTOP NAVIGATION
========================================================= */

.desktop-navigation {
    display: flex;
    height: 100%;
    align-items: center;
}

#primary-menu {
    display: flex;
    align-items: center;

    height: 100%;

    margin: 0;
    padding: 0;

    gap: 32px;

    list-style: none;

    font-size: 14px;
    font-weight: 700;
}

#primary-menu > li {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;
}

#primary-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 16px 0;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition: color 0.25s ease;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
    color: var(--iota-primary-light);
}


/* Desktop dropdown */

#primary-menu .dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 224px;

    display: none;

    margin: 0;
    padding: 0;

    background: #fff;

    border-top: 3px solid #eab308;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);

    list-style: none;

    z-index: 100;
}

#primary-menu > li:nth-last-child(-n+2) > .dropdown-menu {
    right: 0;
    left: auto;
}

#primary-menu .nav-item-group:hover > .dropdown-menu,
#primary-menu .nav-item-group:focus-within > .dropdown-menu {
    display: block;
}

#primary-menu .dropdown-menu li {
    display: block;
    width: 100%;
}

#primary-menu .dropdown-menu a {
    display: block;

    padding: 12px 20px;

    color: #374151;
    background: #fff;

    font-size: 13px;
    font-weight: 500;

    border-bottom: 1px solid #f1f1f1;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

#primary-menu .dropdown-menu a:hover {
    color: var(--iota-primary);
    background: #fafafa;
}


/* =========================================================
   09. MOBILE NAVIGATION BUTTON
========================================================= */

#mobile-menu-btn {
    display: none;

    margin-left: auto;

    padding: 8px;

    border: 0;

    color: #fff;
    background: transparent;

    cursor: pointer;
}

#mobile-menu-btn svg {
    display: block;

    width: 27px;
    height: 27px;

    color: #fff;
}

#mobile-menu-btn .close-icon {
    display: none;
}

#mobile-menu-btn[aria-expanded="true"] .menu-icon {
    display: none;
}

#mobile-menu-btn[aria-expanded="true"] .close-icon {
    display: block;
}


/* =========================================================
   10. MOBILE MENU AND SUBMENUS
========================================================= */

#mobile-menu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;
    max-height: 75vh;

    overflow-y: auto;

    background: var(--iota-primary);

    border-top: 1px solid var(--iota-primary-dark);

    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.16);

    z-index: 999;

    overscroll-behavior: contain;
}

#mobile-menu.hidden {
    display: none !important;
}

#mobile-primary-menu {
    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0 0 16px;

    list-style: none;

    color: #fff;

    font-size: 14px;
    font-weight: 700;
}

#mobile-primary-menu > li {
    position: relative;
    width: 100%;
}

#mobile-primary-menu > li > a {
    display: block;

    padding: 15px 56px 15px 24px;

    color: #fff;

    border-bottom: 1px solid rgba(126, 75, 13, 0.32);

    transition: background 0.25s ease;
}

#mobile-primary-menu > li > a:hover {
    color: #fff;
    background: var(--iota-primary-dark);
}

#mobile-primary-menu .mobile-submenu-toggle {
    position: absolute;

    top: 0;
    right: 8px;

    width: 44px;
    height: 57px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;

    border: 0;

    background: transparent;
    color: #fff;

    cursor: pointer;
}

#mobile-primary-menu .mobile-submenu-toggle svg {
    width: 17px;
    height: 17px;

    transition: transform 0.3s ease;
}

#mobile-primary-menu .mobile-submenu {
    display: block;

    margin: 0;
    padding: 8px 0;

    background: #b8762e;

    list-style: none;
}

#mobile-primary-menu .mobile-submenu.hidden {
    display: none !important;
}

#mobile-primary-menu .mobile-submenu a {
    display: block;

    padding: 11px 40px;

    color: #fff;

    font-size: 13px;
    font-weight: 500;

    border-bottom: 1px solid rgba(120, 75, 13, 0.28);
}

#mobile-primary-menu .mobile-submenu a:hover {
    background: #a96727;
}


/* =========================================================
   11. MAIN BODY CONTENT BASE STYLES
========================================================= */

#main-content,
.site-content,
main {
    width: 100%;
    min-width: 0;

    background-color: transparent;
}

section {
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--iota-font);
    line-height: 1.25;
}

h1,
h2,
h3 {
    font-weight: 700;
}

p {
    line-height: 1.7;
}

strong,
b {
    font-weight: 700;
}


/* Common background compatibility */

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-slate-100 {
    background-color: #f1f5f9;
}

.bg-navy {
    background-color: #2b335c;
}


/* Common text compatibility */

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-900 {
    color: #111827;
}

.text-yellow-200 {
    color: #fef08a;
}

.text-yellow-500 {
    color: #eab308;
}


/* =========================================================
   12. ICONS AND FONT AWESOME
========================================================= */

/* Font Awesome base alignment */

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    display: inline-block;

    font-style: normal;
    line-height: 1;

    vertical-align: middle;
}

/* Keep icons inheriting their parent text colors. */

#main-header .fa,
#main-header .fas,
#main-header .fa-solid,
#main-header svg {
    color: inherit;
}

#site-footer .fa,
#site-footer .fas,
#site-footer .fa-solid,
#site-footer svg {
    color: inherit;
}

/* Icon utility colors */

.icon-primary,
.text-icon-primary {
    color: var(--iota-primary);
}

.icon-white {
    color: #fff;
}

.icon-green {
    color: var(--iota-green);
}

.icon-blue {
    color: var(--iota-blue);
}

/* Button icon alignment */

button i,
a i {
    vertical-align: middle;
}


/* =========================================================
   13. FOOTER MAIN BACKGROUND
========================================================= */

#site-footer {
    display: block;

    width: 100%;

    padding-top: 64px;
    padding-bottom: 48px;

    color: #fff;
    background: var(--iota-primary);
}

#site-footer > div {
    width: 100%;
    max-width: var(--iota-container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    column-gap: 44px;
    row-gap: 40px;
}


/* Footer column */

#site-footer > div > div {
    min-width: 0;
    color: #fff;
}


/* Footer headings */

#site-footer h4 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.5;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}


/* Footer column titles should retain proper spacing. */

#site-footer .footer-company h4 {
    text-transform: none;
    letter-spacing: normal;
}


/* Footer paragraphs */

#site-footer p {
    margin-top: 0;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;
    line-height: 1.75;
}


/* Footer lists */

#site-footer ul {
    margin-top: 0;
    margin-bottom: 0;

    padding-left: 0;

    list-style: none;
}

#site-footer li {
    margin: 0;
    padding: 0;
}

#site-footer li + li {
    margin-top: 12px;
}


/* Footer links */

#site-footer a {
    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;

    text-decoration: none;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

#site-footer a:hover {
    color: var(--iota-primary-light);
}


/* Footer contact information */

#site-footer .footer-company .flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

#site-footer .footer-company svg {
    display: block;

    width: 16px;
    height: 16px;

    flex-shrink: 0;

    color: #fff;
}

#site-footer .footer-company a {
    word-break: break-word;
}


/* Footer spacing */

#site-footer .footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#site-footer .footer-company .footer-brand-logo {
    margin-bottom: 0;
}

#site-footer .mt-10 {
    margin-top: 40px;
}


/* =========================================================
   14. FOOTER DISCLAIMER AND RISK WARNING
========================================================= */

#footer-disclaimer {
    display: block;

    width: 100%;

    padding: 40px 24px;

    color: #fff;
    background: var(--iota-primary-dark);
}

#footer-disclaimer > div {
    width: 100%;
    max-width: 1152px;

    margin-left: auto;
    margin-right: auto;

    font-size: 13px;
    font-weight: 300;

    line-height: 1.8;

    color: rgba(255, 255, 255, 0.95);
}

#footer-disclaimer h4 {
    margin-top: 0;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;

    color: #fff;
}

#footer-disclaimer p {
    margin: 0;

    font-size: 13px;
    line-height: 1.8;
}


/* Copyright separator */

#footer-disclaimer .border-t {
    border-top: 1px solid #b87c26;
}

#footer-disclaimer .pt-5 {
    padding-top: 20px;
}

#footer-disclaimer .text-center {
    text-align: center;
}

#footer-disclaimer .font-medium {
    font-weight: 500;
}


/* =========================================================
   15. SCROLL ANIMATIONS
========================================================= */

.scroll-animate,
.fade-in-up {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
        transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

    will-change: opacity, transform;
}

.scroll-animate.is-visible,
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}


/* =========================================================
   16. FAQ ACCORDION
========================================================= */

.accordion-content {
    max-height: 0;

    opacity: 0;

    overflow: hidden;

    padding-top: 0;
    padding-bottom: 0;

    transition:
        max-height 0.4s ease-in-out,
        opacity 0.4s ease-in-out,
        padding 0.4s ease-in-out;
}

.accordion-content.open {
    max-height: 800px;

    opacity: 1;

    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}


/* =========================================================
   17. HERO SLIDER BACKGROUND
========================================================= */

@keyframes zoomOutFade {

    0% {
        opacity: 0;
        transform: scale(1.15);
    }

    10% {
        opacity: 1;
        transform: scale(1.10);
    }

    25% {
        opacity: 1;
        transform: scale(1.05);
    }

    33.33% {
        opacity: 0;
        transform: scale(1.02);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }

}

.hero-slider-bg {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    opacity: 0;

    animation: zoomOutFade 18s infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(10, 15, 30, 0.65),
            rgba(10, 15, 30, 0.75)
        );

    z-index: 1;
}


/* =========================================================
   18. RESPONSIVE TABLET
========================================================= */

@media (max-width: 1100px) {

    #primary-menu {
        gap: 18px;
        font-size: 13px;
    }

    #primary-menu > li > a {
        font-size: 13px;
    }

    #site-footer > div {
        column-gap: 26px;
    }

}


/* =========================================================
   19. RESPONSIVE MOBILE NAVIGATION
========================================================= */

@media (max-width: 1023px) {

    .desktop-navigation {
        display: none !important;
    }

    #mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #main-nav > div:first-child {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* =========================================================
   20. RESPONSIVE FOOTER
========================================================= */

@media (max-width: 991px) {

    #site-footer > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 36px;
        row-gap: 40px;
    }

}


@media (max-width: 767px) {

    #top-bar > div {
        padding: 7px 15px;
        gap: 8px;
    }

    #top-bar a {
        padding: 4px 16px;
        font-size: 11px;
    }

    #main-nav > div:first-child {
        padding-left: 16px;
        padding-right: 16px;
    }

    #main-nav > div:first-child > div {
        height: 58px;
        min-height: 58px;
    }

    .site-branding .custom-logo {
        width: 65px;
        max-height: 48px;
    }

    #site-footer {
        padding-top: 48px;
        padding-bottom: 38px;
    }

    #site-footer > div {
        grid-template-columns: 1fr;

        padding-left: 24px;
        padding-right: 24px;

        row-gap: 36px;
    }

    #site-footer h4 {
        margin-bottom: 16px;
    }

    #footer-disclaimer {
        padding: 30px 20px;
    }

    #footer-disclaimer > div {
        font-size: 12px;
    }

    #footer-disclaimer p {
        font-size: 12px;
    }

}


/* =========================================================
   21. EXTRA SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    #top-bar a {
        padding-left: 12px;
        padding-right: 12px;
    }

    #site-footer > div {
        padding-left: 18px;
        padding-right: 18px;
    }

}


/* =========================================================
   22. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-animate,
    .fade-in-up {
        opacity: 1;
        transform: none;
    }

}

/* ======================================================
   iOTA MARKETS — HEADER & NAVIGATION FINAL OVERRIDE
====================================================== */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9990;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .10);
    transition: transform .3s ease;
}

#top-bar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

#top-bar > div {
    max-width: 1280px;
    min-height: 38px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

#top-bar a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 4px 24px;
    border: 1px solid;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    transition: .25s ease;
}

#top-bar a:first-child {
    color: #4CAF50;
    border-color: #4CAF50;
}

#top-bar a:first-child:hover {
    color: #fff;
    background: #4CAF50;
}

#top-bar a:last-child {
    color: #1E90FF;
    border-color: #1E90FF;
}

#top-bar a:last-child:hover {
    color: #fff;
    background: #1E90FF;
}


/* ================================================
   iOTA SECONDARY SECTION NAVIGATION
================================================ */

:root {
    --iota-secondary-nav-offset: 98px;
}

#secondary-nav {
    position: sticky !important;
    top: var(--iota-secondary-nav-offset);
    left: 0;
    width: 100%;
    min-height: 48px;

    display: block;

    background: #2b335c !important;

    color: #fff;

    z-index: 900;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);

    transition: box-shadow .25s ease;
}

#secondary-nav > div {
    max-width: 1280px;
    min-height: 48px;

    margin: 0 auto;
    padding: 13px 24px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px 18px;
}

#secondary-nav span {
    color: #fff;
    white-space: nowrap;
}

#secondary-nav a {
    color: #e5e7eb;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;

    transition: color .25s ease;
}

#secondary-nav a:hover,
#secondary-nav a.text-primary {
    color: #ffdf80 !important;
}

#secondary-nav.is-stuck {
    box-shadow: 0 5px 16px rgba(0, 0, 0, .20);
}

@media(max-width:767px) {
    #secondary-nav > div {
        justify-content: center;
        padding: 12px 14px;
        gap: 10px 13px;
    }

    #secondary-nav a {
        font-size: 12px;
    }
}

/* Main gold navigation */

#main-nav {
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    background: #d89633 !important;
    color: #fff;
}

#main-nav > div:first-child {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

#main-nav > div:first-child > div {
    width: 100%;
    height: 60px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Logo */

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    display: block;
    width: 70px;
    max-height: 52px;
    height: auto;
    object-fit: contain;
}


/* Desktop navigation wrapper */

@media (min-width: 1024px) {

    .desktop-navigation {
        display: flex !important;
        height: 100%;
        align-items: center;
    }

    #primary-menu {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        gap: clamp(16px, 2.1vw, 32px);
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: 14px;
        font-weight: 700;
    }

    #primary-menu > li {
        position: relative;
        display: flex;
        align-items: center;
        height: 100%;
        flex-shrink: 0;
    }

    #primary-menu > li > a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 18px 0;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        white-space: nowrap;
        transition: color .25s ease;
    }

    #primary-menu > li > a:hover,
    #primary-menu > li.current-menu-item > a,
    #primary-menu > li.current-menu-ancestor > a,
    #primary-menu > li.current_page_item > a {
        color: #ffdf80;
    }

    .navigation-arrow {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
        transition: transform .25s ease;
    }

    #primary-menu > li:hover > a .navigation-arrow,
    #primary-menu > li:focus-within > a .navigation-arrow {
        transform: rotate(180deg);
    }

    /* First-level dropdown */

    #primary-menu .dropdown-menu {
        position: absolute;
        display: none !important;
        top: 100%;
        left: 0;
        width: 245px;
        min-width: 220px;
        margin: 0;
        padding: 6px 0;
        background: #fff !important;
        color: #374151;
        list-style: none;
        border-top: 3px solid #eab308;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .17);
        z-index: 9999;
        visibility: hidden;
        opacity: 0;
        transform: translateY(7px);
        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease;
    }

    #primary-menu > li:hover > .dropdown-menu,
    #primary-menu > li:focus-within > .dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    #primary-menu .dropdown-menu li {
        position: relative;
        display: block;
        width: 100%;
        margin: 0;
    }

    #primary-menu .dropdown-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 19px;
        color: #374151 !important;
        background: #fff !important;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        white-space: normal;
        border-bottom: 1px solid #f0f0f0;
        transition: color .2s ease, background .2s ease;
    }

    #primary-menu .dropdown-menu a:hover,
    #primary-menu .dropdown-menu .current-menu-item > a {
        color: #d89633 !important;
        background: #fafafa !important;
    }

    /* Align the last two dropdowns to the right. */

    #primary-menu > li:nth-last-child(-n+2) > .dropdown-menu {
        right: 0;
        left: auto;
    }

    /* Nested desktop dropdowns. */

    #primary-menu .dropdown-menu .submenu-item > .dropdown-menu {
        top: 0;
        left: 100%;
        right: auto;
    }

    #primary-menu .dropdown-menu .submenu-item:hover > .dropdown-menu,
    #primary-menu .dropdown-menu .submenu-item:focus-within > .dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    #primary-menu .dropdown-menu .navigation-arrow {
        transform: rotate(-90deg);
    }

    /* Never display mobile navigation on desktop. */

    #mobile-menu,
    #mobile-menu-btn {
        display: none !important;
    }
}


/* Mobile navigation button */

#mobile-menu-btn {
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 9px;
    margin-left: auto;
}

#mobile-menu-btn svg {
    display: block;
    width: 27px;
    height: 27px;
    color: #fff;
}

#mobile-menu-btn .close-icon {
    display: none;
}

#mobile-menu-btn[aria-expanded="true"] .menu-icon {
    display: none;
}

#mobile-menu-btn[aria-expanded="true"] .close-icon {
    display: block;
}


/* Mobile navigation */

@media (max-width: 1023px) {

    .desktop-navigation {
        display: none !important;
    }

    #primary-menu {
        display: none !important;
    }

    #mobile-menu-btn {
        display: flex !important;
    }

    #mobile-menu {
        position: absolute;
        display: none !important;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
        overflow-x: hidden;
        background: #d89633 !important;
        border-top: 1px solid rgba(255,255,255,.16);
        box-shadow: 0 14px 28px rgba(0,0,0,.17);
        z-index: 9999;
    }

    #mobile-menu:not(.hidden) {
        display: block !important;
    }

    #mobile-menu.hidden {
        display: none !important;
    }

    #mobile-primary-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0 0 12px;
        list-style: none;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
    }

    #mobile-primary-menu > li {
        position: relative;
        display: block;
        width: 100%;
        margin: 0;
    }

    #mobile-primary-menu > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 56px;
        padding: 14px 65px 14px 24px;
        color: #fff !important;
        background: transparent;
        font-size: 14px;
        font-weight: 700;
        border-bottom: 1px solid rgba(132,79,13,.3);
    }

    #mobile-primary-menu > li > a:hover {
        color: #fff !important;
        background: #c2842c;
    }

    /* Mobile accordion button */

    #mobile-primary-menu .mobile-submenu-toggle {
        position: absolute;
        top: 0;
        right: 4px;
        width: 52px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
        z-index: 3;
    }

    #mobile-primary-menu .mobile-arrow {
        display: block;
        width: 17px;
        height: 17px;
        transition: transform .25s ease;
    }

    #mobile-primary-menu .mobile-submenu-toggle[aria-expanded="true"] .mobile-arrow {
        transform: rotate(180deg);
    }

    /* Mobile submenu panel */

    #mobile-primary-menu .mobile-submenu {
        display: block;
        width: 100%;
        margin: 0;
        padding: 7px 0;
        list-style: none;
        background: #b8762e;
    }

    #mobile-primary-menu .mobile-submenu[hidden] {
        display: none !important;
    }

    #mobile-primary-menu .mobile-submenu > li {
        position: relative;
        margin: 0;
    }

    #mobile-primary-menu .mobile-submenu a {
        display: block;
        width: 100%;
        padding: 12px 40px;
        color: #fff !important;
        background: transparent;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.5;
        border-bottom: 1px solid rgba(120,75,13,.25);
    }

    #mobile-primary-menu .mobile-submenu a:hover {
        background: #a96727;
        color: #fff !important;
    }

    /* Nested mobile submenu indentation */

    #mobile-primary-menu .mobile-submenu .mobile-submenu a {
        padding-left: 55px;
        background: rgba(0,0,0,.08);
    }
}


/* Small mobile screens */

@media (max-width: 480px) {

    #top-bar > div {
        padding: 6px 12px;
        gap: 8px;
    }

    #top-bar a {
        padding: 4px 15px;
        font-size: 11px;
    }

    #main-nav > div:first-child {
        padding-left: 15px;
        padding-right: 15px;
    }

    .site-branding .custom-logo {
        width: 65px;
    }
}

/* =====================================================
   FINAL SECONDARY NAVBAR POSITIONING
===================================================== */

:root {
    --iota-adminbar-height: 0px;
    --iota-secondary-nav-top: 98px;
}

/* Avoid creating a secondary scroll container. */
html,
body {
    overflow-x: clip !important;
}

/* Account for WordPress admin toolbar. */
#main-header {
    top: var(--iota-adminbar-height) !important;
    z-index: 9990;
    transition: transform 0.3s ease;
}

/* Blue contextual navigation. */
#secondary-nav {
    position: sticky !important;
    top: var(--iota-secondary-nav-top) !important;

    display: block;
    width: 100%;
    height: auto;
    min-height: 48px;

    margin: 0;

    background-color: #2b335c !important;

    z-index: 950;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.13);

    /* Do not animate the navbar independently of the header. */
    transform: none !important;
    transition: box-shadow 0.25s ease;
}

#secondary-nav > div {
    max-width: 1280px;
    min-height: 48px;

    margin: 0 auto;
    padding: 12px 24px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px 18px;
}

#secondary-nav span {
    color: #fff;
}

#secondary-nav a {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

#secondary-nav a:hover,
#secondary-nav a.active,
#secondary-nav a.text-primary {
    color: #ffdf80 !important;
}

/* WordPress admin toolbar. */
body.admin-bar {
    --iota-adminbar-height: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --iota-adminbar-height: 46px;
    }
}

@media (max-width: 767px) {
    #secondary-nav > div {
        justify-content: center;
        padding: 12px 14px;
        gap: 10px 13px;
    }

    #secondary-nav a {
        font-size: 12px;
        white-space: normal;
    }
}
