/* ==========================================================================
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: #03070c;
    --ah-primary-light: #0b1116;
    --ah-secondary: #283542;
    --ah-accent: #e35526;
    --ah-danger: #e5484d;
    --ah-ivory: #D7DDE4;
    --ah-grey: #848b96;
    
}

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

body {
    background-color: #03070c;
}

body.block-editor-iframe__body {
    background-color: #ffffff;
}

/* Scroll reveal — add class "fade-up" anywhere; .is-visible is set by IntersectionObserver.
   Optional delay (CSS-only): style="--fade-delay: 0.2s" */
.fade-up {
    opacity: 0;
    transform: translateY(1.2rem);
    transition:
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--fade-delay, 0s);
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: none;
    /* Drop the stacking context created by will-change, so overlays such as
       dropdown menus are not trapped below later siblings. */
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

body.loading {
    overflow: hidden;
}

#pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Preloader logo — switch via .ah-preloader-logo--split | --letters | --wipe | --slide */
.ah-preloader-status {
    width: min(224px, 56vw);
}

.ah-preloader-logo {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ah-preloader-logo__a,
.ah-preloader-logo__h,
.ah-preloader-logo__rest,
.ah-preloader-logo__letter {
    transform-box: view-box;
    transform-origin: 0 0;
}

/* ---------- Variant: split (ah together → move apart → rest fades) ---------- */
.ah-preloader-logo--split .ah-preloader-logo__a {
    opacity: 0;
    animation: ah-preloader-a 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ah-preloader-logo--split .ah-preloader-logo__h {
    opacity: 0;
    animation: ah-preloader-h 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ah-preloader-logo--split .ah-preloader-logo__rest {
    opacity: 0;
    animation: ah-preloader-rest 0.7s ease 0.7s both;
}

/* Hub letters after h stay with rest fade in split mode */
.ah-preloader-logo--split .ah-preloader-logo__letter--hub {
    opacity: 0;
    animation: ah-preloader-rest 0.7s ease 0.7s both;
}

@keyframes ah-preloader-a {
    0%,
    18% {
        opacity: 0;
        transform: translate(38.3%, 0);
    }
    28% {
        opacity: 1;
        transform: translate(38.3%, 0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes ah-preloader-h {
    0%,
    18% {
        opacity: 0;
        transform: translate(-18.4%, 0);
    }
    28% {
        opacity: 1;
        transform: translate(-18.4%, 0);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes ah-preloader-rest {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- Variant: letter-by-letter reveal ---------- */
.ah-preloader-logo--letters .ah-preloader-logo__a,
.ah-preloader-logo--letters .ah-preloader-logo__h,
.ah-preloader-logo--letters .ah-preloader-logo__rest {
    opacity: 1;
    transform: none;
    animation: none;
}

.ah-preloader-logo--letters .ah-preloader-logo__letter {
    opacity: 0;
    animation: ah-preloader-letter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.09s);
}

@keyframes ah-preloader-letter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Variant: mask wipe (left → right) ---------- */
.ah-preloader-logo--wipe .ah-preloader-logo__a,
.ah-preloader-logo--wipe .ah-preloader-logo__h,
.ah-preloader-logo--wipe .ah-preloader-logo__rest,
.ah-preloader-logo--wipe .ah-preloader-logo__letter,
.ah-preloader-logo--wipe .ah-preloader-logo__letter--hub {
    opacity: 1;
    transform: none;
    animation: none;
}

.ah-preloader-logo--wipe {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 100%);
    -webkit-mask-size: 0% 100%;
    mask-size: 0% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    animation: ah-preloader-wipe 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes ah-preloader-wipe {
    from {
        -webkit-mask-size: 0% 100%;
        mask-size: 0% 100%;
    }
    to {
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
    }
}

/* ---------- Variant: letters slide + fade in from the right ---------- */
.ah-preloader-logo--slide .ah-preloader-logo__a,
.ah-preloader-logo--slide .ah-preloader-logo__h,
.ah-preloader-logo--slide .ah-preloader-logo__rest {
    opacity: 1;
    transform: none;
    animation: none;
}

.ah-preloader-logo--slide .ah-preloader-logo__letter {
    opacity: 0;
    animation: ah-preloader-slide 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 0.064s);
}

.ah-preloader-logo--slide .ah-preloader-logo__h .cls-1,
.ah-preloader-logo--slide .ah-preloader-logo__letter--hub .cls-1 {
    animation: ah-preloader-hub-colour 0.32s ease 0.8s both;
}

@keyframes ah-preloader-slide {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ah-preloader-hub-colour {
    from {
        fill: #fff;
    }
    to {
        fill: var(--ah-accent);
    }
}

body {
    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 {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

h3 a {
    font-family: var(--font-heading);
}

h3.font-primary,
h3.font-primary a {
    font-family: var(--font-primary);
}

.border-bottom-80 {
  position: relative;
  display: inline-block;
}

.border-bottom-80::after {
  content: "";
  display: block;
  width: 80%;
  height: 2px;           /* border thickness */
  background-color: var(--ah-accent);
  margin-top: 0.5rem;   /* spacing from text */
}


.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);
}

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

a.text-ah-grey:hover,
a.text-ah-grey:focus-visible {
    color: var(--ah-accent);
}


.pt-xxl {
    padding-top: 5rem;
}

.pb-xxl {
    padding-bottom: 5rem;
}

.pt-nav-clear {
    padding-top: 9rem;
}



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

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

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

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

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

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

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

.border-default {
    border-color: rgba(148, 162, 182, 0.2) !important;
}

.border-ah-secondary {
    border-color: var(--ah-secondary) !important;
}

.border-ah-accent {
    border-color: var(--ah-accent) !important;
}

/* Divider block — container-width section separator */
.ah-divider-block .ah-divider {
    border-top-width: 1px;
    border-top-style: solid;
    opacity: 1;
}




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

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

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

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

.btn-ah-accent-outline {
    background-color: transparent;
    color: var(--ah-accent);
    border: 1px solid var(--ah-accent);
}

.btn-ah-accent-outline:hover {
    background-color: var(--ah-accent);
    color: white;
    border: 1px solid var(--ah-accent);
}

.btn-ah-white {
    background-color: #fff;
    color: var(--ah-accent);
    border: 1px solid #fff;
}

.btn-ah-white:hover {
    background-color: color-mix(in srgb, #fff 90%, black);
    border-color: color-mix(in srgb, #fff 90%, black);
    color: var(--ah-accent);
}

.btn-ah-black {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-ah-black:hover {
    background-color: color-mix(in srgb, #000 85%, white);
    border-color: color-mix(in srgb, #000 85%, white);
    color: #fff;
}

/* WebToffee GDPR Cookie Consent preference shortcode button */
a.wcc-preference-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 0.2rem;
    font-family: var(--font-primary);
    text-decoration: none !important;
    background-color: var(--ah-accent) !important;
    color: #fff !important;
    border: 1px solid var(--ah-accent) !important;
    transition: all 0.3s ease;
}

a.wcc-preference-btn:hover,
a.wcc-preference-btn:focus {
    background-color: color-mix(in srgb, var(--ah-accent) 80%, black) !important;
    border-color: color-mix(in srgb, var(--ah-accent) 80%, black) !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Podcasts category filter buttons — hover state.
   Scoped to .podcasts-filters so this doesn't affect other [data-category-filter]
   buttons that might exist elsewhere. */
.podcasts-filters [data-category-filter] {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.podcasts-filters [data-category-filter]:hover {
    background-color: color-mix(in srgb, var(--ah-accent) 90%, white) !important;
    border-color: color-mix(in srgb, var(--ah-accent) 90%, white) !important;
    color: var(--ah-ivory) !important;
}

/* Podcasts search input — placeholder + focus keep the dark theme. */
.podcasts-controls input[type="search"]::placeholder {
    color: var(--ah-grey);
    opacity: 1;
}

.podcasts-controls input[type="search"]:focus {
    background-color: var(--ah-primary-light);
    color: var(--ah-grey);
    border-color: var(--ah-accent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ah-accent) 25%, transparent);
}

/* Listing sort dropdowns — active item uses primary-light so it stands out
   against the darker dropdown menu background. */
.ah-filter-toolbar .dropdown-item.active,
.ah-filter-toolbar .dropdown-item:active {
    background-color: var(--ah-primary-light) !important;
    color: var(--ah-accent) !important;
}

.ah-filter-toolbar .dropdown-item:hover,
.ah-filter-toolbar .dropdown-item:focus {
    background-color: var(--ah-secondary) !important;
    color: var(--ah-ivory) !important;
}



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

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

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

.navbar-collapse {
    width: 100%;
}

.navbar {
    padding: 0;
    border-bottom: 1px solid;
    transition: all .4s ease;

}

.navbar:not(.navbar-viewport-top) {
    background-color: var(--ah-primary) !important;
    margin: .8rem .4rem;
    border-radius: .6rem;
    border:1px solid;
}

.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 — match listing/filter menus (dark panel, ivory text, secondary hover) */
.navbar .dropdown-menu {
    --bs-dropdown-bg: var(--ah-primary);
    --bs-dropdown-color: var(--ah-ivory);
    --bs-dropdown-link-color: var(--ah-ivory);
    --bs-dropdown-link-hover-color: var(--ah-ivory);
    --bs-dropdown-link-hover-bg: var(--ah-secondary);
    --bs-dropdown-link-active-color: var(--ah-accent);
    --bs-dropdown-link-active-bg: var(--ah-primary-light);
    --bs-dropdown-border-color: rgba(148, 162, 182, 0.2);
    background-color: var(--ah-primary);
    border: 1px solid rgba(148, 162, 182, 0.2);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.45);
    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: var(--ah-ivory);
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--ah-ivory);
    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: var(--ah-secondary);
    color: var(--ah-ivory);
}

.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background-color: var(--ah-primary-light);
    color: var(--ah-accent);
}

.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;
}


/* ==========================================================================
HERO BLOCK
========================================================================== */
.hero-slider-section h1 {
        font-size: 2.3rem;
}

/* Hero headline fade — triggered after preloader / on slide change */
.hero-slider-section .hero-headline {
    opacity: 0;
    transform: translateY(0.28rem);
    transition:
        opacity 0.55s cubic-bezier(0.33, 0.1, 0.2, 1),
        transform 0.55s cubic-bezier(0.33, 0.1, 0.2, 1);
}

.hero-slider-section .hero-headline.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider-section .hero-headline {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Full screen: fill the viewport (nav overlays the hero, so do not subtract it) */
.hero-slider-section.hero-fit-screen .hero-slider,
.hero-slider-section.hero-fit-screen .keen-slider__slide,
.hero-slider-section.hero-fit-screen .hero-slide {
    min-height: 100vh;
}

/* Content height: size to headline/search with comfortable padding */
.hero-slider-section.hero-fit-content .keen-slider__slide,
.hero-slider-section.hero-fit-content .hero-slide {
    min-height: 0;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-slider-dots {
    position: absolute;
    bottom: 0;
    right: 0;
}

.hero-dot.active span {
    background-color: var(--ah-accent) !important;
}


#hero-search-input {
    padding-right: 4.6rem;
 

}

/* Make the caret color visible (fallback) */
#hero-search-input {
    caret-color: transparent; /* Hide default caret */
    position: relative;
}


.caret-wrapper {
    position: relative;
}

.caret-wrapper input {
    caret-color: transparent; /* hide default caret */
}

/* Custom caret — only while the field is focused, so it does not imply
   the input is active on page load. */
.caret-wrapper .custom-caret {
    position: absolute;
    width: .2rem;              /* thickness */
    height: 2em;           /* height */
    background: var(--ah-accent);       /* color */
    animation: blink-caret 1s steps(1) infinite;
    pointer-events: none;
    z-index: 5;
    display: none;
}

.caret-wrapper:focus-within .custom-caret {
    display: block;
}

@keyframes blink-caret {
    50% { opacity: 0; }
}



.hero-search-btn {
    z-index: 5 !important;
}


/* ==========================================================================
LOGO SLIDER
========================================================================== */


@keyframes slides {
    from {
        transform: translateX(0);
        }
        to {
        transform: translateX(-100%);
        }
    }
    
    .partner_logo_carousel {
        overflow: hidden;
        padding: 0px 0px;
        white-space: nowrap;
        position: relative;
    }
    
    .partner_logo_carousel:before, .partner_logo_carousel:after {
        position: absolute;
        top: 0;
        content: '';
        width: 100px;
        height: 100%;
        z-index: 2;
    }
  
    .partner_logo_carousel:before {
        left: 0;
    }
  
    .partner_logo_carousel:after {
        right: 0;
    }

    .bg-ah-primary .partner_logo_carousel:before {
        background: linear-gradient(to left, rgba(2, 7, 13,0), rgb(2, 7, 13, 67));
    }
    
    .bg-ah-primary .partner_logo_carousel:after {
        background: linear-gradient(to right, rgba(2, 7, 13, 67,0), rgb(2, 7, 13, 67));
    }

    .bg-ah-secondary .partner_logo_carousel:before {
        background: linear-gradient(to left, rgba(37, 53, 67,0), rgb(37, 53, 67));
    }
    
    .bg-ah-secondary .partner_logo_carousel:after {
        background: linear-gradient(to right, rgba(37, 53, 67,0), rgb(37, 53, 67));
    }

  
    .carousel-logo-items {
        display: inline-block;
        animation: 30s slides infinite linear;
    }

    .carousel-logo-items a {
        text-decoration: none;
    }
    
    /* .partner_logo_carousel:hover .carousel-logo-items {
        animation-play-state: paused;
    }
     */
    .carousel-logo-items img{
        margin: 5px 25px;
        height: 40px;
        width: auto;
        vertical-align: middle;
    }




/* ==========================================================================
POST BLOCKS (Generic styles)
========================================================================== */

.has-title-gradient {
  position: relative;
  overflow: hidden; /* clip the pseudo-element */
  /* Match Bootstrap .rounded-4 on nested thumbs so the gradient
     follows the same bottom corners (not square over a rounded image). */
  border-radius: var(--bs-border-radius-xl, 1rem);
}

.promotions-list__item {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(209, 220, 235, 0.2);
}

.promotions-list__item:first-child {
  padding-top: 0.35rem;
}

.promotions-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.promotions-list__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.35;
}

.promotions-list__link .ah-cta-media-icon {
  flex-shrink: 0;
  margin-inline-end: 0;
  margin-top: 0.2em;
  opacity: 0.9;
}

.has-title-gradient::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68%;
  /* Stronger / taller scrim so white title + excerpt hold over bright images */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.72) 38%,
    rgba(0, 0, 0, 0.32) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1; /* sits under the text */
}

.has-title-gradient h3,
.has-title-gradient h4 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 1rem;
  color: #fff;
  z-index: 2; /* text above the gradient */
}

.has-title-gradient--with-excerpt::before {
  height: 85%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.8) 42%,
    rgba(0, 0, 0, 0.4) 74%,
    rgba(0, 0, 0, 0) 100%
  );
}

.has-title-gradient__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}

.has-title-gradient__content--compact {
  padding: 1rem;
}

.has-title-gradient .has-title-gradient__content h3,
.has-title-gradient .has-title-gradient__content h4 {
  position: static;
  bottom: auto;
  left: auto;
  width: auto;
  padding: 0;
  margin: 0 0 0.5rem;
}

.has-title-gradient__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.has-title-gradient__content--compact .has-title-gradient__excerpt {
  font-size: 0.85rem;
  -webkit-line-clamp: 2;
}

.has-title-gradient__more {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: #fff;
  transition: color 0.2s ease;
}

.ah-cta-media-icon {
  font-size: 0.85em;
  line-height: 1;
  margin-inline-end: 0.4em;
}

.btn:has(.ah-cta-media-icon) {
  display: inline-flex;
  align-items: center;
}

.has-title-gradient__content--compact .has-title-gradient__more {
  font-size: 0.85rem;
}

.has-title-gradient--with-excerpt > .stretched-link::after {
  z-index: 3;
}

.has-title-gradient--with-excerpt:hover .has-title-gradient__more,
.has-title-gradient--with-excerpt:focus-within .has-title-gradient__more {
  color: var(--ah-accent);
}

/*
 * Featured card vs stacked secondary pair:
 * Two ratio-4x3 cards + g-4 gap are taller than one ratio-4x3 featured column
 * (same aspect math, plus the gap). Row columns stretch, but the featured
 * article stayed height-locked by .ratio — stretch it to match the column.
 * Desktop 1+2+2 (and promotions) layout starts at xl (1200px).
 */
/* Full-width stack between lg and xl: 4:3 is very tall — use 16:9. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .latest-insights-featured .ratio.ratio-4x3,
  .latest-news-featured .ratio.ratio-4x3,
  .latest-toolkits-featured .ratio.ratio-4x3 {
    --bs-aspect-ratio: 56.25%;
  }
}

@media (min-width: 1200px) {
  .latest-insights-featured.has-title-gradient,
  .latest-news-featured.has-title-gradient,
  .latest-toolkits-featured.has-title-gradient {
    height: 100%;
  }

  /*
   * Stretch to the sibling column when the 1+2+2 row is side-by-side.
   * aspect-ratio is a floor so the card cannot collapse to 0 if the
   * column height is indefinite (e.g. mid-breakpoint stack / wrap).
   */
  .latest-insights-featured .ratio,
  .latest-news-featured .ratio,
  .latest-toolkits-featured .ratio {
    height: 100%;
    aspect-ratio: 4 / 3;
  }

  .latest-insights-featured .ratio::before,
  .latest-news-featured .ratio::before,
  .latest-toolkits-featured .ratio::before {
    display: none;
  }
}

/* Featured + compact secondary story cards (latest news / insights / articles / toolkits) */
@media (max-width: 767.98px) {
  .latest-news-secondary.has-title-gradient,
  .latest-insights-secondary.has-title-gradient,
  .latest-toolkits-secondary.has-title-gradient {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: visible;
  }

  /* Stretched link must not participate in flex (it was creating left gap) */
  .latest-news-secondary > .stretched-link,
  .latest-insights-secondary > .stretched-link,
  .latest-toolkits-secondary > .stretched-link {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .latest-news-secondary.has-title-gradient::before,
  .latest-insights-secondary.has-title-gradient::before,
  .latest-toolkits-secondary.has-title-gradient::before {
    display: none;
  }

  .latest-news-secondary .ratio,
  .latest-insights-secondary .ratio,
  .latest-toolkits-secondary .ratio {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    max-width: 7.25rem;
  }

  .latest-news-secondary .has-title-gradient__content,
  .latest-news-secondary .has-title-gradient__content--compact,
  .latest-insights-secondary .has-title-gradient__content,
  .latest-insights-secondary .has-title-gradient__content--compact,
  .latest-toolkits-secondary .has-title-gradient__content,
  .latest-toolkits-secondary .has-title-gradient__content--compact {
    position: static;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
  }

  .latest-news-secondary .has-title-gradient__content h4,
  .latest-insights-secondary .has-title-gradient__content h4,
  .latest-toolkits-secondary .has-title-gradient__content h4 {
    position: static;
    width: auto;
    padding: 0;
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--ah-ivory);
  }

  .latest-news-secondary .has-title-gradient__excerpt,
  .latest-insights-secondary .has-title-gradient__excerpt,
  .latest-toolkits-secondary .has-title-gradient__excerpt {
    color: var(--ah-grey);
    -webkit-line-clamp: 2;
    margin-bottom: 0.35rem;
  }

  .latest-news-secondary .has-title-gradient__more,
  .latest-insights-secondary .has-title-gradient__more,
  .latest-toolkits-secondary .has-title-gradient__more {
    color: var(--ah-accent);
  }
}

article h3, article h4 {
    font-weight: 400 !important;
    font-size: 1.6rem;
}

[data-latest-insights].is-loading [data-latest-insights-grid],
[data-latest-articles].is-loading [data-latest-articles-grid] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.latest-insights-tabs,
.latest-articles-tabs {
  width: 100%;
}

.latest-insights-tabs .latest-insights-tab,
.latest-articles-tabs .latest-articles-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  white-space: nowrap;
}

.latest-insights-tabs .latest-insights-tab__label,
.latest-articles-tabs .latest-articles-tab__label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.latest-insights-tabs .latest-insights-tab.is-active .latest-insights-tab__label::after,
.latest-articles-tabs .latest-articles-tab.is-active .latest-articles-tab__label::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.35em;
  background-color: currentColor;
}

.latest-insights-category-description,
.all-toolkits-category-description,
.archive-listing__term-description {
  max-width: 48rem;
  border-left: 4px solid var(--ah-accent);
  padding-left: 0.75rem;
}

.latest-insights-category-description p:last-child,
.all-toolkits-category-description p:last-child,
.archive-listing__term-description p:last-child {
  margin-bottom: 0;
}

.latest-insights-category-meta {
  width: 100%;
}

.latest-insights-category-see-more {
  white-space: nowrap;
}

/* Keep filter/sort controls above the listing grid that follows them */
.ah-filter-toolbar {
  position: relative;
  z-index: 3;
}

/* Shared horizontal category filter slider (mobile) */
@media (max-width: 991.98px) {
  .ah-filter-toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .ah-filter-toolbar .ah-category-scroll {
    width: 100%;
    max-width: 100%;
    order: 0;
  }

  /* Keep search / sort / filter controls under the category slider */
  .ah-filter-toolbar .podcasts-controls,
  .ah-filter-toolbar .videos-controls,
  .ah-filter-toolbar .all-events-tools,
  .ah-filter-toolbar .all-articles-tools,
  .ah-filter-toolbar .all-insights-tools,
  .ah-filter-toolbar .all-toolkits-controls,
  .ah-filter-toolbar .all-insights-by-partner-controls {
    width: 100%;
  }

  .ah-category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
  }

  .ah-category-scroll::-webkit-scrollbar {
    display: none;
  }

  .ah-category-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  .ah-category-scroll.is-dragging > .btn {
    pointer-events: none;
  }

  .ah-category-scroll > .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .latest-insights-tabs .latest-insights-tab,
  .latest-articles-tabs .latest-articles-tab {
    flex: 0 0 auto;
    min-width: auto;
    padding: 1.25rem 1.15rem;
  }
}

@media (min-width: 992px) {
  /* Single-row toolbars: category buttons wrap within their own column so the
     search / sort controls only drop to a new line when space really runs out.
     Drag-scrolling is mobile-only, so the strip must not overflow here. */
  .ah-filter-toolbar .ah-category-scroll {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap !important;
  }

  .ah-filter-toolbar .podcasts-controls,
  .ah-filter-toolbar .videos-controls,
  .ah-filter-toolbar .all-events-tools,
  .ah-filter-toolbar .all-articles-tools,
  .ah-filter-toolbar .all-insights-tools,
  .ah-filter-toolbar .all-toolkits-controls,
  .ah-filter-toolbar .all-insights-by-partner-controls {
    flex: 0 0 auto;
  }
}

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

.upcoming-event-row:not(:last-child) .upcoming-event-item {
  border-bottom: 1px solid rgba(145, 161, 128, 0.2);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
FEATURED EVENT BLOCK
========================================================================== */

.featured-event-card__meta-item {
  padding-right: 1rem;
  margin-right: 1rem;
  border-right: 1px solid rgba(209, 220, 235, 0.35);
}

.featured-event-card__meta-item:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: none;
}

.featured-event-card h3 a:hover {
  color: var(--ah-accent);
}

/* ==========================================================================
ALL INSIGHTS BLOCK
========================================================================== */

[data-all-insights].is-loading [data-all-insights-grid],
[data-all-articles].is-loading [data-all-articles-grid] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.insight-card h3 a:hover {
  color: var(--ah-accent);
}

.insight-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.all-insights-pagination .page-link,
.all-articles-pagination .page-link,
.videos-pagination .page-link,
.podcasts-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.25rem;
  border-radius: 50%;
  background-color: var(--ah-primary-light);
  border-color: rgba(145, 161, 128, 0.2);
  color: var(--ah-ivory);
}

.all-insights-pagination .page-item:first-child .page-link,
.all-insights-pagination .page-item:last-child .page-link,
.all-articles-pagination .page-item:first-child .page-link,
.all-articles-pagination .page-item:last-child .page-link,
.videos-pagination .page-item:first-child .page-link,
.videos-pagination .page-item:last-child .page-link,
.podcasts-pagination .page-item:first-child .page-link,
.podcasts-pagination .page-item:last-child .page-link {
  border-radius: 50%;
}

.all-insights-pagination .page-link:hover,
.all-articles-pagination .page-link:hover,
.videos-pagination .page-link:hover,
.podcasts-pagination .page-link:hover {
  background-color: var(--ah-secondary);
  border-color: var(--ah-secondary);
  color: var(--ah-ivory);
}

.all-insights-pagination .page-item.active .page-link,
.all-articles-pagination .page-item.active .page-link,
.videos-pagination .page-item.active .page-link,
.podcasts-pagination .page-item.active .page-link {
  background-color: var(--ah-accent);
  border-color: var(--ah-accent);
  color: var(--ah-ivory);
}

.all-insights-pagination .page-item:not(:first-child) .page-link,
.all-articles-pagination .page-item:not(:first-child) .page-link,
.videos-pagination .page-item:not(:first-child) .page-link,
.podcasts-pagination .page-item:not(:first-child) .page-link {
  margin-left: 0.25rem;
}

/* ==========================================================================
ALL EVENTS BLOCK
========================================================================== */

[data-all-events].is-loading [data-all-events-grid] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ==========================================================================
ALL VIDEOS / ALL PODCASTS BLOCKS
========================================================================== */

[data-videos-listing].is-loading [data-videos-grid],
[data-podcasts-listing].is-loading [data-podcasts-grid] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.videos-search-wrap,
.podcasts-search-wrap {
  min-width: min(260px, 100%);
}

/* ==========================================================================
ALL ADVISER TOOLKITS BLOCK
========================================================================== */

[data-all-toolkits].is-loading [data-all-toolkits-grid] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.all-toolkits-search {
  min-width: min(260px, 100%);
}

.toolkit-card {
  --toolkit-accent: var(--ah-accent);
  background-color: var(--ah-primary-light);
  border: 1px solid rgba(145, 161, 128, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

.toolkit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background-color: color-mix(in srgb, var(--toolkit-accent) 18%, transparent);
  color: var(--toolkit-accent);
  font-size: 1.15rem;
}

.toolkit-card__category {
  color: var(--toolkit-accent);
  letter-spacing: 0.04em;
}

.toolkit-card__title a:hover {
  color: var(--toolkit-accent);
}

.toolkit-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.toolkit-card__footer {
  border-top: 1px solid rgba(145, 161, 128, 0.15);
}

.toolkit-card__download {
  color: var(--toolkit-accent);
  border: 1px solid var(--toolkit-accent);
  background-color: transparent;
  font-weight: 600;
}

.toolkit-card__download:hover,
.toolkit-card__download:focus {
  color: var(--ah-ivory);
  background-color: var(--toolkit-accent);
  border-color: var(--toolkit-accent);
}

.all-toolkits-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.25rem;
  border-radius: 50%;
  background-color: var(--ah-primary-light);
  border-color: rgba(145, 161, 128, 0.2);
  color: var(--ah-ivory);
}

.all-toolkits-pagination .page-item:first-child .page-link,
.all-toolkits-pagination .page-item:last-child .page-link {
  border-radius: 50%;
}

.all-toolkits-pagination .page-link:hover {
  background-color: var(--ah-secondary);
  border-color: var(--ah-secondary);
  color: var(--ah-ivory);
}

.all-toolkits-pagination .page-item.active .page-link {
  background-color: var(--ah-accent);
  border-color: var(--ah-accent);
  color: var(--ah-ivory);
}

.all-toolkits-pagination .page-item:not(:first-child) .page-link {
  margin-left: 0.25rem;
}

/* ==========================================================================
ALL INSIGHTS BY PARTNER BLOCK
========================================================================== */

[data-all-insights-by-partner].is-loading [data-all-insights-by-partner-grid] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.all-insights-by-partner-search {
  min-width: min(260px, 100%);
}

.partner-insight-card {
  --partner-insight-accent: var(--ah-accent);
  background-color: var(--ah-primary-light);
  border: 1px solid rgba(145, 161, 128, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
}

.partner-insight-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  background-color: #fff;
  overflow: hidden;
}

.partner-insight-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-insight-card__partner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.partner-insight-card__partner-name {
  font-weight: 500;
}

.partner-insight-card__badge {
  color: var(--partner-insight-accent);
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.partner-insight-card__title a:hover {
  color: var(--partner-insight-accent);
}

.partner-insight-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.partner-insight-card__footer {
  border-top: 1px solid rgba(145, 161, 128, 0.15);
}

.partner-insight-card__topic {
  color: var(--partner-insight-accent);
}

.partner-insight-card__cta {
  color: var(--partner-insight-accent);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  font-size: .875em;
}

.partner-insight-card__cta:hover,
.partner-insight-card__cta:focus {
  color: var(--ah-ivory);
}

.all-insights-by-partner-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.25rem;
  border-radius: 50%;
  background-color: var(--ah-primary-light);
  border-color: rgba(145, 161, 128, 0.2);
  color: var(--ah-ivory);
}

.all-insights-by-partner-pagination .page-item:first-child .page-link,
.all-insights-by-partner-pagination .page-item:last-child .page-link {
  border-radius: 50%;
}

.all-insights-by-partner-pagination .page-link:hover {
  background-color: var(--ah-secondary);
  border-color: var(--ah-secondary);
  color: var(--ah-ivory);
}

.all-insights-by-partner-pagination .page-item.active .page-link {
  background-color: var(--ah-accent);
  border-color: var(--ah-accent);
  color: var(--ah-ivory);
}

.all-insights-by-partner-pagination .page-item:not(:first-child) .page-link {
  margin-left: 0.25rem;
}

/* ==========================================================================
CALL TO ACTION BLOCK
========================================================================== */

.cta-block__panel {
  border-radius: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.cta-block__title {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.25;
}

.cta-block__subtext {
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.95;
}

.cta-block__btn {
  border-radius: 0.5rem;
  font-weight: 400;
  padding: 0.75rem 1.5rem;
}

.all-events-search,
.all-articles-search,
.all-insights-search {
  flex: 1 1 auto;
  min-width: min(260px, calc(100% - 3.5rem));
  max-width: 260px;
}

.all-insights-tools,
.all-articles-tools,
.all-events-tools {
  flex-wrap: nowrap;
}

.event-card h3 a:hover {
  color: var(--ah-accent);
}

.event-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: auto;
  height: auto;
  padding: 0.3rem 0.7rem;
  background-color: var(--ah-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.event-card__meta i {
  color: var(--ah-accent);
  width: 1rem;
  text-align: center;
}

.all-events-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0 0.25rem;
  border-radius: 50%;
  background-color: var(--ah-primary-light);
  border-color: rgba(145, 161, 128, 0.2);
  color: var(--ah-ivory);
}

.all-events-pagination .page-item:first-child .page-link,
.all-events-pagination .page-item:last-child .page-link {
  border-radius: 50%;
}

.all-events-pagination .page-link:hover {
  background-color: var(--ah-secondary);
  border-color: var(--ah-secondary);
  color: var(--ah-ivory);
}

.all-events-pagination .page-item.active .page-link {
  background-color: var(--ah-accent);
  border-color: var(--ah-accent);
  color: var(--ah-ivory);
}

.all-events-pagination .page-item:not(:first-child) .page-link {
  margin-left: 0.25rem;
}



/* ==========================================================================
VIDEO AND PODCAST BLOCK
========================================================================== */

.video-thumb-img {
    transition: transform 0.4s ease;
}

.video-thumb:hover .video-thumb-img {
    transform: scale(1.08);
}

.video-play-icon {
    width: auto;
    height: auto;
}

.video-play-icon:not(.fa-stack) i {
    color: #fff;
    font-size: 4rem;
    transition: color 0.3s ease;
}

.video-play-icon.fa-stack {
    font-size: 2.5rem;
    width: 2em;
    height: 2em;
    line-height: 2em;
}

.video-play-icon.fa-stack i {
    color: #fff;
    transition: color 0.3s ease;
}

.video-play-icon.fa-stack .fa-circle {
    transform: scale(0.8);
}

.video-play-icon.fa-stack .fa-play {
    /* Optical centre — play triangle sits slightly left in the glyph */
    font-size: 0.72em;
    transform: translateX(0.1em);
}

.video-play-icon.fa-stack .fa-headphones {
    font-size: 0.85em;
}

.video-play-icon--featured.fa-stack .fa-circle {
    transform: scale(1.6);
}

.video-play-icon--featured.fa-stack .fa-play {
    font-size: 1.2em;
    transform: translateX(0.05em);
}

.video-play-icon--featured.fa-stack .fa-headphones {
    font-size: 1.45em; /* ~20% larger than featured play */
}

.video-thumb:hover .video-play-icon:not(.fa-stack) i,
.video-thumb:hover .video-play-icon.fa-stack i {
    color: var(--ah-accent);
}

.has-title-gradient .video-play-icon {
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.has-title-gradient:hover .video-play-icon,
.has-title-gradient:focus-within .video-play-icon {
    opacity: 1;
}

.has-title-gradient:hover .video-play-icon.fa-stack i,
.has-title-gradient:focus-within .video-play-icon.fa-stack i {
    color: var(--ah-accent);
}

.insight-card .video-play-icon {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.insight-card:hover .video-play-icon,
.insight-card:focus-within .video-play-icon {
    opacity: 1;
}

.insight-card:hover .video-play-icon.fa-stack i,
.insight-card:focus-within .video-play-icon.fa-stack i {
    color: var(--ah-accent);
}

/* Grid listing titles → Public Sans; featured/spotlight titles stay Roboto Serif (heading) */
.video-card:not(.feature-video-card) h3,
.video-card:not(.feature-video-card) h3 a,
.insight-card h3,
.insight-card h3 a,
.event-card h3,
.event-card h3 a,
.toolkit-card__title,
.toolkit-card__title a,
.partner-insight-card__title,
.partner-insight-card__title a,
.featured-partner-content-card h3,
.featured-partner-content-card h3 a {
    font-family: var(--font-primary);
    font-weight: 600;
}

.feature-video-card h3,
.feature-video-card h3 a {
    font-family: var(--font-heading);
}

.featured-podcast-card h3,
.featured-podcast-card h3 a,
.featured-podcast-card h3.font-primary,
.featured-podcast-card h3.font-primary a {
    font-family: var(--font-primary);
}

.featured-podcast-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.font-primary {
    font-family: var(--font-primary);
}

.video-card p {
    font-weight: 300;
}

.video-card__excerpt,
.podcast-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}


/* ==========================================================================
PARTNER-ZONE BLOCK
========================================================================== */

.featured-partner-content-card .card {
    padding-bottom: 4rem;
}

.partner-button {
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-button img {
    max-width: 160px;
    max-height: 60px;
    width: 100%;
    height: auto;
}

.featured-content-badge {
    font-size: .8rem;
}

.featured-partner-content-card .card-text {
    font-size: 1rem;
}

.partner-header {
    border-bottom: 1px solid;
}

.partner-header .partner-content-label {
    font-size: 0.75rem;
    line-height: 1.3;
}

.featured-partner-content-card .card .btn {
   position: absolute;
   left: 1rem;
   right: 1rem;
   bottom: 1rem
}


/* ==========================================================================
CARD BLOCKS
========================================================================== */

.icon-info-card__icon {
    background-color: #0c1b2c;
    border-radius: 24px;
    width: 48px;
    height: 48px;
    padding: 10px;

}


.icon-info-card__icon img {
    width: 100%;
    height: auto;

}

.stats-card__label {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.4;
}

.stats-card__stat {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
}


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

/* Mega Menu Container */
.mega-menu-dropdown {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background-color: var(--ah-primary);
    border: 1px solid rgba(148, 162, 182, 0.2);
    border-top: none;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.45);
    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 rgba(148, 162, 182, 0.12);
}

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

.mega-menu-content .mega-menu-section h4 {
    color: var(--ah-ivory);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ah-accent);
}

/* Mega Menu Links */
.mega-menu-content .nav-link {
    color: var(--ah-ivory);
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    width: 100%;
    font-weight: 600;
}

.mega-menu-content .nav-link:hover {
    color: var(--ah-accent);
    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: var(--ah-primary-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--ah-accent);
}

.mega-menu-featured h5 {
    color: var(--ah-ivory);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.mega-menu-featured p {
    color: var(--ah-grey);
    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;
    border-top: 1px solid rgba(145,161,128,0.2);
}

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 h4 {
    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-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;
}

.footer-find-us .contact-details {
    font-weight: 200;
}

.contact-block__details {
    font-weight: 200;
}

.contact-block__details a {
    text-decoration: none;
}

.contact-block__details a:hover {
    text-decoration: underline;
}

.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: 1.5rem;
}

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

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0;
    row-gap: 0.25rem;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        justify-content: flex-start;
    }
}

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

.footer-bottom-links a:not(:last-child)::after {
    content: '|';
    display: inline-block;
    margin-left: 0.7rem;
    margin-right: 0.7rem;
    text-decoration: none;
    pointer-events: none;
}

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

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

/* 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);
}


/* ==========================================================================
ARCHIVE / SEARCH LISTING
========================================================================== */

.archive-listing__search {
    max-width: 32rem;
}

.archive-listing .search-form {
    display: flex;
    gap: 0.75rem;
}

.archive-listing .search-form label {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.archive-listing .search-field {
    width: 100%;
    background-color: var(--ah-primary-light);
    border: 1px solid var(--ah-secondary);
    border-radius: 0.5rem;
    color: var(--ah-ivory);
    padding: 0.75rem 1rem;
}

.archive-listing .search-field:focus {
    background-color: var(--ah-primary-light);
    border-color: var(--ah-accent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ah-accent) 25%, transparent);
    color: var(--ah-ivory);
    outline: 0;
}

.archive-listing .search-submit {
    background-color: var(--ah-accent);
    border: 1px solid var(--ah-accent);
    border-radius: 0.5rem;
    color: var(--ah-ivory);
    padding: 0.75rem 1.25rem;
}

.archive-listing .search-submit:hover {
    background-color: color-mix(in srgb, var(--ah-accent) 80%, black);
    border-color: color-mix(in srgb, var(--ah-accent) 80%, black);
}

.archive-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    margin: 0 0.25rem;
    border-radius: 50%;
    background-color: var(--ah-primary-light);
    border-color: rgba(145, 161, 128, 0.2);
    color: var(--ah-ivory);
}

.archive-pagination .page-item:first-child .page-link,
.archive-pagination .page-item:last-child .page-link {
    border-radius: 50%;
}

.archive-pagination .page-link:hover {
    background-color: var(--ah-secondary);
    border-color: var(--ah-secondary);
    color: var(--ah-ivory);
}

.archive-pagination .page-item.active .page-link {
    background-color: var(--ah-accent);
    border-color: var(--ah-accent);
    color: var(--ah-ivory);
}

.archive-pagination .page-item:not(:first-child) .page-link {
    margin-left: 0.25rem;
}

/* Truncated pagination ellipsis (shared across circle paginations) */
.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--ah-ivory);
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.archive-item h2 a:hover {
    color: var(--ah-accent);
}

.archive-item__thumb {
    position: relative;
    width: 100%;
}

.archive-item__img,
.archive-item__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-item__placeholder--logo {
    object-fit: unset;
    padding: 1.5rem;
}

.archive-item__logo {
    width: auto;
    max-width: 70%;
    height: 22px;
}

/* ==========================================================================
   SINGLE POST — block editor content on dark background
   ========================================================================== */

.post-single-article .entry-content > * + * {
    margin-top: 1.5rem;
}

.post-single-article .entry-content :is(h2, h3, h4, h5, h6),
.post-single-article .entry-content .wp-block-heading {
    color: var(--ah-ivory);
    font-family: var(--font-heading);
    line-height: 1.25;
}

.post-single-article .entry-content :is(h2, .wp-block-heading.has-large-font-size) {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.post-single-article .entry-content :is(h3, .wp-block-heading.has-medium-font-size) {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.post-single-article .entry-content a:not(.wp-block-button__link) {
    color: var(--ah-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.post-single-article .entry-content a:not(.wp-block-button__link):hover {
    color: var(--ah-ivory);
}

.post-single-article .entry-content :is(p, li, figcaption, .wp-block-paragraph) {
    color: var(--ah-ivory);
}

.post-single-article .entry-content :is(ul, ol) {
    padding-left: 1.5rem;
}

.post-single-article .entry-content .wp-block-quote,
.post-single-article .entry-content blockquote {
    border-left: 3px solid var(--ah-accent);
    margin-left: 0;
    padding-left: 1.25rem;
    color: var(--ah-grey);
}

.post-single-article .entry-content .wp-block-quote cite,
.post-single-article .entry-content blockquote cite {
    color: var(--ah-grey);
    font-style: normal;
    font-size: 0.875rem;
}

.post-single-article .entry-content .wp-block-separator,
.post-single-article .entry-content hr {
    border-color: var(--ah-secondary);
    opacity: 1;
}

.post-single-article .entry-content :is(img, .wp-block-image img) {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.post-single-article .entry-content .wp-block-image figcaption {
    color: var(--ah-grey);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.post-single-article .entry-content .wp-block-button__link {
    background-color: var(--ah-accent);
    border-radius: 0.375rem;
    color: var(--ah-ivory);
    padding: 0.625rem 1.25rem;
    text-decoration: none;
}

.post-single-article .entry-content .wp-block-button__link:hover {
    background-color: var(--ah-ivory);
    color: var(--ah-primary);
}

.post-single-article .entry-content .wp-block-table {
    overflow-x: auto;
}

.post-single-article .entry-content :is(table, .wp-block-table table) {
    border-collapse: collapse;
    width: 100%;
}

.post-single-article .entry-content :is(th, td) {
    border: 1px solid var(--ah-secondary);
    padding: 0.625rem 0.875rem;
}

.post-single-article .entry-content th {
    background-color: var(--ah-primary-light);
    color: var(--ah-ivory);
}

.post-single-article .entry-content :is(pre, code, .wp-block-code) {
    background-color: var(--ah-primary-light);
    border-radius: 0.375rem;
    color: var(--ah-ivory);
}

.post-single-article .entry-content pre {
    overflow-x: auto;
    padding: 1rem;
}

.post-single-article .entry-content .wp-block-columns {
    gap: 1.5rem;
}

.post-single-article .entry-content .alignwide {
    max-width: min(100%, 72rem);
    width: 100%;
}

.post-single-article .entry-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.post-single-article .entry-content .wp-block-embed__wrapper {
    border-radius: 0.75rem;
    overflow: hidden;
}

.post-single-tags a {
    background-color: var(--ah-primary-light);
    border: 1px solid var(--ah-secondary);
    border-radius: 999px;
    color: var(--ah-grey);
    display: inline-block;
    font-size: 0.8125rem;
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.25rem 0.75rem;
    text-decoration: none;
}

.post-single-tags a:hover {
    border-color: var(--ah-accent);
    color: var(--ah-ivory);
}

/* ==========================================================================
   Single content sidebar (articles / videos / podcasts)
   ========================================================================== */

.single-sidebar__inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .single-sidebar {
        padding-left: 1.75rem;
        padding-right: 0.5rem;
    }

    .single-sidebar__inner {
        position: sticky;
        top: 6.5rem;
    }
}

.single-sidebar__heading {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.single-sidebar-card__title a:hover,
.single-sidebar-card__title a:focus {
    color: var(--ah-accent);
}

.single-sidebar-card .video-play-icon {
    opacity: 0.9;
    pointer-events: none;
}

.single-sidebar-subscribe {
    border: 1px solid rgba(145, 161, 182, 0.2);
    border-radius: 0.375rem;
    background-color: var(--ah-primary-light);
}

.single-sidebar-subscribe .btn-subscribe {
    width: 100%;
    max-width: none;
}

/* Footer subscribe button */
.btn-subscribe {
    width: 100%;
    max-width: 480px;
}

/* ==========================================================================
   Registration-flow modals
   Shared dark frame for every modal carrying the .ah-modal class
   (#signup-modal plus the feedback dialogs). Sign-up-form-specific rules
   below stay scoped to #signup-modal.
   ========================================================================== */

.ah-modal .modal-content {
    background-color: var(--ah-primary-light);
    border: 1px solid var(--ah-secondary);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.ah-modal .modal-header {
    background-color: var(--ah-primary-light);
    border-bottom: 1px solid rgba(37, 53, 67, 0.6);
    padding: 1.25rem 1.5rem;
}

.ah-modal .modal-title {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--ah-ivory);
    letter-spacing: 0.01em;
}

.ah-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.6;
}

.ah-modal .btn-close:hover {
    opacity: 1;
}

.ah-modal .modal-body {
    background-color: var(--ah-primary-light);
    color: var(--ah-grey);
    padding: 1.75rem 1.5rem;
}

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

.ah-modal .modal-body a:hover,
.ah-modal .modal-body a:focus {
    color: color-mix(in srgb, var(--ah-accent) 80%, white);
}

/* Labels */
.ah-auth-modal .form-label {
    color: var(--ah-grey);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.ah-auth-modal .form-label .text-danger {
    color: var(--ah-accent) !important;
}

/* Inputs */
.ah-auth-modal .form-control {
    background-color: var(--ah-secondary);
    border: 1px solid rgba(215, 221, 228, 0.12);
    color: var(--ah-ivory);
    border-radius: 3px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ah-auth-modal .form-control::placeholder {
    color: rgba(209, 220, 235, 0.35);
}

.ah-auth-modal .form-control:focus {
    background-color: var(--ah-secondary);
    border-color: var(--ah-accent);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(227, 85, 38, 0.2);
}

.ah-auth-modal .was-validated .form-control:invalid,
.ah-auth-modal .form-control.is-invalid {
    border-color: var(--ah-danger);
    background-image: none;
    box-shadow: 0 0 0 0.15rem rgba(229, 72, 77, 0.2);
}

/* Checkbox */
.ah-auth-modal .form-check {
    padding-top: 0.25rem;
}

.ah-auth-modal .form-check-input {
    background-color: var(--ah-secondary);
    border-color: rgba(215, 221, 228, 0.3);
    margin-top: 0.2em;
}

.ah-auth-modal .form-check-input:checked {
    background-color: var(--ah-accent);
    border-color: var(--ah-accent);
}

.ah-auth-modal .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(227, 85, 38, 0.25);
    border-color: var(--ah-accent);
}

.ah-auth-modal .form-check-label {
    color: var(--ah-grey);
    font-size: 0.875rem;
}

/* Footer (shared across all .ah-modal dialogs) */
.ah-modal .modal-footer {
    background-color: var(--ah-primary);
    border-top: 1px solid var(--ah-secondary);
    padding: 1rem 1.5rem;
}

.ah-auth-modal .btn-secondary {
    background-color: transparent;
    border-color: rgba(215, 221, 228, 0.25);
    color: var(--ah-grey);
}

.ah-auth-modal .btn-secondary:hover,
.ah-auth-modal .btn-secondary:focus {
    background-color: var(--ah-secondary);
    border-color: var(--ah-ivory);
    color: var(--ah-ivory);
}

/* Newsletter opt-in card */
#signup-modal .ah-signup-optin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--ah-primay);
    border: 1px solid rgba(227, 85, 38, 0.35);
    border-radius: 4px;
    padding: 1rem 1.1rem;
    margin-top: 0.25rem;
}

#signup-modal .ah-signup-optin__body {
    flex: 1;
    min-width: 0;
}

#signup-modal .ah-signup-optin__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--ah-ivory);
    margin-bottom: 0.2rem;
}

#signup-modal .ah-signup-optin__icon {
    color: var(--ah-accent);
    font-size: 1rem;
    margin-right: 0.45rem;
    vertical-align: -1px;
}

#signup-modal .ah-signup-optin__desc {
    font-size: 0.8rem;
    color: rgba(209, 220, 235, 0.7);
    margin-bottom: 0;
    line-height: 1.4;
}

#signup-modal .ah-signup-optin__switch {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding-left: 0;
    margin-bottom: 0;
}

#signup-modal .ah-signup-optin__switch .form-check-input {
    width: 2.75em;
    height: 1.4em;
    cursor: pointer;
    margin-left: 0;
    flex-shrink: 0;
    background-color: rgba(37, 53, 67, 0.5);
    border: 2px solid rgba(215, 221, 228, 0.5);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: left center;
    transition: background-color 0.2s ease, border-color 0.2s ease, background-position 0.15s ease-in-out;
}

#signup-modal .ah-signup-optin__switch .form-check-input:checked {
    background-color: var(--ah-accent);
    border-color: var(--ah-accent);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: right center;
}

#signup-modal .ah-signup-optin__switch .form-check-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(209, 220, 235, 0.55);
    cursor: pointer;
}

/* Password field — show/hide toggle */
.ah-auth-modal .ah-pw-field {
    position: relative;
}

.ah-auth-modal .ah-pw-field .form-control {
    padding-right: 2.75rem;
}

.ah-auth-modal .ah-pw-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--ah-grey);
    opacity: 0.7;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.ah-auth-modal .ah-pw-toggle:hover,
.ah-auth-modal .ah-pw-toggle:focus {
    color: var(--ah-ivory);
    opacity: 1;
    outline: none;
}

/* Password strength meter */
#signup-modal .ah-pw-meter {
    height: 4px;
    border-radius: 2px;
    background-color: rgba(215, 221, 228, 0.12);
    margin-top: 0.5rem;
    overflow: hidden;
}

#signup-modal .ah-pw-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    background-color: var(--ah-accent);
    transition: width 0.2s ease, background-color 0.2s ease;
}

#signup-modal .ah-pw-meter[data-score="1"] span { width: 25%;  background-color: #e0533a; }
#signup-modal .ah-pw-meter[data-score="2"] span { width: 50%;  background-color: #e0913a; }
#signup-modal .ah-pw-meter[data-score="3"] span { width: 75%;  background-color: #d6c23a; }
#signup-modal .ah-pw-meter[data-score="4"] span { width: 100%; background-color: #4caf72; }

/* Helper / match text */
.ah-auth-modal .ah-pw-hint,
.ah-auth-modal .ah-pw-match {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--ah-grey);
    line-height: 1.4;
}

.ah-auth-modal .ah-pw-match.is-ok {
    color: #4caf72;
}

.ah-auth-modal .ah-pw-match.is-bad {
    color: var(--ah-danger);
}

/* Cloudflare Turnstile widget, rendered once the modal is visible */
.ah-auth-modal .ah-turnstile {
    margin-top: 1rem;
    min-height: 65px;
}

/* Inline form message banner (filled red by default) */
.ah-auth-modal .ah-signup-message {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 4px;
    background-color: rgba(229, 72, 77, 0.12);
    border: 1px solid rgba(229, 72, 77, 0.55);
    color: var(--ah-ivory);
    font-size: 0.85rem;
    line-height: 1.45;
}

.ah-auth-modal .ah-signup-message i {
    color: var(--ah-danger);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Success variant — used by the login / forgot-password flows */
.ah-auth-modal .ah-signup-message.is-success {
    background-color: rgba(76, 175, 114, 0.12);
    border-color: rgba(76, 175, 114, 0.55);
}

.ah-auth-modal .ah-signup-message.is-success i {
    color: #4caf72;
}

/* ==========================================================================
   LOGIN MODAL — links, view switches and header account control
   ========================================================================== */

/* "Forgot your password?" link under the password field */
.ah-auth-modal .ah-login-forgot {
    margin-top: 0.45rem;
    text-align: right;
}

.ah-auth-modal .ah-login-forgot a,
.ah-auth-modal .ah-auth-switch a,
.ah-auth-modal .ah-auth-resend a {
    color: var(--ah-accent);
    font-size: 0.8rem;
    text-decoration: none;
}

.ah-auth-modal .ah-login-forgot a:hover,
.ah-auth-modal .ah-auth-switch a:hover,
.ah-auth-modal .ah-auth-resend a:hover {
    text-decoration: underline;
}

/* "Already registered? Sign in" / "Don't have an account? Create one" / "Back to log in" */
.ah-auth-modal .ah-auth-switch {
    margin: 1.1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(215, 221, 228, 0.12);
    color: var(--ah-grey);
    font-size: 0.85rem;
}

.ah-auth-modal .ah-auth-resend {
    margin-top: 0.75rem;
}

.ah-auth-modal .ah-forgot-intro {
    color: var(--ah-grey);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ----- Header account / login control ----- */
.ah-navbar-right {
    gap: 0.5rem;
}

.ah-account {
    flex-shrink: 0;
}

/* Logged-out "Log in" pill */
.ah-account__login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ah-account__login:hover,
.ah-account__login:focus {
    background-color: var(--ah-accent);
    border-color: var(--ah-accent);
    color: #ffffff;
    outline: none;
}

.ah-account__login-icon {
    font-size: 1rem;
}

/* Logged-in account dropdown toggle */
.ah-account__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 0;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.ah-account__toggle:focus {
    outline: none;
}

.ah-account__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--ah-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.ah-account__caret {
    font-size: 0.7rem;
    opacity: 0.8;
}

.ah-account__dropdown .dropdown-item {
    display: flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   My Account page (front-end profile)
   -------------------------------------------------------------------------- */

.ah-account-section {
    background-color: var(--ah-primary);
    min-height: 50vh;
}

.ah-account-page__title {
    font-family: var(--font-heading);
    color: var(--ah-ivory);
    font-weight: 400;
}

.ah-account-card {
    background-color: var(--ah-secondary);
    border: 1px solid rgba(215, 221, 228, 0.12);
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
}

.ah-account-card__title {
    font-family: var(--font-heading);
    color: var(--ah-ivory);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.ah-account-card__actions {
    display: flex;
    justify-content: flex-end;
}

.ah-account-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ah-account-notice--warn {
    background-color: rgba(227, 85, 38, 0.12);
    border: 1px solid rgba(227, 85, 38, 0.35);
    color: var(--ah-ivory);
}

.ah-account-notice--warn i {
    color: var(--ah-accent);
    margin-top: 0.15rem;
}

.ah-account-notice--ok {
    background-color: rgba(215, 221, 228, 0.08);
    border: 1px solid rgba(215, 221, 228, 0.22);
    color: var(--ah-ivory);
}

.ah-account-notice--ok i {
    color: var(--ah-ivory);
    margin-top: 0.15rem;
}

.ah-account-notice--info {
    background-color: rgba(227, 85, 38, 0.12);
    border: 1px solid rgba(227, 85, 38, 0.35);
    color: var(--ah-ivory);
}

.ah-account-notice--info i {
    color: var(--ah-accent);
    margin-top: 0.15rem;
}

.ah-account-page .ah-signup-optin.is-highlighted {
    border-color: var(--ah-accent);
    box-shadow: 0 0 0 1px rgba(227, 85, 38, 0.35);
    animation: ah-optin-highlight 1.6s ease 1;
}

@keyframes ah-optin-highlight {
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(227, 85, 38, 0.35);
    }
    40% {
        box-shadow: 0 0 0 6px rgba(227, 85, 38, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ah-account-page .ah-signup-optin.is-highlighted {
        animation: none;
    }
}

.ah-account-page .ah-signup-optin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background-color: var(--ah-primay);
    border: 1px solid rgba(227, 85, 38, 0.35);
    border-radius: 4px;
    padding: 1rem 1.1rem;
    margin-top: 0.25rem;
}

.ah-account-page .ah-signup-optin__body {
    flex: 1;
    min-width: 0;
}

.ah-account-page .ah-signup-optin__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--ah-ivory);
    margin-bottom: 0.2rem;
}

.ah-account-page .ah-signup-optin__icon {
    color: var(--ah-accent);
    font-size: 1rem;
    margin-right: 0.45rem;
    vertical-align: -1px;
}

.ah-account-page .ah-signup-optin__desc {
    font-size: 0.8rem;
    color: rgba(209, 220, 235, 0.7);
    margin-bottom: 0;
    line-height: 1.4;
}

.ah-account-page .ah-signup-optin__switch {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding-left: 0;
    margin-bottom: 0;
}

.ah-account-page .ah-signup-optin__switch .form-check-input {
    width: 2.75em;
    height: 1.4em;
    cursor: pointer;
    margin-left: 0;
    flex-shrink: 0;
    background-color: rgba(37, 53, 67, 0.5);
    border: 2px solid rgba(215, 221, 228, 0.5);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: left center;
    transition: background-color 0.2s ease, border-color 0.2s ease, background-position 0.15s ease-in-out;
}

.ah-account-page .ah-signup-optin__switch .form-check-input:checked {
    background-color: var(--ah-accent);
    border-color: var(--ah-accent);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: right center;
}

.ah-account-page .ah-signup-optin__switch .form-check-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(209, 220, 235, 0.55);
    cursor: pointer;
}

.ah-account-page .ah-signup-message {
    margin-bottom: 0;
}

/* ----- 404 page ----- */
.ah-404 {
    position: relative;
    min-height: var(--available-vh);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--ah-primary);
    color: var(--ah-ivory);
}

.ah-404__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, color-mix(in srgb, var(--ah-accent) 18%, transparent), transparent 55%),
        radial-gradient(ellipse 70% 50% at 15% 80%, color-mix(in srgb, var(--ah-secondary) 55%, transparent), transparent 50%),
        linear-gradient(165deg, var(--ah-primary-light) 0%, var(--ah-primary) 55%, #000 100%);
    pointer-events: none;
}

.ah-404__code {
    position: absolute;
    left: 50%;
    top: 42%;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(8rem, 28vw, 18rem);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: color-mix(in srgb, var(--ah-ivory) 8%, transparent);
    user-select: none;
    pointer-events: none;
    animation: ah-404-fade-up-code 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ah-404__inner {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.ah-404__content {
    max-width: 36rem;
}

.ah-404__eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ah-accent);
    animation: ah-404-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.ah-404__title {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ah-ivory);
    animation: ah-404-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.ah-404__copy {
    margin: 0 0 1.75rem;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--ah-grey);
    animation: ah-404-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.ah-404__actions {
    margin-bottom: 1.75rem;
    animation: ah-404-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.ah-404__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 28rem;
    animation: ah-404-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.ah-404__search-input {
    flex: 1 1 12rem;
    min-width: 0;
    background-color: var(--ah-primary-light);
    border: 1px solid color-mix(in srgb, var(--ah-ivory) 18%, transparent);
    border-radius: 0.35rem;
    color: var(--ah-ivory);
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 0.7rem 1rem;
}

.ah-404__search-input::placeholder {
    color: var(--ah-grey);
    opacity: 1;
}

.ah-404__search-input:focus {
    outline: none;
    border-color: var(--ah-accent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ah-accent) 25%, transparent);
}

.ah-404__search-btn {
    flex: 0 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@keyframes ah-404-fade-up {
    from {
        opacity: 0;
        transform: translateY(0.85rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ah-404-fade-up-code {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 0.85rem));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ah-404__code,
    .ah-404__eyebrow,
    .ah-404__title,
    .ah-404__copy,
    .ah-404__actions,
    .ah-404__search {
        animation: none !important;
        opacity: 1 !important;
    }

    .ah-404__code {
        transform: translate(-50%, -50%) !important;
    }

    .ah-404__eyebrow,
    .ah-404__title,
    .ah-404__copy,
    .ah-404__actions,
    .ah-404__search {
        transform: none !important;
    }
}

/* ==========================================================================
   Partner about block
   ========================================================================== */

.partner-about__logo {
    max-width: 14rem;
}

.partner-about__logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 5rem;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.partner-about__logo--placeholder {
    min-height: 5rem;
    width: 100%;
    max-width: 14rem;
}

.partner-about__body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Partner ads
   ========================================================================== */

.ah-partner-ad-leaderboard__pin {
    width: 100%;
}

.ah-partner-ad-leaderboard.is-pinned .ah-partner-ad-leaderboard__pin {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 990;
}

.ah-partner-ad-leaderboard.is-pinned .ah-partner-ad--leaderboard {
    box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.35);
}

.ah-partner-ad-leaderboard__empty {
    padding: 0.75rem 0;
}

.ah-partner-ad {
    display: block;
}

.ah-partner-ad__link {
    display: block;
    line-height: 0;
}

.ah-partner-ad__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.ah-partner-ad--leaderboard .ah-partner-ad__img {
    margin-left: auto;
    margin-right: auto;
    border-radius: 0.375rem;
}

.ah-partner-ad--single_sidebar {
    max-width: 100%;
}

.single-sidebar__ad .ah-partner-ad__img {
    border-radius: 0.375rem;
}

@media (max-width: 575.98px) {
    .ah-partner-ad-leaderboard.is-pinned .ah-partner-ad-leaderboard__pin {
        max-height: 28vh;
        overflow: hidden;
    }

    .ah-partner-ad-leaderboard.is-pinned .ah-partner-ad__img {
        max-height: 28vh;
        object-fit: contain;
    }
}

