main {
    padding: 0 0 2rem;
}

.home-section:not(.home-hero) {
    margin-top: 1.5rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: calc(-1 * var(--header-h, 150px));
    padding: calc(var(--header-h, 150px) + clamp(1.5rem, 3vw, 3rem)) 0 clamp(2.5rem, 4vw, 4rem);
    min-height: min(100vh, 1000px);
    border: none;
    border-radius: 0;
    background-color: #fffaf1;
    background-image: url('../images/home_hero.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #111;
    box-shadow: none;
}

.home-hero-inner {
    width: min(1440px, 88%);
    margin: 0 auto;
}

.home-hero::after {
    content: none;
}

/* Fade the bottom of the hero image into the welcome section's cream */
.home-hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: clamp(180px, 26vh, 280px);
    background: linear-gradient(180deg, rgb(255 250 241 / 0%) 0%, rgb(255 250 241 / 55%) 45%, rgb(255 250 241 / 92%) 80%, #fffaf1 100%);
    pointer-events: none;
}

.hero-animate,
.welcome-animate,
.classes-animate,
.teachers-animate,
.cta-animate,
.news-animate {
    opacity: 0;
    will-change: transform, opacity;
}

.home-hero.is-visible .hero-animate,
.home-section-welcome.is-visible .welcome-animate,
.home-section-classes.is-visible .classes-animate,
.home-section-teachers.is-visible .teachers-animate,
.home-section-cta.is-visible .cta-animate,
.home-section-news.is-visible .news-animate {
    opacity: 1;
}

.home-hero.is-visible .anim-left,
.home-section-welcome.is-visible .anim-left,
.home-section-classes.is-visible .anim-left,
.home-section-teachers.is-visible .anim-left,
.home-section-cta.is-visible .anim-left,
.home-section-news.is-visible .anim-left {
    animation: hero-slide-left 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.home-hero.is-visible .anim-right,
.home-section-welcome.is-visible .anim-right,
.home-section-classes.is-visible .anim-right,
.home-section-teachers.is-visible .anim-right,
.home-section-cta.is-visible .anim-right,
.home-section-news.is-visible .anim-right {
    animation: hero-slide-right 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.home-hero.is-visible .anim-up,
.home-section-welcome.is-visible .anim-up,
.home-section-classes.is-visible .anim-up,
.home-section-teachers.is-visible .anim-up,
.home-section-cta.is-visible .anim-up,
.home-section-news.is-visible .anim-up {
    animation: hero-slide-up 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.home-hero.is-visible .anim-down,
.home-section-welcome.is-visible .anim-down,
.home-section-classes.is-visible .anim-down,
.home-section-teachers.is-visible .anim-down,
.home-section-cta.is-visible .anim-down,
.home-section-news.is-visible .anim-down {
    animation: hero-slide-down 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.home-hero.is-visible .delay-1,
.home-section-welcome.is-visible .delay-1,
.home-section-classes.is-visible .delay-1,
.home-section-teachers.is-visible .delay-1,
.home-section-cta.is-visible .delay-1,
.home-section-news.is-visible .delay-1 {
    animation-delay: 0.12s;
}

.home-hero.is-visible .delay-2,
.home-section-welcome.is-visible .delay-2,
.home-section-classes.is-visible .delay-2,
.home-section-teachers.is-visible .delay-2,
.home-section-cta.is-visible .delay-2,
.home-section-news.is-visible .delay-2 {
    animation-delay: 0.24s;
}

.home-hero.is-visible .delay-3,
.home-section-welcome.is-visible .delay-3,
.home-section-classes.is-visible .delay-3,
.home-section-teachers.is-visible .delay-3,
.home-section-cta.is-visible .delay-3,
.home-section-news.is-visible .delay-3 {
    animation-delay: 0.36s;
}

.home-hero.is-visible .delay-4,
.home-section-welcome.is-visible .delay-4,
.home-section-classes.is-visible .delay-4,
.home-section-teachers.is-visible .delay-4,
.home-section-cta.is-visible .delay-4,
.home-section-news.is-visible .delay-4 {
    animation-delay: 0.48s;
}

.home-hero.is-visible .delay-5,
.home-section-welcome.is-visible .delay-5,
.home-section-classes.is-visible .delay-5,
.home-section-teachers.is-visible .delay-5,
.home-section-cta.is-visible .delay-5,
.home-section-news.is-visible .delay-5 {
    animation-delay: 0.6s;
}

@keyframes hero-slide-left {
    from {
        opacity: 0;
        transform: translate3d(-34px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-slide-right {
    from {
        opacity: 0;
        transform: translate3d(34px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-slide-up {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-slide-down {
    from {
        opacity: 0;
        transform: translate3d(0, -28px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: min(800px, 54%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #c8951f;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dfb451, #f6ce71);
}

.hero-copy h1 {
    margin: 1.1rem 0 1.2rem;
    font-size: clamp(2.6rem, 5.4vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #14161c;
}

.hero-copy h1 .hero-accent {
    display: block;
    white-space: nowrap;
    background: linear-gradient(95deg, #b8841b 0%, #e2ad38 45%, #c99227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.1em;
}

.hero-copy p {
    max-width: 34em;
    margin: 0;
    color: #4a4f5a;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.6;
}

.hero-search {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    max-width: 520px;
    padding: 5px 5px 5px 1.3rem;
    background: rgb(255 255 255 / 92%);
    border-radius: 999px;
    border: 1px solid rgb(31 36 48 / 8%);
    box-shadow: 0 14px 34px rgb(120 86 20 / 10%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-search:focus-within {
    border-color: rgb(223 180 81 / 60%);
    box-shadow: 0 14px 34px rgb(120 86 20 / 14%), 0 0 0 4px rgb(246 206 113 / 25%);
}

.hero-search-icon {
    color: #1f2430;
    font-size: 1.15rem;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    height: 46px;
    padding: 0 1rem;
    font: inherit;
    color: #1f2430;
}

.hero-search input:focus {
    outline: none;
}

.hero-search button {
    width: 56px;
    height: 46px;
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #e2ad38, #c8901f);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 8px 18px rgb(200 144 31 / 35%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 22px rgb(200 144 31 / 45%);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats article {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 1.1rem;
    border-radius: 18px;
    background: rgb(255 255 255 / 86%);
    border: 1px solid rgb(255 255 255 / 90%);
    box-shadow: 0 18px 40px rgb(120 86 20 / 9%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: hero-stat-float 5.4s ease-in-out infinite;
    will-change: transform;
}

.hero-stats article:nth-child(2) {
    animation-delay: -1.8s;
}

.hero-stats article:nth-child(3) {
    animation-delay: -3.6s;
}

@keyframes hero-stat-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -6px, 0);
    }
}

.hero-stat-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff8e8, #fbecc8);
    color: #b8841b;
    font-size: 1.25rem;
}

.hero-stats strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #b8841b;
}

.hero-stats article div > span {
    display: block;
    margin-top: 0.3rem;
    color: #3a3f4a;
    font-size: 0.86rem;
    line-height: 1.5;
}

.section-card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 24px;
    padding: clamp(1.1rem, 1.8vw, 1.7rem);
    box-shadow: 0 14px 32px rgb(23 33 45 / 6%);
}

.home-section-welcome {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(2.5rem, 4vw, 3.5rem) calc((100vw - min(1260px, 94vw)) / 2) clamp(2.5rem, 4vw, 4rem);
    background:
        radial-gradient(ellipse at 15% 45%, rgb(255 236 200 / 55%) 0%, transparent 42%),
        radial-gradient(ellipse at 90% 60%, rgb(255 232 190 / 45%) 0%, transparent 45%),
        linear-gradient(180deg, #fffaf1 0%, #fff9ee 55%, #fffcf7 82%, #fff 100%);
}

.home-section-welcome::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 160px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, #fff 100%);
    pointer-events: none;
}

.home-section.home-section-welcome {
    margin-top: 0;
}

.music-note.note-clef {
    left: 4%;
    top: 80px;
    font-size: clamp(5.5rem, 10vw, 10rem);
}

.music-note.note-1 {
    left: 11%;
    top: 50px;
    font-size: clamp(2.5rem, 4vw, 4rem);
    animation-delay: -2s;
}

.music-note.note-2 {
    right: 5%;
    top: 50px;
    font-size: clamp(3rem, 5vw, 5rem);
    animation-delay: -4s;
}

.music-note.note-4 {
    left: 4%;
    top: 140px;
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
    opacity: 0.55;
    animation-delay: -3s;
}

.music-note.note-5 {
    right: 3%;
    top: 70px;
    font-size: clamp(2.6rem, 4.5vw, 4.4rem);
    opacity: 0.55;
    animation-delay: -5s;
}

.music-note.note-3 {
    right: 11%;
    top: 180px;
    font-size: clamp(2rem, 3vw, 3rem);
    animation-delay: -1s;
}

.home-section-welcome .section-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: clamp(1.6rem, 2.6vw, 2.4rem);
}

.home-section-welcome .section-head > div {
    display: grid;
    justify-items: center;
    width: 100%;
}

.home-section-welcome .section-head p {
    max-width: 80ch;
    margin: 1rem auto 0;
    color: #4f5560;
    font-size: 1.02rem;
    line-height: 1.7;
}

.home-section-welcome .section-head .section-link {
    margin-top: 1.6rem;
    gap: 1.1rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, #f8d27a 0%, #efbf55 100%);
    box-shadow: 0 14px 28px rgb(223 170 60 / 28%);
}

.home-section-welcome .section-head .section-link i {
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.home-section-welcome .section-head .section-link:hover i {
    transform: translateX(4px);
}

.welcome-title {
    margin: 0.9rem 0 0;
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #14161c;
}

.welcome-title .brand-gradient {
    background: linear-gradient(95deg, #c38b1c 0%, #e6b03c 50%, #c99227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.08em;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.section-head p {
    margin: 0.3rem 0 0;
    max-width: 60ch;
    color: #69707d;
    line-height: 1.7;
    font-size: 0.94rem;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.1rem;
    align-items: stretch;
}

.welcome-slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 440px;
    box-shadow: 0 22px 44px rgb(120 86 20 / 14%);
}

.welcome-slider-track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.welcome-slide {
    flex: 0 0 100%;
    height: 100%;
}

.welcome-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 94%);
    color: #1f2430;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgb(20 26 38 / 18%);
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.welcome-slider-btn.prev {
    left: 1.2rem;
}

.welcome-slider-btn.next {
    right: 1.2rem;
}

.welcome-slider-btn:hover {
    background: #f6ce71;
    transform: translateY(-50%) scale(1.06);
}

.welcome-slider-dots {
    position: absolute;
    left: 1.8rem;
    bottom: 1.4rem;
    z-index: 2;
    display: flex;
    gap: 0.45rem;
}

.welcome-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 75%);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.welcome-slider-dots button.active {
    width: 24px;
    background: #e2ad38;
}

.welcome-combined {
    padding: clamp(1.2rem, 1.8vw, 1.6rem);
    border-radius: 24px;
    background: linear-gradient(180deg, #fff9ee 0%, #fffdf9 100%);
    border: 1px solid #f3e4c2;
    box-shadow: 0 22px 44px rgb(120 86 20 / 8%);
    display: grid;
    gap: 1rem;
    align-content: start;
}

.welcome-combined h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #14161c;
}

.welcome-combined > p {
    margin: 0;
    color: #69707d;
    line-height: 1.7;
    font-size: 0.93rem;
}

.welcome-list {
    display: grid;
    gap: 0.8rem;
}

.welcome-list div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
}

.welcome-list strong {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #fdf0cf, #f8dd9b);
    color: #a87414;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.welcome-list p,
.welcome-combined p {
    margin: 0;
    color: #69707d;
    line-height: 1.7;
    font-size: 0.93rem;
}

.welcome-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.welcome-highlight {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 0.95rem 0.8rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
    border: 1px solid #f3e4c2;
    text-align: center;
    box-shadow: 0 10px 22px rgb(120 86 20 / 7%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.welcome-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgb(255 255 255 / 0%) 35%, rgb(255 255 255 / 48%) 50%, rgb(255 255 255 / 0%) 65%, transparent 100%);
    transform: translateX(-160%);
    animation: welcome-card-shimmer 4.8s ease-in-out infinite;
    pointer-events: none;
}

.welcome-highlight:nth-child(2)::before {
    animation-delay: 0.45s;
}

.welcome-highlight:nth-child(3)::before {
    animation-delay: 0.7s;
}

.welcome-highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px rgb(31 36 48 / 12%);
}

.welcome-highlight i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6ce71 0%, #dfb451 100%);
    box-shadow: 0 6px 14px rgb(223 180 81 / 30%);
    color: #1f2430;
    font-size: 1rem;
    animation: welcome-icon-pulse 2.8s ease-in-out infinite;
}

.welcome-highlight strong {
    color: #1f2430;
    font-size: 0.93rem;
    line-height: 1.35;
}

@keyframes welcome-highlight-float {
    0%,
    100% {
        transform: translateY(0);
    }
}

@keyframes welcome-card-shimmer {
    0% {
        transform: translateX(-160%);
    }

    45%,
    100% {
        transform: translateX(160%);
    }
}

@keyframes welcome-icon-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

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

.home-section-classes {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(1.5rem, 3vw, 2.5rem) calc((100vw - min(1260px, 94vw)) / 2) clamp(2.5rem, 4vw, 3.5rem);
    background: #fff;
    border: 0;
    box-shadow: none;
}

.home-section.home-section-classes {
    margin-top: 0;
}

.home-section-classes .music-waves {
    height: 360px;
    opacity: 0.18;
}

.classes-section-head {
    position: relative;
    align-items: center;
    margin-bottom: clamp(1.6rem, 2.6vw, 2.4rem);
}

.classes-heading-block {
    display: block;
    width: 100%;
}

.classes-heading-block h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    margin: 0.9rem 0 0;
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #14161c;
}

.classes-heading-block h2 .brand-gradient {
    margin-left: -0.15em;
    background: linear-gradient(95deg, #c38b1c 0%, #e6b03c 50%, #c99227 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.06em;
}

.classes-title-icon {
    display: inline-block;
    font-size: 0.82em;
    background: linear-gradient(160deg, #e6b03c 0%, #b9821c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transform: translateY(1px);
    animation: classes-title-icon-float 2.2s ease-in-out infinite;
}

@keyframes classes-title-icon-float {
    0%,
    100% {
        transform: translateY(1px);
    }

    50% {
        transform: translateY(-4px);
    }
}

.classes-heading-block > div {
    display: grid;
    justify-items: center;
    width: 100%;
    text-align: center;
}

.classes-heading-block p {
    max-width: 72ch;
    margin: 1rem auto 0;
    color: #4f5560;
    font-size: 1.02rem;
    line-height: 1.7;
}

.classes-nav {
    position: absolute;
    right: 0;
    bottom: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.classes-nav-button {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ece3d0;
    border-radius: 50%;
    background: #fff;
    color: #1f2430;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgb(31 36 48 / 8%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.classes-nav-button.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #f0c25a 0%, #d9a12e 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgb(217 161 46 / 35%);
}

.classes-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgb(31 36 48 / 12%);
}

.classes-carousel {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0 1.8rem;
    margin: -0.5rem 0 -1.8rem;
    background: transparent;
}

.classes-carousel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100% - 190px);
    background: transparent;
    pointer-events: none;
}

.classes-track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    background: transparent;
}

.classes-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.classes-track::-webkit-scrollbar {
    display: none;
}

.class-card {
    flex: 0 0 calc((100% - 3.3rem) / 4);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #f1e6cc;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 14px 30px rgb(120 86 20 / 9%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgb(120 86 20 / 14%);
}

.class-card-media {
    position: relative;
}

.class-card-media img {
    width: 100%;
    height: 228px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #e2ad38;
}

.class-card-icon {
    position: absolute;
    right: 22px;
    bottom: -26px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6ce71 0%, #e2ad38 100%);
    color: #1f2430;
    font-size: 1.2rem;
    border: 3px solid #fff;
    box-shadow: 0 10px 18px rgb(223 170 60 / 32%);
}

.class-card-content {
    padding: 1.6rem 1.4rem 1.2rem;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.class-card-content h3 {
    margin: 0;
    padding-right: 2.6rem;
    color: #14161c;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    width: 100%;
    max-width: 100%;
}

.class-card-time {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.9rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0ebe0;
    color: #5d6470;
    font-size: 0.94rem;
}

.class-card-time i {
    color: #d6a133;
    font-size: 1.1rem;
}

.class-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
}

.class-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #3f4550;
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
}

.class-card-meta span i {
    color: #d6a133;
    font-size: 1rem;
}

.class-card-meta strong {
    padding-left: 0.9rem;
    border-left: 1px solid #f0ebe0;
    color: #c08712;
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
}

.classes-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.classes-footer-link {
    background: linear-gradient(135deg, #f6ce71 0%, #dfb451 100%);
    color: #1f2430;
    min-width: 190px;
    min-height: 58px;
    padding: 0.45rem 2rem 0.45rem 0.45rem;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #f6ce71 0%, #e2ad38 100%);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 14px 28px rgb(223 170 60 / 30%);
}

.classes-footer-link i {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgb(120 86 20 / 12%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 82%);
    color: #9f7317;
}

.classes-footer-link span {
    text-align: center;
}

.home-section-teachers {
    position: relative;
    isolation: isolate;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(2rem, 3vw, 2.8rem) calc((100vw - min(1260px, 94vw)) / 2) clamp(4rem, 6vw, 6rem);
    background: linear-gradient(180deg, #fff 0%, #fff calc(100% - 180px), var(--base-bg) 100%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.home-section.home-section-teachers {
    margin-top: 0;
}

.teachers-section-head {
    text-align: center;
    width: min(1000px, 100%);
    margin: 0 auto 1.9rem;
}

.teachers-section-head h2 {
    margin: 0.9rem 0 0;
}

.teachers-section-head p {
    margin: 1rem auto 0;
    color: #616a76;
    max-width: 640px;
    font-size: 1rem;
    line-height: 1.65;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.teacher-spotlight-card {
    min-width: 0;
    text-align: center;
}

.teacher-photo-wrap {
    position: relative;
    padding-bottom: 20px;
}

.teacher-photo-frame {
    border-radius: 24px;
    overflow: hidden;
}

.teacher-photo-wrap img {
    width: 100%;
    aspect-ratio: 0.73;
    object-fit: cover;
    display: block;
}

.teacher-social-stack {
    position: absolute;
    right: 14px;
    bottom: 0;
    width: 44px;
    padding: 0.35rem 0;
    border-radius: 999px;
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, #f6ce71 0%, #ebac39 42%, #e68831 100%);
    box-shadow: 0 12px 22px rgb(223 180 81 / 26%);
    opacity: 0;
    transform: translateY(10px) scaleY(0.78);
    transform-origin: bottom center;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 24;
}

.teacher-social-stack a {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, color 0.18s ease;
}

.teacher-social-stack a:hover {
    color: #fff6de;
}

.teacher-social-stack a:nth-child(2) {
    transform: translateY(-5px);
}

.teacher-plus {
    position: absolute;
    right: 14px;
    bottom: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6ce71 0%, #dfb451 100%);
    color: #fff;
    border: 0;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: 0 12px 22px rgb(223 180 81 / 30%);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 30;
}

.teacher-plus:hover {
    transform: translateY(-2px);
}

.teacher-spotlight-card.is-social-open .teacher-social-stack {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
}

.teacher-spotlight-card.is-social-open .teacher-plus {
    background: linear-gradient(135deg, #e3972e 0%, #df8a2f 100%);
}

.teacher-spotlight-card.is-social-open .teacher-plus i {
    transform: rotate(45deg);
}

.teacher-plus i {
    transition: transform 0.22s ease;
}

.teacher-spotlight-card h3 {
    margin: 0.9rem 0 0;
    font-size: 1.46rem;
    line-height: 1.05;
    color: #2a2f3a;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

.teacher-spotlight-card p {
    margin: 0.28rem 0 0;
    color: #6a4709;
    font-size: 1.04rem;
    font-weight: 600;
}

.feature-card,
.teacher-card,
.news-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dde3ea;
    background: #fff;
}

.feature-card img,
.teacher-card img,
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.feature-card .content,
.teacher-card .content,
.news-card .content {
    padding: 1rem;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.56rem;
    border-radius: 999px;
    background: #fff7df;
    color: #8d6a17;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feature-card h3,
.teacher-card h3,
.news-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.04rem;
}

.feature-card p,
.teacher-card p,
.news-card p {
    margin: 0;
    color: #69707d;
    line-height: 1.7;
    font-size: 0.92rem;
}

.card-meta {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    color: #7a808a;
    font-size: 0.84rem;
}

/* ── CTA / Find Your Course section ───────────────────────── */
.home-section-cta {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-top: clamp(2rem, 3.2vw, 3rem);
    padding-bottom: clamp(2rem, 3.6vw, 3.4rem);
    overflow: visible;
}

/* left column */
.cta-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-left .section-kicker {
    align-self: flex-start;
}

.cta-heading {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.cta-desc {
    margin: 0;
    color: #616a76;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 46ch;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #7c530b;
    font-size: 1.06rem;
    font-weight: 600;
    text-decoration: none;
}

.cta-phone i {
    font-size: 1.35rem;
    color: #dfb451;
}

.cta-phone strong {
    color: #7c530b;
}

.cta-images {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
    width: min(100%, 560px);
    height: clamp(360px, 43vw, 520px);
    margin-top: 0.5rem;
}

.cta-img-primary {
    position: relative;
    grid-column: 1 / 7;
    grid-row: 1 / 9;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgb(27 35 46 / 14%);
    z-index: 2;
}

.cta-img-primary img,
.cta-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-img-secondary {
    position: relative;
    grid-column: 8 / 12;
    grid-row: 5 / 11;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgb(27 35 46 / 12%);
    z-index: 3;
}

.cta-img-primary img {
    object-position: center center;
}

.cta-img-secondary img {
    object-position: center center;
}

.cta-deco-circle {
    position: absolute;
    top: 26%;
    left: 58%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dfb451;
    z-index: 1;
    animation: cta-deco-bob 3.4s ease-in-out infinite;
}

.cta-deco-lines {
    position: absolute;
    bottom: 13%;
    left: 22%;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: repeating-linear-gradient(
        135deg,
        rgb(177 124 17 / 0.32) 0 7px,
        transparent 7px 14px
    );
    z-index: 1;
}

@keyframes cta-deco-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* right column */
.cta-right {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.cta-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 192px;
    padding: 1.55rem 1.3rem 1.55rem 1.6rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ede8db;
    box-shadow: 0 8px 22px rgb(27 35 46 / 6%);
}

.cta-right .cta-course-card:nth-child(2) {
    transform: translateX(-8rem);
    z-index: 2;
}

.cta-course-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14%;
    bottom: 14%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6ce71 0%, #c9832e 100%);
}

.cta-course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.cta-course-date {
    color: #69707d;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cta-course-date i {
    color: #dfb451;
}

.cta-course-price {
    font-weight: 700;
    font-size: 0.92rem;
    color: #2a67b2;
    letter-spacing: 0.01em;
}

.cta-course-price--paid {
    color: #b17c11;
}

.cta-course-title {
    margin: 0 0 0.85rem;
    font-size: 1.34rem;
    font-weight: 500;
    line-height: 1.3;
    color: #20242f;
}

.cta-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cta-course-teacher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #555d69;
}

.cta-course-teacher img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.cta-course-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    color: #69707d;
}

.cta-course-location i {
    color: #dfb451;
}

.cta-all-link-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.3rem;
}

.cta-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #b17c11;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: gap 0.2s ease, color 0.2s ease;
}

.cta-all-link:hover {
    gap: 0.7rem;
    color: #7c530b;
}

/* ── News / Recent News section ───────────────────────── */
.home-section-news {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-top: clamp(2rem, 3.2vw, 3rem);
    padding-bottom: clamp(2rem, 3.2vw, 3rem);
}

.news-section-head {
    text-align: center;
    width: min(760px, 100%);
    margin: 0 auto 1.8rem;
}

.news-section-head h2 {
    margin: 0.9rem 0 0;
}

.news-section-head p {
    margin: 0.95rem auto 0;
    max-width: 640px;
    color: #616a76;
    font-size: 1rem;
    line-height: 1.65;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.news-post-card {
    min-width: 0;
}

.news-media-wrap {
    position: relative;
}

.news-media-wrap img {
    width: 100%;
    height: 300px;
    border-radius: 22px;
    object-fit: cover;
    display: block;
}

.news-category {
    position: absolute;
    left: 1.15rem;
    bottom: -14px;
    min-width: 68px;
    padding: 0.26rem 0.68rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6ce71 0%, #dfb451 100%);
    color: #5f3f08;
    font-size: 0.88rem;
    font-weight: 600;
}

.news-post-content {
    padding: 1.15rem 0.15rem 0;
}

.news-post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: #6d7682;
    font-size: 0.9rem;
}

.news-post-meta i {
    color: #cf8e2e;
    margin-right: 0.2rem;
}

.news-post-card h3 {
    margin: 0.52rem 0 0.4rem;
    color: #20242f;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.08;
    text-transform: lowercase;
}

.news-post-card p {
    margin: 0;
    color: #5e6672;
    font-size: 0.98rem;
    line-height: 1.55;
}

.news-read-link {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: #b17c11;
    font-size: 1.06rem;
    font-weight: 700;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-read-link:hover {
    gap: 0.72rem;
    color: #7c530b;
}

@media (max-width: 1380px) {
    .home-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgb(255 250 241 / 92%) 0%, rgb(255 250 241 / 75%) 45%, rgb(255 250 241 / 0%) 75%);
    }

    .hero-copy {
        max-width: min(720px, 62%);
    }
}

@media (max-width: 1080px) {
    .home-hero {
        background-position: 72% center;
    }

    .hero-copy {
        max-width: 720px;
    }

    .welcome-grid,
    .home-section-cta {
        grid-template-columns: 1fr;
    }

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

    .class-card {
        flex-basis: calc((100% - 1.1rem) / 2);
    }

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

    .teacher-spotlight-card h3 {
        font-size: 1.28rem;
    }

    .teacher-spotlight-card p {
        font-size: 0.98rem;
    }

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

    .news-post-card h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 840px) {
    .music-note.note-clef,
    .music-note.note-1 {
        left: -2%;
        opacity: 0.45;
    }

    .music-note.note-2,
    .music-note.note-3 {
        right: -1%;
        opacity: 0.45;
    }

    .section-kicker {
        gap: 0.8rem;
        letter-spacing: 0.24em;
    }

    .section-kicker::before,
    .section-kicker::after {
        width: 28px;
    }

    .welcome-slider {
        min-height: 300px;
    }

    .welcome-slider-btn {
        width: 40px;
        height: 40px;
    }

    .hero-stats,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 0;
        background-position: 68% center;
    }

    .home-hero::after {
        background: linear-gradient(180deg, rgb(255 250 241 / 88%) 0%, rgb(255 250 241 / 82%) 100%);
    }

    .hero-copy h1 .hero-accent {
        white-space: normal;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .classes-section-head {
        align-items: center;
    }

    .classes-nav {
        position: static;
    }

    .music-note.note-4,
    .music-note.note-5 {
        opacity: 0.3;
    }

    .classes-heading-block {
        align-items: center;
    }

    .class-card {
        flex-basis: 88%;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .teachers-section-head {
        width: 100%;
    }

    .teacher-spotlight-card h3 {
        font-size: 1.2rem;
    }

    .cta-images {
        width: 100%;
        height: 320px;
    }

    .cta-img-primary {
        grid-column: 1 / 8;
        grid-row: 1 / 9;
    }

    .cta-img-secondary {
        grid-column: 9 / 13;
        grid-row: 5 / 11;
    }

    .cta-all-link-wrap {
        justify-content: flex-start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-media-wrap img {
        height: 250px;
    }

    .news-post-card h3 {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-animate,
    .welcome-animate,
    .classes-animate,
    .teachers-animate,
    .cta-animate,
    .news-animate,
    .home-hero.is-visible .hero-animate,
    .home-section-welcome.is-visible .welcome-animate,
    .home-section-classes.is-visible .classes-animate,
    .home-section-teachers.is-visible .teachers-animate,
    .home-section-cta.is-visible .cta-animate,
    .home-section-news.is-visible .news-animate {
        opacity: 1;
        animation: none;
    }

    .hero-stats article,
    .music-note {
        animation: none;
    }

    .welcome-slider-track {
        transition: none;
    }

    .classes-heading-block h2 {
        animation: none;
    }

    .classes-title-icon {
        animation: none;
        transform: translateY(1px);
    }
}