/* GLOBAL STYLES */
:root {
    --background-color: #111827;
    --text-color: #F9FAFB;
    --primary-color: #3B82F6;
    --secondary-color: #9CA3AF; /* Changed for better contrast */
    --surface-color: #1F2937; /* For cards and other surfaces */
    --border-color: #374151;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    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, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

ul {
    list-style: none;
}

/* HEADER */
.header {
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.header__nav {
    display: none; /* Hidden on mobile */
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.header__nav-link--button:hover {
    background-color: #2563EB; /* Darker blue */
    color: var(--text-color);
}

.header__nav-link--button::after {
    display: none;
}

.header__burger-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: block; /* Shown on mobile */
}

/* Mobile Menu Styles */
.header__nav--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: -100%; /* Initially hidden */
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    transition: left 0.4s ease-in-out;
    z-index: 999;
}

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

.header__nav--mobile .header__nav-list {
    flex-direction: column;
    gap: 40px;
}

.header__nav--mobile .header__nav-link {
    font-size: 24px;
}

.header__nav--mobile .header__close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}


/* FOOTER */
.footer {
    background-color: var(--surface-color);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column .logo {
    margin-bottom: 20px;
}

.footer__description {
    color: var(--secondary-color);
    max-width: 300px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: var(--secondary-color);
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__link--icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__link--icon span {
    flex: 1;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 14px;
}

/* MEDIA QUERIES (Mobile-first approach) */
@media (min-width: 768px) {
    .header__burger-button {
        display: none;
    }

    .header__nav {
        display: block;
    }

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

@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

/* GENERAL PURPOSE & UTILITY CLASSES */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #2563EB;
    transform: translateY(-3px);
    color: var(--text-color);
}


/* HERO SECTION */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 100px 0;
}

.hero__visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

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

.hero__title {
    font-size: 3rem; /* 48px */
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* MEDIA QUERIES for Hero */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem; /* 40px */
    }

    .hero__subtitle {
        font-size: 1rem; /* 16px */
    }
}

/* FEATURES SECTION */
.features {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.features__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 15px;
}

.features__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary-color);
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card__icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon-wrapper i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-card__description {
    color: var(--secondary-color);
}

/* MEDIA QUERIES for Features */
@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features__title {
        font-size: 2rem;
    }
}

/* ABOUT US SECTION */
.about {
    padding: 80px 0;
    overflow-x: hidden; /* Prevents horizontal scrollbar from AOS */
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about__tagline {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 20px;
}

.about__description {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.125rem; /* 18px */
}

.about__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.about__list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about__list-item i {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.about__button {
    margin-top: 10px;
}

/* MEDIA QUERIES for About Us */
@media (min-width: 992px) {
    .about__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .about__title {
        font-size: 2rem;
    }
    .about__description {
        font-size: 1rem;
    }
}

/* COURSES SECTION */
.courses {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.courses__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.courses__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 15px;
}

.courses__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary-color);
}

.courses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.course-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card__image-wrapper {
    height: 220px;
}

.course-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill space */
}

.course-card__title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
}

.course-card__description {
    color: var(--secondary-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes tags and button down */
}

.course-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.course-card__tag {
    background-color: var(--surface-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.course-card__button {
    width: 100%;
}

/* MEDIA QUERIES for Courses */
@media (min-width: 640px) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .courses__title {
        font-size: 2rem;
    }
}

/* REVIEWS SECTION */
.reviews {
    padding: 80px 0;
}

.reviews__container {
    position: relative;
}

.reviews__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.reviews__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 15px;
}

.reviews__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--secondary-color);
}

.reviews__slider {
    padding-bottom: 60px !important; /* For pagination */
}

.review-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
}

.review-card__rating {
    display: flex;
    gap: 4px;
    color: #FBBF24; /* Amber color for stars */
    margin-bottom: 15px;
}

.review-card__rating i {
    width: 20px;
    height: 20px;
    fill: #FBBF24;
}

.review-card__text {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pushes author to the bottom */
}

.review-card__author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__author-name {
    display: block;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-color);
}

.review-card__author-course {
    font-size: 14px;
    color: var(--secondary-color);
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    background-color: var(--secondary-color);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
}

.reviews__nav:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.reviews__nav--prev {
    left: -22px;
}

.reviews__nav--next {
    right: -22px;
}

@media (max-width: 1244px) {
    .reviews__nav {
        display: none;
    }
}

/* CONTACT SECTION */
.contact {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact__description {
    color: var(--secondary-color);
    font-size: 1.125rem;
    max-width: 500px;
}

.contact__form-wrapper {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative; /* For success message positioning */
}

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

.form-group__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group__input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 25px;
}

.form-group__checkbox {
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.form-group__checkbox-label {
    font-size: 14px;
    color: var(--secondary-color);
}

.form-group__checkbox-label a {
    text-decoration: underline;
}

.contact__form-button {
    width: 100%;
    margin-top: 10px;
}

.contact__success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 5;
}

.contact__success-message.visible {
    opacity: 1;
    visibility: visible;
}

.contact__success-message i {
    color: #10B981; /* Green color */
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.contact__success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* MEDIA QUERIES for Contact */
@media (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}
@media (max-width: 768px) {
    .contact__title {
        font-size: 2rem;
    }
}

/* COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.visible {
    bottom: 0;
}

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    color: var(--secondary-color);
}

.cookie-popup__text a {
    text-decoration: underline;
}

.cookie-popup__button {
    padding: 10px 25px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        text-align: center;
    }
}


/* STYLES FOR POLICY PAGES (privacy.html, etc.) */
.pages {
    padding: 60px 0;
}

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

.pages h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p, 
.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.pages a {
    text-decoration: underline;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
}

.pages strong {
    color: var(--text-color);
}