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

:root {
    --primary-color: #4a3ddb;
    --primary-dark: #3c32b0;
    --secondary-color: #f37b30;
    --secondary-dark: #e06a20;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --light-gray: #f5f5f5;
    --border-color: #e1e1e1;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-dark);
}

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

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

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
    padding-bottom: 0px !important;
    background-image: linear-gradient(rgba(74, 61, 219, 0.9), rgba(74, 61, 219, 0.9)), url('./assets/hero-bg.jpg');
    background-size: cover;
    background-position: center bottom;
    text-align: center;
}

.hero img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    margin-top: 1rem;
}

.hero .container {
    max-width: 800px;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Advantages Section */
.advantages {
    background-color: var(--white);
}

.advantages-container {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.advantages-text {
    flex: 1;
}

.advantages-text .btn {
    margin-top: 1rem;
}

.advantages-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.advantage-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.icon {
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Courses Section */
.courses {
    background-color: var(--light-gray);
}

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

.course-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.course-image {
    height: 200px;
    overflow: hidden;
}

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

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

.course-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
}

.course-card p {
    padding: 0 1.5rem;
    flex-grow: 1;
}

.course-price {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.course-btn {
    margin: 1rem 1.5rem 1.5rem;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--light-gray);
    margin-bottom: 1rem;
    transition: var(--transition);
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary:after {
    content: '▼';
    font-size: 0.8rem;
    transition: var(--transition);
}

details[open] summary:after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-image {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

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

address {
    font-style: normal;
    margin-top: 2rem;
    line-height: 1.8;
}

address a {
    color: var(--white);
    border-bottom: 1px dotted var(--white);
}

address a:hover {
    border-bottom: 1px solid var(--white);
}

.form-group {
    margin-bottom: 1rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

/* Footer */
footer {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo a {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    margin: 0 1rem;
    font-size: 0.9rem;
}

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

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    z-index: 1000;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

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

.cookie-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.cookie-btn {
    width: 100%;
}

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

.secondary-cookie-btn {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.secondary-cookie-btn:hover {
    background-color: var(--light-gray);
    color: var(--text-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .advantages-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
}