/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #4A4A6B;
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #6366F1;
    color: white;
}

.btn-primary:hover {
    background: #5856eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4A4A6B;
}

/* Header */
.header {
    background: #4A4A6B;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.nav-brand span {
    color: #6366F1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #6366F1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #4A4A6B;
    color: white;
    padding: 4rem 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.hero h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #6366F1;
}

.hero h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1.5rem;
    color: white;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: #f8f9fa;
}

.how-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.how-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.how-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.how-text h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #6366F1;
}

.how-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.how-text li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Courses Section */
.courses {
    padding: 4rem 0;
    background: #4A4A6B;
    color: white;
}

.courses h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.courses > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4A4A6B;
}

.course-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.course-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.course-card strong {
    color: #6366F1;
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: #f8f9fa;
}

.blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.blog > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin: 1rem;
    color: #333;
    line-height: 1.4;
}

.blog-card p {
    padding: 0 1rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #4A4A6B;
    color: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.testimonials > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #6366F1;
    font-weight: 700;
}

.testimonial-card p {
    line-height: 1.6;
    font-style: italic;
}

/* Experts Section */
.experts {
    padding: 4rem 0;
    background: white;
}

.experts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.experts > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expert-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.expert-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.expert-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.expert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #6366F1;
    font-weight: 600;
}

.expert-card p {
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #4A4A6B;
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366F1;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-details h3,
.legal-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-details p,
.legal-links p {
    margin-bottom: 0.5rem;
}

.legal-links a {
    color: #6366F1;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: #4A4A6B;
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .how-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .courses,
    .testimonials,
    .contact {
        padding: 3rem 0;
    }
    
    .course-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cookie-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Additional animations and transitions */
.course-card,
.blog-card,
.testimonial-card,
.expert-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.testimonial-card:hover,
.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Smooth scrolling enhancement */
section {
    scroll-margin-top: 80px;
}

/* Form Error Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Header Scroll Effect */
.header.scrolled {
    background: rgba(74, 74, 107, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lazy Loading Images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Skip Link */
.skip-link:focus {
    top: 6px !important;
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.text-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 120px 0;
}

.text-section h2 {
    font-family: Lora;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: uppercase;
    color: #3B3B3B;
}

.text-section p {
    font-family: Lato;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #626262;
}