/* ======== 0. GLOBAL STYLES ======== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0A84FF;
    --secondary-color: #30E3CA;
    --dark-color: #1C2541;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --white-color: #FFFFFF;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img, svg {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--dark-color);
}

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

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

.logo__svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.logo__text {
    color: var(--dark-color);
}


/* ======== 1. HEADER ======== */
.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--white-color);
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

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

.header__nav {
    display: none; /* Mobile first: hide desktop nav */
}

.header__burger {
    display: block;
    color: var(--dark-color);
    padding: 8px;
}

.header__burger i {
    width: 28px;
    height: 28px;
}

/* ======== MOBILE MENU ======== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white-color);
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu--open {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 8px;
    color: var(--dark-color);
}

.mobile-menu__close i {
    width: 32px;
    height: 32px;
}

.mobile-menu__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu__nav-link {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.mobile-menu__nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu__nav-link--button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 24px;
    border-radius: 8px;
}

.mobile-menu__nav-link--button:hover {
    color: var(--white-color);
    opacity: 0.9;
}


/* ======== MAIN (Placeholder) ======== */
.main {
    /* Add padding to avoid content being hidden by fixed header */
    padding-top: var(--header-height); 
}

/* ======== 2. FOOTER ======== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px 0;
    margin-top: 60px; /* Spacer */
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__column--logo .logo {
    color: var(--primary-color); /* Override default logo color */
}
.footer__column--logo .logo__text {
    color: var(--white-color);
}

.footer__description {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 16px;
    max-width: 300px;
}

.footer__heading {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--white-color);
    margin-bottom: 20px;
}

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

.footer__link {
    font-size: 15px;
    opacity: 0.8;
}

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

.footer__list-item--contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    opacity: 0.8;
}

.footer__list-item--contact i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--secondary-color);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ======== RESPONSIVE (Desktop) ======== */

@media (min-width: 768px) {
    .footer__grid {
        /* Switch to 2 columns for tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .header__nav {
        display: block;
    }
    
    .header__nav-list {
        display: flex;
        align-items: center;
        gap: 24px;
    }
    
    .header__nav-link {
        font-family: var(--font-secondary);
        font-weight: 500;
        color: var(--text-color);
        position: relative;
        padding: 8px 0;
    }

    /* Simple underline hover effect */
    .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(--white-color);
        padding: 10px 20px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .header__nav-link--button:hover {
        color: var(--white-color);
        background-color: #0073e6;
    }
    .header__nav-link--button::after {
        display: none; /* No underline for button */
    }

    .header__burger {
        display: none;
    }

    .footer__grid {
        /* Switch to 4 columns for desktop */
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

/* ======== GLOBAL BUTTONS ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn--primary:hover {
    background-color: #0073e6; /* Darker primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

/* ======== 3. HERO SECTION ======== */
.hero {
    background-color: var(--white-color);
    padding: 60px 0;
    /* Ensure it takes at least the full viewport height minus header */
    min-height: calc(100vh - var(--header-height)); 
    display: flex;
    align-items: center;
    overflow: hidden; /* Hide overflowing canvas elements */
}

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

.hero__title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 1.125rem; /* 18px */
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.hero__cta {
    font-size: 18px;
}

.hero__visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 300px; /* Fixed height for mobile */
    margin: 0 auto;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ======== RESPONSIVE (Hero) ======== */

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem; /* 48px */
    }

    .hero__visual {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 80px 0;
    }

    .hero__container {
        grid-template-columns: 1.2fr 1fr; /* Content slightly larger */
        gap: 60px;
        text-align: left;
    }

    .hero__description {
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero__visual {
        height: 100%; /* Fill the grid cell */
        min-height: 450px;
        max-width: none;
    }
    
    .hero__content {
        /* Add a subtle fade-in animation */
        animation: fadeIn 1s ease-out forwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======== GLOBAL SECTION STYLES ======== */
.section {
    padding: 60px 0;
}

.section__subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section__title {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section__description {
    font-size: 1.1rem; /* 17px */
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 700px;
}

/* Center-align titles for mobile */
@media (max-width: 767px) {
    .section__subtitle,
    .section__title,
    .section__description {
        text-align: center;
    }
    
    .section__description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ======== 4. ABOUT SECTION ======== */
.about {
    background-color: var(--light-color); /* Light gray background */
}

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

.about__visual {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

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

.about__highlight {
    font-weight: 500;
    color: var(--dark-color);
}

.about__features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

.about__feature {
    background-color: var(--white-color);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center on mobile */
    text-align: center; /* Center on mobile */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.about__feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    margin-bottom: 16px;
}

.about__feature-icon i {
    width: 24px;
    height: 24px;
}

.about__feature-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    margin-bottom: 8px;
}

.about__feature-description {
    font-size: 15px;
    opacity: 0.8;
}


/* ======== RESPONSIVE (About) ======== */

@media (min-width: 500px) {
    /* Stacked cards to 2 columns on small screens if needed, but 1 column is fine */
    /* Let's try 2 columns for features earlier */
    .about__features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .section__title {
        font-size: 2.5rem; /* 40px */
    }

    .about__container {
        grid-template-columns: 1fr 1.2fr; /* Image | Content */
        gap: 60px;
    }
    
    .about__visual {
        max-width: none;
    }
    
    .about__feature {
        /* Align left for desktop view */
        align-items: flex-start;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    /* Make the 3rd feature span both columns if we stick to 2-col grid */
    /* Or just keep 3 items in a 2-col grid, which looks fine */
    /* Let's try 3 columns for features on large screens */
    .about__features-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ======== GLOBAL BUTTON (Secondary) ======== */
.btn--secondary {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.2);
}

/* Center-align section headers globally */
.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* ======== 5. COURSES SECTION ======== */
.courses {
    background-color: var(--white-color);
}

.courses__tabs {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.courses__tabs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    border: 2px solid #eee;
    border-radius: 8px;
    background-color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.courses__tabs-btn i {
    width: 20px;
    height: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.courses__tabs-btn:hover {
    background-color: var(--light-color);
    border-color: #ddd;
}

.courses__tabs-btn--active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.courses__tabs-btn--active i {
    color: var(--white-color);
}

/* Tab Content */
.courses__content {
    display: none; /* Hide all content by default */
    animation: fadeIn 0.5s ease; /* Use existing fadeIn */
}

.courses__content--active {
    display: block; /* Show active content */
}

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

/* Course Card */
.course-card {
    background-color: var(--white-color);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.course-card__image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.course-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make content fill the space */
}

.course-card__title {
    font-size: 1.3rem; /* 21px */
    font-weight: 600;
    margin-bottom: 12px;
}

.course-card__description {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 24px;
    flex-grow: 1; /* Push button to the bottom */
}

.course-card__cta {
    width: 100%; /* Make button full-width */
    padding-top: 12px;
    padding-bottom: 12px;
}

.course-card__cta i {
    width: 18px;
    height: 18px;
}

/* ======== RESPONSIVE (Courses) ======== */
@media (min-width: 500px) {
    .courses__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .courses__grid {
        /* We can keep 2 columns for a cleaner look, or go to 3 */
        /* Let's keep 2 for now, as AI tab has 2 */
        grid-template-columns: 1fr 1fr;
    }
    
    .course-card__content {
        padding: 28px;
    }
}

/* ======== 6. INNOVATIONS SECTION ======== */
.innovations {
    background-color: var(--light-color); /* Alternate background color */
}

.innovations__highlight {
    font-weight: 500;
    color: var(--primary-color);
}

.innovations__timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

/* The vertical line */
.innovations__timeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px; /* Center the line on the 50px icon */
    width: 2px;
    height: 100%;
    background-color: #ddd;
    z-index: 1;
}

.innovations__step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    z-index: 2;
}

.innovations__step-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 4px solid var(--white-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 3;
}

.innovations__step-icon i {
    width: 24px;
    height: 24px;
}

.innovations__step-content {
    background-color: var(--white-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.innovations__step-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.innovations__step-number {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.7;
    margin-bottom: 4px;
}

.innovations__step-title {
    font-size: 1.3rem; /* 21px */
    font-weight: 600;
    margin-bottom: 12px;
}

.innovations__step-description {
    font-size: 15px;
    opacity: 0.8;
}

/* ======== RESPONSIVE (Innovations) ======== */

@media (min-width: 768px) {
    /* Create the classic timeline effect on desktop */
    
    .innovations__timeline::after {
        left: 50%; /* Center the line */
        transform: translateX(-1px);
    }
    
    .innovations__step {
        width: 50%;
        padding-inline: 25px; /* Space for the line */
    }

    /* Right side steps */
    .innovations__step--right {
        margin-left: 50%; /* Push to the right half */
         padding-inline: 25px; /* Space for the line */
    }

    /* Move icon to the center */
    .innovations__step-icon {
        position: absolute;
        top: 0;
        left: -25px; /* (50px width / 2) */
        transform: translateX(-50%);
    }
    
    .innovations__step--right .innovations__step-icon {
        left: auto;
        right: -25px; /* (50px width / 2) */
        transform: translateX(50%);
    }

    /* Pointing arrows (optional but nice) */
    .innovations__step-content::before {
        content: '';
        position: absolute;
        top: 20px;
        left: -10px;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid var(--white-color);
        filter: drop-shadow(-1px 0px 0px #eee);
    }
    
    .innovations__step--right .innovations__step-content::before {
        left: auto;
        right: -10px;
        border-right: none;
        border-left: 10px solid var(--white-color);
        filter: drop-shadow(1px 0px 0px #eee);
    }
}

/* ======== 7. FAQ SECTION ======== */
.faq {
    background-color: var(--white-color);
}

.faq__container {
    max-width: 900px; /* Make container narrower for FAQ */
}

.faq__highlight {
    font-weight: 500;
    color: var(--dark-color);
}

.faq__accordion {
    border-top: 1px solid #eee;
}

.faq__item {
    border-bottom: 1px solid #eee;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: var(--dark-color);
}

.faq__question span {
    padding-right: 16px;
}

.faq__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Accordion Answer */
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
}

.faq__answer p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.8;
}

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

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

.faq__item.faq__item--open .faq__answer {
    /* max-height is set by JS */
    padding-bottom: 24px; /* Add padding when open */
}

/* ======== RESPONSIVE (FAQ) ======== */
@media (min-width: 768px) {
    .faq__question {
        font-size: 1.25rem; /* 20px */
    }
}

/* ======== 8. CONTACT SECTION ======== */
.contact {
    background-color: var(--light-color);
    padding-bottom: 80px; /* Extra padding at the end */
}

.contact__highlight {
    font-weight: 500;
    color: var(--primary-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start; /* Align to top */
}

.contact__details {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact__detail-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white-color);
    border: 1px solid #eee;
    color: var(--primary-color);
}

.contact__detail-icon i {
    width: 24px;
    height: 24px;
}

.contact__detail-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 2px;
}

.contact__detail-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
}

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

/* Form Styles */
.contact__form-wrapper {
    background-color: var(--white-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form__input-wrapper {
    position: relative;
}

.form__input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-color);
    opacity: 0.5;
}

.form__input {
    width: 100%;
    height: 52px;
    padding: 12px 16px 12px 50px; /* Space for icon */
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--light-color);
    border: 1px solid #eee;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder {
    color: #999;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

/* Checkbox */
.form__group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.form__checkbox-label {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
}

.form__checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form__checkbox-label a:hover {
    text-decoration: none;
}

/* Form Button */
.contact__form-btn {
    width: 100%;
}
.contact__form-btn .btn__icon {
    width: 20px;
    height: 20px;
}

/* Success Message */
.form__success-message {
    display: none; /* Hidden by default */
    background-color: #E6F9F0; /* Light green */
    border: 1px solid #B3E6D1;
    color: #00875A; /* Dark green */
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    
    /* Flex for icon */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Show class (added by JS) */
.form__success-message--show {
    display: flex; 
    animation: fadeIn 0.5s ease;
}


/* ======== RESPONSIVE (Contact) ======== */
@media (min-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .contact__form-wrapper {
        padding: 32px;
    }
}

/* ======== 9. COOKIE POP-UP ======== */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Hidden by default */
    left: 20px;
    max-width: 400px;
    background-color: var(--white-color);
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 24px;
    z-index: 200;
    transition: bottom 0.5s ease-in-out;
}

/* Show state */
.cookie-popup--show {
    bottom: 20px;
}

.cookie-popup__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.cookie-popup__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.cookie-popup__link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.cookie-popup__link:hover {
    text-decoration: none;
}

.cookie-popup__btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
    background-color: #0073e6;
}

/* Responsive (Cookie) */
@media (min-width: 480px) {
    .cookie-popup__content {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .cookie-popup__text {
        flex-grow: 1;
    }
}

@media (max-width: 479px) {
    /* Full width on small mobile */
    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .cookie-popup--show {
        bottom: 10px;
    }
}



.pages {
    padding: 120px 0;
    background-color: var(--white-color);
    min-height: 50vh; /* Ensure it's not too short */
}

/* Ми додаємо .pages до .container, щоб обмежити ширину */
.pages .container {
    max-width: 800px; /* Narrower for readability */
}

.pages h1 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.pages h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pages p {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 16px;
}

.pages a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}

.pages ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.pages li {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 10px;
}

.pages strong {
    font-weight: 600;
    color: var(--dark-color);
}

/* Responsive (Pages) */
@media (min-width: 768px) {
    
    .pages h1 {
        font-size: 3rem;
    }
    
    .pages h2 {
        font-size: 2rem;
    }
}