﻿/* Reset and base styles */
:root {
    --font-sans: Avenir, "Avenir Next", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    /*line-height:16px;*/
    font-family: var(--font-sans);
    font-weight: 400;
    color: 444;
    background-color: var(--surface-white);
}

html {
    scrollbar-color: var(--brand-primary) #f1f5f9;
    scrollbar-width: auto;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

.container {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}


/*section a {text-decoration:underline;}*/

.heart-primary {
    color: #2f2c7e;
}

.heart-muted {
    color: #ddd;
}

/* Brand color variables */
:root {
    /* Accent */
    --accent-orange: rgb(255,144,0);
    --accent-orange-hover: rgb(255,144,0);

    /* Primary brand (AutTalk purple) */
    --brand-primary: #312783;
    --brand-primary-dark: #211773;
    --brand-primary-alt: #413793; /* gradient mate */

    /* Brand blues */
    --brand-blue: #2563eb;
    --brand-blue-light: #3b82f6;

    /* Text and surfaces */
    --text-heading: #1e293b;
    --surface-white: #ffffff;
    --surface-muted: #f7fafc;
    --surface-muted-2: #f8fafc;
    --surface-muted-3: #f1f5f9;
    --border-muted: #e2e8f0;
}

/* Utility brand colors */
.text-accent-orange {
    color: var(--accent-orange) !important;
}

.bg-accent-orange {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

/* Additional brand utilities */
.text-brand-primary { color: var(--brand-primary) !important; }
.bg-brand-primary { background-color: var(--brand-primary) !important; color: #fff !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; color: #fff !important; }

section p, article p, section.content article p, footer p, p,
section a, article a, section.content article a, footer a, a {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.8;
}

a {
    color: #212529 !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.25);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}


.text-menu {
    text-decoration: none;
}

h2,
h3 {
    color: #2e3f96;
    text-transform: uppercase;
}

h3,
.hero-content h3,
.card h3,
.news-item h3,
.support-item h3,
.article-content h3,
.news-slide .card-content h3 {
    font-weight: 800;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* Navbar customizations */
.navbar {
    position: sticky;
    /*font-weight: 500;*/
    top: 0;
    z-index: 1030; /* Make sure it's above other content */
    padding: 0rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    opacity: 0.8;
    background-color: var(--surface-white) !important;
    /*border-bottom: 1px solid #e2e8f0;*/
}

.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Logo group grid */
.logo-group-grid {
    --logo-box-size: 140px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-content: center;
}

.logo-group-item {
    width: var(--logo-box-size);
    height: var(--logo-box-size);
    border: 1px solid var(--border-muted);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.logo-group-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-group-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-group-text {
    text-align: center;
    width: 100%;
    font-size: 0.85rem;
}

.logo-group-loading,
.logo-group-empty {
    width: 100%;
    min-height: calc(var(--logo-box-size) / 2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.95rem;
}


.navbar-nav .nav-link {
    color: var(--brand-primary) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
    border-left: solid #eee 1px;
    border-left: solid #eee 1px;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-blue) !important;
}

.dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Ensure top-level dropdowns render below the trigger */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
}

@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown:focus-within > .dropdown-menu {
        display: block;
    }
}


/* Multi-level dropdown support */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

.dropdown-submenu > .dropdown-toggle::after {
    margin-left: 0.5rem;
    transform: rotate(-90deg);
}

@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 0;
        box-shadow: none;
        border: 0;
    }
}

/* Ensure emoji flags render with an emoji-capable font */
.flag-emoji {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", sans-serif;
    line-height: 1;
}

.dropdown-item:hover {
    background-color: var(--surface-muted);
    color: var(--brand-blue);
}

/* Ensure main content doesn't overlap with fixed navbar */
main {
    margin-top: 0; /* Bootstrap navbar is not fixed, so no need for top margin */
}

/* Cap overall page width */
body, main, footer {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure navbar content matches the cap */
nav .container {
    max-width: 1024px;
}

/* Old nav and language switcher styles removed - now using Bootstrap navbar */

/* Old Hero Section styles removed - now integrated into carousel overlay */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .btn::before,
    .navbar-brand img,
    .skip-link {
        transition: none !important;
    }
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-alt) 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Ensure primary buttons remain white regardless of anchor defaults */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.btn-arrow-label {
    width: 100%;
    text-align: center;
}

.btn-text-cta {
    color: #fff !important;
    font-weight: 400;
    background: var(--brand-primary) !important;
    border: 1px solid var(--accent-orange) !important;
    box-shadow: none !important;
    transform: none !important;
    padding: 1rem 1.4rem;
}

.btn-text-cta:hover,
.btn-text-cta:focus,
.btn-text-cta:active,
.btn-text-cta:visited {
    color: #fff !important;
    background: var(--brand-primary) !important;
    border-color: var(--accent-orange) !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-text-cta-label {
    display: inline-block;
    line-height: 1.2;
}

.btn-text-cta:disabled,
.btn-text-cta.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-arrow-cta {
    color: #fff !important;
    font-weight: 400;
    background: var(--brand-primary) !important;
    border: 1px solid var(--accent-orange) !important;
    box-shadow: none;
    position: relative;
    justify-content: flex-start;
    transform: none !important;
}

.btn-arrow-cta:hover,
.btn-arrow-cta:focus,
.btn-arrow-cta:active,
.btn-arrow-cta:visited {
    color: #fff !important;
    background: var(--brand-primary) !important;
    border-color: var(--accent-orange) !important;
    box-shadow: none;
    transform: none !important;
}

.btn-arrow-cta--lg {
    padding: 1.6rem 4.5rem 1.6rem 1.1rem;
    font-size: 1.5rem;
}

.btn-arrow-cta--lg .btn-arrow-circle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
}

.btn-arrow-cta--lg .btn-arrow-circle i {
    font-size: 2.15rem;
    transform: translate(0.06rem, 0.08rem) scale(1.12);
}

.btn-arrow-cta--sm {
    min-width: 18rem;
    padding: 1rem 4rem 1rem 1.25rem;
    font-size: 1.1rem;
}

.btn-arrow-cta--sm .btn-arrow-circle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
}

.btn-arrow-cta--sm .btn-arrow-circle i {
    font-size: 1.85rem;
    transform: translate(0.05rem, 0.05rem) scale(1.08);
}

.btn-edit-cta {
    min-width: 12.5rem;
}

.btn-save-cta {
    min-width: 12.5rem;
}

.btn-edit-cta .btn-arrow-label,
.btn-save-cta .btn-arrow-label {
    text-align: left;
}

.btn-edit-cta .btn-arrow-circle i,
.btn-save-cta .btn-arrow-circle i {
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-edit-cta .btn-arrow-circle i {
    transform: rotate(-10deg);
}

.btn-edit-cta:hover .btn-arrow-circle i,
.btn-edit-cta:focus-visible .btn-arrow-circle i {
    transform: translateX(0.06rem) rotate(-18deg) scale(1.04);
}

.btn-save-cta:hover .btn-arrow-circle i,
.btn-save-cta:focus-visible .btn-arrow-circle i {
    transform: translateY(-0.02rem) scale(1.04);
}

.btn-arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    aspect-ratio: 1 / 1;
    background: var(--accent-orange);
    border-radius: 999px !important;
    overflow: hidden;
    clip-path: circle(50%);
    flex-shrink: 0;
}

.btn-arrow-circle i {
    display: block;
    color: var(--brand-primary) !important;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-with-arrow:hover .btn-arrow-circle i,
.btn-with-arrow:focus-visible .btn-arrow-circle i {
    transform: translateX(0.12rem);
}

.btn-secondary {
    background-color: white;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
    padding: 4rem 0;
}

    section h2 {
        font-family: var(--font-sans);
        font-weight: 300;
        font-size: 40px;
        margin-bottom: 2rem;
        color: #2e3f96;
        text-align: center;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }



/* Image Carousel Section */
.carousel-section {
    /* Reduce top gap below navbar while preserving bottom spacing */
    padding: 0rem 0 2rem;
    background-color: var(--surface-white);
    overflow: hidden;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

/* Hero Content Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    margin-left: 30%;
    display: flex;
    align-items: flex-start;
    justify-content: right;
    pointer-events: none;
}

.hero-content {
    color: white;
    max-width: 620px;
    width: min(620px, 52vw);
    padding: 1.5rem 1.5rem 1.5rem 1rem;
    pointer-events: auto;
    margin-top: 5%;
    margin-right: -3%;
}

    .hero-title {
        font-family: var(--font-sans);
        margin-bottom: 1.5rem;
        color: var(--brand-primary);
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1.22;
        font-size: 2.5rem;
        font-weight: 400;
        margin-left: -1.5rem;
    }

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-content .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-content .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: none;
}

/* Mobile responsive adjustments for hero overlay */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.65rem;
        margin-left: -0.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-content .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 200px;
    }
    
    .carousel-wrapper {
        min-height: 400px;
    }
    
    .carousel {
        height: 400px;
    }
}

.carousel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Hide any accidentally empty carousel containers to avoid layout gaps */
.carousel:empty { display: none; }

/* Ensure only the active slide is visible */
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }

/* Loading state */
#carousel-dynamic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: carousel-loading 1s linear infinite;
    z-index: 1;
}

#carousel-dynamic.loaded::before {
    display: none;
}

@keyframes carousel-loading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* keep visible area anchored to top */
    display: block;
    transition: transform 0.8s ease-in-out;
}

.carousel-slide.active img {
    transform: scale(1.02);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 15;
}

.carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 11;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Dot Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    display: flex;
    gap: 12px;
    z-index: 15;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav {
        padding: 0 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* About Section */
.about {
    background-color: white;
    text-align: center;
}

/* Media Section */
.media {
    background-color: #ffffff;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    font-weight: 400;
}

/* Let's Talk Section */
.letstalk {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Ensure all cards have equal height */
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.card-link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.card-image-only {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.card-image-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #e2e8f0;
    background-size: cover;
    background-position: top center;
}

.card-caption {
    margin: 0;
    padding: 0.45rem 0.85rem 0.55rem;
    color: #564596;
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.25;
}

.article-card-team {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    justify-self: stretch;
    margin-left: 0;
    margin-right: 0;
    border-radius: 20px;
    border: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(27, 73, 151, 0.12);
}

.article-card-team__image {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    background-color: #dbeafe;
    overflow: hidden;
}

.article-card-team__image-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.article-card-team__image--empty {
    background-image: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}

.article-card-team__content {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.article-card-team__title {
    margin: 0 0 0.4rem;
    color: #1e3a8a;
    font-size: 1.35rem;
    line-height: 1.2;
}

.article-card-team__subtitle {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-card-team__summary {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.98rem;
}

.article-card-team__meta {
    margin-top: auto;
    padding: 1rem 1.5rem 1.1rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-alt) 100%);
    color: #eff6ff;
}

.article-card-team__meta .article-card-team__meta-line {
    margin: 0;
    color: #fff;
    line-height: 1.45;
    font-size: 0.94rem;
    font-weight: 400;
    text-transform: capitalize;
}

.article-card-team__meta .article-card-team__meta-line span {
    color: #fff;
}

.article-card-team__meta-line--strong {
    color: #fff;
    font-weight: 800;
}

.article-card-team__meta-separator {
    color: #fff;
    padding: 0 0.35rem;
}

.article-card-team__meta-line + .article-card-team__meta-line {
    margin-top: 0.35rem;
}

.article-card-team:hover .article-card-team__meta-line,
.article-card-team:hover .article-card-team__meta-line span,
.article-card-team:hover .article-card-team__meta-line--strong,
.article-card-team:hover .article-card-team__meta-separator {
    color: var(--accent-orange);
}

.card-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 48%, rgba(255, 255, 255, 0) 70%), var(--card-bg-image);
    background-size: 100% 100%, cover;
    background-position: top left, center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.card::before {
    z-index: 2;
}

.card-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.card-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.card-button {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.card-button .btn {
    min-width: 150px;
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transform: none;
    transition: none;
}

.card:hover::before {
    transform: none;
}

.card:hover {
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 39, 131, 0.08);
}

.card h3 {
    font-family: var(--font-sans);
    color: #564596;
    margin-bottom: 1rem;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

.card p, .card-text {
    margin-bottom: 1.8rem;
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

.more-preview {
    color: #312783;
    font-size: 0.9rem;
}

.dynamic-content {
    margin-top: 2rem;
}

/* Events Section */
.events {
    background-color: white;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.load-news-btn {
    display: block;
    margin: 2rem auto;
}

.news-list {
    margin-top: 2rem;
}

.news-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

    .news-item h3 {
        font-family: var(--font-sans);
        color: #1e293b;
        margin-bottom: 0.8rem;
        font-weight: 600;
        font-size: 1.3rem;
    }

.news-item .date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Support Section */
.support {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* News carousel */
.news-carousel-wrapper,
.news-card-collection {
    position: relative;
    --carousel-card-ratio: calc(1 / 1.29);
    --carousel-card-caption-height: 3.4rem;
    --news-carousel-gap: 0.75rem;
}

.news-carousel-wrapper {
    overflow: hidden;
}

.news-carousel {
    position: relative;
    width: 100%;
}

.news-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    gap: var(--news-carousel-gap);
    margin-top: 1.25rem;
    align-items: stretch;
}

.news-slide,
.news-card-collection .news-card-item {
    flex: 0 0 calc((100% - (2 * var(--news-carousel-gap))) / 3);
    padding: 0;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.news-slide .card,
.news-card-collection .news-card-item .card {
    width: 100%;
    height: auto;
    aspect-ratio: var(--carousel-card-ratio);
    padding: 1.1rem 1rem 0.95rem;
    box-shadow: none;
    border-color: #d9d9d9;
}

.news-slide .card:hover,
.news-card-collection .news-card-item .card:hover {
    transform: none;
    box-shadow: none;
}

.news-slide .card-link,
.news-slide .card-flex,
.news-slide .card-image-only,
.news-card-collection .news-card-item .card-link,
.news-card-collection .news-card-item .card-flex,
.news-card-collection .news-card-item .card-image-only {
    height: 100%;
}

.news-slide .card-flex,
.news-slide .card-image-only,
.news-card-collection .news-card-item .card-flex,
.news-card-collection .news-card-item .card-image-only {
    min-height: 0;
}

.news-slide .card-flex,
.news-card-collection .news-card-item .card-flex {
    padding: 1.1rem 1rem 0.95rem;
}

.news-slide .card-content,
.news-card-collection .news-card-item .card-content {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    height: 100%;
}

.news-slide .card-heading-block,
.news-card-collection .news-card-item .card-heading-block {
    height: calc((1.08rem * 1.2) + 1rem + (1.62rem * 1.14 * 3));
    margin-bottom: 1.9rem;
}

.news-slide .card-body-block,
.news-card-collection .news-card-item .card-body-block {
    min-height: 0;
}

.news-slide .card-body-block .card-text,
.news-card-collection .news-card-item .card-body-block .card-text {
    margin-top: 1.2rem;
}

.news-slide .date,
.news-slide .article-date,
.news-card-collection .news-card-item .date,
.news-card-collection .news-card-item .article-date {
    margin-bottom: 1.9rem !important;
    color: #f28c28 !important;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.2;
}

.news-slide .card-content h3,
.news-card-collection .news-card-item .card-content h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 1.15rem;
    color: #2e3f96;
    font-size: 1.62rem;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.015em;
}

.news-slide .card-heading-block h3,
.news-card-collection .news-card-item .card-heading-block h3 {
    margin-top: 0;
}

.news-slide .card-text,
.news-card-collection .news-card-item .card-text {
    margin-bottom: 0;
    color: #2e3f96;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: 0.005em;
}

.news-slide .card-image-only,
.news-card-collection .news-card-item .card-image-only {
    display: flex;
    flex-direction: column;
}

.news-slide .card-image-frame,
.news-card-collection .news-card-item .card-image-frame {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: calc(100% - var(--carousel-card-caption-height));
}

.news-slide .card-caption,
.news-card-collection .news-card-item .card-caption {
    min-height: var(--carousel-card-caption-height);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--news-carousel-gap);
    margin-top: 1.25rem;
    align-items: stretch;
}

/* Responsive slide width: 2 cards on tablets, 1 on mobile */
@media (max-width: 992px) {
    .news-slide,
    .news-card-grid .news-card-item {
        flex: 0 0 calc((100% - var(--news-carousel-gap)) / 2);
    }

    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .news-carousel-wrapper,
    .news-card-collection {
        --carousel-card-caption-height: 3rem;
        --news-carousel-gap: 0.5rem;
    }

    .news-slide .card-heading-block,
    .news-card-collection .news-card-item .card-heading-block {
        height: calc((1.08rem * 1.2) + 1rem + (1.35rem * 1.14 * 3));
        margin-bottom: 1.9rem;
    }

    .news-slide .card-content h3,
    .news-card-collection .news-card-item .card-content h3 {
        font-size: 1.35rem;
    }

    .news-slide {
        flex: 0 0 100%;
    }

    .news-card-grid {
        grid-template-columns: 1fr;
    }
}

.news-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.news-carousel-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.news-carousel-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.news-carousel-btn:hover {
    background: white;
    transform: scale(1.05);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

    .support-item h3 {
        color: #1e293b;
        margin-bottom: 1.2rem;
        font-size: 1.4rem;
        font-family: var(--font-sans);
        font-weight: 600;
        letter-spacing: -0.01em;
    }

.support-item p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background-color: white;
}

.block-contact-row {
    background-color: #858585;
    border-radius: 0;
    padding: 0 1.5rem 0 1.5rem; 
}

.block-contact {
    color: #ffffff;
    margin: 0px;
}

.block-contact-title {
    text-align: left;
    color: #000;
}

.block-contact-logo {
    display: block;
    width: 50%;
    max-width: 50%;
    height: auto;
    margin: 0 0 1rem;
}

#contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-page #contact-form {
    max-width: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 1rem;
        font-family: var(--font-sans);
        transition: all 0.3s ease;
        background-color: #fafbfc;
    }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.block-contact .form-group input,
.block-contact .form-group textarea {
    color: #111827;
}

.request-form-surface .form-control,
.request-form-surface .form-select,
#request-form .form-control,
#request-form .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fafbfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.request-form-surface .form-control:focus,
.request-form-surface .form-select:focus,
#request-form .form-control:focus,
#request-form .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.request-form-surface .form-control.is-invalid:focus,
.request-form-surface .form-select.is-invalid:focus,
#request-form .form-control.is-invalid:focus,
#request-form .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-actions .btn {
    margin-left: auto;
    height: 78px;
    min-height: 78px;
}

.contact-actions .btn-primary:disabled,
.contact-actions .btn-primary.disabled {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-alt) 100%);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    opacity: 1;
    filter: none;
}

@media (min-width: 992px) {
    .contact-actions {
        flex-wrap: nowrap;
    }
}

#contact-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

/* Footer */
footer {
    background: #dedede;
    color: rgb(47, 44, 126);
    text-align: left;
    padding: 2rem 0 1.25rem;
    margin: 2rem 0 0.25rem;
    border-radius: 0 0 16px 16px;
}

footer p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    opacity: 0.9;
}

footer h5 {
    font-weight: 700;
}

footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: rgb(47, 44, 126);
    color: #ffffff;
    text-decoration: none;
}

footer .social-icon:last-child {
    margin-right: 0;
}

footer .social-icon .bi {
    font-size: 1.4rem;
    color: #ffffff;
}

.block-picture .row.g-4.align-items-stretch {
    padding: 0;
    gap: 0;
}

.block-picture .row.g-4.align-items-stretch > .col-12.col-md-6 {
    padding: 0;
    display: flex;
}

.block-picture .row.g-4.align-items-stretch > .col-12.col-md-6:last-child {
    background: #dedede;
    border-radius: 0;
}
.block-picture--about .row.g-4.align-items-stretch > .col-12.col-md-6:last-child {
    background: #fff;
}

.block-picture--about .block-picture-content,
.block-picture--about .block-picture-content p,
.block-picture--about .block-picture-content a,
.block-picture--about .block-picture-content li {
    color: var(--brand-primary) !important;
}

.block-picture--about .block-picture-content {
    line-height: 1.45;
}

.block-picture--about .block-picture-content h4 {
    color: var(--brand-primary);
    text-transform: uppercase;
    line-height: 1.12;
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.block-picture--about .about-story-logo {
    display: block;
    width: min(15rem, 65%);
    height: auto;
    margin: 0 auto 0.9rem;
}

.block-picture--about .block-picture-content p {
    font-size: 1.15rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.block-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-picture-content {
    padding: 2rem;
    width: 100%;
}

#founders .block-picture .row.g-4.align-items-stretch {
    position: relative;
    overflow: hidden;
    min-height: 28rem;
}

#founders .block-picture .row.g-4.align-items-stretch > .col-12.col-md-6:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    flex: none;
}

#founders .block-picture .row.g-4.align-items-stretch > .col-12.col-md-6:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
}

#founders .block-picture .row.g-4.align-items-stretch > .col-12.col-md-6:last-child {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin-left: auto;
    padding: 2rem;
    justify-content: center;
    background: transparent;
}

#founders .block-picture img {
    position: absolute;
    inset: 0;
}

#founders .block-picture .block-picture-content {
    max-width: 36rem;
    margin-left: auto;
    background: transparent;
    color: #2e3f96;
    padding-top: 1rem;
    font-size: 1.15rem;
    line-height: 1.9;
}

#founders .block-picture .block-picture-content,
#founders .block-picture .block-picture-content p,
#founders .block-picture .block-picture-content a,
#founders .block-picture .block-picture-content li {
    color: #2e3f96 !important;
}

#founders .block-picture .block-picture-content p,
#founders .block-picture .block-picture-content li {
    font-size: 1.15rem;
}

#founders .block-picture .text-center.mt-3.mb-3 {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin: 0 !important;
}

#founders .founders-cta {
    min-width: 14rem;
    padding: 0.8rem 3.4rem 0.8rem 1rem;
    font-size: 0.95rem;
    color: #fff !important;
}

@media (max-width: 767.98px) {
    #founders .block-picture .row.g-4.align-items-stretch {
        min-height: 24rem;
    }

    #founders .block-picture .row.g-4.align-items-stretch > .col-12.col-md-6:last-child {
        padding: 1rem;
    }

    #founders .block-picture .block-picture-content {
        max-width: none;
    }

    #founders .founders-cta {
        min-width: 0;
        width: auto;
        max-width: 100%;
    }
}

/* Big buttons grid */
#big-buttons {
    padding: 2rem 0;
}

#big-buttons .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

#big-buttons.big-buttons--about .container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Style big button links (and legacy <btn>) */
#big-buttons .bigbtn,
.help-search-grid .bigbtn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    min-height: 80px;
    user-select: none;
    border: 2px solid var(--accent-orange) !important;
    border-radius: 12px;
    padding: 1.6rem 4.5rem 1.6rem 1.1rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff !important;
    background: var(--brand-primary) !important;
    line-height: 1.2;
    margin: 10px 0;
    box-shadow: none;
    transition: none;
}

.extra-bigbtn {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem;
    font-size: 1.25rem;
    min-height: 340px;
    background: #ffffff;
    color: var(--brand-primary) !important;
    border: 1px solid #d1d5db;
    margin: 20px 0;
    width: 100%;
    text-align: left;
    box-shadow: none;
    transform: none !important;
    position: relative;
    overflow: hidden;
}

.extra-bigbtn .block {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    width: 100%;
    height: 100%;
    text-align: left;
}

.extra-bigbtn-heading {
    height: calc((1.55rem * 1.1 * 3) + 0.5rem);
    margin-bottom: 0.85rem;
    min-height: 0;
}

.extra-bigbtn-body {
    min-height: 0;
    padding-right: 5.5rem;
}

.extra-bigbtn .block,
.extra-bigbtn h1,
.extra-bigbtn h2,
.extra-bigbtn h3,
.extra-bigbtn .h1,
.extra-bigbtn p {
    color: inherit !important;
    text-align: left !important;
}

.extra-bigbtn h1,
.extra-bigbtn h2,
.extra-bigbtn h3,
.extra-bigbtn .h1 {
    display: -webkit-box;
    color: var(--brand-primary) !important;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-top: 0;
    margin-bottom: 0;
}

.extra-bigbtn p {
    margin-bottom: 0;
    color: var(--brand-primary) !important;
    line-height: 1.5;
}

.extra-bigbtn-cta {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 3.4rem 0.8rem 1rem;
    background: var(--brand-primary) !important;
    border: 1px solid var(--accent-orange);
    border-radius: 8px;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
    margin: 0;
}

.extra-bigbtn-cta .btn-arrow-circle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
}

.extra-bigbtn-cta .btn-arrow-circle i {
    font-size: 1.85rem;
    transform: translate(0.05rem, 0.05rem) scale(1.08);
}

.help-search-grid h3 {
    font-size: 1rem;
    font-weight: 700;
    color: rgb(47, 44, 126);
    line-height: 15px;
    text-align: left;
    margin-top: 0.7rem;
    margin-bottom: 0.1rem;
}

.extra-bigbtn:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: var(--brand-primary) !important;
}

.extra-bigbtn:hover h1,
.extra-bigbtn:hover h2,
.extra-bigbtn:hover h3,
.extra-bigbtn:hover .h1 {
    color: var(--accent-orange) !important;
}

.extra-bigbtn:hover .extra-bigbtn-cta {
    background: var(--brand-primary) !important;
    border-color: var(--accent-orange) !important;
    color: #fff !important;
}

.extra-bigbtn.donation-widget {
    padding: 0;
    min-height: 340px;
}

.admin-dashboard-tile {
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: var(--brand-primary) !important;
    box-shadow: none !important;
    transform: none !important;
}

.admin-dashboard-tile span,
.admin-dashboard-tile small {
    color: var(--brand-primary) !important;
}

.admin-dashboard-tile .bi {
    color: var(--brand-primary) !important;
    transition: color 0.2s ease;
}

.admin-dashboard-tile:hover,
.admin-dashboard-tile:focus,
.admin-dashboard-tile:active {
    border-color: #d1d5db !important;
    background: #ffffff !important;
    color: var(--brand-primary) !important;
    box-shadow: none !important;
    transform: none !important;
}

.admin-dashboard-tile:hover span,
.admin-dashboard-tile:hover small,
.admin-dashboard-tile:focus span,
.admin-dashboard-tile:focus small,
.admin-dashboard-tile:active span,
.admin-dashboard-tile:active small {
    color: var(--brand-primary) !important;
}

.admin-dashboard-tile:hover .bi,
.admin-dashboard-tile:focus .bi,
.admin-dashboard-tile:active .bi {
    color: var(--accent-orange) !important;
}

#big-buttons .bigbtn:hover,
.help-search-grid .bigbtn:hover {
    background: var(--brand-primary) !important;
    border-color: var(--accent-orange) !important;
    transform: none;
    box-shadow: none;
    color: #fff !important;
}

#big-buttons .bigbtn:active,
.help-search-grid .bigbtn:active {
    transform: none;
    box-shadow: none;
}

#big-buttons .bigbtn:focus,
.help-search-grid .bigbtn:focus {
    background: var(--brand-primary) !important;
    color: #fff !important;
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: none;
}

@media (max-width: 992px) {
    #big-buttons .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    #big-buttons .container {
        grid-template-columns: 1fr;
    }
    #big-buttons .bigbtn,
    .help-search-grid .bigbtn {
        min-height: 72px;
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .card {
        padding: 2rem;
    }

    .support-item {
        padding: 2rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    section h2 {
        font-size: 1.7rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* HTMX loading indicators */
.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-indicator {
    display: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

/* Focus styles for accessibility */
*:focus {
    outline: none;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.page-title {
    background: #dedede;
    padding: 16px 20px;
    color: white;
    margin-top: -8px;
    margin-bottom: 0;
}

.breadcrumb-panel {
    background: #f2f2f2;
    padding: 8px 20px;
    border-radius: 0 0 6px 6px;
    margin-bottom: 16px;
}

.breadcrumb-panel .breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb-panel .breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.breadcrumb-panel .breadcrumb a:hover {
    text-decoration: underline;
}

/* Subtle animations for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, #18115a 100%);
}

/* Article Carousel Styles */
.articles {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.article-carousel-wrapper {
    position: relative;
    margin-top: 2rem;
}

.article-carousel {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.article-carousel-track {
    position: relative;
    min-height: 300px;
}

.article-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 3rem;
}

.article-slide.active {
    display: block;
    opacity: 1;
}

.article-content {
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0;
}

.article-date {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.article-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.article-carousel-btn {
    pointer-events: all;
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #2563eb;
}

.article-carousel-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: scale(1.1);
}

.article-carousel-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .article-slide {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Article Detail Styles */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.95rem;
    color: #64748b;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    text-align: left;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.article-content h1 {
    font-size: 2rem;
}

.article-content h2 {
    font-size: 1.75rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #64748b;
}

.article-content code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: #e2e8f0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-actions {
    margin-top: 0.5rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Article carousel short description */
.article-short-desc {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.75rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    gap: 0.25rem;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--brand-primary);
    text-decoration: none;
    background-color: var(--surface-white);
    border: 1px solid var(--border-muted);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: var(--surface-muted);
    color: var(--brand-blue);
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-alt) 100%);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(49, 39, 131, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #a0aec0;
    background-color: var(--surface-muted);
    border-color: var(--border-muted);
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-sm .page-link {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

/* Pagination info text */
.pagination + .text-muted,
.text-muted + .pagination {
    font-size: 0.875rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.15rem;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Quill Editor – match Bootstrap form look */
.ql-container {
    background-color: #ffffff;
    border: 1px solid #ced4da; /* Bootstrap form-control border */
    border-radius: 0.375rem;   /* Bootstrap .form-control border radius */
}

.ql-toolbar.ql-snow {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.ql-container.ql-snow {
    border-top-left-radius: 0;
}

.ql-editor {
    min-height: 180px;
    background-color: #ffffff;
}

/* Keep readonly fields visually distinct across forms */
input[readonly],
textarea[readonly],
select[readonly],
.form-control[readonly],
.form-select[readonly] {
    background-color: #f1f3f5 !important;
}

/* Admin label chips */
.label-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    border: none;
}

.label-chip--muted {
    background-color: #e2e8f0;
    color: #1f2937;
}

.label-chip--info {
    background: linear-gradient(120deg, #38bdf8, #0ea5e9);
    color: #fff;
}

.label-chip--primary {
    background: linear-gradient(120deg, #818cf8, #6366f1);
    color: #fff;
}

.label-chip--success {
    background: linear-gradient(120deg, #34d399, #059669);
    color: #042f2e;
}

.label-chip--warning {
    background: linear-gradient(120deg, #facc15, #f97316);
    color: #5f370e;
}

.label-chip--danger {
    background: linear-gradient(120deg, #f87171, #dc2626);
    color: #fff;
}

.label-chip--neutral {
    background: linear-gradient(120deg, #94a3b8, #475569);
    color: #fff;
}

/* Media page cards */
.media .card, .letstalk .card, .about .card {
    border: none; /* default: no border */
}

.media .card:hover, .letstalk .card:hover, .about .card:hover {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.media .date, .letstalk .date, .about .date {
    font-size: 0.9rem;
}

.media .more-link, .letstalk .more-link, .about .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #312783;
    text-decoration: none;
}

.media .more-link:hover, .letstalk .more-link:hover, .about .more-link:hover {
    text-decoration: underline;
}

.no-side-margins {
    margin-left: 0;
    margin-right: 0;
}

/* Scroll-to-top button */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 1050;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--brand-primary-dark);
}

.scroll-top:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 16px;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.3);
}

.cookie-consent__inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.cookie-consent__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.cookie-consent__description {
    flex: 1 1 100%;
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cookie-consent .btn-outline-light {
    color: #fff !important;
}

.cookie-consent[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 14px;
    }

    .cookie-consent__inner {
        gap: 8px 12px;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__actions .btn {
        width: 100%;
    }
}
