/* ===========================
   Qazaq Learning Hub - Main Styles
   =========================== */

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

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #25a56a;
    --dark-green: #1d8456;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    font-weight: 400;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

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

/* ===========================
   Disclaimer Banner (Red Warning)
   =========================== */
.disclaimer-banner {
    background-color: #dc3545;
    color: var(--white);
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 3px solid #c82333;
}

.disclaimer-banner p {
    margin: 0;
    padding: 0 20px;
}

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

/* ===========================
   Header & Navigation
   =========================== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo::before {
    content: "📚";
    font-size: 2rem;
}

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

nav ul li a {
    color: var(--dark-gray);
    font-weight: 400;
    transition: color 0.3s ease;
}

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

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0,50 Q25,30 50,50 T100,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

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

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

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

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===========================
   Feature Cards
   =========================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(37, 165, 106, 0.2);
}

.feature-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* ===========================
   Content Section
   =========================== */
.content-section {
    background-color: var(--light-gray);
}

.content-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.content-text {
    flex: 1;
    min-width: 300px;
}

.content-image {
    flex: 1;
    min-width: 300px;
}

.content-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    width: 100%;
}

/* ===========================
   Statistics Section
   =========================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #2c3e50;
    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(--primary-green);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===========================
   Cookie Banner
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px var(--shadow);
    z-index: 1000;
    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;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

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

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

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

.blog-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 165, 106, 0.2);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.blog-card p {
    color: #666;
    margin-bottom: 1rem;
}

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

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    color: #999;
    margin-bottom: 1rem;
}

.article-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

/* ===========================
   Course Cards
   =========================== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.course-card-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.course-card h3 {
    color: var(--white);
    margin: 0;
}

.course-card-content {
    padding: 1.5rem;
}

.course-card ul {
    list-style: none;
    padding: 0;
}

.course-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.course-card ul li:last-child {
    border-bottom: none;
}

.course-card ul li::before {
    content: "✓";
    color: var(--primary-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ===========================
   FAQ Styles
   =========================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.faq-item.active {
    border: 2px solid var(--primary-green);
}

.faq-question {
    background-color: var(--light-gray);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-question:active {
    background-color: #d0d0d0;
    transform: scale(0.99);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
    opacity: 1;
}

/* ===========================
   Team Section
   =========================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--shadow);
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 5px solid var(--primary-green);
}

.team-member h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.team-member-role {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    color: #666;
    margin-bottom: 0;
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* ===========================
   Breadcrumb
   =========================== */
.breadcrumb {
    padding: 1rem 0;
    background-color: var(--light-gray);
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb ul li::after {
    content: ">";
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb ul li:last-child::after {
    content: "";
}

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

.breadcrumb span {
    color: #666;
}
