/* श्री सरस्वती विद्यालय - Main Stylesheet */

/* Import Poppins font with Devanagari support */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Indian Color Palette */
:root {
    --primary-saffron: #FF9933;
    --primary-green: #138808;
    --primary-white: #FFFFFF;
    --dark-green: #0d6006;
    --light-saffron: #FFB366;
    --light-green: #19A50D;
    --bg-cream: #FFF8F0;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-white);
    overflow-x: hidden;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: #FFF3CD;
    border-bottom: 2px solid #FFD700;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    color: #856404;
}

.disclaimer-banner p {
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--primary-white);
    padding: 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px var(--shadow);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-banner button {
    background-color: var(--primary-green);
    color: var(--primary-white);
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cookie-banner button:hover {
    background-color: var(--dark-green);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(to right, var(--primary-saffron), var(--light-saffron), var(--primary-green));
    padding: 10px 0;
    color: var(--primary-white);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-contact {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.header-contact i {
    margin-right: 5px;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--primary-saffron);
    font-weight: 500;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary-green);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--primary-white) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-tagline {
    font-size: 20px;
    color: var(--primary-saffron);
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-green);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-secondary {
    background-color: var(--primary-saffron);
}

.btn-secondary:hover {
    background-color: #E68A2E;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-saffron), var(--primary-green));
    margin: 20px auto;
    border-radius: 2px;
}

/* Statistics Section */
.stats {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: var(--primary-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    font-weight: 500;
}

/* Services/Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--primary-white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 56px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Teachers Section */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.teacher-card {
    background-color: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.teacher-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.teacher-info {
    padding: 25px;
    text-align: center;
}

.teacher-info h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 8px;
    font-weight: 600;
}

.teacher-subject {
    color: var(--primary-saffron);
    font-weight: 500;
    margin-bottom: 10px;
}

.teacher-info p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-gray);
}

.blog-meta i {
    margin-right: 5px;
}

.blog-content h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.blog-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-content .btn {
    padding: 10px 25px;
    font-size: 14px;
}

/* Article Page */
.article-hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--primary-white) 100%);
    padding: 60px 0 40px;
}

.article-header h1 {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 18px;
    color: var(--text-dark);
}

.article-content h2 {
    font-size: 32px;
    color: var(--primary-green);
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-content h3 {
    font-size: 24px;
    color: var(--primary-green);
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 40px;
    line-height: 1.8;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

/* Contact Form */
.contact-section {
    background-color: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 40px;
    background-color: var(--primary-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-saffron);
    margin-top: 5px;
}

.contact-item-content h4 {
    font-size: 18px;
    color: var(--primary-green);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-form {
    padding: 40px;
    background-color: var(--primary-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 30px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--primary-white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 25px;
    background-color: var(--bg-cream);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #FFE5CC;
}

.faq-question i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 25px;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Privacy & Terms Pages */
.content-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--primary-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.content-container h1 {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 30px;
    font-weight: 700;
}

.content-container h2 {
    font-size: 28px;
    color: var(--primary-green);
    margin: 40px 0 20px;
    font-weight: 600;
}

.content-container h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin: 30px 0 15px;
    font-weight: 600;
}

.content-container p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-gray);
}

.content-container ul,
.content-container ol {
    margin: 20px 0 20px 40px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--primary-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-saffron);
    font-weight: 600;
}

.footer-section p,
.footer-section ul {
    color: #CCCCCC;
    line-height: 1.8;
}

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

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

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

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

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--primary-saffron);
    margin-top: 3px;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 145px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 145px);
        background-color: var(--primary-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: -2px 0 10px var(--shadow);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .content-container {
        padding: 30px 20px;
    }
}

@media (max-width: 640px) {
    .header-contact {
        font-size: 12px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .features-grid,
    .teachers-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
