/* Base Styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #263238;
    --light-color: #f5f5f5;
    --gray-color: #757575;
    --dark-navy: #1B2838;
    --container-width: 1200px;
    --section-padding: 60px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Urbanist', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-menu nav {
    padding: 20px;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Hero Section */
.hero {
    color: white;
    background-image: url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Courses Section */
.courses {
    padding: var(--section-padding);
}

.courses h2, .courses > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.course-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.course-card h3, .course-card p {
    padding: 0 20px;
}

.course-card h3 {
    margin-top: 20px;
}

.course-card p {
    padding-bottom: 20px;
}

.course-note {
    text-align: center;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    background-color: var(--dark-navy);
    color: white;
    padding: var(--section-padding);
}

.stats h2, .stats > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

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

.stats-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Why Learn With Us Section */
.why-us {
    padding: var(--section-padding);
}

.why-us-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-us-text {
    flex: 1;
}

.why-us-point {
    margin-bottom: 30px;
}

.why-us-point h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.why-us-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.why-us-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-us-image:hover img {
    transform: scale(1.03);
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
    padding: var(--section-padding);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Blog Section */
.blog {
    padding: var(--section-padding);
}

.blog h2, .blog > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    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-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card h3, .blog-card p {
    padding: 0 20px;
}

.blog-card h3 {
    margin-top: 20px;
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    background-color: #f9f9f9;
    padding: var(--section-padding);
}

.contact h2, .contact > p {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

form {
    max-width: 600px;
    margin: 40px auto 0;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
}

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

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

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.footer-address p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
}

.footer-links a {
    color: #ddd;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.footer-copyright {
    grid-column: 1 / -1;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-popup.show {
    opacity: 1;
    visibility: visible;
}

.cookie-popup-content {
    padding: 25px;
}

.cookie-popup h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cookie-consent, .cookie-settings {
    margin-bottom: 20px;
}

.cookie-settings h3, .cookie-consent h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cookie-settings ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.cookie-settings li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

html {
    scroll-behavior: smooth;
}

.main-section {
    padding: var(--section-padding);
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .course-cards, .stats-cards, .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us-content {
        flex-direction: column;
    }
    
    .why-us-image {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .course-cards, .stats-cards, .blog-cards, .testimonial-cards {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    input, textarea {
        padding: 10px;
    }
    
    .course-image, .blog-image {
        height: 180px;
    }
}