/* Color Palette */
:root {
    --color-saffron: #FF9933; 
    --color-deep-blue: #334D66;
    --color-light-bg: #f8f9fa;
    --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; /* Body font clean sans-serif */
    line-height: 1.5;
    color: var(--color-dark-text);
    background-color: var(--color-white);
    width: 100%;
    overflow-x: hidden;
    font-size: 16px;
}

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

/* Header Styles */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-bottom: 2px solid var(--color-saffron); /* Spiritual accent */
    background: var(--color-white);
    width: 100%;
    position: relative;
    height: 70px;
}

.header-left {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.header-right {
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Navigation - Centered */
.main-nav {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
    margin: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-saffron);
    background: rgba(255, 153, 51, 0.1);
}

/* Special Link for Academic Site */
.nav-link.special-link {
    color: var(--color-deep-blue);
}
.nav-link.special-link:hover {
    background: rgba(51, 77, 102, 0.1);
}

/* Typography Helpers */
.saffron-text { color: var(--color-saffron); }
.blue-text { color: var(--color-deep-blue); }
.saffron-bg { background: var(--color-saffron) !important; color: white !important; }

.main-title {
    font-family: 'Merriweather', serif; /* Classic font for titles */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1;
}

.main-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.2;
}

.header-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Hero Section */
.hero-section {
    background: var(--color-deep-blue); /* Deep Spiritual Blue */
    color: white;
    padding: 25px 30px;
    text-align: center;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 100%;
    width: 100%;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #bdc3c7;
    line-height: 1.4;
}

/* Hero Summary (Compact) */
.hero-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    flex: 1;
    transition: background 0.3s ease;
}

.summary-item:hover { background: rgba(255, 255, 255, 0.05); }

.summary-icon {
    font-size: 1.4rem;
    color: var(--color-saffron); /* Saffron Icons */
}

.summary-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.summary-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-saffron);
    line-height: 1.1;
}

.summary-label {
    font-size: 0.8rem;
    color: #bdc3c7;
    font-weight: 500;
}

/* Search Bar */
.search-container {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #95a5a6;
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
    border-color: var(--color-saffron);
}

/* Sections */
.section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--color-deep-blue);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

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

.featured-section,
.how-it-works-section,
.other-products-section {
    padding: 30px 30px;
    width: 100%;
}

.how-it-works-section { background: var(--color-light-bg); }
.other-products-section { background: var(--color-deep-blue); color: white; }

.other-products-section .section-title,
.other-products-section .section-subtitle { color: white; }
.other-products-section .section-subtitle { color: #bdc3c7; }

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

.subject-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
}

.subject-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.subject-icon {
    background: var(--color-saffron);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.8rem;
}

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

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

.subject-description {
    color: #7f8c8d;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.subject-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

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

.subject-button {
    display: block;
    background: var(--color-saffron);
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
}

.subject-button:hover { background: #e68a2e; }

/* Other Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

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

.product-title {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-description {
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.product-button {
    display: inline-block;
    background: var(--color-saffron);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.product-button:hover {
    background: white;
    color: var(--color-saffron);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

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

.step-description {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--color-deep-blue);
    color: white;
    padding: 40px 30px 20px;
}

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

.footer-section h3 { 
    font-family: 'Merriweather', serif;
    font-size: 1.4rem; 
    margin-bottom: 10px; 
    color: var(--color-saffron);
}
.footer-section h4 { font-size: 1.1rem; margin-bottom: 10px; }
.footer-section p { font-size: 0.9rem; color: #ecf0f1; }

.footer-section ul li a { 
    font-size: 0.9rem; 
    color: white; /* High Visibility */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 20px;
    font-size: 0.85rem;
    color: #bdc3c7;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.heart { color: #e74c3c; }

/* Animation */
.animate-in { animation: fadeInUp 0.6s ease-out forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
    .content-header { 
        padding: 10px 15px; 
        height: auto; 
        flex-direction: column; 
        margin-bottom: 0; 
    }
    .header-left { 
        text-align: center; 
        width: 100%; 
        order: 2; 
        flex: none; 
        margin-top: 10px;
    }
    .header-right { 
        display: none; 
    }
    .main-nav { 
        display: none; 
    } /* Hide nav on mobile */
    
    /* Hide the entire hero section on mobile */
    .hero-section {
        display: none;
    }
    
    /* Adjust featured section to be the first content on mobile */
    .featured-section {
        padding-top: 20px;
        margin-top: 0;
    }
    
    .subjects-grid, .products-grid, .steps-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .section-title { 
        font-size: 1.5rem; 
    }
    .featured-section, .how-it-works-section, .other-products-section, footer { 
        padding: 30px 15px; 
    }
    
    /* Adjust search container margin when hero is hidden */
    .search-container {
        margin-top: 10px;
        margin-bottom: 20px;
    }
}