/* ============================================
   Qazaq Online Bilim - Main Stylesheet
   Modern, Responsive Design for Online Education
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --bg-white: #ffffff;
    --border-color: #dfe6e9;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ===== 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; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 300;
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== DISCLAIMER BANNER ===== */
.disclaimer-banner {
    background-color: #fff3cd;
    border-bottom: 2px solid #ffc107;
    padding: 15px 0;
    font-size: 0.9rem;
}

.disclaimer-banner p {
    margin: 0;
    max-width: 100%;
    line-height: 1.5;
    color: #856404;
}

.disclaimer-banner strong {
    font-weight: 600;
}

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

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

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

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 100%;
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    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: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

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

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600'), linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 100%;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Category sections */
.courses-category {
    padding: 60px 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

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

.platform-feature {
    text-align: center;
    padding: 30px 20px;
}

.platform-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}

.platform-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.platform-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0 auto;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.content-text h2 {
    margin-bottom: 20px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checklist i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background-color: var(--primary-color);
    color: white;
}

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

.stat-card {
    text-align: center;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

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

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== COURSES GRID ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.course-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

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

/* Detailed Course Cards */
.course-card-detailed {
    display: flex;
    gap: 25px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 25px;
}

.course-card-detailed:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.course-card-detailed .course-image {
    flex: 0 0 300px;
    height: auto;
    min-height: 200px;
}

.course-card-detailed .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card-detailed .course-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-card-detailed .course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.team-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

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

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

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

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

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: 30px;
}

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

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-content h2 a {
    color: var(--text-dark);
}

.blog-content h2 a:hover {
    color: var(--primary-color);
}

/* ===== ARTICLE PAGE ===== */
.article-header {
    background-color: var(--bg-light);
    padding: 40px 0 30px;
}

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

.article-breadcrumb a {
    color: var(--text-light);
}

.article-breadcrumb a:hover {
    color: var(--primary-color);
}

.article-breadcrumb i {
    margin: 0 8px;
    font-size: 0.7rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: var(--text-light);
}

.article-image-section {
    padding: 0;
    margin: 40px 0;
}

.article-image-section img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.article-content {
    padding: 40px 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 100%;
}

.article-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background-color: var(--bg-light);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote p {
    font-style: italic;
    margin: 0;
    max-width: 100%;
}

blockquote footer {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-light);
}

.highlight-box,
.info-box {
    background-color: #e8f5e9;
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.highlight-box h4,
.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-box p {
    margin: 0 auto 25px;
    opacity: 0.95;
}

.cta-box .btn {
    margin: 0 10px;
}

.article-share {
    max-width: 800px;
    margin: 40px auto;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.article-share h4 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.whatsapp { background-color: #25d366; }

.related-articles {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

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

.related-card img {
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.related-card h4 a {
    color: var(--text-dark);
}

.related-card h4 a:hover {
    color: var(--primary-color);
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: var(--bg-light);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-text h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-info-text p {
    margin: 0;
    color: var(--text-light);
}

.contact-info-text .small-text {
    font-size: 0.85rem;
    margin-top: 5px;
}

.social-links-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.social-link-large {
    padding: 12px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.social-link-large:hover {
    transform: translateX(5px);
}

.social-link-large.facebook { background-color: #3b5998; }
.social-link-large.instagram { background-color: #e1306c; }
.social-link-large.linkedin { background-color: #0077b5; }
.social-link-large.youtube { background-color: #ff0000; }
.social-link-large.whatsapp { background-color: #25d366; }
.social-link-large.telegram { background-color: #0088cc; }

.map-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

/* ===== FAQ SECTION ===== */
.faq-category {
    margin-bottom: 50px;
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.faq-category-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.faq-item-detailed {
    margin-bottom: 15px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: var(--bg-white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

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

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 0 25px 20px;
    margin: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 50px;
}

/* ===== LEGAL CONTENT ===== */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
}

.legal-document h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.legal-document h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-document ul {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.legal-document li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

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

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

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet */
@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .content-grid { grid-template-columns: 1fr; gap: 40px; }
    .content-grid.reverse { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; }
    .course-card-detailed { flex-direction: column; }
    .course-card-detailed .course-image { 
        flex: 1; 
        height: 250px; 
        max-height: 250px;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero { padding: 60px 0; min-height: 500px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section { padding: 60px 0; }
    .page-header h1 { font-size: 2rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    
    .category-header { flex-direction: column; text-align: center; }
    .category-icon { margin: 0 auto 20px; }
    
    .services-grid { grid-template-columns: 1fr; }
    .platform-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .cookie-content { flex-direction: column; }
    
    .article-header h1 { font-size: 1.75rem; }
    .article-body .lead { font-size: 1.1rem; }
    
    .social-links-large { grid-template-columns: 1fr; }
    
    .comparison-table { font-size: 0.9rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    .btn-lg { padding: 14px 30px; font-size: 1rem; }
}