﻿/* =========================================
   1. CSS Variables & Design Tokens
   ========================================= */
:root {
    /* Primary Colors: Trust & Professionalism */
    --primary-blue: #0056b3;
    --dark-blue: #003d80;
    --light-blue: #e7f1ff;
    /* Indian Context Accents */
    --accent-saffron: #ff9933;
    --accent-green: #138808;
    /* Neutrals */
    --white: #ffffff;
    --off-white: #f9f9f9;
    --text-dark: #222222;
    --text-light: #555555;
    /* Spacing & Layout */
    --container-width: 1000px;
    --section-padding: 60px 20px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* =========================================
   2. Global Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem; /* Slightly larger for readability */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. Utility Classes
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-highlight {
    color: var(--primary-blue);
}

.bg-light {
    background-color: var(--light-blue);
}

.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background-color: var(--dark-blue);
        transform: translateY(-2px);
    }

/* Section Basics */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--accent-saffron);
        margin: 10px auto 0;
        border-radius: 2px;
    }

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .logo span {
        color: var(--accent-saffron);
    }

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

    nav a:hover,
    nav a.active {
        color: var(--primary-blue);
    }

/* =========================================
   5. Headers (Hero & Page)
   ========================================= */
/* Hero Section (Home) */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.25rem;
        max-width: 700px;
        margin: 0 auto 30px auto;
        opacity: 0.9;
    }

    .hero .btn {
        background-color: var(--accent-saffron);
        color: var(--text-dark);
    }

        .hero .btn:hover {
            background-color: #e68a00;
        }

/* Page Header (Internal Pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .page-header .subtitle {
        font-size: 1.25rem;
        opacity: 0.9;
        max-width: 600px;
        margin: 0 auto;
    }

/* =========================================
   6. About & Mission Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
}

/* =========================================
   7. Why India / Features Section
   ========================================= */
.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .feature-item strong {
        display: block;
        color: var(--primary-blue);
        margin-bottom: 5px;
    }

/* =========================================
   8. Government Support Section
   ========================================= */
.gov-section {
    background-color: var(--off-white);
    border-left: 10px solid var(--accent-saffron);
    border-right: 10px solid var(--accent-green); /* Tricolor hint */
}

.gov-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: var(--accent-saffron);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* =========================================
   9. Syllabus / Curriculum Section
   ========================================= */
.syllabus-section {
    padding: var(--section-padding);
}

.strategy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-saffron);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

    .strategy-badge::before {
        content: '📚';
        font-size: 1.5rem;
    }

/* Module Cards */
.modules-container {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.module-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: var(--transition);
    border-left: 6px solid var(--primary-blue);
}

    .module-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    }

    /* Different border colors for different modules */
    .module-card:nth-child(1) {
        border-left-color: var(--primary-blue);
    }

    .module-card:nth-child(2) {
        border-left-color: var(--accent-saffron);
    }

    .module-card:nth-child(3) {
        border-left-color: var(--accent-green);
    }

    .module-card:nth-child(4) {
        border-left-color: #8b5cf6;
    }

.module-header {
    padding: 25px 30px;
    background: linear-gradient(to right, var(--light-blue), var(--white));
    display: flex;
    align-items: center;
    gap: 20px;
}

.module-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.module-card:nth-child(2) .module-number {
    background: var(--accent-saffron);
    color: var(--text-dark);
}

.module-card:nth-child(3) .module-number {
    background: var(--accent-green);
}

.module-card:nth-child(4) .module-number {
    background: #8b5cf6;
}

.module-title h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--dark-blue);
}

.module-title span {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.module-content {
    padding: 25px 30px;
}

.topic-list {
    display: grid;
    gap: 15px;
}

.topic-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--off-white);
    border-radius: 6px;
    transition: var(--transition);
}

    .topic-item:hover {
        background: var(--light-blue);
    }

.topic-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.topic-item strong {
    color: var(--text-dark);
    font-weight: 600;
}

.topic-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

.note-box {
    background: #fff8e6;
    border: 2px dashed var(--accent-saffron);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 40px;
    text-align: center;
}

    .note-box h4 {
        color: var(--accent-saffron);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
    }

/* =========================================
   10. Privacy & Content Pages
   ========================================= */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

    .privacy-section:last-child {
        border-bottom: none;
    }

    .privacy-section h3 {
        color: var(--primary-blue);
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .privacy-section ul {
        list-style: disc;
        padding-left: 20px;
        margin-bottom: 1.5rem;
    }

    .privacy-section li {
        margin-bottom: 10px;
    }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 20px;
}

    .back-link:hover {
        text-decoration: underline;
    }

/* =========================================
   11. Call to Action (CTA) & Contact
   ========================================= */
/* CTA Section */
.cta-section {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

    .cta-section h2 {
        margin-bottom: 20px;
    }

    .cta-section .btn {
        background-color: var(--accent-saffron);
        color: var(--text-dark);
    }

        .cta-section .btn:hover {
            background-color: #e68a00;
        }

/* Contact Section */
.contact-section {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
}

    .contact-section .section-title {
        color: var(--white);
    }

        .contact-section .section-title::after {
            background-color: var(--accent-green);
        }

.contact-box {
    background: rgba(255,255,255,0.1);
    display: inline-block;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.contact-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-saffron);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

    .contact-link:hover {
        border-bottom-color: var(--accent-saffron);
        color: var(--white);
    }

/* =========================================
   12. Footer
   ========================================= */
footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 40px 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

    .social-icon:hover {
        background: var(--primary-blue);
        transform: scale(1.1);
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

/* =========================================
   13. Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Typography */
    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .privacy-section h3 {
        font-size: 1.3rem;
    }

    /* Layouts */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        width: 100%;
    }

    /* Modules (Syllabus) */
    .module-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .module-content {
        padding: 20px;
    }

    .topic-item {
        flex-direction: column;
        gap: 8px;
    }

    .topic-icon {
        align-self: flex-start;
    }
}
