body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 1440px) {
    .ac-titleBanner__image {
        zoom: calc(100vw / 1440);
    }

    .ac-carousel {
        zoom: calc(100vw / 1440);
    }

    .ac-courses {
        zoom: calc(100vw / 1440);
    }

    .ac-gallery {
        zoom: calc(100vw / 1440);
    }

    .ac-testimonialSingle {
        zoom: calc(100vw / 1440);
    }

    .ac-register {
        zoom: calc(100vw / 1440);
    }
}

/* Remove default layout padding so hero image touches the top */
.ec-layoutRole__main {
    padding-top: 0 !important;
}

.ec-layoutRole__contents {
    padding-top: 0 !important;
}

.ac-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 800px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.ac-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

/* Background image overlay layer if needed */
.ac-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient overlay to make text more readable */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.ac-hero__scrollIndicator {
    position: absolute;
    left: 50%;
    bottom: 42px;
    /* Roughly matching top-[calc(50%+334px)] in an 800px box */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.ac-hero__scrollText {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #fffef3;
    line-height: 24px;
    margin: 0 0 8px 0;
    text-align: center;
}

.ac-hero__scrollIcon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title Banner Section */
.ac-titleBanner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 174px 0 80px;
    /* 174px from hero, padding bottom for breathing room */
    background: #fdfdf9;
    /* Match body or figma background if needed */
    overflow: hidden;
}

.ac-titleBanner__heading {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 64px;
    font-weight: 400;
    line-height: 80px;
    text-align: center;
    color: #0E1D42;
    margin: 0 0 41px 0;
    /* 1175px (img top) - 974px (text top) - 160px (text height) = 41px gap */
}

.ac-titleBanner__image {
    width: 861px;
    height: 446px;
    border: 1px solid #000;
    overflow: hidden;
    position: relative;
}

.ac-titleBanner__image img {
    position: absolute;
    width: 100%;
    height: 192.83%;
    top: -54.53%;
    left: -0.08%;
    max-width: none;
}

/* Carousel Section */
.ac-carouselWrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    background: #fdfdf9;
    /* Match body background */
    padding-bottom: 120px;
    padding-bottom: 120px;
    /* Some padding at the bottom */
    overflow: hidden;
}

.ac-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 1111px;
}

.ac-carousel__menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 70px;
    /* Removed width: 100% so it shrinks and centers properly */
}

.ac-carousel__menuItem {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 24px;
    line-height: 32px;
    color: #b7b9aa;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.ac-carousel__menuItem.is-active {
    color: #4c512a;
}

.ac-carousel__content {
    display: flex;
    align-items: center;
    gap: 59px;
    width: 100%;
}

.ac-carousel__image {
    width: 450px;
    height: 450px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ac-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ac-carousel__text {
    width: 602px;
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #0E1D42;
    text-align: left !important;
    margin: 0;
    flex-shrink: 0;
}

.ac-carousel__text * {
    text-align: left !important;
}

/* Courses Section */
.ac-coursesWrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fdfdf9;
    /* Match body background */
    padding-bottom: 120px;
    /* Spacing below the section */
    overflow: hidden;
}

.ac-courses {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
    max-width: 1111px;
}

.ac-course {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 426px;
    flex-shrink: 0;
}

.ac-course__badge {
    width: 200px;
    height: 200px;
    mix-blend-mode: multiply;
    object-fit: cover;
    margin-bottom: 0;
}

.ac-course__title {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 56px;
    color: #0E1D42;
    text-align: center;
    margin: 0 0 16px 0;
}

.ac-course__desc {
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #0E1D42;
    text-align: center;
    margin: 0;
}

.ac-course__desc * {
    text-align: center;
}

.ac-courses__divider {
    height: auto;
    border-left: 2px solid #b7b9aa;
    /* Approximate color from Figma line */
}

.ac-courses__action {
    margin-top: 100px;
    /* Space from courses to button */
    display: flex;
    justify-content: center;
    width: 100%;
}

.ac-courses__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 167px;
    height: 45px;
    background-color: #85a443;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ac-courses__button:hover {
    background-color: #728c39;
    /* Slightly darker on hover */
    color: #ffffff;
    text-decoration: none;
}

/* Gallery Section */
.ac-galleryWrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    background: #fdfdf9;
    /* Match body background */
    /* Match body background */
    padding-bottom: 120px;
    overflow: hidden;
}

.ac-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: auto;
}

.ac-gallery__title {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    color: #0E1D42;
    text-align: center;
    margin: 0;
    width: 100%;
}

.ac-gallery__grid {
    display: flex;
    flex-direction: column;
    gap: 23px;
    width: auto;
}

.ac-gallery__row {
    display: flex;
    gap: 23px;
    align-items: center;
    justify-content: flex-start;
}

.ac-gallery__item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ac-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Exact Row 1 sizes */
.ac-gallery__row--1 .ac-gallery__item:nth-child(1) {
    width: 351.6px;
    height: 351.6px;
}

.ac-gallery__row--1 .ac-gallery__item:nth-child(2) {
    width: 561px;
    height: 352px;
}

.ac-gallery__row--1 .ac-gallery__item:nth-child(3) {
    width: 351.6px;
    height: 351.6px;
}

/* Exact Row 2 sizes */
.ac-gallery__row--2 .ac-gallery__item:nth-child(1) {
    width: 351.6px;
    height: 351.6px;
}

.ac-gallery__row--2 .ac-gallery__item:nth-child(2) {
    width: 351.6px;
    height: 351.6px;
}

.ac-gallery__row--2 .ac-gallery__item:nth-child(3) {
    width: 562px;
    height: 351px;
}

/* Special crop for the 6th image as per Figma */
.ac-gallery__row--2 .ac-gallery__item:nth-child(3) img {
    height: 163.33%;
    width: 183.14%;
    top: 0.09%;
    left: -48.94%;
    max-width: none;
    object-fit: fill;
    /* Allows the absolute positioning to crop it */
}

/* Single Testimonial Component Section */
.ac-testimonialSingleWrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    justify-content: center;
    background: #fdfdf9;
    padding-bottom: 120px;
}

/* Single Testimonial Component Section */
.ac-testimonialSingleWrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #fdfdf9;
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ac-testimonialSingle {
    display: flex;
    gap: 45px;
    align-items: center;
    width: 1423px;
    /* Exact container width */
    height: 418px;
    /* Exact container height */
    overflow: hidden;
    /* Clip exactly as Figma does */
    box-sizing: border-box;
}

.ac-testimonialSingle__item1 {
    display: flex;
    gap: 47px;
    align-items: center;
    border-right: 1px solid rgba(14, 29, 66, 0.4) !important;
    /* Space before the border */
    flex-shrink: 0;
    height: 100%;
}

.ac-testimonialSingle__item2 {
    display: flex;
    gap: 47px;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.ac-testimonialSingle__image {
    width: 407px;
    height: 418px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.ac-testimonialSingle__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.ac-testimonialSingle__image--1 img {
    width: 181.35%;
    height: 235.67%;
    left: -3.93%;
    top: -55.64%;
    max-width: none;
}

.ac-testimonialSingle__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
    align-items: flex-start;
    width: 416px;
}

.ac-testimonialSingle__header {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(14, 29, 66, 0.4) !important;
    color: #4c512a;
    width: 100%;
    box-sizing: border-box;
}

.ac-testimonialSingle__name {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 35px;
    line-height: 48px;
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

.ac-testimonialSingle__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    line-height: 32px;
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    white-space: nowrap;
    width: 100%;
}

.ac-testimonialSingle__meta span {
    margin: 0;
}

.ac-testimonialSingle__text {
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #0E1D42;
    margin: 0;
    white-space: pre-wrap;
    height: 247px;
    width: 100%;
}

.ac-testimonialSingle__divider {
    width: 1px;
    height: 418px;
    background-color: rgba(14, 29, 66, 0.4);
    margin: 0 73px;
    flex-shrink: 0;
}

/* Register Form Section */
.ac-registerWrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #e7edd9;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ac-register {
    width: 1311px;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.ac-register__title {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 40px;
    line-height: 48px;
    color: #4c512a;
    text-align: center;
    margin: 0 0 50px 0;
    font-weight: 400;
}

.ac-register__form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ac-register__subtitle {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 24px;
    line-height: 32px;
    color: #4c512a;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.ac-register__row {
    display: flex;
    gap: 24px;
    width: 100%;
}

.ac-register__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.ac-register__label {
    font-family: 'Andale Mono', 'Courier New', Courier, monospace;
    font-size: 24px;
    line-height: 32px;
    color: #4c512a;
    margin: 0;
    padding-left: 10px;
}

.ac-register__input {
    height: 44px;
    padding: 10px;
    border: 1px solid #9fa5b3;
    border-radius: 8px;
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 16px;
    color: #0E1D42;
    background: transparent;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.ac-register__input::placeholder,
.ac-register__textarea::placeholder {
    color: #9fa5b3;
}

.ac-register__input:focus,
.ac-register__textarea:focus {
    border-color: #4c512a;
}

.ac-register__checkboxes {
    display: flex;
    gap: 7px;
    align-items: center;
    height: 46px;
}

.ac-register__checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    position: relative;
}

.ac-register__checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ac-register__checkmark {
    height: 44px;
    width: 44px;
    background-color: transparent;
    border: 1px solid #9fa5b3;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ac-register__checkbox input:checked~.ac-register__checkmark {
    background-color: #85a443;
    border-color: #85a443;
}

.ac-register__checkbox input:checked~.ac-register__checkmark:after {
    content: "";
    display: block;
    width: 10px;
    height: 20px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 5px;
}

.ac-register__checkText {
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 16px;
    color: #000000;
    padding: 10px;
    display: inline-block;
}

.ac-register__row--full .ac-register__group {
    flex: none;
    width: 100%;
}

.ac-register__textarea {
    width: 100%;
    height: 149px;
    padding: 10px;
    border: 1px solid #9fa5b3;
    border-radius: 8px;
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 16px;
    color: #0E1D42;
    background: transparent;
    outline: none;
    resize: none;
    box-sizing: border-box;
}

.ac-register__submitWrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ac-register__button {
    background-color: #85a443;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    line-height: 33px;
    padding: 6px 22.5px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 168px;
    transition: background-color 0.2s;
}

.ac-register__button:hover {
    background-color: #728c39;
}

/* Form validation error styles */
.ac-register__group .form-error-message,
.ac-register__group ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 10px;
}

.ac-register__group .form-error-message li,
.ac-register__group ul li {
    font-family: 'Avenir', 'Arial', sans-serif;
    font-size: 13px;
    color: #dc3545;
    line-height: 1.4;
}

.ac-register__input.is-invalid,
.ac-register__textarea.is-invalid {
    border-color: #dc3545;
}