/* ================================================================
   CAROUSEL — Shared base
   ================================================================ */
.carousel-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    padding: 8px 0 18px;
    box-sizing: border-box;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* The sliding track — default desktop flex */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

/* Slides — base (desktop): flex items, scaled peek */
.carousel-slide {
    flex: 0 0 80%;
    min-width: 0;
    height: 42vw;
    max-height: 500px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin: 0;
    /* zero margin — 10% peek from each side naturally */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
    opacity: 0.35;
    /* dimmed hard — only 10% shows on sides */
    transform: scale(0.95);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 3px #3a9ff5, 0 0 28px 6px rgba(58, 159, 245, 0.55);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Side gradient overlays — blend edges into dark bg (desktop only) */
.carousel-side-fade-left,
.carousel-side-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14%;
    z-index: 5;
    pointer-events: none;
}

.carousel-side-fade-left {
    left: 0;
    background: linear-gradient(to right, #0a1520 0%, rgba(10, 21, 32, 0) 100%);
}

.carousel-side-fade-right {
    right: 0;
    background: linear-gradient(to left, #0a1520 0%, rgba(10, 21, 32, 0) 100%);
}

/* Nav arrow buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #fff;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 2%;
}

.carousel-button.next {
    right: 2%;
}

/* Dot indicators */
.carousel-dots {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 8;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #3a9ff5;
    width: 24px;
    border-radius: 4px;
}

/* ================================================================
   MOBILE (≤ 768px) — Single image, opacity-fade, glowing frame
   ================================================================ */
@media screen and (max-width: 768px) {
    .carousel-container {
        padding: 6px 6px 18px;
        max-width: 100%;
    }

    /* Add the glowing blue border on the viewport on mobile */
    .carousel-viewport {
        border-radius: 18px;
        border: 3px solid #3a9ff5;
        box-shadow: 0 0 0 3px #0a1520, 0 0 18px 4px rgba(58, 159, 245, 0.5);
        overflow: hidden;
    }

    /* Track becomes a stacking context, no flex translate */
    .carousel-track {
        display: block !important;
        position: relative;
        height: 52vw;
        max-height: 260px;
        min-height: 170px;
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }

    /* Slides stack absolutely, opacity-fade */
    .carousel-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        flex: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        opacity: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        transition: opacity 0.5s ease !important;
    }

    .carousel-slide.active {
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Hide side gradients on mobile */
    .carousel-side-fade-left,
    .carousel-side-fade-right {
        display: none !important;
    }

    .carousel-button {
        width: 32px;
        height: 32px;
    }

    .carousel-button.prev {
        left: 8px;
    }

    .carousel-button.next {
        right: 8px;
    }

    .carousel-dots {
        bottom: -14px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .dot.active {
        width: 20px;
    }
}

/* ================================================================
   DESKTOP (≥ 769px) — Rounded inset banner
   ================================================================ */
@media screen and (min-width: 769px) {
    .carousel-container {
        max-width: 100%;
        padding: 0 16px 20px;
        box-sizing: border-box;
    }

    .carousel-viewport {
        border-radius: 16px;
        border: none;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
        overflow: hidden;
    }

    /* Track: stacking context, no flex translate */
    .carousel-track {
        display: block !important;
        position: relative !important;
        height: 400px !important;
        max-height: 50vh !important;
        min-height: 260px !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    /* Slides: absolutely stacked, full width, opacity fade */
    .carousel-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        flex: none !important;
        margin: 0 !important;
        border-radius: 16px !important;
        opacity: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        transition: opacity 0.6s ease !important;
    }

    .carousel-slide.active {
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Hide side gradients */
    .carousel-side-fade-left,
    .carousel-side-fade-right {
        display: none !important;
    }

    /* Nav buttons */
    .carousel-button {
        width: 44px;
        height: 44px;
    }

    .carousel-button.prev {
        left: 20px;
    }

    .carousel-button.next {
        right: 20px;
    }

    .carousel-dots {
        bottom: 16px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 28px;
    }
}



/* Main content area (after the dark zone) */
.main-content {
    background-color: #f4f4f4;
}


/* ============================
   PAGE SHELL - DARK THEME
   ============================ */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* Dark top zone wrapper (header + carousel area) */
.dark-top-zone {
    background-color: #0a1520;
    padding-bottom: 0;
    margin: 0;
    width: 100%;
}

/* ============================
   HEADER NAV BAR
   ============================ */
header.header-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 12px;
    background: transparent;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

/* Pill nav buttons */
.header-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 165px;
    padding: 15px 40px;
    border-radius: 16px;
    font-size: 1.12em;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.header-nav-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.header-nav-btn:hover::after {
    transform: rotate(30deg) translateX(100%);
}

.header-nav-btn span,
.header-nav-btn i:not(.bg-icon) {
    position: relative;
    z-index: 2;
}

.header-nav-btn .bg-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8em;
    opacity: 0;
    z-index: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    color: currentColor;
}

.header-nav-btn:hover .bg-icon,
.header-nav-btn:active .bg-icon {
    transform: translateY(-50%) scale(1.15) rotate(-10deg);
    opacity: 0.4;
}

.event-btn {
    background: #ffffff;
    color: #0d2b5e;
    border: 2px solid rgba(13, 43, 94, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.event-btn:hover {
    background: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 43, 94, 0.3);
}

.home-btn {
    background: #FFC107;
    color: #111111;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.35);
}

.home-btn:hover {
    background: #FFD740;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 193, 7, 0.55);
}

.header-nav-btn i {
    font-size: 0.82em;
}

/* Old header (other pages) */
header:not(.header-nav-bar) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
}

@media screen and (max-width: 768px) {
    header:not(.header-nav-bar) {
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .header-nav-btn {
        min-width: 140px;
        padding: 13px 28px;
        font-size: 1.02em;
    }
}

@media screen and (max-width: 380px) {
    .header-nav-btn {
        min-width: 110px;
        padding: 12px 18px;
        font-size: 0.95em;
    }
}

/* ============================
   DESKTOP FRIENDLY LAYOUT
   ============================ */
@media screen and (min-width: 769px) {
    .dark-top-zone {
        max-width: 100%;
    }

    header.header-nav-bar {
        padding: 18px 40px 14px;
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
    }

    .header-nav-btn {
        min-width: 200px;
        padding: 16px 48px;
        font-size: 1.18em;
        border-radius: 14px;
    }

    .carousel-container {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 20px 20px;
    }

    .dark-to-yellow-bridge {
        height: 25px;
    }

    .hero-section {
        padding: 38px 24px 36px;
    }

    .hero-title {
        font-size: 2.6em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .main-content {
        max-width: 100%;
    }
}

/* ============================
   LARGE DESKTOP (≥ 1024px)
   ============================ */
@media screen and (min-width: 1024px) {

    /* Remove body bottom padding – no bottom nav on desktop */
    body {
        padding-bottom: 0 !important;
    }

    /* Adjust WhatsApp FAB position (no bottom nav) */
    .whatsapp-fab {
        bottom: 28px;
    }

    /* Constrain dark top zone carousel to wide desktop */
    .carousel-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Carousel track taller on wide screens */
    .carousel-track {
        height: 500px !important;
        max-height: 56vh !important;
    }

    /* Header wider */
    header.header-nav-bar {
        max-width: 1100px;
        padding: 22px 60px 16px;
        gap: 28px;
    }

    .header-nav-btn {
        min-width: 220px;
        padding: 18px 56px;
        font-size: 1.22em;
    }

    /* ---- Main content desktop container ---- */
    .main-content {
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Hero */
    .hero-section {
        padding: 56px 32px 48px;
    }

    .hero-title {
        font-size: 3.2em;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 1.35em;
        margin-top: 28px;
    }

    /* Statistics grid – 4 columns on desktop */
    .statistics-section {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
        padding: 28px 32px;
        margin: 28px auto;
        gap: 0;
    }

    .statistic-icon {
        font-size: 48px;
    }

    .statistic-value {
        font-size: 1.5em;
    }

    .statistic-label {
        font-size: 0.9em;
    }

    /* Categories section */
    .Categories-section {
        max-width: 1100px;
        padding: 36px 40px;
        margin: 20px auto;
    }

    .Categories-section h2 {
        font-size: 2.2em;
    }

    .search-bar {
        width: 50%;
        max-width: 500px;
    }

    .campaign-categories {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 20px;
        padding: 20px;
        max-width: 900px;
        margin: 0 auto;
    }

    .category-button {
        height: 130px;
        min-width: 130px;
        padding: 20px;
    }

    .category-button i {
        font-size: 40px;
    }

    .category-button span {
        font-size: 15px;
    }

    /* Quote section */
    .quote-section {
        max-width: 1100px;
        padding: 70px 40px;
        margin: 20px auto;
    }

    .quote-text {
        font-size: 2em;
    }

    /* Get in touch */
    .get-in-touch-section {
        max-width: 900px;
        padding: 40px 60px;
        margin: 20px auto;
    }

    .contact-item {
        padding: 18px 20px;
    }

    .contact-icon {
        font-size: 40px;
    }

    /* FAQ section */
    .faq-section {
        max-width: 1000px;
        padding: 50px 60px;
        margin: 20px auto;
    }

    .faq-section h2 {
        font-size: 2.4em;
    }

    .faq-container {
        max-width: 860px;
    }

    /* Footer – horizontal multi-column layout */
    footer {
        max-width: 1100px;
        margin: 20px auto 40px;
        padding: 48px 80px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 80px;
        text-align: center;
        flex-wrap: wrap;
        border-radius: 24px;
        margin-bottom: 40px !important;
    }

    .footer-section {
        margin-bottom: 0;
        flex: 0 1 250px;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section ul li button {
        width: auto !important;
    }

    .copyright {
        flex-basis: 100%;
        text-align: center;
        margin-top: 8px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* ============================
   DARK-TO-YELLOW GRADIENT BRIDGE
   ============================ */
.dark-to-yellow-bridge {
    height: 20px;
    background: linear-gradient(to bottom, #0a1520 0%, #FFC107 100%);
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.donate-button {
    background-color: #FFC107;
    color: #000000;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.statistics-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 16px 12px;
    text-align: center;
    background-color: #ffffff;
    margin: 16px auto;
    max-width: 700px;
    width: calc(100% - 24px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

@media screen and (min-width: 600px) {
    .statistics-section {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px 16px;
        max-width: 860px;
        margin: 20px auto;
    }
}

.statistic-item {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.statistic-item:hover {
    transform: translateY(-5px);
}

.statistic-icon {
    font-size: 40px;
    margin-bottom: 8px;
    color: #333;
}

.statistic-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 4px 0;
}

.statistic-label {
    font-size: 0.85em;
    color: #777;
}

@media screen and (max-width: 480px) {
    .statistics-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        margin: 10px;
    }

    .statistic-item {
        padding: 10px;
    }

    .statistic-icon {
        font-size: 35px;
    }

    .statistic-value {
        font-size: 1.2em;
    }

    .statistic-label {
        font-size: 0.8em;
    }
}

.Categories-section {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.Categories-section h2 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.Categories-section p {
    color: #777;
    margin-top: 0;
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    width: 60%;
    max-width: 400px;
    margin: 0 auto 20px auto;
}

.search-bar input {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #0d47a1;
}

.search-bar .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #777;
    cursor: pointer;
}

@media screen and (max-width: 480px) {
    .search-bar {
        width: 80%;
        padding-right: 25px;
        box-sizing: border-box;
    }
}

.campaign-categories {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 15px;
    margin: 0 auto;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.campaign-categories::-webkit-scrollbar {
    display: none;
}

@media screen and (min-width: 769px) {
    .campaign-categories {
        justify-content: center;
    }
}

@media screen and (min-width: 769px) {
    .campaign-categories {
        justify-content: center;
    }
}

.category-button {
    background-color: #eee;
    color: #333;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    min-width: 120px;
    flex: 0 0 auto;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFC107, #FFD54F);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-button:hover::before {
    opacity: 0.1;
}

.category-button i,
.category-button span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-button:hover i {
    transform: scale(1.1);
    color: #FFC107;
}

.category-button:hover span {
    color: #000;
}

.category-button.active {
    background-color: #FFC107;
    color: #000000;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.category-button.active i,
.category-button.active span {
    color: #000000;
}

.category-button i {
    font-size: 35px;
    margin-bottom: 10px;
    color: #777;
}

.category-button span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

@media screen and (max-width: 768px) {
    .category-button {
        height: 110px;
        padding: 10px;
    }

    .category-button i {
        font-size: 30px;
        margin-bottom: 8px;
    }

    .category-button span {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .category-button {
        height: 100px;
        padding: 8px;
    }

    .category-button i {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .category-button span {
        font-size: 12px;
    }
}

.get-in-touch-section {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.get-in-touch-section h2 {
    color: #333;
    margin-bottom: 5px;
}

.get-in-touch-section p {
    color: #777;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 35px;
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

/* WhatsApp icon color */
.fa-whatsapp {
    color: #25D366;
}

/* Email icon color */
.fa-envelope {
    color: #EA4335;
}

/* Phone icon color */
.fa-phone-alt {
    color: #34A853;
}

/* Location icon color */
.fa-map-marker-alt {
    color: #4285F4;
}

.contact-details {
    flex-grow: 1;
    text-align: left;
}

.contact-type {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.contact-value {
    color: #555;
    font-size: 0.9em;
    margin: 0;
}

.arrow-icon {
    font-size: 20px;
    margin-left: 15px;
    color: #777;
    /* A subtle color for arrow icons */
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
    font-size: 0.8em;
    text-decoration: none;
    cursor: pointer;
}

.nav-item.active {
    color: #FFC107;
    /* Yellow color from screenshot */
}

.nav-item .nav-icon {
    font-size: 25px;
    /* Adjust as needed, corresponds to original image height */
    margin-bottom: 5px;
}

.nav-item.active .nav-icon {
    color: #FFC107;
    /* Yellow color for active icon */
    filter: none;
    /* Remove previous filter as color is set directly */
}

.nav-item a {
    text-decoration: none;
    /* Remove underline from links */
    color: inherit;
    /* Inherit color from parent nav-item */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Ensure link takes full width of its parent nav-item */
    height: 100%;
    /* Ensure link takes full height of its parent nav-item */
}

footer {
    background-color: #0d47a1;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 70px;
    border-radius: 20px;
    max-width: 1200px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #FFC107;
    /* Yellow color for headings */
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 5px 0;
    display: block;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    font-size: 30px;
    color: #ffffff;
    /* White color for social icons */
    filter: none;
    /* Remove previous filter as color is set directly */
}

.copyright {
    margin-top: 20px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

.whatsapp-fab {
    position: fixed;
    bottom: 90px;
    /* Adjust based on bottom nav height */
    right: 20px;
    background-color: #25D366;
    /* WhatsApp green */
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    /* Ensure it's above other content */
}

.whatsapp-fab .fab-icon {
    font-size: 25px;
    margin-right: 10px;
    color: #ffffff;
    /* White color for WhatsApp FAB icon */
    filter: none;
    /* Remove previous filter as color is set directly */
}

/* Registration Modal Styles */
.registration-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.registration-modal.show {
    display: flex;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}

.modal-subtitle {
    margin-top: 10px;
    color: #666;
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-button {
    background-color: #0d47a1;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.modal-button:hover {
    background-color: #1565c0;
}

.header-left-logo {
    background-color: #FFC107;
    /* Yellow background */
    width: 50px;
    /* Square size */
    height: 50px;
    /* Square size */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    /* Slightly rounded corners */
}

.logo-icon-square {
    font-size: 30px;
    /* Size of the plus icon */
    color: #000000;
    /* Black color for the plus icon */
}

.cart-icon {
    font-size: 24px;
    color: #333;
}

.categories-section {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categories-section h2 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.8em;
}

.categories-section p {
    color: #777;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.expert-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.expert-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.expert-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.expert-info {
    padding: 15px;
}

.expert-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.expert-category {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.expert-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.favorite-button {
    background-color: #eee;
    color: #777;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.favorite-button:hover {
    background-color: #FFC107;
    color: #000000;
}

.book-button {
    background-color: #0d47a1;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.book-button:hover {
    background-color: #1565c0;
}

@media screen and (max-width: 480px) {
    .categories-section {
        margin: 15px;
        padding: 15px;
    }

    .categories-section h2 {
        font-size: 1.5em;
    }

    .categories-section p {
        font-size: 1em;
    }

    .expert-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .expert-image {
        height: 120px;
    }

    .expert-name {
        font-size: 1.1em;
    }

    .expert-category {
        font-size: 0.8em;
    }

    .book-button {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .favorite-button {
        width: 30px;
        height: 30px;
    }
}

.hero-section {
    background: #FFC107;
    width: 100%;
    max-width: 100%;
    padding: 28px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    box-shadow: none;
}

.hero-section::before {
    display: none;
}

/* White gradient fade at bottom of hero section */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(244, 244, 244, 0) 0%, rgba(244, 244, 244, 0.85) 70%, #f4f4f4 100%);
    z-index: 4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 16px;
    width: 100%;
}

.hero-title {
    font-size: 2em;
    color: #111111;
    margin: 0 0 10px 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: #111;
    border-radius: 2px;
}

.hero-subtitle {
    color: #111111;
    font-size: 1.05em;
    margin-top: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive hero */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.55em;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.92em;
        margin-top: 18px;
    }
}


.faq-section {
    padding: 40px 20px;
    background-color: #ffffff;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.faq-question i {
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Responsive styles for FAQ section */
@media screen and (max-width: 768px) {
    .faq-section {
        padding: 30px 15px;
        margin: 15px;
    }

    .faq-section h2 {
        font-size: 1.8em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .faq-question h3 {
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .faq-section {
        padding: 20px 10px;
        margin: 10px;
    }

    .faq-section h2 {
        font-size: 1.5em;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 15px;
    }
}

/* Quote Section Styles */
.quote-section {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ec 100%);
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 192, 203, 0.15);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffb6c1' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.quote-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 2.5em;
    color: #ff69b4;
    margin-bottom: 20px;
    opacity: 0.8;
}

.quote-text {
    font-size: 1.8em;
    color: #333;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-style: italic;
    font-weight: 500;
    position: relative;
    padding: 0 20px;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.author-name {
    font-size: 1.2em;
    color: #ff1493;
    font-weight: 600;
}

.author-title {
    font-size: 0.9em;
    color: #666;
}

.quote-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.quote-decoration i {
    font-size: 1.2em;
    color: #ffb6c1;
    animation: twinkle 2s ease-in-out infinite;
}

.quote-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.quote-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive styles for quote section */
@media screen and (max-width: 768px) {
    .quote-section {
        padding: 40px 15px;
    }

    .quote-text {
        font-size: 1.5em;
    }

    .quote-icon {
        font-size: 2em;
    }
}

@media screen and (max-width: 480px) {
    .quote-section {
        padding: 30px 10px;
        margin: 15px;
    }

    .quote-text {
        font-size: 1.2em;
        padding: 0 10px;
    }

    .quote-icon {
        font-size: 1.8em;
    }

    .author-name {
        font-size: 1.1em;
    }

    .author-title {
        font-size: 0.8em;
    }
}

@media screen and (max-width: 768px) {

    .Categories-section,
    .categories-section,
    .statistics-section,
    .get-in-touch-section,
    .faq-section,
    .quote-section,
    footer {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    .bottom-nav {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        bottom: 15px !important;
        border-radius: 20px !important;
    }
}

@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }

    html {
        background-color: #f2f4f7;
    }

    body {
        margin: 20px 20px 20px 130px;
        padding: 0;
        border-radius: 25px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        /* slight border */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        background-color: #ffffff;
        min-height: calc(100vh - 40px);
        box-sizing: border-box;
        transition: margin-left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    body:has(.bottom-nav:hover) {
        margin-left: 290px;
    }

    .dark-top-zone {
        border-radius: 24px 24px 0 0;
        /* Align perfectly with inner curve */
    }

    .bottom-nav {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        top: 20px;
        bottom: 20px;
        left: 20px;
        width: 85px;
        height: auto;
        transform: none;
        padding: 30px 0;
        border-radius: 25px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        gap: 15px;
        background-color: #ffffff;
        transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
        overflow: hidden;
        z-index: 2000;
        white-space: nowrap;
    }

    .bottom-nav:hover {
        width: 250px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    }

    .sidebar-logo {
        display: flex;
        align-items: center;
        padding-left: 20px;
        margin-bottom: 20px;
        gap: 15px;
        width: 100%;
        cursor: pointer;
    }

    .sidebar-logo img {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .sidebar-logo .logo-text {
        font-size: 1.25em;
        font-weight: 500;
        color: #111;
        opacity: 0;
        transform: translateX(-15px);
        transition: all 0.3s ease;
        visibility: hidden;
    }

    .bottom-nav:hover .sidebar-logo .logo-text {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0.1s;
    }

    .sidebar-logo .logo-text b {
        font-weight: 800;
    }

    .nav-item {
        margin: 5px 0;
        width: 100%;
    }

    .nav-item a {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 0 10px 30px;
        width: 100%;
        gap: 20px;
        color: inherit;
        text-decoration: none;
    }

    .nav-item .nav-icon {
        margin-bottom: 0;
        width: 25px;
        text-align: center;
        flex-shrink: 0;
        font-size: 22px;
    }

    .nav-item span {
        font-size: 1.1em;
        font-weight: 600;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        visibility: hidden;
    }

    .bottom-nav:hover .nav-item span {
        opacity: 1;
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0.05s;
    }
}

/* Bottom Up Registration Modal */
.bottom-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-end;
    justify-content: center;
}

.bottom-modal.show {
    display: flex;
}

.bottom-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-sizing: border-box;
}

.bottom-modal.show .bottom-modal-content {
    transform: translateY(0);
}

.bottom-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.bottom-modal-form .input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.bottom-modal-form .input-wrapper:focus-within {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

@font-face {
    font-family: 'Twemoji Country Flags';
    src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.2/dist/TwemojiCountryFlags.woff2') format('woff2');
}

.bottom-modal-form .country-code {
    padding: 15px 10px 15px 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    border-right: 1px solid #ddd;
    outline: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #333;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Twemoji Country Flags', Arial, sans-serif !important;
}

.bottom-modal-form .country-code option {
    font-family: 'Twemoji Country Flags', Arial, sans-serif !important;
}

.bottom-modal-form input {
    width: 100%;
    padding: 15px;
    border: none;
    box-sizing: border-box;
    font-size: 1em;
    outline: none;
    background: transparent;
    margin: 0;
}

.bottom-modal-btn {
    width: 100%;
    background-color: #FFC107;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bottom-modal-btn:hover {
    background-color: #e0a800;
}


/* Drag handle for bottom modal */
.bottom-modal-handle {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 0 auto 15px auto;
    cursor: grab;
}

/* WhatsApp Channel Banner */
.wa-banner-section {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.wa-banner-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 16px;
    padding: 12px 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.wa-banner-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4) !important;
}

.wa-banner-text-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.wa-qr-section {
    display: none;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 12px;
}

.wa-qr-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.wa-qr-text {
    font-size: 0.8em;
    margin: 0;
    color: #fff;
    font-weight: 600;
    text-align: left;
    max-width: 140px;
    line-height: 1.3;
}

@media (min-width: 769px) {
    .wa-qr-section {
        display: flex;
    }
}

@media (max-width: 768px) {
    .wa-banner-container {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .wa-banner-text-content {
        flex-direction: column;
        gap: 12px;
    }

    .wa-banner-text-content div {
        text-align: center !important;
    }

    .wa-qr-section {
        flex-direction: column;
    }
}

/* =============================================
   SIDEBAR LOGO ANIMATION
   ============================================= */
.sidebar-logo .logo-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.sidebar-logo .logo-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
    object-fit: contain;
}

.sidebar-logo .logo-wrapper img.active {
    opacity: 1;
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    animation: logoPulse 2s infinite ease-in-out;
}

.preloader-dots {
    display: flex;
    gap: 10px;
}

.dot-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

.dot-item:nth-child(1) {
    background-color: #FFC107;
    animation-delay: -0.32s;
}

.dot-item:nth-child(2) {
    background-color: #FF9800;
    animation-delay: -0.16s;
}

.dot-item:nth-child(3) {
    background-color: #FF5722;
    animation-delay: 0s;
}

.dot-item:nth-child(4) {
    background-color: #FFEB3B;
    animation-delay: 0.16s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.preloader-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    font-size: 0.85em;
    font-weight: 800;
    color: #333;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* =============================================
   WORD SCROLLER ANIMATION
   ============================================= */
.word-scroller {
    display: inline-flex;
    flex-direction: column;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
    text-align: center;
    color: #fff;
    font-weight: 900;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.word-scroller-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scrollWords5 10s infinite cubic-bezier(0.6, -0.2, 0.4, 1.2);
}

.word-scroller-inner span {
    height: 1.2em;
    line-height: 1.2em;
    display: block;
    white-space: nowrap;
}

@keyframes scrollWords5 {

    0%,
    15% {
        transform: translateY(0);
    }

    20%,
    35% {
        transform: translateY(-1.2em);
    }

    40%,
    55% {
        transform: translateY(-2.4em);
    }

    60%,
    75% {
        transform: translateY(-3.6em);
    }

    80%,
    95% {
        transform: translateY(-4.8em);
    }

}

/* ============================================================
   FAB ACTIONS — Read Aloud + Call Us (Desktop Only)
   ============================================================ */
#fdFabGroup {
    position: fixed;
    bottom: 32px;
    right: 22px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.fd-fab-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.fd-fab-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 50px;
    padding: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    transition:
        max-width 0.45s cubic-bezier(0.34,1.56,0.64,1),
        opacity   0.3s ease,
        padding   0.35s ease;
    pointer-events: none;
}
.fd-fab-row:hover .fd-fab-label {
    max-width: 240px;
    opacity: 1;
    padding: 9px 18px;
    pointer-events: all;
}

.fd-fab-label-text {
    font-size: 0.88em;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

#fdReadAloudBadge {
    font-size: 0.72em;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 20px;
    background: #ef4444;
    color: #fff;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}
#fdReadAloudBadge.fd-badge-on {
    background: #22c55e;
}

.fd-fab-phone-num {
    font-size: 0.92em;
    font-weight: 800;
    color: #0d2b5e;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fd-fab-phone-num:hover { color: #FFC107; }

.fd-fab-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.22em;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease,
                background  0.3s ease;
}
.fd-fab-btn:hover  { transform: scale(1.1); }
.fd-fab-btn:active { transform: scale(0.94); }

#fdReadAloudBtn {
    background: #0d2b5e;
    color: #fff;
    box-shadow: 0 6px 24px rgba(13,43,94,0.35);
}
#fdReadAloudBtn:hover {
    box-shadow: 0 8px 32px rgba(13,43,94,0.5);
}
#fdReadAloudBtn.fd-read-on {
    background: #16a34a;
    animation: fdReadPulse 2s infinite;
}

#fdCallBtn {
    background: #FFC107;
    color: #111;
    box-shadow: 0 6px 24px rgba(255,193,7,0.4);
}
#fdCallBtn:hover {
    box-shadow: 0 8px 32px rgba(255,193,7,0.6);
}

#fdSpeakerCursor {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(22,163,74,0.92);
    color: #fff;
    font-size: 0.95em;
    display: none;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 16px rgba(22,163,74,0.55);
}
#fdSpeakerCursor.fd-cursor-show    { display: flex; }
#fdSpeakerCursor.fd-cursor-speaking { animation: fdSpeakerBounce 0.45s infinite alternate; }

@keyframes fdReadPulse {
    0%   { box-shadow: 0 0 0 0    rgba(34,197,94,0.7); }
    70%  { box-shadow: 0 0 0 14px rgba(34,197,94,0);   }
    100% { box-shadow: 0 0 0 0    rgba(34,197,94,0);   }
}
@keyframes fdSpeakerBounce {
    from { transform: translate(-50%,-50%) scale(1);    }
    to   { transform: translate(-50%,-50%) scale(1.35); }
}

@media (max-width: 768px) {
    #fdFabGroup,
    #fdSpeakerCursor { display: none !important; }
}