/* Films Dream — Modern Homepage Design System */

:root {
    --fd-primary: #9a0217;
    --fd-primary-dark: #7a0112;
    --fd-navy: #0f1639;
    --fd-navy-light: #1a2347;
    --fd-gradient: linear-gradient(135deg, #3e34c4 0%, #9e0013 100%);
    --fd-gradient-soft: linear-gradient(135deg, rgba(62, 52, 196, 0.08) 0%, rgba(158, 0, 19, 0.08) 100%);
    --fd-accent: #6038f7;
    --fd-success: #10b981;
    --fd-gold: #f59e0b;
    --fd-text: #1a1d26;
    --fd-text-muted: #5f6368;
    --fd-text-light: #8b919a;
    --fd-bg: #f8f9fc;
    --fd-bg-alt: #f0f2f8;
    --fd-white: #ffffff;
    --fd-border: #e8ebf0;
    --fd-shadow-sm: 0 2px 8px rgba(15, 22, 57, 0.06);
    --fd-shadow: 0 8px 30px rgba(15, 22, 57, 0.08);
    --fd-shadow-lg: 0 16px 48px rgba(15, 22, 57, 0.12);
    --fd-radius: 12px;
    --fd-radius-lg: 20px;
    --fd-radius-xl: 24px;
    --fd-section-py: 5rem;
    --fd-font: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --fd-heading: 'Plus Jakarta Sans', 'Lato', sans-serif;
    --fd-transition: 0.25s ease;
}

/* ── Base typography ── */
body {
    font-family: var(--fd-font) !important;
    color: var(--fd-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.s-title h2,
.about-content h2,
.contact-info-head h2,
.icon-box-title {
    font-family: var(--fd-heading) !important;
    color: var(--fd-text);
    letter-spacing: -0.02em;
}

/* ── Section system ── */
.fd-section {
    position: relative;
    padding: var(--fd-section-py) 0;
}

.fd-section--alt {
    background: var(--fd-bg);
}

.fd-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fd-primary);
    background: rgba(154, 2, 23, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.fd-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.fd-section-header .s-title {
    margin-bottom: 0 !important;
}

.fd-section-header .s-title::after,
.fd-section-header .s-title h2::after {
    display: none !important;
}

.fd-section-header .s-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
}

.fd-section-header .fd-section-desc {
    font-size: 1.05rem;
    color: var(--fd-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Header / Nav ── */
.header .navbar,
.fd-navbar {
    padding: 0.75rem 0;
    transition: var(--fd-transition);
}

.fd-navbar__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.fd-navbar__brand img {
    max-height: 42px;
    width: auto;
}

#main-nav.sticky-nav,
#main-nav.fd-solid-header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--fd-shadow-sm);
    padding: 0.5rem 0;
}

#main-nav .navbar-brand img {
    max-height: 42px;
    width: auto;
}

/* Hamburger toggler */
.fd-navbar__toggler {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    margin-left: auto;
    order: 2;
}

#main-nav.sticky-nav .fd-navbar__toggler,
#main-nav.fd-solid-header .fd-navbar__toggler {
    border-color: var(--fd-border);
}

.fd-navbar__toggler-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fd-white);
    position: relative;
    transition: var(--fd-transition);
}

#main-nav.sticky-nav .fd-navbar__toggler-icon,
#main-nav.fd-solid-header .fd-navbar__toggler-icon {
    background: var(--fd-text);
}

.fd-navbar__toggler-icon::before,
.fd-navbar__toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: inherit;
    transition: var(--fd-transition);
}

.fd-navbar__toggler-icon::before { top: -7px; }
.fd-navbar__toggler-icon::after { top: 7px; }

/* Collapse & primary nav */
.fd-navbar__collapse {
    order: 4;
    flex-basis: 100%;
    align-items: stretch;
}

@media (min-width: 992px) {
    .fd-navbar__container {
        flex-wrap: nowrap;
    }

    .fd-navbar__collapse {
        order: 0;
        flex-basis: auto;
        flex-grow: 1;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .fd-navbar__toggler {
        display: none;
    }
}

.fd-header-nav.navbar-nav {
    align-items: center;
    width: 100%;
    margin: 0;
}

@media (min-width: 992px) {
    .fd-header-nav.navbar-nav {
        width: auto;
        justify-content: center;
        flex-direction: row;
    }
}

.fd-header-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1rem !important;
    border-radius: 8px;
    transition: var(--fd-transition);
    color: rgba(255, 255, 255, 0.92) !important;
    white-space: nowrap;
}

#main-nav.sticky-nav .fd-header-nav .nav-link,
#main-nav.fd-solid-header .fd-header-nav .nav-link {
    color: var(--fd-text) !important;
}

.fd-header-nav .nav-link:hover,
.fd-header-nav .nav-link.active {
    color: var(--fd-white) !important;
    background: rgba(255, 255, 255, 0.12);
}

#main-nav.sticky-nav .fd-header-nav .nav-link:hover,
#main-nav.sticky-nav .fd-header-nav .nav-link.active,
#main-nav.fd-solid-header .fd-header-nav .nav-link:hover,
#main-nav.fd-solid-header .fd-header-nav .nav-link.active {
    color: var(--fd-primary) !important;
    background: rgba(154, 2, 23, 0.06);
}

/* Logo swap on scroll — home page only (sticky-nav added by JS) */
#main-nav:not(.sticky-nav):not(.fd-solid-header) .color-logo {
    display: none !important;
}

#main-nav:not(.sticky-nav):not(.fd-solid-header) .white-logo {
    display: inline-block !important;
}

#main-nav.sticky-nav .white-logo {
    display: none !important;
}

#main-nav.sticky-nav .color-logo {
    display: inline-block !important;
}

/* Inner pages: solid header, fixed color logo + default store buttons (no scroll swap) */
#main-nav.fd-solid-header .white-logo {
    display: none !important;
}

#main-nav.fd-solid-header .color-logo {
    display: inline-block !important;
}

#main-nav.fd-solid-header .app-store-btn {
    background-color: #000 !important;
    border-color: #000 !important;
}

#main-nav.fd-solid-header .app-store-btn:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

/* Header shop icon + tools */
.fd-header-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.fd-header-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.fd-header-shop:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transform: translateY(-1px);
}

#main-nav.sticky-nav .fd-header-shop,
#main-nav.fd-solid-header .fd-header-shop {
    border-color: rgba(15, 22, 57, 0.15);
    color: var(--fd-dark, #0f1639);
}

#main-nav.sticky-nav .fd-header-shop:hover,
#main-nav.fd-solid-header .fd-header-shop:hover {
    color: var(--fd-primary, #9a0217);
    background: rgba(154, 2, 23, 0.08);
    border-color: rgba(154, 2, 23, 0.25);
}

@media (min-width: 992px) {
    .fd-header-tools {
        margin-left: 1rem;
    }
}

@media (max-width: 991.98px) {
    .fd-header-tools {
        margin-left: 0;
        justify-content: center;
        width: 100%;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    #main-nav.sticky-nav .fd-header-tools,
    #main-nav.fd-solid-header .fd-header-tools {
        border-top-color: var(--fd-border, rgba(0, 0, 0, 0.08));
    }
}

.fd-header-cta {
    text-align: center;
}

@media (min-width: 992px) {
    .fd-header-cta {
        text-align: right;
    }
}

.fd-header-cta__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

#main-nav.sticky-nav .fd-header-cta__label {
    color: var(--fd-text-muted);
}

#main-nav.fd-solid-header .fd-header-cta__label {
    color: var(--fd-text-muted);
}

.fd-header-cta .apps-store-btn-wrpper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .fd-header-cta .apps-store-btn-wrpper {
        justify-content: flex-end;
    }
}

.fd-header-cta .apps-store-btn-wrpper img {
    max-height: 36px;
    transition: transform var(--fd-transition);
}

.fd-header-cta .app-store-btn:hover img {
    transform: translateY(-2px);
}

/* Mobile menu panel */
@media (max-width: 991px) {
    .fd-navbar__collapse {
        background: var(--fd-navy);
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: var(--fd-radius-lg);
        box-shadow: var(--fd-shadow-lg);
    }

    .fd-header-nav .nav-item {
        width: 100%;
    }

    .fd-header-nav .nav-link {
        padding: 0.75rem 1rem !important;
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .fd-header-nav .nav-link:hover,
    .fd-header-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--fd-white) !important;
    }

    .fd-header-cta-wrap.d-lg-none {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .fd-header-cta-wrap.d-lg-none .fd-header-cta__label {
        color: rgba(255, 255, 255, 0.75);
    }
}

/* Tablet compact spacing */
@media (min-width: 768px) and (max-width: 991px) {
    .fd-header-nav .nav-link {
        font-size: 0.95rem;
    }
}

/* Legacy header-actions aliases */
.header-actions {
    text-align: right;
}

.header-actions .download-head {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
}

#main-nav.sticky-nav .header-actions .download-head {
    color: var(--fd-text-muted);
}

.header-actions .apps-store-btn-wrpper img {
    max-height: 36px;
    transition: transform var(--fd-transition);
}

.header-actions .app-store-btn:hover img {
    transform: translateY(-2px);
}

/* ── Hero ── */
.fd-hero.home-4-banner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
}

.fd-hero .iconic-main-slider {
    position: relative;
    z-index: 2;
}

.fd-hero #particles {
    pointer-events: none;
    z-index: 0;
}

.fd-hero .banner-content {
    position: relative;
    z-index: 2;
}

.fd-hero .banner-content .fd-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.fd-hero .banner-content .title {
    font-size: clamp(2rem, 5vw, 3.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin-bottom: 1.25rem !important;
    color: #fff !important;
}

.fd-hero .banner-content .title .fd-hero-title-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.fd-hero .banner-content .title .fd-hero-title-link:hover,
.fd-hero .banner-content .title .fd-hero-title-link:focus {
    color: inherit;
    opacity: 0.88;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.fd-hero .banner-content .sub-title .fd-hero-subtitle-link {
    color: inherit;
    text-decoration: none;
}

.fd-hero .banner-content .sub-title .fd-hero-subtitle-link:hover,
.fd-hero .banner-content .sub-title .fd-hero-subtitle-link:focus {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.fd-hero .banner-content .sub-title {
    font-size: clamp(1rem, 2vw, 1.15rem) !important;
    line-height: 1.7 !important;
    color: #fff !important;
    opacity: 0.92;
    max-width: 520px;
    display: block;
    margin-bottom: 2rem !important;
}

.fd-hero .btn-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fd-hero .store-btn {
    border-radius: 12px !important;
    padding: 0.85rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: transform var(--fd-transition), box-shadow var(--fd-transition) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fd-hero .store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fd-hero .fd-hero-link-btn {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.fd-hero .fd-hero-link-btn:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

.fd-hero .banner-img img {
    max-width: 100%;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.25));
    animation: fd-float 4s ease-in-out infinite;
}

.fd-hero .fd-hero-image-link {
    display: inline-block;
    line-height: 0;
}

.fd-hero .fd-hero-image-link:hover img {
    opacity: 0.95;
}

@keyframes fd-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── About ── */
.fd-about {
    background: var(--fd-white);
    overflow: hidden;
}

.fd-about .floating-shapes {
    opacity: 0.4;
}

.fd-about .about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.fd-about .about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--fd-text-muted);
    margin-bottom: 1rem;
}

.fd-about .h4-about-img-wrapper {
    position: relative;
}

.fd-about .h4-about-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: var(--fd-gradient-soft);
    border-radius: var(--fd-radius-xl);
    z-index: -1;
}

.fd-about .about-img1 {
    border-radius: var(--fd-radius-lg);
    box-shadow: var(--fd-shadow);
}

/* ── Challenge ── */
.fd-challenge {
    padding: 0 !important;
    background: var(--fd-navy);
}

.fd-challenge .challenge-main {
    overflow: hidden;
}

.fd-challenge .challenge-image-wrap {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.fd-challenge .challenge-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.fd-challenge .award-box {
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--fd-navy);
}

.fd-challenge .award-text p {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: var(--fd-success) !important;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--fd-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.fd-prize-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--fd-radius-lg);
    padding: 1.75rem 1rem;
    height: 100%;
    transition: transform var(--fd-transition), background var(--fd-transition);
}

.fd-prize-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.fd-prize-card--featured {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    transform: scale(1.03);
}

.fd-prize-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.fd-prize-card img {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.fd-prize-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.fd-prize-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fd-white);
    margin-bottom: 0.35rem;
}

.fd-prize-card h6 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.fd-prize-card h6 span {
    color: var(--fd-gold);
    font-weight: 600;
}

.fd-prize-card .fd-prize-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fd-success) !important;
    margin: 0;
}

/* ── Video ── */
.fd-video-section {
    background: var(--fd-bg);
}

.fd-video-wrap {
    border-radius: var(--fd-radius-xl);
    overflow: hidden;
    box-shadow: var(--fd-shadow-lg);
    background: var(--fd-navy);
    line-height: 0;
}

.fd-video-wrap video {
    width: 100%;
    display: block;
    border-radius: var(--fd-radius-xl);
}

/* ── Features / Icon cards ── */
.fd-features {
    background: var(--fd-white);
}

.fd-feature-grid {
    row-gap: 1.5rem;
}

.fd-card.icon-box {
    background: var(--fd-white);
    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--fd-shadow-sm);
    transition: transform var(--fd-transition), box-shadow var(--fd-transition), border-color var(--fd-transition);
    height: calc(100% - 1.5rem);
    display: flex;
    flex-direction: column;
}

.fd-card.icon-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--fd-shadow);
    border-color: rgba(154, 2, 23, 0.15);
}

.fd-card .icon-box-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fd-gradient-soft);
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.fd-card .icon-box-icon i {
    font-size: 1.35rem;
    background: var(--fd-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fd-card .icon-box-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.35 !important;
}

.fd-card .icon-box-details p {
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--fd-text-muted);
    margin: 0;
}

.fd-features .feature-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fd-features .feature-image-wrap img {
    max-width: 100%;
    filter: drop-shadow(0 16px 32px rgba(15, 22, 57, 0.12));
}

/* ── Screenshots slider ── */
.fd-screenshots {
    background: var(--fd-bg);
    padding-bottom: var(--fd-section-py) !important;
}

.fd-screenshots .app-screenshot-item {
    border-radius: var(--fd-radius-lg);
    overflow: hidden;
    box-shadow: var(--fd-shadow);
    transition: transform var(--fd-transition);
}

.fd-screenshots .app-screenshot-item:hover {
    transform: scale(1.02);
}

.fd-screenshots .app-screenshot-item img {
    border-radius: var(--fd-radius-lg);
}

.fd-screenshots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--fd-border);
    opacity: 1;
    transition: var(--fd-transition);
}

.fd-screenshots .swiper-pagination-bullet-active {
    background: var(--fd-primary);
    width: 28px;
    border-radius: 5px;
}

/* ── Testimonials ── */
.fd-testimonials {
    background: var(--fd-white);
}

.fd-testimonials .testimonial-item.style-3 {
    background: var(--fd-white);
    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--fd-shadow-sm);
    transition: box-shadow var(--fd-transition);
    max-width: 720px;
    margin: 0 auto;
}

.fd-testimonials .testimonial-item.style-3:hover {
    box-shadow: var(--fd-shadow);
}

.fd-testimonials .testimonial-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--fd-text);
    font-style: normal;
    position: relative;
    padding-left: 1.5rem;
}

.fd-testimonials .quote-mark {
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--fd-primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.fd-testimonials .reviewer-name {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

.fd-testimonials .rating-star i {
    color: var(--fd-gold) !important;
    font-size: 0.85rem;
}

.fd-testimonials .testimonial-btn-next,
.fd-testimonials .testimonial-btn-prev {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fd-white);
    border: 1px solid var(--fd-border);
    border-radius: 50%;
    box-shadow: var(--fd-shadow-sm);
    transition: var(--fd-transition);
    cursor: pointer;
}

.fd-testimonials .testimonial-btn-next:hover,
.fd-testimonials .testimonial-btn-prev:hover {
    background: var(--fd-primary);
    border-color: var(--fd-primary);
    color: var(--fd-white);
}

/* ── Download CTA ── */
.fd-download.bg-img.bg-3.h4-get-the-app {
    position: relative;
    padding: var(--fd-section-py) 0;
    min-height: 420px;
}

.fd-download .overlay {
    background: linear-gradient(135deg, rgba(15, 22, 57, 0.85) 0%, rgba(154, 2, 23, 0.75) 100%) !important;
}

.fd-download .h4-get-the-app-img img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.fd-download .get-the-app-content h2 {
    color: var(--fd-white);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.fd-download .get-the-app-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── Contact ── */
.fd-contact {
    background: var(--fd-white);
}

.fd-contact__grid {
    align-items: stretch;
}

.fd-contact-info {
    background: var(--fd-navy);
    border-radius: var(--fd-radius-xl);
    padding: 2.25rem;
    color: var(--fd-white);
    height: 100%;
    box-shadow: var(--fd-shadow-lg);
    position: relative;
    overflow: hidden;
}

.fd-contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fd-gradient);
}

.fd-contact-info__title {
    color: var(--fd-white) !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.fd-contact-info__desc {
    font-size: 0.925rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 1.75rem;
}

.fd-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fd-contact-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--fd-radius);
    transition: background var(--fd-transition), border-color var(--fd-transition);
}

.fd-contact-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

.fd-contact-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--fd-white);
    font-size: 1.1rem;
}

.fd-contact-card__body {
    flex: 1;
    min-width: 0;
}

.fd-contact-card__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.fd-contact-card__body p {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.fd-contact-card__body a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    word-break: break-word;
    transition: color var(--fd-transition);
}

.fd-contact-card__body a:hover {
    color: var(--fd-white);
}

.fd-contact-form-wrap {
    background: var(--fd-white);
    border-radius: var(--fd-radius-xl);
    padding: 2.25rem;
    height: 100%;
    box-shadow: var(--fd-shadow);
    border: 1px solid var(--fd-border);
}

.fd-contact-form__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fd-text);
    margin: 0 0 0.5rem;
}

.fd-contact-form__desc {
    font-size: 0.925rem;
    color: var(--fd-text-muted);
    line-height: 1.65;
    margin: 0 0 1.75rem;
}

.fd-contact-alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.fd-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fd-text);
    margin-bottom: 0.4rem;
}

.fd-contact-form .form-group {
    margin-bottom: 1.15rem;
}

.fd-contact-form-wrap .form-control,
.fd-contact-form .form-control {
    border: 1px solid var(--fd-border) !important;
    border-radius: 10px !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.925rem !important;
    box-shadow: none !important;
    transition: border-color var(--fd-transition), box-shadow var(--fd-transition), background var(--fd-transition);
    background: var(--fd-bg) !important;
    color: var(--fd-text) !important;
    height: auto !important;
}

.fd-contact-form-wrap .form-control:focus,
.fd-contact-form .form-control:focus {
    border-color: var(--fd-primary) !important;
    box-shadow: 0 0 0 3px rgba(154, 2, 23, 0.1) !important;
    background: var(--fd-white) !important;
    outline: none !important;
}

.fd-contact-form-wrap textarea.form-control,
.fd-contact-form textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.fd-captcha-group {
    margin-bottom: 1.5rem !important;
}

.fd-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.fd-captcha-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 46px;
    padding: 0.65rem 1.15rem;
    background: var(--fd-navy) !important;
    border: none !important;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--fd-white) !important;
    user-select: none;
    flex-shrink: 0;
}

.fd-captcha-row .form-control {
    flex: 1;
    min-width: 160px;
}

.fd-contact-form__actions {
    padding-top: 0.25rem;
}

.fd-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fd-primary) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.85rem 1.75rem !important;
    font-weight: 600 !important;
    font-size: 0.925rem !important;
    letter-spacing: 0.02em;
    transition: background var(--fd-transition), transform var(--fd-transition), box-shadow var(--fd-transition) !important;
    box-shadow: 0 4px 14px rgba(154, 2, 23, 0.28) !important;
    margin-top: 0 !important;
}

.fd-contact-submit:hover {
    background: var(--fd-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 2, 23, 0.35) !important;
}

/* Legacy contact overrides */
.fd-contact-info.iconic-contact-info h2,
.fd-contact-info h2 {
    color: var(--fd-white) !important;
}

.fd-contact-info .f-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Footer ── */
.fd-footer.footer.style-3 {
    background: var(--fd-navy) !important;
    padding: 0 !important;
    text-align: left !important;
    position: relative;
    overflow: hidden;
}

.fd-footer.footer.style-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fd-gradient);
}

.fd-footer.footer.style-3 > .container {
    max-width: 1140px !important;
    padding-top: 3.5rem;
    padding-bottom: 0;
}

.fd-footer .overlay.bg-img {
    display: none !important;
}

.fd-footer__top {
    padding-bottom: 2.75rem;
}

.fd-footer__col {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .fd-footer__col {
        margin-bottom: 0;
    }

    .fd-footer__col--brand,
    .fd-footer__col--nav,
    .fd-footer__col--cta {
        padding-right: 1.5rem;
    }
}

/* Override legacy style.css footer logo spacing */
.fd-footer .f-logo,
.fd-footer__logo-link {
    display: inline-block;
    margin-bottom: 0 !important;
}

.fd-footer__logo-link img {
    max-height: 44px;
    width: auto;
    opacity: 0.95;
}

.fd-footer__tagline {
    font-size: 0.925rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
    margin: 1.25rem 0 1rem;
    max-width: 300px;
}

.fd-footer__email {
    display: inline-block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--fd-transition);
}

.fd-footer__email:hover {
    color: var(--fd-white);
}

.fd-footer-nav__heading,
.fd-footer__cta .fd-footer-nav__heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.35rem;
}

.fd-footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
}

@media (min-width: 576px) {
    .fd-footer-nav__list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
        row-gap: 0.35rem;
    }
}

.fd-footer-nav__item {
    margin: 0;
}

.fd-footer-nav__link {
    display: inline-block;
    font-size: 0.925rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 0.3rem 0;
    line-height: 1.5;
    transition: color var(--fd-transition), transform var(--fd-transition);
}

.fd-footer-nav__link:hover,
.fd-footer-nav__link.is-active {
    color: var(--fd-white);
    transform: translateX(3px);
}

.fd-footer__cta-text {
    font-size: 0.925rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 1.25rem;
    max-width: 280px;
}

.fd-footer__store-buttons.apps-store-btn-wrpper,
.fd-footer__cta .apps-store-btn-wrpper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
}

.fd-footer__cta .apps-store-btn-wrpper img,
.fd-footer__store-buttons img {
    max-height: 42px;
    width: auto;
    transition: transform var(--fd-transition), opacity var(--fd-transition);
}

.fd-footer__cta .app-store-btn:hover img,
.fd-footer__store-buttons .app-store-btn:hover img {
    transform: translateY(-2px);
    opacity: 0.92;
}

.fd-footer__bottom {
    padding: 1.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.fd-footer__copyright,
.fd-footer .copyright {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
    margin: 0 !important;
    text-align: center !important;
}

/* Reset legacy style.css footer constraints */
.fd-footer .copyright-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    position: static !important;
}

.fd-footer .f-logo img {
    margin-bottom: 0 !important;
}

/* ── Scroll to top ── */
.scroll-top {
    width: 44px;
    height: 44px;
    border-radius: 12px !important;
    background: var(--fd-primary) !important;
    box-shadow: var(--fd-shadow);
    transition: transform var(--fd-transition), background var(--fd-transition) !important;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--fd-primary-dark) !important;
}

/* ── Section titles (global) ── */
.s-title h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.s-title h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--fd-gradient);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* Row spacing helpers (Bootstrap 4 compat) */
.fd-feature-grid > [class*="col-"] {
    margin-bottom: 0;
}

.fd-contact .row > [class*="col-"]:not(:last-child) {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .fd-contact .row > [class*="col-"] {
        margin-bottom: 0;
    }
}

@media (max-width: 991px) {
    :root {
        --fd-section-py: 3.5rem;
    }

    .fd-hero.home-4-banner {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 48px;
        text-align: center;
    }

    .fd-hero .banner-content .sub-title {
        margin-left: auto;
        margin-right: auto;
    }

    .fd-hero .btn-wrapper {
        justify-content: center;
    }

    .fd-hero .banner-img {
        margin-top: 2.5rem;
        text-align: center;
    }

    #main-nav-collapse {
        background: var(--fd-navy);
        padding: 1rem;
        margin-top: 0.75rem;
        border-radius: var(--fd-radius);
        box-shadow: var(--fd-shadow);
    }

    #main-nav-collapse .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.65rem 1rem !important;
    }

    #main-nav-collapse .nav-link:hover,
    #main-nav-collapse .nav-link.active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--fd-white) !important;
    }

    .fd-footer.footer.style-3 > .container {
        padding-top: 2.75rem;
    }

    .fd-footer__top {
        padding-bottom: 2rem;
    }

    .fd-footer__col--brand,
    .fd-footer__col--cta {
        text-align: center;
    }

    .fd-footer__tagline,
    .fd-footer__cta-text {
        margin-left: auto;
        margin-right: auto;
    }

    .fd-footer__store-buttons.apps-store-btn-wrpper,
    .fd-footer__cta .apps-store-btn-wrpper {
        justify-content: center;
    }

    .fd-footer-nav__list {
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 1rem;
        max-width: 320px;
        margin: 0 auto;
    }

    .fd-footer__col--nav {
        text-align: center;
    }

    .fd-challenge .award-box {
        padding: 2rem 1.25rem;
    }

    .fd-prize-card {
        margin-bottom: 1rem;
    }

    .fd-prize-card--featured {
        transform: none;
    }

    .fd-contact-info,
    .fd-contact-form-wrap {
        padding: 1.75rem;
    }

    .fd-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .fd-captcha-box {
        width: 100%;
        text-align: center;
    }

    .fd-contact-submit {
        width: 100%;
        justify-content: center;
    }

    .fd-features .feature-image-wrap {
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    :root {
        --fd-section-py: 2.75rem;
    }

    .fd-hero .store-btn {
        width: 100%;
        justify-content: center;
    }
}
