/* विद्या भारती पब्लिक स्कूल - Main Stylesheet */

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

/* Root Variables */
:root {
    --primary-green: #2d5016;
    --light-green: #4a7c2c;
    --golden-yellow: #f4a900;
    --light-gold: #ffd966;
    --white: #ffffff;
    --light-bg: #f9faf8;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --disclaimer-bg: #8b0000;
    --disclaimer-text: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: var(--disclaimer-bg);
    color: var(--disclaimer-text);
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    z-index: 1000;
}

.disclaimer-banner strong {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-green);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.4rem;
    padding: 15px 20px;
}

.navbar-tagline {
    color: var(--light-gold);
    font-size: 0.9rem;
    font-weight: 300;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    padding: 15px 20px !important;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--light-green);
}

.navbar-toggler {
    border-color: var(--white);
    margin: 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.85) 0%, rgba(74, 124, 44, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--light-gold);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-primary {
    background-color: var(--golden-yellow);
    border: none;
    color: var(--text-dark);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-primary:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Feature Cards */
.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--golden-yellow);
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border-left: 4px solid var(--golden-yellow);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 15px;
}

.testimonial-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Blog Cards */
.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

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

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-card p {
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Blog Article */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-article-header {
    margin-bottom: 30px;
}

.blog-article-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.blog-article-meta {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

.blog-article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-article-content ul, .blog-article-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.blog-article-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.contact-icon {
    font-size: 1.5rem;
    color: var(--golden-yellow);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-details p {
    margin: 0;
    font-size: 1rem;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--golden-yellow);
}

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

.btn-submit {
    background-color: var(--golden-yellow);
    border: none;
    color: var(--text-dark);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* FAQ Section */
.faq-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border-left: 4px solid var(--golden-yellow);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
}

/* Privacy Policy */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.privacy-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 30px;
    margin-bottom: 15px;
}

.privacy-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.privacy-content li {
    margin-bottom: 10px;
}

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

.footer h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--golden-yellow);
}

.footer p, .footer a {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer a:hover {
    color: var(--light-gold);
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

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

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

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

.cookie-banner p {
    margin: 0;
    flex: 1;
    margin-right: 20px;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--golden-yellow);
    text-decoration: underline;
}

.btn-cookie-accept {
    background-color: var(--golden-yellow);
    border: none;
    color: var(--text-dark);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .blog-article-title {
        font-size: 1.8rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4, .col-md-6, .col-lg-3, .col-lg-4 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333%;
    }
    
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        width: 25%;
    }
    
    .col-lg-4 {
        width: 33.333%;
    }
}
