/* Custom CSS for Tajik Online School */

/* Global Styles */
:root {
    --primary-color: #198754;
    --primary-dark: #146c43;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --border-radius: 12px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

body {
    font-weight: 300;
}

/* Navigation */
.navbar-brand {
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section img {
    border-radius: var(--border-radius);
}

/* Stats Section */
.stat-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

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

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

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

.service-icon {
    margin-bottom: 20px;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

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

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

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

.blog-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.9rem;
}

/* Team Cards */
.team-card {
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

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

/* Feature & Value Cards */
.feature-box,
.value-card {
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-box:hover,
.value-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Contact Form */
.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon-link {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: scale(1.2);
}

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

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Article Styles */
.article-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.article-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.article-text ul {
    margin-bottom: 1.5rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

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

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

.faq-answer.show {
    padding: 20px;
    max-height: 1000px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */

/* Mobile (до 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .course-card,
    .blog-card {
        margin-bottom: 20px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .cookie-banner p {
        font-size: 0.9rem;
    }
}

/* Tablet (576px - 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

/* Tablet/Desktop (768px - 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

/* Desktop (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cookie-banner,
    .share-section {
        display: none;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #842029;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Disclaimer Box */
.disclaimer-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.disclaimer-box h5 {
    color: #856404;
    margin-bottom: 15px;
}

.disclaimer-box p {
    color: #856404;
    margin-bottom: 0;
}