/* ==========================================================================
CUSTOM CSS
========================================================================== */

:root{
    scroll-behavior:auto;
    --font-primary: 'Public Sans', sans-serif;;
    --font-heading: 'Roboto Serif', serif;
    --body-padding-top: 71px;
    --available-vh: calc(100vh - var(--body-padding-top));

    /*colors*/
    --ah-primary: #02070d;
    --ah-secondary: #253543;
    --ah-accent: #e35526;
    --ah-ivory: #D7DDE4;
    --ah-slate-grey: rgba(209, 220, 235, 0.62);
  
    
}

.admin-bar :root {
    --body-padding-top: 102px;
    --available-vh: calc(100vh - var(--body-padding-top));
}

#pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
}

#status {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

body {
    padding-top: 75px;
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* WordPress Admin Bar Padding */
.admin-bar body {
    padding-top: 97px; /* 75px + 32px for admin bar */
}

.admin-bar .fixed-top {
    top: 32px; /* Account for admin bar on desktop */
}

section.position-fixed {
    top: 75px;
    left: 0;
    right: 0;
    z-index: 1000;
}
.admin-bar section.position-fixed {
    top: 107px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

h1 {
    font-weight: 600;
}

.section-header {
    font-weight: 300;
}

.section-preheader {
    border-left: 4px solid var(--ah-accent);
    font-family: var(--font-heading);
    padding-left: .5rem;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1;
}


a {
    color: var(--ah-accent);
}


/* ==========================================================================
COLORS
========================================================================== */

.bg-ah-primary {
    background-color: var(--ah-primary);
    color: #ffffff;
}
.bg-ah-secondary {
    background-color: var(--ah-secondary);
    color: #ffffff;
}

.text-ah-accent {
    color: var(--ah-accent);
}


.text-ah-ivory {
    color: var(--ah-ivory);
}


.text-ah-slate-grey {
    color: var(--ah-slate-grey);
}


/* ==========================================================================
BUTTONS
========================================================================== */

.btn {
    padding: .4rem 1rem;
    border-radius: .2rem;
}

.btn-ah-accent {
    background-color: var(--ah-accent);
    color: #fff;
}

.btn-ah-accent:hover {
  background-color: color-mix(in srgb, var(--ah-accent) 80%, black);
}

/* ==========================================================================
NAVIGATION
========================================================================== */

.custom-logo {
    height: 26px;
    width: auto;
}

.site-branding {
    padding: 1.5rem 0;
}

.navbar-collapse {
    width: 100%;
}

.navbar {
    padding: 0;
}

.navbar .nav-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.navbar .nav-link:hover, .navbar .nav-link:focus {
    color: #ffffff;
    font-weight: 600;
    opacity: 0.8;
}

/* Dropdown styles */
.navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.125rem;
    min-width: 10rem;
    padding: 0.5rem 0;
    white-space: nowrap;
    width: max-content;
    max-width: none;
    left: auto;
    right: auto;
}

.navbar .dropdown-menu .nav-link {
    color: #000000;
}

.navbar .dropdown-menu .dropdown-item {
    color: #212529;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: max-content;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: #F4F5F7;
    color: #212529;
}

.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background-color: #0d6efd;
    color: #ffffff;
}

.navbar .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* ==========================================================================
UPCOMING EVENTS
========================================================================== */

.upcoming-event-item h3 {
    font-weight: 400;
    font-size: 1.6rem;
}

/* ==========================================================================
MEGA MENU STYLES
========================================================================== */

/* Mega Menu Container */
.mega-menu-dropdown {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: 100vw;
    min-width: 100vw;
    max-width: none;
}

.admin-bar .mega-menu-dropdown {
    top: 100px;
}

.mega-menu-parent.show .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Content */
.mega-menu-content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 2rem;
    width: 100%;
}

/* Responsive columns */
@media (max-width: 768px) {
    .mega-menu-content {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.mega-menu-content > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Mega Menu Section Headers */
.mega-menu-content .mega-menu-section {
    margin-bottom: 1.5rem;
}

.mega-menu-content .mega-menu-section h4 {
    color: #009CA6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #009CA6;
}

/* Mega Menu Links */
.mega-menu-content .nav-link {
    color: #333333;
    font-size: 1rem;
    padding: 0.5rem 0;
    /* border-bottom: 1px solid #f0f0f0; */
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    width: 100%;
    /* min-width: max-content; */
    font-weight: 600;
}

.mega-menu-content .nav-link:hover {
    color: #009CA6;
    background-color: transparent;
    padding-left: 0.5rem;
}

/* Keep parent nav-link white when mega-menu is shown or hovered */
.mega-menu-parent.show > .nav-link,
.mega-menu-parent:hover > .nav-link {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Mega Menu Column Variations */
.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default 3 columns */
    gap: 2rem;
}

.mega-menu-columns.mega-menu-2-col {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
}

.mega-menu-columns.mega-menu-4-col {
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
}

.mega-menu-columns.mega-menu-5-col {
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
}

/* Responsive columns */
@media (max-width: 992px) {
    .mega-menu-columns.mega-menu-4-col,
    .mega-menu-columns.mega-menu-5-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu-columns {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

/* Mega Menu Grid Layout */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Mega Menu Featured Section */
.mega-menu-featured {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #009CA6;
}

.mega-menu-featured h5 {
    color: #009CA6;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.mega-menu-featured p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Mobile Navigation Adjustments */
@media (max-width: 991.98px) {
    /* Mobile Navigation Scrolling */
    .navbar .navbar-nav {
        max-height: calc(100vh - 120px); /* Allow for navbar height and some padding */
        overflow-y: auto;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Firefox */
        width: 100%; /* Ensure full width */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    /* Prevent horizontal overflow on nav items */
    .navbar .nav-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    .navbar .nav-link {
        width: 100%;
        box-sizing: border-box;
        white-space: normal; /* Allow text to wrap */
        word-wrap: break-word; /* Break long words if needed */
    }
    
    /* Custom scrollbar for webkit browsers */
    .navbar .navbar-nav::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar .navbar-nav::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .navbar .navbar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
    
    .navbar .navbar-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* Mobile Mega Menu Adjustments */
    .mega-menu-dropdown {
        position: static;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 1rem;
    }
    
    .mega-menu-content .nav-link {
        color: #ffffff;
        border-bottom: none;
        padding: 0.5rem 0;
    }
    
    .mega-menu-content .nav-link:hover {
        color: #dee2e6;
        padding-left: 0;
    }
    
    .mega-menu-featured {
        background-color: transparent;
        padding: 0;
        border-left: none;
        margin-top: 1rem;
    }
    
    .mega-menu-featured h5 {
        color: #ffffff;
    }
    
    .mega-menu-featured p {
        color: #dee2e6;
    }
}





/* ==========================================================================
FOOTER STYLES
========================================================================== */

.site-footer {
    padding: 3rem 0 1rem;
}

footer h3 {
    font-weight: 300;
}

footer input.form-control {
    padding: 12px 16px;
    height: 48.5px;
    background: #0A1117;
    border: 1px solid rgba(145, 161, 182, 0.2);
    border-radius: 4px;

}

.footer-column h5 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.footer-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-menu-list {
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--ah-slate-grey)
}
footer a:hover {
    color: var(--ah-accent)
}

.footer-menu-list a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-menu-list a:hover {
    text-decoration: none;
}

.contact-details p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    text-decoration: none;
    background-color: #000000;
    color: #ffffff;
}

.footer-bottom-container {
    border-top: 1px solid rgba(145, 161, 182, 0.2);;
    margin-top: 3rem;
}

.footer-bottom-social a {
    white-space: nowrap;
}

.footer-bottom-links a {
    display: inline-block;
    line-height: 2.4rem;
    margin-right: .7rem;
    margin-left: .7rem;
    text-decoration: none;
    white-space: nowrap;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    .footer-column {
        text-align: center;
    }
    
    .contact-details p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-column h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}



/* ==========================================================================
ANIMATED HAMBURGER MENU
========================================================================== */

.hamburger {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
    min-height: 44px; /* Better touch target */
    min-width: 44px;
}

.hamburger:focus {
    outline: none;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger.is-active:hover {
    opacity: 0.7;
}

.hamburger.is-active .hamburger-inner, .hamburger.is-active .hamburger-inner::before, .hamburger.is-active .hamburger-inner::after {
    background-color: #ffffff;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 0px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.hamburger--squeeze .hamburger-inner {
    transition-duration: 0.075s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--squeeze .hamburger-inner::before {
    transition: top 0.075s 0.12s ease, opacity 0.075s ease;
}

.hamburger--squeeze .hamburger-inner::after {
    transition: bottom 0.075s 0.12s ease, transform 0.075s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--squeeze.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--squeeze.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.075s ease, opacity 0.075s 0.12s ease;
}

.hamburger--squeeze.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.075s ease, transform 0.075s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

