/* Global Styles */
:root {
    --bg-color: #F5F7FA;
    --primary-color: #2F80ED;
    --accent-color: #FF7E47;
    --text-color: #1C1C1C;
    --text-secondary: #333333;
    --button-color: #6C63FF;
    --white: #FFFFFF;
    --header-bg: #E8ECF2;
    --footer-bg: #E1E7F0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-size: 2.2rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: block;
    background-color: var(--button-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: auto;
    max-width: max-content;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-button {
    background-color: var(--button-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-button:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Menu Toggle (Mobile) */
.menu-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle-label span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Courses Section */
.courses-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-info {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.course-info h3 {
    color: var(--primary-color);
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.advantage-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.advantage-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.advantage-card h3, .advantage-card p {
    padding: 0 20px;
}

.advantage-card h3 {
    margin-top: 20px;
    color: var(--primary-color);
}

.advantage-card p {
    margin-bottom: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 15px 0;
}

.service-content .btn {
    margin-top: auto;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.testimonial-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimonial-content {
    padding: 20px;
}

.role {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 20px;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 300px;
    padding: 20px;
}

.faq-checkbox:checked ~ .faq-question:after {
    content: '-';
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group select option {
    background-color: var(--white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.contact-info {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info p {
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 5rem auto;
    text-align: center;
}

/* Policy Pages */
.policy-section {
    padding: 60px 0;
}

.policy-container {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-container h2 {
    margin-top: 30px;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 20px;
    }

    .menu-toggle-label {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        z-index: 1000;
    }

    nav ul {
        flex-direction: column;
    }

    .menu-checkbox:checked ~ nav {
        right: 0;
        max-height: 100vh;
        height: 100vh;
    }

    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .thanks-section {
        height: auto;
    }
}
