/* Reset & Base */
:root {
    --ac-primary: #cef751;
    --ac-dark: #121212;
    --ac-gray: #1e1e1e;
    --ac-light: #f5f5f5;
    --ac-text-gray: #b0b0b0;
    --ac-white: #ffffff;
    --ac-font-main: 'Arial', sans-serif;
}

.academy-main {
    background-color: var(--ac-dark);
    color: var(--ac-white);
    font-family: var(--ac-font-main);
    overflow-x: hidden;
}

.ac-section {
    padding: 80px 0;
}

.ac-section__title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ac-white);
}

.ac-section__title--left {
    text-align: left;
}

/* Buttons */
.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.ac-btn--primary {
    background-color: var(--ac-primary);
    color: #000;
    border: 2px solid var(--ac-primary);
}

.ac-btn--primary:hover {
    background-color: transparent;
    color: var(--ac-primary);
}

.ac-btn--outline {
    background-color: transparent;
    color: var(--ac-white);
    border: 2px solid var(--ac-white);
}

.ac-btn--outline:hover {
    background-color: var(--ac-white);
    color: #000;
}

.ac-btn--black {
    background-color: #000;
    color: var(--ac-white);
    border: 2px solid #000;
}

.ac-btn--black:hover {
    background-color: var(--ac-primary);
    color: #000;
    border-color: var(--ac-primary);
}

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

/* HERO SECTION */
.ac-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: url('../img/bacgr_png.png') center/cover no-repeat;
}

.ac-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(18,18,18,1) 100%);
}

.ac-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.ac-hero__title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.ac-hero__subtitle {
    display: block;
    font-size: 18px;
    color: var(--ac-primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.ac-hero__desc {
    font-size: 18px;
    color: var(--ac-text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.ac-hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* STATS */
.ac-stats {
    padding: 40px 0;
    background-color: var(--ac-gray);
    margin-top: -50px;
    position: relative;
    z-index: 3;
    border-radius: 20px 20px 0 0;
}

.ac-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.ac-stat-card__num {
    font-size: 48px;
    font-weight: 800;
    color: var(--ac-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.ac-stat-card__text {
    font-size: 16px;
    color: var(--ac-text-gray);
}

/* WHY BARBERING */
.ac-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ac-card {
    background: var(--ac-gray);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.ac-card__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--ac-dark);
    color: var(--ac-primary);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.ac-card:hover {
    transform: translateY(-5px);
    border-color: var(--ac-primary);
}

.ac-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--ac-white);
}

.ac-card p {
    font-size: 15px;
    color: var(--ac-text-gray);
    line-height: 1.5;
}

/* PROGRAM */
.ac-program {
    /* Zebra striping: Make this section lighter (gray) */
    background-color: var(--ac-gray);
}

.ac-program__list {
    display: grid;
    gap: 30px;
    position: relative;
    padding-left: 20px;
}

/* Timeline Vertical Line */
.ac-program__list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: linear-gradient(180deg, var(--ac-primary) 0%, transparent 100%);
    opacity: 0.3;
}

.ac-program__item {
    /* Invert card background to dark since section is gray */
    background: var(--ac-dark);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--ac-primary);
    transition: all 0.3s ease;
    position: relative;
}

/* Connect Timeline dots */
.ac-program__item::before {
    content: '';
    position: absolute;
    top: 35px;
    left: -24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--ac-dark);
    border: 3px solid var(--ac-primary);
    z-index: 2;
}

.ac-program__item:hover {
    background: #252525;
}

.ac-program__header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ac-program__num {
    font-size: 24px;
    font-weight: 800;
    color: var(--ac-primary);
    opacity: 0.5;
    margin-right: 15px;
}

.ac-program__item h3 {
    font-size: 20px;
    margin: 0;
}

.ac-program__desc {
    color: var(--ac-text-gray);
    margin: 0;
    padding-left: 45px;
    line-height: 1.5;
}

/* TEACHER */
.ac-teacher__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.ac-teacher__content {
    flex: 1 1 400px;
}

.ac-teacher__image {
    flex: 1 1 300px;
    min-height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.ac-teacher__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(45deg, #1e1e1e, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-teacher__name {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--ac-primary);
}

.ac-teacher__role {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--ac-white);
}

.ac-teacher__bio {
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--ac-primary);
}

.ac-teacher__achievements {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.ac-teacher__achievements li {
    display: flex;
    align-items: center;
    color: var(--ac-text-gray);
}

.ac-teacher__achievements li::before {
    content: "●";
    color: var(--ac-primary);
    margin-right: 10px;
    font-size: 12px;
}

/* PRICING */
.ac-pricing {
    background-color: var(--ac-gray);
    position: relative;
}

.ac-pricing .container {
    position: relative;
    z-index: 5;
}

/* COMMON BG STYLE */
.ac-bg-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 1;
    background-repeat: repeat;
    pointer-events: none;
    
    /* Best Practice: Smooth edges and slight blur */
    filter: blur(0.5px); 
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.ac-pricing__bg {
    background-image: url('../img/moustache.png');
    background-size: 300px;
    opacity: 0.05;
    transform: rotate(15deg);
}

/* MASTER CLASSES BG */
.ac-master-classes {
    position: relative;
    /* overflow: hidden is inherited from .ac-section */
    /* Add inner shadow for depth between blocks */
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.ac-master-classes .container {
    position: relative;
    z-index: 5;
}

.ac-master-classes__bg {
    background-image: url('../img/razor.png');
    background-size: 250px;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* GALLERY BG */
.ac-gallery {
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.ac-gallery .container {
    position: relative;
    z-index: 5;
}

.ac-gallery__bg {
    background-image: url('../img/comb.png');
    background-size: 300px;
    opacity: 0.08;
    transform: rotate(30deg);
}


.ac-pricing__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.ac-price-card {
    flex: 1 1 300px;
    max-width: 400px;
    /* Invert background relative to section */
    background: var(--ac-dark);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.ac-price-card--featured {
    /* Lighter gradient to stand out against gray background */
    background: linear-gradient(145deg, #252525, #2d2d2d);
    border-color: var(--ac-primary);
    transform: scale(1.05);
    z-index: 2;
}

.ac-price-card__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ac-primary);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ac-price-card__header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.ac-price-card__header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--ac-white);
}

.ac-price-card__price {
    font-size: 36px;
    font-weight: 800;
    color: var(--ac-primary);
}

.ac-price-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.ac-price-card__features li {
    color: var(--ac-text-gray);
    margin-bottom: 15px;
    text-align: center;
    font-size: 15px;
}

/* FAQ */
.ac-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.ac-accordion__item {
    background: var(--ac-gray);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.ac-accordion__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ac-white);
    list-style: none;
}

.ac-accordion__trigger::-webkit-details-marker {
    display: none;
}

.ac-accordion__icon {
    color: var(--ac-primary);
    font-size: 20px;
    transition: transform 0.2s;
}

details[open] .ac-accordion__icon {
    transform: rotate(45deg);
}

.ac-accordion__content {
    padding: 0 20px 20px 20px;
    color: var(--ac-text-gray);
    line-height: 1.5;
}

/* CTA FINAL */
.ac-cta {
    background: var(--ac-primary);
    padding: 80px 0;
    color: #000;
    text-align: center;
}

.ac-cta__box h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ac-cta__box p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* DESKTOP MEDIA QUERIES */
@media (min-width: 768px) {
    .ac-hero__title {
        font-size: 64px;
    }
    
    .ac-hero__subtitle {
        font-size: 24px;
    }

    .ac-section__title {
        font-size: 42px;
    }

    .ac-program__item {
        display: flex;
        align-items: flex-start;
        gap: 30px;
        padding-left: 20px;
    }
    
    .ac-program__header {
        flex: 0 0 300px;
        margin-bottom: 0;
    }
    
    .ac-program__desc {
        padding-left: 0;
        padding-top: 5px;
    }

    .ac-price-card--featured {
        transform: scale(1.1);
    }
}


/* ANIMATIONS */
._anim-items {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
}

._anim-items._active {
    opacity: 1;
    transform: translateY(0);
}

.ac-stat-card._anim-items, 
.ac-card._anim-items,
.ac-price-card._anim-items {
    transform: scale(0.9);
}

.ac-stat-card._anim-items._active,
.ac-card._anim-items._active,
.ac-price-card._anim-items._active {
    transform: scale(1);
}

/* Staggering for lists */
.ac-program__item._anim-items {
    transform: translateX(-50px);
}

.ac-program__item._anim-items._active {
    transform: translateX(0);
}


/* MODAL */
.ac-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ac-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.ac-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.ac-modal__content {
    position: relative;
    background-color: var(--ac-gray);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.ac-modal.is-open .ac-modal__content {
    transform: translateY(0);
}

.ac-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--ac-text-gray);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

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

.ac-modal__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ac-white);
    margin: 0 0 10px;
    text-transform: uppercase;
    text-align: center;
}

.ac-modal__subtitle {
    color: var(--ac-text-gray);
    text-align: center;
    margin: 0 0 30px;
    font-size: 18px;
}

/* FORM */
.ac-form__group {
    margin-bottom: 20px;
}

.ac-form__label {
    display: block;
    color: var(--ac-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ac-form__input {
    width: 100%;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--ac-white);
    font-family: inherit;
    font-size: 18px;
    transition: border-color 0.3s ease;
}

.ac-form__input:focus {
    outline: none;
    border-color: var(--ac-primary);
}

.ac-form__checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ac-custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: var(--ac-text-gray);
}

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

.ac-custom-checkbox__box {
    height: 20px;
    width: 20px;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ac-custom-checkbox input:checked ~ .ac-custom-checkbox__box {
    background-color: var(--ac-primary);
    border-color: var(--ac-primary);
}

.ac-custom-checkbox__box:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ac-custom-checkbox input:checked ~ .ac-custom-checkbox__box:after {
    display: block;
}

.ac-form__pd-text {
    font-size: 14px;
    line-height: 1.3;
}


/* TEACHERS SLIDER */
.ac-teachers__slider {
    display: flex;
    overflow-x: hidden; /* Hide scrollbar, controlled by JS */
    overflow-y: hidden;
    gap: 0; /* Removing gap to simplify 100% width calculations, will use padding on card */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ac-teacher-card {
    flex: 0 0 100%; /* Full width on mobile */
    box-sizing: border-box;
    padding: 0 10px; /* Spacing between cards via padding */
    background-clip: content-box; /* Background only on content */
    background: transparent; /* Wrapper is transparent */
    border-radius: 0;
    
    /* Internal card styling move to inner wrapper if needed, 
       but for now we adapt existing styles */
    display: flex;
    flex-direction: column;
}

/* We need a wrapper inside the card to hold the background/border styles 
   because the card itself is now 100% width with padding */
.ac-teacher-card__inner {
    background: var(--ac-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Adjusting existing styles to target inner wrapper */
/* Moved to below */

@media (min-width: 768px) {
    .ac-teacher-card {
        flex: 0 0 33.333%; /* 3 cards on desktop */
        padding: 0 15px;
    }
}

.ac-teacher-card__img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    object-position: center 60%;
    background-color: var(--ac-dark);
}

.ac-teacher-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ac-teacher-card__name {
    font-size: 24px;
    color: var(--ac-primary);
    margin-bottom: 5px;
}

.ac-teacher-card__role {
    font-size: 14px;
    color: var(--ac-text-gray);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ac-teacher-card__desc {
    color: var(--ac-white);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.ac-teacher-card__exp {
    margin-top: auto;
    font-weight: 700;
    color: var(--ac-primary);
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* REVIEWS SECTION */
.ac-reviews {
    background-color: var(--ac-dark);
    overflow: hidden;
}

.ac-reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ac-review-card {
    background: var(--ac-gray);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.ac-review-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: var(--ac-primary);
    opacity: 0.2;
    font-family: serif;
}

.ac-review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ac-review-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 15px;
    object-fit: cover;
}

.ac-review-card__info h4 {
    margin: 0;
    font-size: 18px;
    color: var(--ac-white);
}

.ac-review-card__date {
    font-size: 13px;
    color: var(--ac-text-gray);
}

.ac-review-card__text {
    color: var(--ac-text-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* DECORATION ELEMENTS */
.ac-decor {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15; /* Subtle */
}

.ac-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ac-decor--scissors {
    width: 200px;
    height: 200px;
    right: -50px;
    top: 50px;
    color: var(--ac-primary);
    transform: rotate(-15deg);
}

.ac-decor--razor {
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: 50px;
    color: var(--ac-white);
    transform: rotate(30deg);
}

.ac-section {
    position: relative; 
    overflow: hidden; /* Prevent horizontal scrollbars from decor */
}


/* Teachers Slider Controls */
.ac-teachers-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ac-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.ac-slider-btn:hover {
    background: #cef751;
    color: #000;
    border-color: #cef751;
}

.ac-slider-btn--prev {
    left: -20px;
}

.ac-slider-btn--next {
    right: -20px;
}

@media (max-width: 768px) {
    .ac-slider-btn {
        display: flex; /* Force display on mobile */
        background: rgba(26, 26, 26, 0.9); /* Stronger background for visibility over images */
        width: 36px;
        height: 36px;
    }
    
    /* Bring buttons inside the container on mobile to prevent cut-off */
    .ac-slider-btn--prev {
        left: 5px;
    }
    
    .ac-slider-btn--next {
        right: 5px;
    }
}


/* Pricing & Courses New Layout */
.ac-subsection-title {
    font-size: 1.5rem;
    color: var(--ac-primary);
    margin: 40px 0 30px;
    text-align: left;
    border-left: 4px solid var(--ac-primary);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.ac-course-card {
    background: var(--ac-gray);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.ac-course-card:hover {
    transform: translateY(-5px);
    border-color: var(--ac-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ac-course-card__image-placeholder {
    width: 100%;
    height: 220px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ac-course-card__image-placeholder span {
    color: rgba(255,255,255,0.1);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
}

.ac-course-card__image-container {
    width: 100%;
    height: 220px;
    background: #2a2a2a;
    position: relative;
    overflow: hidden;
}

.ac-course-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ac-course-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ac-course-card__title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.4;
    color: var(--ac-white);
    font-weight: 600;
}

.ac-course-card .ac-btn {
    align-self: flex-start;
}

/* Master Classes Section */
.ac-master-classes {
    padding-top: 20px;
    background-color: var(--ac-dark);
}

@media (max-width: 768px) {
    .ac-courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ac-subsection-title {
        font-size: 1.3rem;
        margin: 30px 0 20px;
    }
}


/* Extended Course Card Styles */
.ac-course-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ac-primary);
    margin-bottom: 15px;
}

.ac-course-card__desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1; /* Pushes content down if needed, but here simple spacing */
}

.ac-course-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.ac-course-card__features li {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.ac-course-card__features li::before {
    content: '•';
    color: var(--ac-primary);
    position: absolute;
    left: 0;
    top: 0px;
}

.ac-course-card__title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Gallery Section */
.ac-gallery {
    padding-bottom: 80px;
}

.ac-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 15px;
}

.ac-gallery__item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.ac-gallery__item:hover {
    transform: scale(1.02);
    border-color: var(--ac-primary);
}

.ac-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ac-gallery__item:hover .ac-gallery__img {
    transform: scale(1.05);
}

/* Creative Layout for 5 Items */
/* 
   Map:
   [1][1][2][3]
   [1][1][4][5]
*/

.ac-gallery__item--1 {
    grid-column: span 2;
    grid-row: span 2;
}

.ac-gallery__item--2 {
    grid-column: span 1;
    grid-row: span 1;
}

.ac-gallery__item--3 {
    grid-column: span 1;
    grid-row: span 1;
}

.ac-gallery__item--4 {
    grid-column: span 1;
    grid-row: span 1;
}

.ac-gallery__item--5 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .ac-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .ac-gallery__item {
        height: 250px;
    }
    
    /* Reset spans */
    .ac-gallery__item--1 {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .ac-gallery__item--5 {
        grid-column: span 2; /* Make the last one wide on tablet */
    }
}

@media (max-width: 576px) {
    .ac-gallery__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ac-gallery__item {
        grid-column: auto !important;
        grid-row: auto !important;
        height: 250px;
    }
}


/* Video CTA Section */
.ac-video-cta {
    background-color: var(--ac-gray);
    text-align: center;
}

.ac-video-cta__subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ac-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: #000;
    position: relative;
    padding-bottom: 40%; /* Custom Aspect Ratio (Wider than 16:9) */
    height: 0;
}

.ac-video {
    width: 100%;
    display: block;
    max-height: 500px; /* Limit height on large screens */
}

.ac-btn--large {
    padding: 18px 40px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.ac-video-cta__note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .ac-video-cta__subtitle {
        font-size: 1rem;
    }
    
    .ac-btn--large {
        padding: 15px 25px;
        width: 100%;
        font-size: 1rem;
    }
}


/* Custom Youtube Player Styles */
/* .ac-video-wrapper defined above with new width/height */

.ac-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.ac-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ac-video-wrapper:hover .ac-video-cover {
    opacity: 0.9;
}

.ac-video-play-btn {
    position: relative;
    z-index: 20;
    width: 80px;
    height: 80px;
    background: var(--ac-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ac-dark);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 0 0 0 rgba(206, 247, 81, 0.7);
    animation: pulse-green 2s infinite;
}

.ac-video-play-btn svg {
    width: 40px;
    height: 40px;
    margin-left: 5px; /* Visual optical adjustment for play triangle */
}

.ac-video-wrapper:hover .ac-video-play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(206, 247, 81, 0.5);
    animation: none;
}

/* Once clicked, iframe takes over */
.ac-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 5;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(206, 247, 81, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(206, 247, 81, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(206, 247, 81, 0);
    }
}

/* Extended Decorations */
.ac-decor--comb {
    width: 250px;
    right: -40px;
    bottom: 10%;
    transform: rotate(-45deg);
    opacity: 0.08;
}

.ac-decor--moustache {
    width: 200px;
    left: 50%;
    top: -40px;
    transform: translateX(-50%) rotate(185deg);
    opacity: 0.08;
    z-index: 1; /* Behind content generally, but check context */
}

/* Positioning helpers */
.ac-decor--top-right {
    top: -30px;
    right: -30px;
    bottom: auto;
    left: auto;
}

.ac-decor--bottom-left {
    bottom: -30px;
    left: -30px;
    top: auto;
    right: auto;
}

/* Ensure images fit nicely */
.ac-decor img {
    display: block;
    width: 100%;
    height: auto;
}

