#landing-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* --- Landing Hero (Redesigned) --- */

/* Language Selector from header-controls.css */
/* Landing Branding */
.landing-branding {
    position: absolute;
    top: 20px;
    left: 40px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
}

.branding-logo-circle {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.1);
    /* Slight tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px) brightness(0.7) contrast(1.1);
    /* Dynamic darkening of background */
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.branding-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.branding-title,
.branding-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
}

.branding-title-line {
    font-family: "Inter", "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #FFFFFF;
    margin-right: 6px;
}

.branding-title-line:last-child {
    margin-right: 0;
}

/* Language Selector from header-controls.css */
.header-controls {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    /* Ground the absolute notice */
}

.btn-login,
.btn-signup {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0 20px;
    /* Horizontal padding */
    height: 40px;
    /* Fixed height to match dropdown */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    /* Match dropdown font size */
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.btn-login:hover,
.btn-signup:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.btn-login {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}


.auth-controls button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

.launch-notice {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-style: italic;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.language-select-header {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    /* Globe icon added */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding: 8px 16px 8px 40px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: left;
}

.language-select-header:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.language-select-header option {
    background: white;
    color: #333;
    /* Hardcoded from var(--text-primary) equivalent for landing */
}

.landing-hero {
    position: relative;
    min-height: 600px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 160px;
    background: #1e3a8a;
    color: white;
    /* overflow: hidden; Removed to allow search dropdown to overflow */
}

/* Background Effects */
.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(-45deg, #1e40af, #3b82f6, #06b6d4, #1e3a8a);
    background-size: 300% 300%;
    animation: gentleGradient 20s ease infinite;
    opacity: 0.9;
}

@keyframes gentleGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 10%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 10%);
    animation: driftParticles 30s linear infinite;
}

@keyframes driftParticles {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Hero Content */
.hero-content {
    /* Kept for backward compat or specific use, but main layout is now grid */
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: none;
    /* Hiding old container if we fully switch, or removing */
}

.hero-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1300px;
    width: 100%;
    padding: 0 40px;
    z-index: 50;
    /* Increased to stay above cards */
    align-items: center;
    margin-top: 80px;
}

.hero-left-column {
    animation: fadeRight 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: left;
    /* Explicitly set left align */
}

.hero-right-column {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: fadeLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CAD Animation */
.cad-animation-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 16/10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cad-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: auto;
    opacity: 0;
    mix-blend-mode: lighten;
    filter: grayscale(100%) brightness(200%) contrast(110%);
    animation: cadCycle 18s infinite;
}

/* Sequence delays */
.img-1 {
    animation-delay: 0s;
}

.img-2 {
    animation-delay: 6s;
}

.img-3 {
    animation-delay: 12s;
}

@keyframes cadCycle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    10% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1);
    }

    35% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.05);
    }

    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .landing-hero {
        height: auto;
        padding-top: 100px;
        padding-bottom: 120px;
        text-align: center;
    }

    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
    }

    .hero-left-column h1 {
        width: 100%;
        max-width: 320px;
        /* Force reflow check */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-left-column h1,
    .hero-left-column p {
        text-align: center !important;
    }

    .landing-search-container {
        justify-content: center !important;
    }

    .hero-right-column {
        order: -1;
    }
}

.landing-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    /* Removed text-align center to allow parent control */
}

.hero-subtext {
    font-size: 0.9rem;
    /* Reduced from 1.25rem */
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: -0.01em;
    /* Squeeze text closer */
    margin-bottom: 90px;
    max-width: 600px;
    margin-right: auto;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
    color: var(--bg-primary);
    /* Uses color from path fill if set to currentColor, but direct fill is in HTML */
}

/* Landing Search */
.landing-search-container {
    padding-top: 10px;
}

/* Search Examples */
.search-examples {
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85em;
    padding-left: 20px;
    clear: both;
}

/* Hide scrollbar Chrome/Safari */
.search-examples::-webkit-scrollbar {
    display: none;
}

.examples-label {
    font-weight: 600;
    margin-right: 4px;
    white-space: nowrap;
    opacity: 0.9;
}

.example-tag {
    background: transparent;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    backdrop-filter: none;
    white-space: nowrap;
    color: #FFFFFF;
    transition: all 0.2s;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.example-tag:not(:last-child)::after {
    content: " ";
    color: rgba(255, 255, 255, 0.5);
    font-style: normal;
}

.example-tag:hover {
    color: white;
    text-decoration: underline;
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Relocated Mobile Selector (Hidden on Desktop) */
#mobileVersionSelectWrapper.mobile-only-version {
    display: none !important;
}

/* Landing Search */
.landing-search-container {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
    max-width: 800px;
    position: relative;
}

/* Top Multi Toggle - positioned absolutely in top right */
.top-multi-toggle {
    position: absolute;
    top: -48px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.top-multi-toggle .toggle-label-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: right;
    text-transform: uppercase;
}

.top-multi-toggle .view-toggle-switch {
    background: white;
    border-radius: 20px;
    padding: 4px;
    display: flex;
    gap: 0;
    cursor: pointer;
    position: relative;
    width: 90px;
    height: 40px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-multi-toggle .toggle-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 32px;
    background: #e0e7ff;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.top-multi-toggle .view-toggle-switch.active-right .toggle-indicator {
    transform: translateX(42px);
}

.top-multi-toggle .toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.top-multi-toggle .toggle-option.active {
    color: var(--primary-color);
}


.search-main-group {
    /* Override inline gap from HTML */
    gap: 0 !important;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0.6;
    color: var(--text-primary);
    z-index: 2;
}

#heroSearchInput {
    width: 100%;
    height: 60px;
    padding: 0 24px 0 54px;
    border-radius: 0;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #1f2937;
    outline: none;
    transition: all 0.3s ease;
}

#heroSearchInput:focus {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 100;
    color: #333;
    max-height: 400px;
    /* Increased height for better view */
    overflow-y: auto;
    text-align: left;
    /* Widen dropdown to show more text */
    width: 100%;
    /* Center it roughly relative to the input */
}

.suggestion-item {
    padding: 8px 20px;
    /* Reduced vertical padding */
    cursor: pointer;
    font-size: 0.95em;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align to top for long text */
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.suggestion-type {
    font-size: 0.75em;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-search-btn {
    height: 60px;
    padding: 0 32px;
    border-radius: 0 50px 50px 0;
    border: none;
    background: var(--accent-gold);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 166, 42, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(244, 166, 42, 0.5);
    filter: brightness(1.05);
}

/* Landing Version Selector (Custom) */
.search-version-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 70;
    margin-right: 0;
    /* Gap handled by container */
}

.search-version-wrapper .search-version-trigger {
    background: rgba(255, 255, 255, 1);
    border: none;
    color: #333;
    padding: 0 16px;
    height: 60px;
    /* Match input height */
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 90px;
}

.search-version-wrapper .search-version-trigger:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.search-version-wrapper .search-version-trigger .arrow {
    margin-left: 4px;
    border-color: #666;
    border-width: 0 2px 2px 0;
    padding: 3px;
}

/* Ensure options pop below properly */
#landingVersionSelectWrapper .custom-options {
    margin-top: 6px;
    /* Match Language dropdown gap */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    /* Slightly wider than trigger */
    left: 0;
}

/* Mobile Version Selector Visibility */
.mobile-only-version {
    display: none;
    /* Hidden by default (Desktop) */
}

@media (max-width: 992px) {
    .mobile-only-version {
        display: block;
    }

    /* Style the Mobile Version Trigger to match Header Buttons */
    #mobileVersionSelectWrapper {
        width: auto !important;
    }

    #mobileVersionSelectWrapper .custom-select-trigger {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: white;
        padding: 0 12px;
        height: 36px;
        border-radius: 18px;
        font-size: 0.85em;
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        backdrop-filter: blur(4px);
        min-width: 90px;
        justify-content: space-between;
    }

    #mobileVersionSelectWrapper .custom-select-trigger .arrow {
        border-color: white;
        border-width: 0 2px 2px 0;
        padding: 3px;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        margin-left: 4px;
    }

    #mobileVersionSelectWrapper .custom-options {
        margin-top: 8px;
        min-width: 90px;
        right: 0;
        left: auto;
    }

    /* Hide the Search Bar Version Selector on Mobile */
    #landingVersionSelectWrapper {
        display: none !important;
    }

    /* Adjust search input padding since version selector is gone */
    #heroSearchInput {
        padding-left: 24px;
    }

    /* Mobile adjustments for MULTI toggle */
    .top-multi-toggle {
        top: -44px;
    }

    .top-multi-toggle .toggle-label-text {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .top-multi-toggle .view-toggle-switch {
        width: 80px;
        height: 36px;
    }

    .top-multi-toggle .toggle-indicator {
        width: 36px;
        height: 28px;
    }

    .top-multi-toggle .view-toggle-switch.active-right .toggle-indicator {
        transform: translateX(38px) !important;
    }
}

/* Tighter spacing for landing dropdown options */
#languageSelectWrapper .custom-option,
#landingVersionSelectWrapper .custom-option {
    padding: 6px 16px;
    font-size: 0.95em;
}

#landingVersionSelectWrapper .custom-option.selected {
    font-weight: 400 !important;
    /* User requested non-bold selected text */
}

/* Landing Sections Layout */
.landing-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
}

.landing-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: -80px;
    /* Pull up to overlap wave */
    margin-bottom: 30px;
    /* Reduced from 60px (User Request) */
    position: relative;
    z-index: 20;
}

.landing-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    flex: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.landing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.5em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.landing-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.landing-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 700;
}

.landing-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.landing-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

/* Verse Carousel Section */
.verse-carousel-section {
    width: 100%;
    padding: 40px 20px 80px 20px;
    /* Reduced top padding (User Request) */
    background: linear-gradient(to bottom, #fcfcfc, #f4f1ea);
    /* Soft background gradient (Improvement 8) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Context Line (Improvement 9) */
.verse-context-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8da399;
    /* Muted aesthetic tone */
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.verse-context-line::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: #cbd5e1;
    margin: 8px auto 0;
}

.verse-card-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* More space around arrows */
    width: 100%;
    max-width: 1200px;
    position: relative;
}

/* Distinct "Verse Section" Container (Improvement 2) */
.verse-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Increased for more expansive feel */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    /* Soft Elevation */
    padding: 30px 0;
    /* Removed horizontal padding (User Request) */
    border-radius: 24px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.verse-card-wrapper:hover {
    transform: translateY(-4px);
}

.verse-card-container {
    width: 100%;
    max-width: 100%;
    /* Fill the wrapper (User Request) */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #f8faf9;
    border-radius: 20px;
    /* Base rounding for desktop */
    box-shadow: none;
}

.verse-card-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease;
    display: block;
    /* Changed from flex to block as it's just an image bg now */
    pointer-events: none;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;

    /* Smooth transition fixes */
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Overlay removed to show clear image */

.verse-card-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.verse-card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Don't crop the verse images */
}

/* Global Carousel Heading and Navigation (Base Desktop Styles) */
.carousel-heading-container {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    color: #9ca3af;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
}

.heading-divider {
    width: 30px;
    height: 1px;
    background: #e5e7eb;
    margin-top: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: none;
    backdrop-filter: none;
}

.carousel-nav.prev {
    left: calc(50% - 510px);
}

.carousel-nav.next {
    right: calc(50% - 510px);
}

.carousel-nav:hover {
    color: var(--primary-color);
    opacity: 0.1 !important;
}

.carousel-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {

    /* Mobile Adjustments for Verse Card Layout */
    .verse-carousel-section {
        padding: 0 8px 10px 8px !important;
        /* Reduced bottom padding */
        min-height: auto !important;
        /* Override desktop 500px */
    }

    .carousel-heading-container {
        margin-top: 0 !important;
        margin-bottom: 5px !important;
    }

    .verse-context-line {
        margin-bottom: 10px;
        /* Tighter */
        font-size: 0.8rem;
    }

    .verse-card-layout {
        padding: 0;
        gap: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
        position: relative;
        padding-bottom: 20px !important;
        /* Reduced significantly */
        margin-bottom: 0 !important;
    }

    .verse-card-wrapper {
        width: 100%;
        padding: 15px 0 80px 0 !important;
        /* Increased bottom padding for centered row */
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
        position: relative;
        z-index: 5;
        margin-bottom: 0 !important;
        min-height: auto !important;
        /* Force auto height on wrapper too */
    }

    .verse-card-container {
        aspect-ratio: 4 / 3;
        margin-bottom: 10px !important;
    }

    /* Move arrows to be in the same row as the actions */
    .carousel-nav {
        width: 44px !important;
        height: 44px !important;
        position: absolute !important;
        bottom: 18px !important;
        /* Vertically centered in the 80px whitespace */
        top: auto !important;
        transform: none !important;
        z-index: 1000 !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        color: #334155 !important;
        visibility: visible !important;
    }

    .carousel-nav svg {
        width: 24px !important;
        height: 24px !important;
        stroke: #334155 !important;
        stroke-width: 2.5 !important;
        display: block !important;
    }

    .carousel-nav.prev {
        left: 8% !important;
    }

    .carousel-nav.next {
        right: 8% !important;
    }

    /* Adjust button Row for mobile */
    .carousel-actions {
        position: absolute !important;
        bottom: 18px !important;
        /* Matches arrows perfectly */
        left: 0;
        right: 0;
        height: 44px !important;
        /* Match arrow height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        margin: 0 auto !important;
        pointer-events: none;
        z-index: 999 !important;
    }

    .carousel-actions>* {
        pointer-events: auto;
    }

    .carousel-actions .action-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex: 0 1 auto;
        /* Don't grow to fill width */
        min-width: 120px;
        justify-content: center;
    }

    #carouselSaveBtn,
    #carouselListenBtn {
        display: none !important;
        /* Hide Save and Listen buttons on mobile as requested */
    }

    /* Hide the original next/prev positioning override if it exists */
}


/* Actions inside the frame at the bottom */

.carousel-actions .action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-actions .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.carousel-actions .action-btn:active {
    transform: translateY(0);
}

/* Verse of Day Section (Keep styles for potential reuse) */
.verse-day-section {
    display: none;
    /* Hidden as per task */
    margin: 80px auto;
    padding: 0 20px;
}

/* Trust Section */
.trust-section {
    text-align: center;
    margin-bottom: 80px;
    background: white;
    padding: 60px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.trust-section h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    font-size: 1.1em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer */
.landing-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    color: var(--text-secondary);
}

.footer-links {
    margin-bottom: 30px;
    /* Equalized spacing */
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-verse {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 30px;
    /* Equalized spacing */
    color: #4b5563;
}

.footer-copy {
    font-size: 0.85em;
    opacity: 0.7;
}

/* View Switching */
.view-hidden {
    display: none !important;
}

/* Responsive Landing */
@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2.1rem;
        max-width: 340px;
        margin: 0 auto 16px auto;
        line-height: 1.3;
    }

    .landing-hero {
        padding-top: 60px !important;
        padding-bottom: 80px !important;
    }

    .landing-cards-container {
        margin-top: 0;
        padding: 40px 20px;
    }

    .landing-card {
        width: 100%;
    }
}

.random-verse-container {
    position: absolute;
    bottom: 20px;
    right: 30px;
    max-width: 400px;
    text-align: right;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95em;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Specific override for Version Group in Top Menu */
#topMenuVersionGroup {
    margin-left: auto;
}

/* Toggle Switch Inside Input Wrapper */
.hero-search-actions {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.inside-input-toggle-wrapper {
    position: absolute;
    right: calc(100% + 12px);
    /* Position inside the search-input-wrapper area visually */
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    transform-origin: right center;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.toggle-label-text {
    font-size: 0.9em;
    font-weight: 600;
    color: #4b5563;
    /* Gray-600 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Specific overrides for switch inside the wrapper */
.inside-input-toggle-wrapper .view-toggle-switch {
    background: #e5e7eb;
    border-radius: 30px;
    padding: 3px;
    display: flex;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Not absolute anymore */
}

.inside-input-toggle-wrapper .toggle-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

.inside-input-toggle-wrapper .view-toggle-switch.active .toggle-indicator {
    transform: translateX(100%);
}

.inside-input-toggle-wrapper .toggle-option {
    padding: 4px 0;
    font-size: 0.8em;
    font-weight: 700;
    color: #6b7280;
    z-index: 1;
    transition: color 0.3s;
    user-select: none;
    text-align: center;
    width: 36px;
    /* Smaller width for Off/On */
}

.inside-input-toggle-wrapper .toggle-option.active {
    color: #059669;
}

/* Ensure input has space for toggle */
#heroSearchInput {
    padding-right: 24px;
    /* Adjusted padding to allow text to fill the bar */
}

/* Modal Styles (Matched to Study Page) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: #fefefe;
    /* Soft off-white */
    padding: 20px;
    /* 20px padding */
    border-radius: 8px;
    /* 8px rounded corners */
    width: 600px;
    /* Fixed width for consistency */
    max-width: 90vw;
    /* Responsive constraint */
    position: relative;
    /* Position relative is sufficient unless draggable logic overrides it */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Subtle drop shadow */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Header will be fixed, body will scroll */
    font-family: "Merriweather", "Georgia", serif;
    /* Serif for main text */
    font-size: 15px;
    /* 14-16px */
    color: #333333;
    /* Dark charcoal */
    line-height: 1.6;
    /* Comfortable reading */
    border: 1px solid #d0e7ff;
    /* Thin light blue border */
}

/* Header Handle */
.modal-header-handle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    background: #e3f2fd;
    /* Slightly darker blue */
    margin: -20px -20px 20px -20px;
    /* Pull to edges of new padding */
    padding: 12px 16px;
    border-bottom: 1px solid #cce4fc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    user-select: none;
    flex-shrink: 0;
}

#multiModalBody {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    margin: 0 -20px -20px -20px;
    /* Counteract parent padding for scrollbar edge */
}

#multiModalBody ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-close {
    position: static;
    /* Inside flex container */
    background: none;
    border: none;
    font-size: 24px;
    /* 24px */
    cursor: pointer;
    color: #4a5568;
    transition: color 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-close:hover {
    color: #003366;
    background: rgba(0, 0, 0, 0.05);
}

.modal-content h3 {
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    color: #004080;
    font-size: 19px;
    margin: 0;
    padding: 0;
    font-weight: 700;
    border: none;
}

/* Inner content styling for verses */
.modal-content ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
    /* Remove bullets for card list */
}

.popup-verse-item {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333333;
    text-align: left;
}

.popup-verse-item:last-child {
    margin-bottom: 0;
}

.popup-verse-ref-header {
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    color: #003366;
    /* Dark Blue */
    margin-bottom: 8px;
    font-size: 16px;
    /* Slightly larger matching h3 scale */
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.popup-verse-ref-header:hover {
    text-decoration: underline;
    color: #0055cc;
}

.popup-verse-text {
    display: block;
    margin-top: 8px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    font-family: "Merriweather", "Georgia", serif;
    font-size: 0.95em;
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Mobile Responsiveness (Mobile-First) --- */

@media (max-width: 768px) {
    #landing-view {
        overflow-x: hidden;
    }

    .landing-branding {
        top: 15px;
        left: 20px;
    }

    .branding-logo-circle {
        width: 36px;
        height: 36px;
    }

    .branding-icon {
        width: 24px;
        height: 24px;
    }

    .branding-title {
        font-size: 16px;
    }

    .branding-text {
        flex-direction: row;
        align-items: center;
        line-height: 1.2;
        white-space: nowrap;
    }

    .branding-title-line {
        font-size: 16px;
        margin-right: 4px;
        letter-spacing: 0px;
    }

    .header-controls {
        top: 15px;
        right: 20px;
        gap: 8px;
    }

    .auth-controls {
        gap: 8px;
    }

    .auth-controls .custom-select-wrapper:not(#mobileVersionSelectWrapper),
    #languageSelectWrapper {
        display: none !important;
        /* Remove language selection on mobile as requested */
    }

    .btn-login,
    .btn-signup {
        padding: 0 12px;
        height: 36px;
        font-size: 0.8rem;
    }

    .btn-help {
        display: none;
        /* Hide help on mobile header to save space */
    }

    .landing-sections {
        display: block !important;
        /* Restore visibility for footer/trust sections */
        margin-top: 40px;
    }

    .landing-cards-container {
        display: none !important;
        /* Keep library tiles hidden */
    }

    #guest-controls {
        display: none !important;
        /* Eliminate signup/login on mobile */
    }

    .hero-right-column {
        display: none !important;
        /* Eliminate CAD animation on mobile */
    }

    /* Remove Trust section on mobile */
    .trust-section {
        display: none !important;
    }

    .launch-notice {
        font-size: 10px;
        margin-top: 4px;
    }

    .hero-wave {
        display: none;
    }

    .landing-hero {
        min-height: auto;
        height: auto;
        padding-top: 75px !important;
        padding-bottom: 40px !important;
        /* Reduced from 140px to remove gap above Daily Verse */
        /* User-requested forced reduction for a balanced look */
    }

    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        margin-top: 20px;
    }

    .hero-left-column {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
        width: 100%;
    }

    .hero-right-column {
        order: 1;
        min-height: 200px;
    }

    .landing-hero h1 {
        font-size: 1.9rem !important;
        font-family: 'EB Garamond', serif;
        line-height: 1.15;
        margin-bottom: 24px;
        color: #FFFFFF;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .hero-subtext {
        font-size: 0.85rem;
        /* Reduced from 0.95rem */
        letter-spacing: -0.015em;
        /* Squeeze text closer for mobile */
        margin-bottom: 80px;
        text-align: center !important;
        white-space: nowrap;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-search-container {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: stretch;
        width: 100%;
        max-width: none;
        margin: 25px 0 0 0;
        /* Space for SEARCH label */
        justify-content: center !important;
        overflow: visible;
    }

    .search-main-group {
        gap: 0 !important;
        /* Remove gap to merge input and button */
        width: 100%;
        position: relative !important;
        /* Ensure dropdown anchors here */
    }

    .search-input-wrapper {
        flex: 1;
        position: relative;
    }

    /* Floating SEARCH label on the input wrapper */
    .search-input-wrapper::before {
        content: 'SEARCH';
        position: absolute;
        top: -24px;
        left: 25px;
        /* Nudged further right */
        /* Align Left */
        right: auto;
        font-size: 0.75rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        letter-spacing: 0.1em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }



    /* Absolute Mobile Version Selector (Zero Layout Shift) */
    .search-input-wrapper {
        position: relative !important;
    }

    #mobileVersionSelectWrapper.mobile-only-version {
        display: flex !important;
        position: absolute !important;
        left: 12px !important;
        /* Mirrored icon padding */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 62px !important;
        height: 32px !important;
        z-index: 10 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    #mobileVersionSelectWrapper.mobile-only-version .custom-select-trigger {
        background: transparent !important;
        border: none !important;
        padding: 0 4px !important;
        height: 100% !important;
        width: 100% !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #4b5563 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        justify-content: flex-start !important;
        gap: 3px !important;
    }

    #mobileVersionSelectWrapper.mobile-only-version .custom-select-trigger .arrow {
        border-color: #4b5563 !important;
        border-width: 0 1.5px 1.5px 0 !important;
        width: 4px !important;
        height: 4px !important;
        margin-top: -1px !important;
    }

    #mobileVersionSelectWrapper.mobile-only-version .custom-options {
        min-width: 80px;
        left: 0;
        top: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000 !important;
    }

    /* Hide the desktop icon on mobile */
    .desktop-only-icon {
        display: none !important;
    }

    #heroSearchInput {
        height: 48px;
        font-size: 0.95rem;
        padding-left: 78px !important;
        /* Space for absolute selector */
        padding-right: 16px;
        /* Reduced since toggle moved */
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-top-left-radius: 24px;
        border-bottom-left-radius: 24px;
    }

    .search-input-wrapper {
        flex: 1;
        min-width: 0;
        height: 48px;
        /* Force height to match input */
    }

    .search-icon {
        left: 12px;
        font-size: 1rem;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .hero-search-actions {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        position: static;
        width: 80px;
        margin-left: -2px;
        /* Force join */
    }

    /* Target the correct class for toggle on mobile */
    .hero-search-actions .top-multi-toggle {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        top: -45px;
        transform: scale(0.9) !important;
        transform-origin: right bottom !important;
        display: flex;
        align-items: center;
        gap: 4px;
        z-index: 5;
        margin-right: 0;
        white-space: nowrap;
    }

    .hero-search-actions .top-multi-toggle .toggle-label-text {
        font-size: 0.65rem;
        color: white;
        line-height: 1.1;
        text-align: right;
        display: inline-block !important;
    }

    .hero-search-actions .top-multi-toggle .view-toggle-switch {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
        height: 32px;
        width: 76px;
    }

    .hero-search-actions .top-multi-toggle .toggle-indicator {
        height: 26px;
        width: 35px;
    }

    .hero-search-actions .top-multi-toggle .toggle-option {
        color: rgba(255, 255, 255, 0.6);
        width: 35px;
        padding: 4px 0;
        font-size: 0.7rem;
    }

    .hero-search-actions .top-multi-toggle .toggle-option.active {
        color: #FFFFFF;
    }

    .hero-search-actions .top-multi-toggle .view-toggle-switch.active-right .toggle-indicator {
        transform: translateX(37px);
    }

    .hero-search-btn {
        width: 80px;
        min-width: unset;

        height: 48px;
        margin-top: 0;
        padding: 0 10px;
        font-size: 0.85rem;
        line-height: 1.1;
        white-space: normal;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 24px;
        border-bottom-right-radius: 24px;
        box-shadow: 4px 4px 12px rgba(244, 166, 42, 0.3);
    }

    .search-examples {
        display: block;
        /* Restore examples on mobile */
        position: absolute;
        width: 100%;
        /* Match search bar width */
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 8px;
        white-space: normal;
        text-align: center;
        padding-left: 0;
        max-width: none;
        padding: 0 4px;
        /* Minimal padding */
        box-sizing: border-box;
        font-size: 0.70rem;
        /* Reduced font size to fit one line */
        line-height: 1.2;
    }


    /* Landscape Mobile tweak */


    .landing-cards-container {
        flex-direction: column;
        margin-top: -30px;
        padding: 0 20px;
        gap: 20px;
    }

    .landing-card {
        padding: 30px 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
        margin-bottom: 16px;
    }

    .verse-day-section {
        margin: 20px 0 !important;
        /* Remove horizontal auto margin, let width:auto handle it */
        padding: 0 !important;
        /* Remove internal padding, rely on parent padding */
        text-align: center;
        display: block;
        /* Switch to block to behave reliably with width: auto */
        flex-direction: column;
        align-items: center;
        width: auto !important;
        /* Fill available space */
        max-width: 100% !important;
        /* Never exceed parent */
        /* Prevent viewport overflow */
        box-sizing: border-box !important;
        /* Force box-model */
    }

    .verse-day-card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .verse-quote {
        font-size: 1.4rem;
    }

    .trust-section {
        text-align: center;
        padding: 40px 20px;
    }

    .trust-section h2 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .trust-item {
        width: 100%;
        justify-content: center;
    }

    .landing-footer {
        padding: 20px 0 75px;
        /* Zero side padding for max width */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-top: none;
    }

    .footer-verse {
        width: 100%;
        max-width: 98%;
        /* Maximized width */
        padding: 0 4px;
        font-size: 0.95rem;
        /* Reduced to fit in two lines */
        line-height: 1.4;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        /* More gap for equal spacing feeling */
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    /* Move "Contact" to very bottom on mobile */
    .footer-links a:last-child {
        position: absolute;
        bottom: 70px;
        /* Positioned below copyright (which is in flow) and above nav padding area opacity */
        left: 0;
        width: 100%;
        text-align: center;
    }

    /* Mobile Modal Styles */
    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 15px;
        max-height: 85vh;
        margin: 0 10px;
    }

    .modal-header-handle {
        margin: -15px -15px 15px -15px;
        padding: 10px 12px;
    }

    .popup-verse-item {
        margin-bottom: 15px;
    }

    .popup-verse-text {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    /* Align search suggestions with search bar and extend to button on mobile */
    .search-suggestions {
        width: 100% !important;
        /* Match container width (input + button) */
        left: 0 !important;
        right: 0 !important;
    }
}

/* Specific UI tweak for iPhone SE / very small screens */
@media (max-width: 380px) {
    .landing-hero h1 {
        font-size: 1.8rem;
    }

    .auth-controls .custom-select-wrapper {
        width: 110px !important;
    }


}

/* Landscape Mobile tweak - Root level to ensure application */
/* Landscape Mobile tweak - More aggressive selector */
@media (orientation: landscape) and (max-height: 700px) {
    .landing-search-container {
        max-width: 600px !important;
        width: 85% !important;
        /* Force margin */
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
.footer-languages {
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
}

.lang-link {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.lang-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
    background: rgba(0, 0, 0, 0.05);
}

.lang-link.active {
    font-weight: 600;
    color: var(--accent-primary);
}
