/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn--primary {
    background-color: #4169e1;
    color: white;
}

.btn--primary:hover {
    background-color: #3158d3;
}

.btn--secondary {
    background-color: transparent;
    color: #4169e1;
    border: 1px solid #4169e1;
}

.btn--secondary:hover {
    background-color: rgba(65, 105, 225, 0.1);
}

.btn--full {
    width: 100%;
}

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

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4169e1;
}

.nav__list {
    display: flex;
}

.nav__item {
    margin-left: 2rem;
}

.nav__link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #4169e1;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    padding: 5rem 0;
    background-color: #f0f4ff;
    text-align: center;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title-accent {
    color: #4169e1;
    display: block;
}

.hero__text {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* About section */
.about {
    padding: 5rem 0;
    background-color: white;
}

.about__content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about__text {
    flex: 1;
}

.about__text p {
    margin-bottom: 1.5rem;
}

.about__list {
    margin-top: 2rem;
}

.about__list-item {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.about__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: #eef2ff;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%234169e1" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.about__image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Courses section */
.courses {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

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

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

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

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

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

.course-card__title {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.25rem;
}

.course-card__text {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

.course-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.course-card__duration {
    font-weight: 500;
    color: #666;
}

.course-card__link {
    color: #4169e1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.course-card__link:hover {
    color: #3158d3;
}

/* Testimonials section */
.testimonials {
    padding: 5rem 0;
    background-color: white;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

.testimonial-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e6ebff;
    color: #4169e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.testimonial-card__name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-card__position {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-card__text {
    color: #555;
    font-style: italic;
}

/* Contact section */
.contact {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4169e1;
}

.contact__info-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact__info-list {
    margin-bottom: 2.5rem;
}

.contact__info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact__info-icon {
    margin-right: 1rem;
    color: #4169e1;
}

.contact__info-link {
    color: #4169e1;
    transition: color 0.3s ease;
}

.contact__info-link:hover {
    color: #3158d3;
}

.contact__hours-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.contact__hours-day {
    font-weight: 500;
}

.contact__hours-time {
    color: #666;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #f8f9fa;
    padding: 4rem 0 2rem;
}

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

.logo--footer {
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__description {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.footer__heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer__nav-item,
.footer__contact-item {
    margin-bottom: 0.8rem;
}

.footer__nav-link,
.footer__contact-link {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer__nav-link:hover,
.footer__contact-link:hover {
    color: white;
}

.footer__contact-text {
    color: #ccc;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    color: #ccc;
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(150%);
    transition: transform 0.5s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-popup__content {
    padding: 2rem;
}

.cookie-popup__title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.cookie-popup__text {
    margin-bottom: 1.5rem;
    color: #666;
}

.cookie-popup__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-popup__btn {
    flex: 1;
}

.cookie-popup__more {
    font-size: 0.9rem;
    color: #666;
}

.cookie-popup__link {
    color: #4169e1;
    text-decoration: underline;
}

.cookie-popup__link:hover {
    color: #3158d3;
}

/* Media queries for responsiveness */
@media (max-width: 992px) {
    .about__content {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        margin-top: 1rem;
    }
    
    .nav__item {
        margin: 0 0.5rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .courses__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup__buttons {
        flex-direction: column;
    }
}

/* Mobile menu for very small screens */
@media (max-width: 480px) {
    .nav__list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav__item {
        margin: 0;
    }
}

.main-section {
    padding: 5rem 0;
}

.main-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}