/* Font Faces */

/* Aktiv Grotesk - Regular (400) */
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('assets/fonts/AktivGrotesk_A_Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Aktiv Grotesk - Medium (500) */
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('assets/fonts/AktivGrotesk_A_Md.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Aktiv Grotesk - Bold (700) */
@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('assets/fonts/AktivGrotesk_A_Bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton';
    src: url('assets/fonts/DentonText-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* DentonCondensed-Medium */
@font-face {
    font-family: 'Denton Condensed';
    src: url('assets/fonts/DentonCondensed-Medium.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton Condensed';
    src: url('assets/fonts/DentonCondensed-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton';
    src: url('assets/fonts/DentonText-ThinItalic.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Denton Condensed - Light (300) */
@font-face {
    font-family: 'Denton Condensed';
    src: url('assets/fonts/DentonCondensed-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Denton Condensed - Light Italic (300) */
@font-face {
    font-family: 'Denton Condensed';
    src: url('assets/fonts/DentonCondensed-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Denton Condensed - Regular (400) */
@font-face {
    font-family: 'Denton Condensed';
    src: url('assets/fonts/DentonCondensed-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton Condensed';
    src: url('assets/fonts/DentonCondensed-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Aktiv Grotesk';
    src: url('assets/fonts/AktivGrotesk_A_Th.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Global Bible Month Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1A1A1A;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 30px max(20px, env(safe-area-inset-left)) 270px max(20px, env(safe-area-inset-right));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
            linear-gradient(180deg, rgba(0, 0, 0, 0.3) 26.92%, rgba(0, 0, 0, 0.15) 37.02%, rgba(255, 255, 255, 0) 59.13%),
            linear-gradient(177.63deg, rgba(0, 0, 0, 0) 62.88%, #000000 91.72%),
            url(assets/hero-bg.jpg);
    background-position: center;
    background-size: cover;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero.success-active .hero-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero-logo {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 2px;
}
/* Add dark overlay to form container on success */
.floating-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.80);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.floating-form-container.success-showing::before {
    opacity: 1;
}

/* Make sure form content stays above overlay */
.floating-form {
    position: relative;
    z-index: 2;
}

/* Remove the hero darkening - we don't want this */
.hero.success-active .hero-content {
    opacity: 1; /* Keep it visible */
    pointer-events: auto;
}
/* "Celebrate" */
.hero-content h1 .celebrate {
    font-family: 'Aktiv Grotesk', sans-serif;
    font-weight: 500;  /* Medium */
    font-style: normal;
    font-size: 43px;
    line-height: 100%;
    letter-spacing: -0.43px;  /* -1% of 43px */
}

.hero-content h1 .global {
    font-family: 'Denton Condensed';
    font-weight: 100;  /* Thin weight */
    font-style: italic;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: -0.45px;
}

.hero-content .this {
    font-family: 'Aktiv Grotesk', sans-serif;
    font-weight: 100;  
    font-style: normal; 
    font-size: 18px;
    line-height: 140%;
    letter-spacing: -0.18px;
}

.hero-content .november {
    font-family: 'Aktiv Grotesk';
    font-weight: 400;  
    font-style: normal;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: -0.18px;
}

/* Floating Form - Initially Absolute, then Sticky on scroll */
.floating-form-container {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: absolute;
    bottom: calc(40px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 12px;
    background: linear-gradient(147.73deg, rgba(35, 33, 33, 0.5) 19.35%, rgba(247, 243, 242, 0.1) 94.27%);
    margin: 0 max(15px, env(safe-area-inset-left)) 0 max(15px, env(safe-area-inset-right));
    transition: all 0.3s ease;
}

/* When scrolled past hero, make it sticky */
.floating-form-container.sticky {
    position: fixed;
    bottom: calc(40px + env(safe-area-inset-bottom));
    top: auto;
    left: 0;
    right: 0;
    margin: 0 max(15px, env(safe-area-inset-left)) 0 max(15px, env(safe-area-inset-right));
}

.floating-form-container .signup {
    font-family: Aktiv Grotesk;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 1);
    padding: 0 0 16px 0;
}

.signup-text {
    display: flex;
    justify-content: center;
}

.floating-form-container.hidden {
    transform: translateY(100%);
}

.floating-form {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.callenge-form-group {
    width: 300px;
    margin: 0 auto;
}

.floating-form .form-group {
    margin: 0;
    position: relative;
}

.floating-form input[type="email"] {
    width: 100%;
    padding: 18px 18px 18px 50px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border 0.3s ease;
}

.floating-form input[type="email"]::placeholder {
    font-family: 'Aktiv Grotesk', sans-serif;
    font-weight: 400; 
    font-style: normal;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.32px; 
    color: #999;  
}

.floating-form input[type="email"].error {
    border: 2px solid #FF6B6B;
    border-radius: 8px;
}

.email-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: auto;
    z-index: 1;
}

.error-message {
    display: none;
    color: #FF6B6B;
    font-family: 'Aktiv Grotesk';
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    margin: 2px 0 12px 0;
    padding: 12px 16px;
    line-height: 1.4;
    background: rgba(255, 245, 245, 1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-message.show {
    display: block;
}

.floating-form .submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: #FF6B6B;
    color: white;
    font-family: Aktiv Grotesk;
    font-weight: 500;  
    font-style: normal;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: -0.22px; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.floating-form .submit-btn .the-challenge {
    font-family: Denton;
    font-weight: 300; 
    font-style: italic;
    font-size: 22px;
    line-height: 22px;
    letter-spacing: 0;
}

.floating-form .submit-btn:hover {
    background: #FF5252;
    transform: translateY(-2px);
}

.floating-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clear-email {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: gray;
    display: none;
    z-index: 2;
}

.clear-email:hover {
    color: #666;
}

.clear-email svg {
    width: 20px;
    height: 20px;
}

/* Form State Management */
#formState {
    display: block;
    width: 100%;
}

#formState.hidden {
    display: none;
}

/* Success State */
#successState {
    display: none;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

#successState.show {
    display: block;
}

.success-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

.success-title {
    font-family: Aktiv Grotesk;
    font-style: italic;
    font-size: 40px;
    line-height: 110%;
    letter-spacing: -1%;
    text-align: center;
    color: white;
}

.success-subtitle {
    font-family: Aktiv Grotesk;
    font-style: Medium;
    font-size: 25px;
    line-height: 110%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.success-message {
    font-family: 'Aktiv Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.invite-btn {
    width: 100%;
    max-width: 275px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    background: #FF6B6B;
    color: white;
    font-family: 'Aktiv Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.invite-btn:hover {
    background: #FF5252;
    transform: translateY(-2px);
}

.invite-btn .a-friend {
    font-style: italic;
    font-weight: 400;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Aktiv Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    padding: 12px;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 0.7;
}

.invite-and-close {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge Section */
.badge-section {
    background: url('assets/shape.png');
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
}

.badge-section .earn {
    font-family: 'Aktiv Grotesk';
    font-weight: 400;
    font-size: 20px;
    line-height: 110%;
    letter-spacing: -1%;
    text-align: center;
}

.badge-section .global {
    font-family: Denton Condensed;
    font-weight: 200;
    font-style: italic;
    font-size: 34px;
    line-height: 110%;
    text-align: center;
}

.badge-section .badge-desc{
    margin-top: 20px;
}

.badge-section .badge-description-1,
.badge-section .badge-description-2 {
    font-family: 'Aktiv Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px; 
    line-height: 140%;
    letter-spacing: -0.32px; 
    text-align: center;
    color: #1A1A1A;
    max-width: 600px; 
    margin-top: 30px;
}

.badge-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.badge-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
}

.phone-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Impact Section */
.impact-section {
    background: #2C2C2C;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.impact-icon {
    width: 160px;
    height: 81px;
    margin: 0 auto 20px;
}

.impact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.impact-section .make {
    font-family: Aktiv Grotesk;
    font-weight: 400;
    font-size: 38px;
    line-height: 110%;
    letter-spacing: -1%;
    text-align: center;
}

.profile-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.profile-avatars .avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #2C2C2C;
    object-fit: cover;
    margin: 0 -10px;
}

.impact-section h2 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}

.impact-section h2 .as-community {
    font-family: Denton Condensed;
    font-weight: 100;
    font-style: italic;
    font-size: 38px;
    text-align: center;
}

.impact-section .lets {
    font-family: Aktiv Grotesk;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -2%;
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 275px;
    height: 56px;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1;
    background-color: #1A1A1A;
    font-family: 'Aktiv Grotesk';
    font-weight: 500;
}

.share-btn:hover {
    background: white;
    color: #2C2C2C;
}

.share-btn .with-friends {
    font-family: Denton;
    font-style: italic;
    font-weight: 100;
    margin-left: 4px;
    font-size: 20px;
}

/* Community Section - Continuous Scroll Carousel */
.community-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.community-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.community-section h2 .expand {
    font-family: 'Aktiv Grotesk';
    font-weight: 400;
    font-size: 32px;
    line-height: 110%;
}

.community-section h2 .the-global-movement {
    font-family: 'Denton';
    font-weight: 100;
    font-style: italic;
    font-size: 30px;
    line-height: 110%;
}

.community-section .community-desc {
    font-family: 'Aktiv Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    padding: 0 20px;
    max-width: 700px;
    margin: 0 auto 60px;
}

.cities-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.cities-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cities-track-1 {
    animation: scroll-left 60s linear infinite;
}

.cities-track-2 {
    animation: scroll-right 60s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.city-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.city-name {
    font-family: 'Denton Condensed';
    font-weight: 100;
    font-size: 28px;
    line-height: 1;
    color: #1A1A1A;
    text-align: right;
    white-space: nowrap;
}

.city-item img {
    width: 75px;
    height: 75px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    filter: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
    background-color: transparent;
}

.city-item img.is-placeholder {
    background-color: #f3f4f6;
    filter: blur(6px);
    opacity: 0.65;
}

/* Footer */
.footer {
    background: #1A1A1A;
    color: white;
    padding: 80px 20px 40px;
    text-align: center;
}

.tagline {
    padding-bottom: 30px;
}

.footer-tagline {
    font-family: 'Denton Condensed';
    font-weight: 200;
    font-size: 30px;
    line-height: 100%;
    text-align: center;
}

.footer-tagline .gods-word {
    font-family: 'Denton Condensed';
    font-weight: 100;
    font-size: 30px;
    line-height: 100%;
    text-align: center;
}

.footer-tagline .everyone,
.footer-tagline .everywhere,
.footer-tagline .everyday {
    font-family: 'Denton Condensed';
    font-weight: 100;
    font-style: italic;
    font-weight: 100;
}

.footer-logo {
    width: 200px;
    margin: 0 auto 50px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.social-links a {
    color: white;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-links {
    margin-bottom: 40px;
    width: 100%;
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 15px 0;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 40px;
    width: 100%;
}

.footer-bottom p {
    margin: 10px 0;
}

.ministry-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure LIFE.CHURCH footer link is white (not default blue/purple) */
.life-church-link,
.life-church-link:visited {
    color: #ffffff;
    font-weight: 700; /* bold LIFE.CHURCH */
    text-decoration: none;
}

.life-church-link:hover,
.life-church-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.youversion-brand {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.youversion-brand img {
    max-width: 300px;
    height: auto;
    width: 100%;
    object-fit: contain;
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    .hero {
        padding: 60px 80px 80px 80px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        min-height: 100dvh;
    }

    .hero-logo {
        align-self: flex-start;
        margin-bottom: 60px;
        font-size: 2rem;
        position: relative;
        z-index: 1;
    }

    .hero-content {
        position: absolute;
        left: 80px;
        top: 450px;
        transform: none;
        text-align: left;
        max-width: 550px;
        z-index: 1;
    }

    .hero-content h1 .celebrate {
        font-size: 70px;
    }

    .hero-content h1 .global {
        font-size: 75px;
    }

    .hero-content .this {
        font-size: 20px;
        display: block;
        margin-top: 30px;
    }

    .hero-content .november {
        font-size: 20px;
    }

    .floating-form-container {
        position: absolute;
        right: 80px;
        top: 450px;
        transform: none;
        bottom: auto;
        left: auto;
        margin: 0;
        max-width: 480px;
        width: 100%;
        background: linear-gradient(147.73deg, rgba(35, 33, 33, 0.75) 19.35%, rgba(247, 243, 242, 0.2) 94.27%);
        backdrop-filter: blur(15px);
        padding: 40px 32px;
        z-index: 2;
    }

    /* Desktop doesn't need sticky behavior - form stays in hero */
    .floating-form-container.sticky {
        position: absolute;
        /* Keep desktop positioning the same */
    }

    .floating-form-container .signup {
        font-size: 24px;
        font-family: Aktiv Grotesk;
        padding: 0 0 20px 0;
    }

    .callenge-form-group {
        padding: 0;
        width: 370px;
    }

    .floating-form {
        max-width: 100%;
    }

    .floating-form input[type="email"] {
        padding: 20px 20px 20px 55px;
        font-size: 1.1rem;
    }

    .floating-form .submit-btn {
        padding: 20px;
        font-size: 1.4rem;
    }

    .success-title {
        font-size: 38px;
    }

    .success-subtitle {
        font-size: 18px;
    }

    .success-message {
        font-size: 16px;
    }

    .invite-btn {
        font-size: 20px;
        padding: 18px 40px;
    }

    /* BADGE SECTION - FIXED FOR DESKTOP */
    .badge-section {
        padding: 120px 80px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 80px;
        text-align: left;
    }

    .badge-content {
        max-width: 550px;
        flex: 1;
        text-align: center;
        padding-bottom: 0;
        margin: 0;
    }

    .badge-icon {
        width: 150px;
        height: 150px;
    }

    .badge-section .earn {
        font-size: 30px;
        text-align: left;
    }

    .badge-section .global {
        font-size: 55px;
        text-align: left;
    }

    .badge-section .badge-description-1,
    .badge-section .badge-description-2 {
        font-size: 18px;
        text-align: left;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .phone-container {
        max-width: 450px;
        margin: 0;
        flex-shrink: 0;
    }

    /* IMPACT SECTION - FIXED LINE SPACING */
    .impact-section {
        padding: 120px 60px;
    }

    .impact-icon {
        width: 200px;
        height: 100px;
        margin-bottom: 40px;
    }

    .impact-section h2 {
        font-size: 4.5rem;
        line-height: 1.1;
        margin-bottom: 40px;
    }

    .impact-section .make {
        font-size: 60px;
        line-height: 1.1;
        display: inline;
    }

    /* Force "Make an eternal impact" on one line, then "as a community!" on second line */
    .impact-section h2 br {
        display: inline;
    }

    .impact-section h2 .as-community {
        font-size: 60px;
        line-height: 1.1;
        display: block;
        margin-top: 0;
    }

    .impact-section h2 .as-community br {
        display: none;
    }

    .profile-avatars {
        margin-bottom: 50px;
    }

    .profile-avatars .avatar-img {
        width: 90px;
        height: 90px;
        margin: 0 -15px;
    }

    .impact-section .lets {
        font-size: 18px;
        max-width: 700px;
        margin-bottom: 40px;
    }

    /* COMMUNITY SECTION - CAROUSEL DESKTOP */
    .community-section {
        padding: 120px 80px;
    }

    .community-section h2 {
        font-size: 4rem;
        margin-bottom: 30px;
        line-height: 1.2;
    }

    .community-section h2 .expand {
        font-size: 60px;
        line-height: 1.1;
    }

    .community-section h2 .the-global-movement {
        font-size: 60px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .community-section .community-desc {
        font-size: 18px;
        max-width: 850px;
        margin-bottom: 80px;
    }

    .carousel-wrapper {
        gap: 60px;
    }

    .cities-track {
        gap: 20px;
    }

    .city-name {
        font-size: 32px;
    }

    .city-item {
        gap: 15px;
    }

    .city-item img {
        width: 85px;
        height: 85px;
        border-radius: 18px;
    }

    /* FOOTER - FIXED LAYOUT */
    .footer {
        padding: 100px 80px 50px;
    }

    .footer .container {
        /* Switch to grid so logo and socials can share a row */
        display: grid;
        grid-template-columns: 1fr 1fr; /* equal columns to avoid auto sizing issues */
        grid-template-areas:
            'tagline tagline'
            'logo social'
            'links links'
            'bottom bottom'
            'brand brand';
        row-gap: 30px;
        max-width: 100%;
        width: 100%;
    }

    .tagline {
        padding-bottom: 40px;
        text-align: left;
        grid-area: tagline;
    }

    .footer-tagline {
        font-size: 50px;
        line-height: 1.3;
        text-align: left;
    }

    .footer-tagline br {
        display: none;
    }

    /* Create wrapper for logo and social links */
    .footer-logo {
        width: 340px;
        margin: 0 0 60px 0;
        grid-area: logo;
    }

    .social-links {
        gap: 40px;
        margin-bottom: 60px;
        position: static; /* keep in normal flow to avoid overlap */
        right: auto;
        margin-top: 0;
        grid-area: social;
        justify-content: center;
        align-items: center;
    }

    .social-links svg {
        width: 36px;
        height: 36px;
    }

    .footer-links {
        display: flex;
        justify-content: space-between;
        margin-bottom: 40px;
        grid-area: links;
        gap: 20px;
        width: 100%;
        grid-column: 1 / -1;
    }

    .footer-links a {
        display: inline-block;
        margin: 0;
        font-size: 1rem;
        flex: 0 1 auto;
    }

    .footer-bottom {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        grid-area: bottom;
        width: 100%;
        grid-column: 1 / -1;
    }

    .footer-bottom p {
        margin: 0;
    }

    .ministry-text {
        justify-content: flex-start;
        margin: 0;
    }

    .youversion-brand {
        margin-top: 60px;
        text-align: left;
        grid-area: brand;
    }

    .youversion-brand img {
        max-width: 350px;
    }

    .footer-tagline .gods-word {
        font-family: 'Denton Condensed';
        font-weight: 100;
        font-size: 80px;
        line-height: 100%;
        text-align: center;
    }

    .footer-tagline .everyone,
    .footer-tagline .everywhere,
    .footer-tagline .everyday {
        font-family: 'Denton Condensed';
        font-weight: 100;
        font-size: 80px;
        font-style: italic;
        font-weight: 100;
    }
    .youversion-brand {
        margin-top: 60px;
        text-align: center;
    }

    .youversion-brand img {
        height: auto;
        max-width: 1000px;
    }
}

/* Tablet (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .badge-section {
        padding: 80px 40px;
        text-align: center;
        display: block;
    }

    .badge-content {
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .badge-icon {
        width: 130px;
        height: 130px;
        margin: 0 auto 30px;
    }

    .badge-section .earn {
        font-size: 26px;
        text-align: center;
    }

    .badge-section .global {
        font-size: 45px;
        text-align: center;
    }

    .badge-section .badge-description-1,
    .badge-section .badge-description-2 {
        font-size: 17px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .phone-container {
        max-width: 400px;
        margin: 40px auto 0;
    }

    /* Impact Section Tablet */
    .impact-section {
        padding: 100px 50px;
        position: relative;
    }

    .impact-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(240, 76, 89, 0.17);
        pointer-events: none;
        z-index: 0;
    }

    .impact-section > * {
        position: relative;
        z-index: 1;
    }

    .impact-section h2 {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 35px;
    }

    .impact-section .make {
        font-size: 48px;
        line-height: 1.2;
    }

    .impact-section h2 .as-community {
        font-size: 48px;
        line-height: 1.2;
    }

    .profile-avatars .avatar-img {
        width: 75px;
        height: 75px;
    }

    /* Community Section Tablet */
    .community-section {
        padding: 80px 40px;
    }

    .community-section h2 {
        font-size: 3rem;
        margin-bottom: 25px;
    }

    .community-section h2 .expand {
        font-size: 42px;
    }

    .community-section h2 .the-global-movement {
        font-size: 42px;
    }

    .community-section .community-desc {
        font-size: 17px;
        margin-bottom: 60px;
    }

    .cities-track {
        gap: 20px;
    }

    .city-name {
        font-size: 24px;
    }

    .city-item img {
        width: 70px;
        height: 70px;
    }

    /* Footer Tablet */
    .footer {
        padding: 80px 40px 40px;
    }

    .footer-tagline {
        font-size: 38px;
    }

    .footer-logo {
        width: 220px;
    }

    .social-links {
        gap: 30px;
    }

    .social-links svg {
        width: 32px;
        height: 32px;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .hero-content {
        text-align: left;
        margin-bottom: 30px;
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .hero-content h1 .celebrate {
        font-size: 2.5rem;
    }

    .badge-section {
       padding: 60px 40px;
       text-align: center;
       display: block;
    }

    .badge-content {
        text-align: center;
    }

    .badge-icon {
        margin: 0 auto 25px;
    }

    .badge-section .earn,
    .badge-section .global {
        text-align: center;
    }

    .badge-section .badge-description-1,
    .badge-section .badge-description-2 {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .phone-container {
        max-width: 350px;
        margin: 30px auto 0;
    }

    .phone-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .impact-section {
        background: rgb(24, 18, 18);
        color: white;
        padding: 80px 40px;
        text-align: center;
        position: relative;
    }

    .impact-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(240, 76, 89, 0.17);
        pointer-events: none;
        z-index: 0;
    }

    .impact-section > * {
        position: relative;
        z-index: 1;
    }

    .impact-section h2 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .impact-section .make {
        line-height: 1.2;
    }

    .impact-section h2 .as-community {
        line-height: 1.2;
    }

    .profile-avatars .avatar-img {
        width: 60px;
        height: 60px;
    }

    .community-section {
        padding: 60px 20px;
    }

    .community-section h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .community-section h2 .expand,
    .community-section h2 .the-global-movement {
        font-size: 28px;
    }

    .community-section .community-desc {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .carousel-wrapper {
        gap: 30px;
    }

    .cities-track {
        gap: 15px;
    }

    .city-name {
        font-size: 20px;
    }

    .city-item img {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .footer {
        padding: 60px 20px 30px;
        text-align: center;
    }

    .footer-tagline {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.3;
    }

    .tagline {
        text-align: center;
    }

    .footer .container {
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto 50px;
    }

    .social-links {
        gap: 20px;
        justify-content: center;
    }

    .social-links svg {
        width: 28px;
        height: 28px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .ministry-text {
        justify-content: center;
    }

    .youversion-brand {
        align-self: center;
    }

    .floating-form .submit-btn {
        font-size: 1.1rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .hero-logo {
        font-size: 2rem;
    }

    .hero-content h1 .celebrate {
        font-size: 2rem;
    }

    .badge-icon {
        width: 100px;
        height: 100px;
    }

    .impact-section h2 {
        font-size: 2rem;
    }

    .share-btn {
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-form-container {
        padding: 24px 12px;
        /* Keep the form clear of the iOS home indicator */
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    /* Community Section Mobile */
    .carousel-wrapper {
        gap: 25px;
    }

    .cities-track {
        gap: 12px;
    }

    .city-item {
        gap: 10px;
    }

    .city-name {
        font-size: 18px;
    }

    .city-item img {
        width: 55px;
        height: 55px;
        border-radius: 12px;
    }
}



.badge-section .earn {
    background: 
        radial-gradient(circle at 22% 50%, rgba(180, 130, 80, 0.5), transparent 35%),
        radial-gradient(circle at 62% 50%, rgba(180, 130, 80, 0.4), transparent 30%),
        #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-section .global {
    background: 
        radial-gradient(ellipse 200px 100px at 12% 30%, #A67C52 0%, rgba(139, 111, 71, 0.5) 15%, transparent 35%),
        radial-gradient(ellipse 300px 150px at 15% 70%, #8B4F47 0%, #A0664F 25%, transparent 50%),
        #000000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.impact-section {
    background: rgb(18, 18, 18);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 76, 89, 0.17);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.impact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 40% 50% at 10% 15%, 
        rgba(240, 76, 89, 0.15) 0%,
        rgba(240, 76, 89, 0.08) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.impact-section > * {
    position: relative;
    z-index: 1;
}
