/* G L O B A L S */
:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #111827;
    --color-bg-secondary: #1F2937;
    --color-text: #E5E7EB;
    --color-text-muted: #9CA3AF;
    --color-primary: #3B82F6;
    --color-border: #374151;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
}

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

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* H E A D E R */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: color-mix(in srgb, var(--color-bg) 80%, transparent);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

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

.header__nav-list {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

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

.header__nav-link:hover {
    color: var(--color-text);
    opacity: 1;
}

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

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

/* F O O T E R */
.footer {
    padding: 4rem 0;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

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

.footer__logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__link {
    color: var(--color-text-muted);
    font-size: 1rem;
}

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

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__contact-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
}


/* R E S P O N S I V E */

/* Tablet and wider */
@media (min-width: 768px) {
    .header__nav {
        display: block;
    }

    .header__burger-btn {
        display: none;
    }

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

/* Desktop */
@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

/* B U T T O N */
.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    background-color: color-mix(in srgb, var(--color-primary) 90%, black);
    transform: translateY(-3px);
    opacity: 1; /* Override default link hover */
}


/* H E R O */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

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

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* R E S P O N S I V E (Hero) */
@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }
}

/* S E C T I O N  G L O B A L S */
.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}


/* C O U R S E S */
.courses {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.courses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.courses__card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.courses__card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.courses__card-icon-wrapper {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-radius: 50%;
}

.courses__card-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.courses__card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.courses__card-description {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* R E S P O N S I V E (Courses) */
@media (min-width: 768px) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* P R O C E S S */
.process {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.process__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-border);
    top: 25px;
    bottom: 25px;
    left: 24px; /* Centered on the icon */
    z-index: 1;
}

.process__item {
    padding-left: 70px; /* Space for icon and line */
    position: relative;
}

.process__icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    background-color: var(--color-bg-secondary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    color: var(--color-primary);
}

.process__content {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.process__step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.process__step-description {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* R E S P O N S I V E (Process) */

/* Desktop Timeline Layout */
@media (min-width: 768px) {
    .process__timeline::after {
        left: 50%;
        margin-left: -1px;
    }

    .process__item {
        padding-left: 0;
        width: 50%;
    }
    
    /* Place items on left and right */
    .process__item:nth-child(odd) {
        align-self: flex-start;
        padding-right: 50px;
    }

    .process__item:nth-child(even) {
        align-self: flex-end;
        padding-left: 50px;
    }

    /* Place icons on the center line */
    .process__icon-wrapper {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Arrow pointers */
    .process__content::before {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-style: solid;
        top: 18px;
    }
    
    .process__item:nth-child(odd) .process__content::before {
        right: -10px;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent var(--color-border);
    }

    .process__item:nth-child(even) .process__content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--color-border) transparent transparent;
    }
}

/* A B O U T */
.about {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

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

.about__image-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.about__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
}

.about__content {
    text-align: left;
}

/* Override global section-title for this block */
.about__title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about__text {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

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

.about__stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.about__stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}


/* R E S P O N S I V E (About) */
@media (max-width: 500px) {
    .about__stats {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1.5rem;
    }
    .about__stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .about__stat-number {
         margin-bottom: 0;
    }
}


@media (min-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr 1.1fr; /* Give slightly more space to text */
        gap: 5rem;
    }
}

/* F A Q */
.faq {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    
    background: none;
    border: none;
    cursor: pointer;
    
    color: var(--color-text);
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: left;
}

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

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.4s ease-out;
}

.faq__answer p {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    overflow: hidden;
}

/* Active State */
.faq__item.faq__item--active .faq__question {
    color: var(--color-primary);
}

.faq__item.faq__item--active .faq__icon {
    transform: rotate(180deg);
}

.faq__item.faq__item--active .faq__answer {
    grid-template-rows: 1fr;
}


/* C O N T A C T */
.contact {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.contact__form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group__label {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-group__input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group__input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.form-group__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-group--checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--color-primary);
}

.form-group--checkbox a {
    text-decoration: underline;
}

.contact__submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    display: none; /* Hidden by default */
}

.form-status--success {
    display: block;
    background-color: color-mix(in srgb, var(--color-primary) 15%, transparent);
    border: 1px solid var(--color-primary);
    color: var(--color-text);
}

.form-status--error {
    display: block;
    background-color: color-mix(in srgb, #F43F5E 15%, transparent);
    border: 1px solid #F43F5E;
    color: #F43F5E;
}
/* C O O K I E   P O P - U P */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    z-index: 200;

    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

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

.cookie-popup__text a {
    color: var(--color-text);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .cookie-popup__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* S T A T I C   P A G E S   S T Y L E S */
/* (for privacy.html, terms.html, etc.) */
.pages {
    padding: 4rem 0;
}

.pages .container {
    max-width: 800px; /* Limit width for better readability */
}

.pages h1 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.pages p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.pages li {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pages a {
    text-decoration: underline;
}

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