/* Мактаби миллии Тоҷикистон - Main Styles */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary-green: #2d7a3e;
    --primary-green-dark: #1e5a2d;
    --primary-green-light: #4a9c5e;
    --text-dark: #2c3e50;
    --text-gray: #555;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

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

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

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

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

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

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

.logo-icon {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

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

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--white);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.hero .btn:hover {
    background-color: var(--bg-light);
}

.hero .btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* === SECTIONS === */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.section-title p {
    color: var(--text-gray);
    margin: 0 auto;
}

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

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.card-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.card p {
    margin: 0 auto;
    color: var(--text-gray);
}

/* === STATS === */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* === CONTENT SECTION === */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.content-text h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.content-text p {
    max-width: 100%;
}

.content-text ul {
    list-style: none;
    margin-top: 1.5rem;
}

.content-text ul li {
    padding: 0.5rem 0;
    padding-right: 2rem;
    position: relative;
    color: var(--text-gray);
}

.content-text ul li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.2rem;
}

/* === CTA (Call to Action) === */
.cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.cta h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--white);
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* === FOOTER === */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-green-light);
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.contact-info {
    list-style: none;
}

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

.contact-icon {
    color: var(--primary-green-light);
    font-size: 1.2rem;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

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

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

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-text a {
    color: var(--primary-green-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* === DISCLAIMER === */
.disclaimer {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.disclaimer-title {
    color: #856404;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-icon {
    font-size: 1.5rem;
}

.disclaimer-text {
    color: #856404;
    margin: 0;
    line-height: 1.6;
    max-width: 100%;
}

/* === BLOG === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.blog-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

/* === FAQ === */
.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text-gray);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

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

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

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

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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