/* =====================================================
   Bilim Mektebi - School Website Styles
   Modern, Responsive Design with Kazakh Cultural Elements
   ===================================================== */

/* =============== ROOT VARIABLES =============== */
:root {
    --primary-green: #1b8b4c;
    --dark-green: #156b3a;
    --gold: #f6c343;
    --light-gold: #ffd96a;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --text-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* =============== RESET & BASE STYLES =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =============== DISCLAIMER =============== */
.disclaimer {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: var(--white);
    padding: 15px 0;
    font-size: 14px;
    border-bottom: 3px solid #bd2130;
}

.disclaimer p {
    margin: 0;
    line-height: 1.5;
}

.disclaimer strong {
    font-weight: 600;
}

/* =============== COOKIE BANNER =============== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 139, 76, 0.98);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-content a {
    color: var(--gold);
    text-decoration: underline;
}

.btn-accept {
    background: var(--gold);
    color: var(--dark-gray);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-accept:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
}

/* =============== HEADER & NAVIGATION =============== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.logo-icon {
    font-size: 32px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

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

.btn-nav {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 25px;
}

.btn-nav:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

.btn-primary-inverse:hover {
    background: var(--gold);
    color: var(--white);
}

/* =============== HERO SECTION =============== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%),
                url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1600') center/cover;
    background-blend-mode: multiply;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(246, 195, 67, 0.05) 10px,
        rgba(246, 195, 67, 0.05) 20px
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== SECTIONS =============== */
section {
    padding: 80px 0;
}

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

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

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

/* =============== MISSION SECTION =============== */
.mission {
    background: var(--light-gray);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

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

/* =============== PROGRAMS SECTION =============== */
.programs-grid {
    display: grid;
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

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

.program-features {
    list-style: none;
}

.program-features li {
    color: var(--text-color);
    padding: 8px 0;
    font-size: 15px;
}

/* =============== ACHIEVEMENTS SECTION =============== */
.achievements {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
}

.achievements .section-title,
.achievements .section-subtitle {
    color: var(--white);
}

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

.achievement-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.achievement-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 18px;
    opacity: 0.9;
}

/* =============== NEWS/BLOG SECTION =============== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.news-content p {
    color: var(--medium-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--dark-green);
    padding-left: 5px;
}

/* =============== CTA SECTION =============== */
.cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    color: var(--dark-gray);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* =============== FOOTER =============== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-column p {
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-column ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--gold);
}

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

/* =============== UTILITY CLASSES =============== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

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

/* =============== FORMS =============== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 139, 76, 0.1);
}

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

.form-submit {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* =============== PAGE-SPECIFIC STYLES =============== */

/* About Page */
.about-hero {
    background: linear-gradient(135deg, rgba(27, 139, 76, 0.9), rgba(21, 107, 58, 0.9)),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1600') center/cover;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-box {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.contact-info-box h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* FAQ Page */
.faq-item {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question.active {
    background: var(--primary-green);
    color: var(--white);
}

.faq-icon {
    font-size: 20px;
    transition: var(--transition);
}

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

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

.faq-answer.active {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--medium-gray);
    line-height: 1.8;
}

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

/* Article Page */
.article-header {
    background: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.article-title {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.article-meta {
    color: var(--medium-gray);
    font-size: 16px;
}

.article-content {
    max-width: 800px;
    margin: 60px auto;
    line-height: 1.9;
}

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

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

.article-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.article-content li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.article-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

/* =============== RESPONSIVE DESIGN =============== */

@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .mission-grid,
    .programs-grid,
    .news-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .article-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-number {
        font-size: 36px;
    }
}