/* Color Palette */
:root {
    --color-saffron: #FF9933; /* Primary: Saffron/Deep Orange */
    --color-deep-blue: #334D66; /* Secondary: Deep Blue (for text/accents) */
    --color-light-bg: #f8f9fa; /* Light Background */
    --color-white: #ffffff;
    --color-dark-text: #2c3e50;
    --color-light-text: #bdc3c7;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-dark-text);
    background-color: var(--color-white); /* White Background as requested */
    width: 100%;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Typography Helpers */
.saffron-text {
    color: var(--color-saffron);
}

.blue-text {
    color: var(--color-deep-blue);
}

.saffron-bg {
    background: var(--color-saffron) !important;
    color: var(--color-white) !important;
}

.blue-bg {
    background: var(--color-deep-blue) !important;
    color: var(--color-white) !important;
}

.saffron-bg-button {
    background: var(--color-saffron);
    color: var(--color-white);
    border: 2px solid var(--color-saffron);
    transition: all 0.3s ease;
}

.saffron-bg-button:hover {
    background: #e68a2e; /* Slightly darker saffron */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.4);
}

/* Header Styles - FIXED/STICKY HEADER & Padding Adjustment */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* FIX 1: Add 1% padding back for a slight gap on the sides */
    padding: 20px 1%; 
    border-bottom: 2px solid var(--color-saffron); 
    background: var(--color-white);
    max-width: 100%; 
    margin: 0 auto;
    
    /* FIX 2: Implement Sticky Header */
    position: sticky;
    top: 0;
    z-index: 100; /* Ensure it stays above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Optional: small shadow for depth */
}

/* Align header text elements */
.header-left {
    padding-left: 0; 
    margin: 0;
}

.main-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 5px;
    margin-left: 0; 
}

.main-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.3;
    margin-left: 0; 
}

.header-right {
    padding-right: 0; 
}

.header-logo {
    max-height: 80px; 
    width: auto;
}

/* Hero Section - Spiritual & Devotional */
.hero-section {
    background: var(--color-deep-blue);
    color: var(--color-white);
    padding: 60px 5%;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--color-white);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--color-light-text);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.hero-stat-tile {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-saffron);
    border-radius: 12px;
    padding: 25px 15px;
    transition: all 0.3s ease;
}

.hero-stat-tile:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--color-saffron);
    margin-bottom: 10px;
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-saffron);
}

.hero-stat-label {
    font-size: 0.95rem;
    color: var(--color-light-text);
    font-weight: 500;
}

/* Section Styles (Padding remains at 5% for main content) */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--color-deep-blue);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.featured-section,
.how-it-works-section,
.coming-soon-section,
.testimonials-section {
    padding: 60px 5%;
    width: 100%;
}

.how-it-works-section {
    background: var(--color-light-bg);
}

/* Subject Cards (unchanged) */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.subject-card.active {
    border-top: 4px solid var(--color-saffron);
}

.subject-icon {
    color: var(--color-white);
    padding: 25px;
    text-align: center;
    font-size: 2.5rem;
}

.subject-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.subject-title {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: var(--color-deep-blue);
    margin-bottom: 15px;
}

.subject-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    flex-grow: 1;
}

.subject-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.subject-stat {
    font-size: 0.95rem;
    color: var(--color-saffron);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.subject-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.coming-soon-badge {
    background: var(--color-deep-blue);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 10px;
}

/* How It Works Section (unchanged) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: inline-block;
    color: var(--color-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 15px;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.3rem;
    color: var(--color-deep-blue);
    margin-bottom: 12px;
}

.step-description {
    color: #7f8c8d;
}

/* Footer (unchanged) */
footer {
    background: var(--color-deep-blue);
    color: var(--color-white);
    padding: 50px 5% 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--color-saffron);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-white);
}

.footer-section p,
.footer-section ul li a {
    color: var(--color-light-text);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-saffron);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light-text);
}

.heart {
    color: #e74c3c;
}

/* Mobile Responsiveness (MAX-WIDTH: 768px) */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: center;
        padding: 15px 1%; /* Match desktop horizontal padding */
    }

    /* FIX 3: Reorder Logo (header-right) above Heading (header-left) on mobile */
    .header-right {
        order: 1; /* Move logo to the top */
        padding-right: 0; 
        margin-top: 0;
        margin-bottom: 10px; /* Space below the logo */
    }

    .header-left {
        order: 2; /* Move heading below the logo */
        padding-left: 0; 
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }
    
    .header-logo {
        max-height: 60px; 
    }
    
    .main-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .main-subtitle {
        font-size: 0.95rem;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Ensure section padding remains consistent */
    .featured-section,
    .how-it-works-section,
    .coming-soon-section,
    .testimonials-section,
    footer {
        padding-left: 5%; 
        padding-right: 5%;
    }

    /* === ADD THIS MEDIA QUERY RIGHT HERE === */
    /* Hide logo on mobile */
    @media (max-width: 768px) {
        .header-logo {
        display: none;
    }
}
}