/* ==========================================================================
   Tamil Study Bible CSS - Premium Elementor Pro & YouVersion Inspired Design
   ========================================================================== */

:root {
    --primary-color: #1F4E79;
    --secondary-color: #D4AF37;
    --accent-color: #F5F7FA;
    --background-color: #FFFFFF;
    --text-color: #2D3748;
    --text-muted: #718096;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(31, 78, 121, 0.08);
    --shadow-lg: 0 20px 30px rgba(31, 78, 121, 0.12);
    --font-heading: 'Outfit', sans-serif;
    --font-tamil: 'Tiro Tamil', serif;
    --menu-color: #1F4E79;
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.dark-theme {
    --primary-color: #D4AF37;
    --secondary-color: #1F4E79;
    --accent-color: #161B22;
    --background-color: #0D1117;
    --text-color: #C9D1D9;
    --text-muted: #8B949E;
    --card-bg: #161B22;
    --border-color: #30363D;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.4);
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-heading);
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    transition: var(--transition-smooth);
}

/* Container Adjustments */
.main-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--background-color);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   Header & Premium Navigation Bar
   ========================================================================== */
#main-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
}

body.dark-theme #main-header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-tamil);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    font-family: var(--font-tamil);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    padding: 5px 2px;
}

.nav-item:hover, .nav-item.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

/* Profile Badge Styles */
.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(31, 78, 121, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    border: 1px solid rgba(31, 78, 121, 0.2);
    transition: var(--transition-smooth);
}

.user-badge:hover {
    background: var(--primary-color);
    color: white;
}

body.dark-theme .user-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(rgba(31, 78, 121, 0.85), rgba(13, 27, 42, 0.95)), url('assets/bible_hero_banner.png');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-tamil);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #FFFFFF 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-tamil);
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-primary {
    font-family: var(--font-tamil);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #B8860B 100%);
    color: #1F4E79;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--gold-glow);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    font-family: var(--font-tamil);
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 13px 33px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--font-tamil);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .stat-item:nth-child(3), .stat-item:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Homepage Cards Grid (Elementor Pro Style)
   ========================================================================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-tamil);
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(95deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card .icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(31, 78, 121, 0.05);
    color: var(--primary-color);
    font-size: 2.2rem;
    transition: var(--transition-smooth);
}

.card img.card-png-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.card h2 {
    font-family: var(--font-tamil);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(31, 78, 121, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card:hover .icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.card:hover img.card-png-icon {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Daily Verse Section
   ========================================================================== */
.daily-verse-section {
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.04) 0%, rgba(212, 175, 55, 0.04) 100%);
    border-radius: 30px;
    padding: 50px 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.daily-verse-section::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 40px;
    font-size: 10rem;
    color: rgba(31, 78, 121, 0.05);
    font-family: serif;
}

.daily-verse-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.verse-tag {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.daily-verse-text {
    font-family: var(--font-tamil);
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.daily-verse-ref {
    font-family: var(--font-tamil);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.daily-verse-share {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-share {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.btn-share:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-share.whatsapp-share:hover {
    background: #25D366;
    border-color: #25D366;
}

/* ==========================================================================
   Featured Sections (Study Notes & Articles)
   ========================================================================== */
.featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .featured-row {
        grid-template-columns: 1fr;
    }
}

.featured-col {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.col-header h3 {
    font-family: var(--font-tamil);
    font-size: 1.4rem;
    color: var(--primary-color);
}

.view-all-link {
    font-family: var(--font-tamil);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-link:hover {
    color: var(--primary-color);
}

/* Featured Tabs */
.article-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.tab-btn {
    font-family: var(--font-tamil);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Lists */
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.featured-item:hover {
    background: var(--accent-color);
    border-color: var(--border-color);
}

.item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-family: var(--font-tamil);
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 4px;
    font-weight: 600;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Audio Bible Component
   ========================================================================== */
.audio-card {
    background: linear-gradient(135deg, #1A365D 0%, #0A192F 100%);
    border-radius: 24px;
    color: white;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-cover {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--secondary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--gold-glow);
}

.audio-meta h3 {
    font-family: var(--font-tamil);
    font-size: 1.3rem;
    color: white;
    margin-bottom: 5px;
}

.audio-meta p {
    font-family: var(--font-tamil);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.audio-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 3px;
    width: 0%;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.audio-control-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.audio-control-btn:hover {
    color: white;
}

.audio-control-btn.play-pause-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #0A192F;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--gold-glow);
}

.audio-control-btn.play-pause-btn:hover {
    transform: scale(1.05);
    background: white;
}

/* ==========================================================================
   Testimonies Slider
   ========================================================================== */
.testimonies-section {
    background: var(--accent-color);
    border-radius: 30px;
    padding: 50px 20px;
    margin-bottom: 50px;
    text-align: center;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 200px;
}

.testimony-slide {
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.testimony-slide.active {
    display: block;
}

.testimony-text {
    font-family: var(--font-tamil);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimony-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.testimony-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.testimony-user-info {
    text-align: left;
}

.testimony-user-name {
    font-weight: 700;
    color: var(--primary-color);
}

.testimony-user-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--secondary-color);
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A365D 100%);
    border-radius: 30px;
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-section h3 {
    font-family: var(--font-tamil);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.newsletter-section p {
    font-family: var(--font-tamil);
    margin-bottom: 30px;
    color: rgba(255,255,255,0.85);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-input:focus {
    background: white;
    color: black;
}

.newsletter-btn {
    font-family: var(--font-tamil);
    background: var(--secondary-color);
    color: #0D1117;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
#main-footer {
    background: #0D1117;
    color: #8B949E;
    border-top: 1px solid #30363D;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-family: var(--font-tamil);
    color: white;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-about-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-about-logo h3 {
    font-family: var(--font-tamil);
    color: white;
    font-size: 1.4rem;
}

.footer-about-text {
    font-family: var(--font-tamil);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-tamil);
    color: #8B949E;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact-info p {
    font-family: var(--font-tamil);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact-info i {
    color: var(--secondary-color);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icon-btn:hover {
    background: var(--secondary-color);
    color: #0D1117;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #30363D;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   UI Search & Layout Enhancements
   ========================================================================== */
.search-bar-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#search-input {
    width: 100%;
    max-width: 700px;
    padding: 16px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition-smooth);
}

#search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    width: 102%;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    font-family: var(--font-tamil);
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================================================
   List & Content View Styles
   ========================================================================== */
.list-container {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.list-item {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    background: var(--accent-color);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item h3 {
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--font-tamil);
    color: var(--text-color);
}

/* Content & Reader Layout */
#content-view, #reader-view {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

#reader-content {
    line-height: 2;
    font-size: 1.25rem;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

#reader-content h1, #reader-content h2, #reader-content h3 {
    color: var(--primary-color);
    font-family: var(--font-tamil);
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

#reader-content p {
    margin-bottom: 1.5rem;
}

#reader-content b, #reader-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Back Button styling */
.back-btn {
    font-family: var(--font-tamil);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: var(--secondary-color);
    color: #0D1117;
    transform: translateX(-3px);
}

/* ==========================================================================
   Modals & General Overlay Design (Glassmorphism)
   ========================================================================== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: center;
}

.auth-container {
    background: var(--card-bg);
    width: 95%;
    max-width: 480px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUpAuth 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUpAuth {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-tabs {
    display: flex;
    background: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    font-family: var(--font-tamil);
}

.auth-tab.active {
    background: var(--card-bg);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.auth-form {
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
}

.auth-form h2 {
    font-family: var(--font-tamil);
    margin-top: 0;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.auth-form input, .auth-form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.auth-form input:focus, .auth-form select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.auth-btn {
    font-family: var(--font-tamil);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%);
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Live Stream red container */
.live-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.08);
    border: 1px solid #FF3B30;
    margin-bottom: 35px;
}

/* Animations & Scroll top */
#scrollToTopBtn {
    border-radius: 50% !important;
    background: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
}

#scrollToTopBtn:hover {
    background: var(--secondary-color) !important;
    color: #0D1117 !important;
}

/* Local Commentary Bible highlight style */
.local-commentary .verse {
    border-left: 4px solid var(--secondary-color) !important;
    background: var(--accent-color) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Premium Play Store Button Hover Animations */
.premium-playstore-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    background: linear-gradient(45deg, #111111, #34495E) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.playstore-banner-card:hover {
    border-color: var(--secondary-color) !important;
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.12) 0%, rgba(212, 175, 55, 0.12) 100%) !important;
}
