/* ========================================
1. RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
2. NAVIGATION
======================================== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

.nav-auth {
    display: flex;
    gap: 12px;
}

/* Hamburger Button Base */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Single Sign In Button */
.btn-signin {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-signin:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

/* ========================================
3. HERO & SECTIONS
======================================== */
.hero {
    padding: 140px 0 100px;
    background: #fff;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 21px;
    line-height: 1.5;
    color: #86868b;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse>* {
    direction: ltr;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

.section-subtitle {
    font-size: 19px;
    line-height: 1.5;
    color: #86868b;
    margin-bottom: 32px;
    max-width: 480px;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.section-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #86868b;
    font-style: italic;
}

/* Section Specific Backgrounds */
.testimonies,
.testimonies-section,
.nsppdian-section {
    background: #000;
    color: #fff;
    padding: 120px 0;
}

.testimonies-section .section-title,
.nsppdian-section .section-title {
    color: #ffffff;
}

.testimonies-section .section-subtitle,
.nsppdian-section .section-subtitle {
    color: #86868b;
}

.prayers,
.sanctuary-section {
    background: #f5f5f7;
    padding: 120px 0;
}

.sanctuary-story {
    font-size: 16px;
    line-height: 1.8;
    color: #424245;
    margin-bottom: 20px;
}

.sanctuary-note {
    font-size: 13px;
    color: #86868b;
    font-style: italic;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #d2d2d7;
}

.search-app {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.search-app .section-title {
    color: white;
    margin-bottom: 16px;
}

.search-app .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
4. BUTTONS
======================================== */
.btn-primary {
    background: #0071e3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: #2997ff;
    border: 1px solid #2997ff;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #2997ff;
    color: white;
}

.btn-primary-large {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary-large {
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary-large:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.btn-support {
    display: inline-block;
    background: #ffdd00;
    color: #1d1d1f;
    padding: 10px 24px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
    background: #ffe600;
}

/* ========================================
5. FOOTER & LEGAL
======================================== */
.footer {
    background: #1d1d1f;
    color: #86868b;
    padding: 50px 0 40px;
    text-align: center;
    font-size: 12px;
}

.footer-note {
    max-width: 600px;
    margin: 12px auto 20px;
    line-height: 1.6;
    color: #86868b;
    font-size: 13px;
}

.disclaimer-content {
    font-size: 14px;
    line-height: 1.7;
    color: #424245;
}

/* ========================================
6. MODALS (Video & Sign In)
======================================== */
/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    margin: 5% auto;
    padding: 40px 30px;
    width: 90%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 20px;
    position: relative;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #86868b;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #fff;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-desc {
    text-align: center;
    color: #86868b;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.modal-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 25px 0 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover:not(:disabled) {
    background: #0077ed;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.intro-btn {
    background: #ff9500;
}

.intro-btn:hover:not(:disabled) {
    background: #ffaa33;
}

.video-counter {
    color: #86868b;
    font-size: 13px;
    font-weight: 500;
    margin-left: 10px;
}

/* Sign In Modal */
.signin-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.signin-modal-content {
    background: #ffffff;
    margin: 8vh auto;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.signin-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.signin-modal-content h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    color: #1d1d1f;
}

.modal-subtitle {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.modal-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.m-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.free-card {
    border-color: #0071e3;
    background: #f0f7ff;
}

.support-card {
    border-color: #d4af37;
    background: #fffdf5;
}

.m-card h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1d1d1f;
}

.price {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #0071e3;
}

.support-card .price {
    color: #b8860b;
}

.benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
    font-size: 12px;
    color: #444;
}

.benefits li {
    margin-bottom: 6px;
}

.m-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: transform 0.2s;
}

.btn-free {
    background: #0071e3;
    color: white;
}

.btn-support {
    background: #d4af37;
    color: white;
}

.m-btn:hover {
    transform: scale(1.02);
}

.modal-footer {
    margin: 15px 0 0 0;
    font-size: 11px;
    color: #888;
}

/* ========================================
7. GENERAL RESPONSIVE DESIGN
======================================== */
@media (max-width: 1919px) and (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 42px;
    }

    .section-content {
        gap: 60px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 25px;
    }

    .hero .container,
    .section-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-content.reverse {
        direction: ltr;
    }

    .hero-title,
    .section-title {
        font-size: 40px;
        text-align: center;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 17px;
        text-align: center;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .testimonies,
    .prayers,
    .nsppdian-section,
    .testimonies-section,
    .sanctuary-section {
        padding: 100px 0;
    }
}

@media (max-width: 767px) and (min-width: 600px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }

    .nav-brand {
        font-size: 18px;
    }
}

@media (max-width: 599px) and (min-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .section-image img {
        border-radius: 16px;
    }
}

@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-subtitle,
    .section-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-large {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .testimonies,
    .prayers,
    .nsppdian-section,
    .testimonies-section,
    .sanctuary-section,
    .search-app {
        padding: 70px 0;
    }

    .section-content {
        gap: 30px;
    }

    .nav-brand {
        font-size: 16px;
    }

    .image-caption {
        font-size: 12px;
    }

    .disclaimer-content {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 25px 15px;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    .hero-logo {
        max-width: 140px;
        margin: 0 auto 20px;
    }

    .modal-navigation {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .video-counter {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        margin-left: 0;
    }

    .search-app-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
    }

    .signin-modal-content {
        margin: 15vh auto;
        padding: 20px 15px;
        max-width: 90%;
    }

    .modal-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .m-card {
        padding: 12px;
    }

    .benefits {
        font-size: 11px;
        margin-bottom: 10px;
    }
}

@media (hover: none) and (pointer: coarse) {

    button,
    .btn-primary,
    .btn-secondary,
    a {
        min-height: 44px;
    }

    .nav-link {
        padding: 8px 12px;
    }
}

/* ========================================
8. UNIFIED MOBILE MENU LOGIC (NO CONFLICTS)
======================================== */

/* Base Mobile Menu Rules (Portrait & Default Mobile) */
@media (max-width: 991px) {
    .hamburger-btn {
        display: block !important;
        z-index: 1002;
    }

    .nav-menu {
        display: none !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 50px !important;
        right: 0 !important;
        left: auto !important;
        width: 24% !important;
        /* 40% smaller than original */
        min-width: 150px !important;
        background-color: #000 !important;
        padding: 5px 0 !important;
        z-index: 999 !important;
        border-left: 1px solid #333 !important;
        border-bottom: 1px solid #333 !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        text-align: center;
        padding: 8px 10px !important;
        border-bottom: 1px solid #222 !important;
        margin: 0 !important;
    }

    .nav-menu .nav-link {
        font-size: 14px !important;
        color: #fff !important;
        display: block !important;
    }

    /* Golden "Our Story" Link */
    .nav-our-story {
        color: #d4af37 !important;
        font-weight: 600 !important;
        text-decoration: underline;
    }

    .nav-our-story:hover {
        color: #f4d03f !important;
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    }

    .nav-auth {
        display: none !important;
    }
}

/* Landscape Mode (iPad & Large Phones) - Show Horizontal Menu */
@media (max-width: 991px) and (orientation: landscape) and (min-height: 400px) {
    .hamburger-btn {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        background-color: transparent !important;
        padding: 0 !important;
        border: none !important;
        gap: 15px !important;
    }

    .nav-menu li {
        padding: 0 !important;
        border: none !important;
    }

    .nav-menu .nav-link {
        font-size: 13px !important;
        padding: 5px 8px !important;
    }

    .nav-auth {
        display: flex !important;
    }

    .navbar {
        padding: 10px 0 !important;
    }

    .nav-brand {
        font-size: 18px !important;
    }
}

/* Extra Small Landscape Phones (iPhone SE) */
@media (max-width: 736px) and (orientation: landscape) and (max-height: 414px) {
    .nav-menu {
        gap: 10px !important;
    }

    .nav-menu .nav-link {
        font-size: 12px !important;
        padding: 3px 6px !important;
    }

    .nav-brand {
        font-size: 16px !important;
    }

    .btn-signin {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}

/* iPhone SE Portrait - Extra Tight Padding */
@media (max-width: 400px) {
    .nav-menu li {
        padding: 6px 0 !important;
    }
}

/* iPhone SE Landscape - Very Tight Padding */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {
    .nav-menu {
        top: 45px !important;
        padding: 2px 0 !important;
    }

    .nav-menu li {
        padding: 4px 0 !important;
    }

    .nav-menu .nav-link {
        font-size: 13px !important;
    }
}

/* ========================================
FINAL FIXES: DOUBLE SIGN IN & GOLDEN TEXT
======================================== */

/* 1. Hide the "mobile-only" Sign In link by default (Fixes Desktop Double Sign In) */
.mobile-only-signin {
    display: none !important;
}

/* Show it ONLY when the mobile portrait dropdown is active */
@media (max-width: 991px) and (orientation: portrait) {
    .mobile-only-signin {
        display: block !important;
    }
}

/* 2. Force "Our Story" to be Golden everywhere (Desktop & Mobile) */
.nav-our-story {
    color: #d4af37 !important;
    /* Metallic Gold */
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.nav-our-story:hover {
    color: #f4d03f !important;
    /* Brighter Gold on hover */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6) !important;
}

/* ========================================
IPHONE SE LANDSCAPE - SINGLE ROW LAYOUT
======================================== */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {

    /* Force single column layout for hero section */
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center !important;
        padding: 20px 15px !important;
    }

    .hero-content {
        text-align: center !important;
    }

    .hero-logo {
        max-width: 100px !important;
        /* Smaller logo for SE landscape */
        margin: 0 auto 15px !important;
    }

    .hero-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .hero-subtitle {
        font-size: 12px !important;
        margin-bottom: 15px !important;
        max-width: 100% !important;
    }

    .btn-primary {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* Hide the side image to save space */
    .hero-image {
        display: none !important;
    }

    /* Also fix section layouts to single column */
    .section-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .section-title {
        font-size: 22px !important;
        text-align: center !important;
    }

    .section-subtitle {
        font-size: 12px !important;
        text-align: center !important;
    }
}

/* ========================================
CORRECT LOGIC: LANDSCAPE = 2 COLUMNS, PORTRAIT = 1 COLUMN
======================================== */

/* Force 2 columns in Landscape mode for tablets and phones */
@media (max-width: 991px) and (orientation: landscape) {

    .hero .container,
    .section-content {
        grid-template-columns: 1fr 1fr !important;
        /* Side-by-side */
        gap: 20px !important;
        /* Smaller gap to fit landscape */
    }

    /* Reset text alignment to left for landscape */
    .hero-title,
    .section-title {
        text-align: left !important;
        font-size: 28px !important;
    }

    .hero-subtitle,
    .section-subtitle {
        text-align: left !important;
        font-size: 14px !important;
    }

    /* Keep reverse sections working correctly */
    .section-content.reverse {
        direction: rtl !important;
    }

    .section-content.reverse>* {
        direction: ltr !important;
    }
}

/* Ensure 1 column in Portrait mode for tablets and phones */
@media (max-width: 991px) and (orientation: portrait) {

    .hero .container,
    .section-content {
        grid-template-columns: 1fr !important;
        /* Stacked */
    }

    /* Center text for portrait */
    .hero-title,
    .section-title {
        text-align: center !important;
    }

    .hero-subtitle,
    .section-subtitle {
        text-align: center !important;
    }
}

/* ========================================
STATIC/UPDATE TOGGLE STYLES
======================================== */
.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 980px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    transition: color 0.3s;
}

.toggle-label.active {
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0071e3;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #28a745;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 26px;
}

.slider.round:before {
    border-radius: 50%;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

.video-item p {
    margin: 0;
    font-size: 12px;
    color: #86868b;
}

/* Section Header Row - Learn More button and Toggle on same line */
.section-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Limit video list to 4 items */
.video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    max-height: 420px;
    /* Shows exactly 4 items with gap */
    overflow-y: auto;
    padding: 10px;
}

/* Custom scrollbar for video list */
.video-list::-webkit-scrollbar {
    width: 6px;
}

.video-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.video-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.video-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header-row {
        gap: 15px;
    }

    .mode-toggle {
        margin: 0;
    }

    .video-list {
        max-height: 320px;
        /* 4 items on mobile */
    }
}

/* Dark text for light sections (Community Prayers & Sanctuary) */
.prayers .video-item h4,
.sanctuary-section .video-item h4 {
    color: #1d1d1f;
    /* Dark text instead of white */
    font-size: 16px;
    /* Increased from 14px */
    font-weight: 600;
}

.prayers .video-item p,
.sanctuary-section .video-item p {
    color: #424245;
    /* Darker gray instead of light gray */
    font-size: 14px;
    /* Increased from 12px */
}

/* Make toggle labels visible on light backgrounds */
.prayers .toggle-label,
.sanctuary-section .toggle-label {
    color: #1d1d1f;
    /* Dark text */
}

.prayers .toggle-label.active,
.sanctuary-section .toggle-label.active {
    color: #000;
    /* Darker for active state */
}

/* Improve visibility of mode toggle background on light sections */
.prayers .mode-toggle,
.sanctuary-section .mode-toggle {
    background: rgba(0, 0, 0, 0.1);
    /* Slightly darker background */
}

/* Ensure video list scrollbar is visible on light sections */
.prayers .video-list::-webkit-scrollbar-track,
.sanctuary-section .video-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.prayers .video-list::-webkit-scrollbar-thumb,
.sanctuary-section .video-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}

.prayers .video-list::-webkit-scrollbar-thumb:hover,
.sanctuary-section .video-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Video Cards for Light Sections (Community Prayers & Sanctuary) */
.prayers .video-item,
.sanctuary-section .video-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.prayers .video-item:hover,
.sanctuary-section .video-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.prayers .video-item h4,
.sanctuary-section .video-item h4 {
    color: #1d1d1f;
}

.prayers .video-item p,
.sanctuary-section .video-item p {
    color: #424245;
}

/* Ensure scrollbar is visible on light sections */
.prayers .video-list::-webkit-scrollbar-track,
.sanctuary-section .video-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.prayers .video-list::-webkit-scrollbar-thumb,
.sanctuary-section .video-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
}

.prayers .video-list::-webkit-scrollbar-thumb:hover,
.sanctuary-section .video-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Make Legal Disclaimer Text White and Readable */
.disclaimer-content {
    color: #ffffff !important;
}

.disclaimer-content h3,
.disclaimer-content h4 {
    color: #d4af37 !important;
    /* Keep gold for headings */
}

.disclaimer-content p {
    color: #ffffff !important;
    opacity: 0.9;
    /* Slightly softer white for body text */
}

.disclaimer-content a {
    color: #2997ff !important;
    /* Keep blue for links */
    text-decoration: underline;
}

.disclaimer-content strong {
    color: #ffffff !important;
    font-weight: 600;
}

/* Fix: Keep Learn More button compact on mobile to fit with toggle */
@media (max-width: 767px) {

    .section-header-row .btn-primary,
    .section-header-row .btn-secondary {
        width: auto !important;
        max-width: none !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        flex-shrink: 0;
    }

    .section-header-row {
        justify-content: flex-start;
        gap: 15px !important;
    }

    .mode-toggle {
        margin: 0 !important;
        flex-shrink: 0;
    }
}

/* iPhone SE specific - extra small screens */
@media (max-width: 400px) {

    .section-header-row .btn-primary,
    .section-header-row .btn-secondary {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    .mode-toggle {
        transform: scale(0.9);
    }
}

/* iPhone SE Landscape - stack them vertically if needed */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {
    .section-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .mode-toggle {
        margin-left: 0 !important;
    }
}

/* ========================================
FIX: SECTION HEADER ROW - BOTH ORIENTATIONS
======================================== */

/* Base: Keep buttons on same line, centered */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

/* Portrait mode (phones) - center both buttons */
@media (max-width: 991px) and (orientation: portrait) {
    .section-header-row {
        justify-content: center;
        gap: 15px;
    }

    .section-header-row .btn-primary,
    .section-header-row .btn-secondary {
        width: auto !important;
        max-width: none !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        flex-shrink: 0;
    }

    .mode-toggle {
        margin: 0 !important;
        flex-shrink: 0;
        transform: scale(0.9);
    }
}

/* Landscape mode (phones & tablets) - force same line */
@media (max-width: 991px) and (orientation: landscape) {
    .section-header-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 15px 0 !important;
    }

    .section-header-row .btn-primary,
    .section-header-row .btn-secondary {
        width: auto !important;
        max-width: none !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .mode-toggle {
        margin: 0 !important;
        flex-shrink: 0;
        transform: scale(0.85);
        padding: 8px !important;
    }
}

/* iPhone SE Landscape - extra small */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {
    .section-header-row {
        gap: 10px !important;
    }

    .section-header-row .btn-primary,
    .section-header-row .btn-secondary {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    .mode-toggle {
        transform: scale(0.8);
    }
}

/* ========================================
IPHONE SE - FIND HOPE SECTION BUTTONS
======================================== */

/* iPhone SE Portrait - Stack and resize buttons */
@media (max-width: 375px) and (orientation: portrait) {
    .search-app .section-title {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    .search-app .section-subtitle {
        font-size: 13px !important;
        margin-bottom: 25px !important;
        padding: 0 15px !important;
    }

    .search-app .btn-primary,
    .search-app button[onclick="openComingSoonModal()"] {
        width: 80% !important;
        max-width: 220px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        margin: 8px auto !important;
        display: block !important;
    }

    .search-app .btn-primary-large,
    .search-app button[onclick="openComingSoonModal()"] {
        width: 80% !important;
        max-width: 220px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        margin: 8px auto !important;
        display: block !important;
    }

    .search-app-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
}

/* iPhone SE Landscape - Stack and resize buttons */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {
    .search-app {
        padding: 40px 20px !important;
    }

    .search-app .section-title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .search-app .section-subtitle {
        font-size: 12px !important;
        margin-bottom: 20px !important;
        max-width: 90% !important;
    }

    .search-app .btn-primary,
    .search-app button[onclick="openComingSoonModal()"] {
        width: 70% !important;
        max-width: 200px !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        margin: 6px auto !important;
        display: block !important;
    }

    .search-app .btn-primary-large,
    .search-app button[onclick="openComingSoonModal()"] {
        width: 70% !important;
        max-width: 200px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        margin: 6px auto !important;
        display: block !important;
    }

    .search-app-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }
}

/* General mobile fix for search app buttons */
@media (max-width: 768px) {
    .search-app-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .search-app .btn-primary,
    .search-app .btn-primary-large {
        margin: 5px auto !important;
        display: block !important;
    }
}

/* ========================================
IPHONE SE PORTRAIT - HERO & SANCTUARY BUTTONS
======================================== */

@media (max-width: 375px) and (orientation: portrait) {

    /* Hero "Learn More" button - 40% smaller and centered */
    .hero .btn-primary {
        width: 60% !important;
        max-width: 200px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Sanctuary "Watch Their Story on YouTube" button - 30% smaller and centered */
    .sanctuary-section .btn-support {
        width: 70% !important;
        max-width: 240px !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
        margin: 20px auto 0 !important;
        display: block !important;
    }
}

/* ========================================
FIX: STATIC/UPDATE TOGGLE VISIBILITY
======================================== */

/* 1. Make container border more visible on dark backgrounds */
.testimonies-section .mode-toggle,
.nsppdian-section .mode-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 2. Fix text colors for white background sections (Community Prayers & Sanctuary) */
.prayers .mode-toggle,
.sanctuary-section .mode-toggle {
    background: rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.prayers .toggle-label,
.sanctuary-section .toggle-label {
    color: #86868b !important;
    /* Gray for inactive */
}

.prayers .toggle-label.active,
.sanctuary-section .toggle-label.active {
    color: #1d1d1f !important;
    /* Dark/black for active */
}

/* Ensure dark sections keep white active text */
.testimonies-section .toggle-label.active,
.nsppdian-section .toggle-label.active {
    color: #ffffff !important;
}

.testimonies-section .toggle-label,
.nsppdian-section .toggle-label {
    color: #86868b !important;
}

/* ========================================
IPHONE SE PORTRAIT - SANCTUARY BUTTON
======================================== */

@media (max-width: 375px) and (orientation: portrait) {
    .sanctuary-section .btn-support {
        width: 80% !important;
        /* 20% smaller */
        max-width: 280px !important;
        margin: 20px auto 0 !important;
        /* Center horizontally */
        display: block !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* Add this to your CSS */
.btn-find-hope {
    background-color: #ffffff !important;
    /* White background */
    color: #2563eb !important;
    /* Blue text (match your theme blue) */
    border: 2px solid #ffffff;
    /* White border */
    font-size: 1.3rem;
    /* 30% larger than standard text */
    padding: 16px 40px;
    /* 30% larger padding */
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* Space between text and arrow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Optional: slight shadow for pop */
}

.btn-find-hope:hover {
    background-color: #f0f4f8 !important;
    /* Slight grey on hover */
    transform: translateY(-2px);
    /* Slight lift effect */
}

/* The arrow icon style */
.btn-find-hope .arrow-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-find-hope:hover .arrow-icon {
    transform: translateX(5px);
    /* Arrow moves right on hover */
}

/* Add this to your CSS file (style.css or inside <style> tags) */
.btn-find-hope {
    background-color: #ffffff !important;
    /* White background */
    color: #2563eb !important;
    /* Blue text */
    border: 2px solid #ffffff !important;
    font-size: 1.5rem !important;
    /* Large text (approx 24px) */
    padding: 20px 50px !important;
    /* Large padding for size */
    border-radius: 50px !important;
    /* Pill shape */
    font-weight: 700 !important;
    /* Bold text */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    /* Shadow for depth */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    /* Forces the button to be wide */
    transition: transform 0.2s ease;
}

.btn-find-hope:hover {
    transform: scale(1.05);
    /* Slight zoom on hover */
    background-color: #f8f9fa !important;
}

/* Style for the arrow */
.btn-find-hope .arrow-icon {
    margin-left: 10px;
    font-size: 1.2em;
}

/* ========================================
NEW HERO ACTIONS LAYOUT (For the right side of Hero)
======================================== */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Center the new buttons on mobile portrait so they don't look weird */
@media (max-width: 991px) and (orientation: portrait) {
    .hero-actions {
        align-items: center;
        text-align: center;
        margin-top: 0;
    }
}

/* ========================================
LAUNCH APP BUTTON (Replaces Find Hope Now)
======================================== */
.btn-launch-app {
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    color: white !important;
    border: none;
    padding: 16px 40px;
    border-radius: 980px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-launch-app:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
    background: linear-gradient(135deg, #0077ed 0%, #0071e3 100%);
}

.btn-launch-app .arrow-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-launch-app:hover .arrow-icon {
    transform: translateX(5px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .btn-launch-app {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Hero Actions - Right Side Layout */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding-left: 40px;
}

.hero-actions .btn-secondary {
    width: auto;
    min-width: 200px;
}

/* Mobile: Center the buttons */
@media (max-width: 991px) and (orientation: portrait) {
    .hero-actions {
        align-items: center;
        padding-left: 0;
        margin-top: 30px;
    }
}

/* Hero Buttons Row - 3 buttons below Jesus image */
.hero-buttons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-buttons-row .btn-primary,
.hero-buttons-row .btn-secondary,
.hero-buttons-row .btn-launch-app {
    flex-shrink: 0;
}

/* Launch App Button Style */
.btn-launch-app {
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-launch-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
    background: linear-gradient(135deg, #0077ed 0%, #0071e3 100%);
}

.btn-launch-app .arrow-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-launch-app:hover .arrow-icon {
    transform: translateX(5px);
}

/* Mobile: Stack buttons vertically */
@media (max-width: 768px) {
    .hero-buttons-row {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons-row .btn-primary,
    .hero-buttons-row .btn-secondary,
    .hero-buttons-row .btn-launch-app {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
IPHONE SE LANDSCAPE - SHOW EVERYTHING
======================================== */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {

    /* Reduce hero padding to save space */
    .hero {
        padding: 60px 0 40px !important;
    }

    /* Single column but show everything */
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        text-align: center !important;
        padding: 0 15px !important;
    }

    .hero-content {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .hero-logo {
        max-width: 80px !important;
        margin: 0 auto 10px !important;
    }

    .hero-title {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
    }

    /* Show the hero image but make it smaller */
    .hero-image {
        display: block !important;
        margin: 10px auto !important;
    }

    .hero-image img {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        max-height: 140px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    /* Show buttons row below image */
    .hero-buttons-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .hero-buttons-row .btn-primary,
    .hero-buttons-row .btn-secondary,
    .hero-buttons-row .btn-launch-app {
        flex: 1 1 auto !important;
        min-width: 100px !important;
        max-width: none !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    /* Smaller buttons for iPhone SE */
    .btn-primary {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    .btn-secondary {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    .btn-launch-app {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }

    /* Fix section layouts */
    .section-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .section-title {
        font-size: 22px !important;
        text-align: center !important;
    }

    .section-subtitle {
        font-size: 13px !important;
        text-align: center !important;
    }
}

/* ========================================
IPHONE SE LANDSCAPE - FORCE CENTER ALIGNMENT
(Fixes override from 991px landscape rule)
======================================== */
@media (max-width: 667px) and (orientation: landscape) and (max-height: 420px) {
    .hero-title {
        text-align: center !important;
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .hero-subtitle {
        text-align: center !important;
        font-size: 12px !important;
        max-width: 100% !important;
        margin: 0 auto 12px auto !important;
    }

    .hero-content {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-logo {
        margin: 0 auto 10px auto !important;
    }

    /* Show the Jesus image smaller */
    .hero-image {
        display: block !important;
        margin: 10px auto !important;
    }

    .hero-image img {
        max-width: 280px !important;
        max-height: 140px !important;
        margin: 0 auto !important;
    }

    /* Show buttons row */
    .hero-buttons-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .hero-buttons-row .btn-primary,
    .hero-buttons-row .btn-secondary,
    .hero-buttons-row .btn-launch-app {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}