/* style.css */

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

:root {
    --primary-color: #0052CC;
    --secondary-color: #000000;
    --text-color: #5E6C84;
    --text-dark: #172B4D;
    --bg-light: #F4F5F7;
    --bg-white: #FFFFFF;
    --border-color: #DFE1E6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

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

/* Header */
.header {
    background: var(--bg-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
}

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

.btn-primary:hover {
    background: #0047b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

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

.hero h1 {
    font-size: 56px;
    margin-bottom: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Courses Section */
.courses {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.course-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.course-content {
    padding: 28px;
}

.course-content h3 {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 700;
}

.course-content p {
    color: var(--text-color);
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.about h2 {
    font-size: 48px;
    margin-bottom: 28px;
    font-weight: 800;
}

.about p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.stats {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
}

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

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.testimonial-stars {
    color: #FF8C00;
    font-size: 16px;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.faq-question {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.faq-answer {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}

.contact h2 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 800;
}

.contact p {
    color: var(--text-color);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 16px;
}

.contact-details h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.contact-details p {
    margin-bottom: 16px;
    color: var(--text-color);
    font-size: 15px;
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
    background: var(--bg-white);
}

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

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

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.footer h4 {
    margin-bottom: 24px;
    font-size: 18px;
    color: var(--bg-white);
    font-weight: 700;
}

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

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

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    font-size: 15px;
}

.footer-links a:hover {
    opacity: 1;
}

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

.footer-bottom p {
    opacity: 0.8;
    font-size: 14px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    z-index: 2000;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-content {
    text-align: center;
}

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

.cookie-content h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.cookie-content p {
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 15px;
}

.cookie-content .btn {
    margin: 8px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    padding: 60px 80px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 32px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content .about-image {
        order: -1;
    }

    .courses-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .section-title {
        font-size: 38px;
    }

    .about h2,
    .contact h2 {
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .courses-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 24px;
    }

    .cookie-popup {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 30px 20px;
    }

    .cookie-content .btn {
        width: 100%;
        margin: 8px 0;
    }

    .modal-content {
        padding: 40px 30px;
    }

    .about h2,
    .contact h2 {
        font-size: 32px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .contact-content {
        gap: 40px;
    }
}