/* Homepage custom overrides loaded after the base theme. */
.home-promo-banners .home-promo-card {
    color: inherit;
}

.home-promo-banners .home-promo-card-inner {
    align-items: stretch;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 30px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    min-height: 350px;
    overflow: hidden;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-promo-points .home-promo-card-inner {
    grid-template-columns: .9fr 1.1fr;
}

.home-promo-banners .home-promo-card:hover .home-promo-card-inner {
    box-shadow: 0 28px 70px rgba(15, 23, 42, .14);
    transform: translateY(-5px);
}

.home-promo-giftcard .home-promo-card-inner {
    background:
        radial-gradient(circle at 92% 80%, rgba(140, 198, 63, .18), transparent 24%),
        linear-gradient(100deg, #ffffff 0%, #ffffff 41%, #effbea 41.2%, #f8fff4 100%);
}

.home-promo-points .home-promo-card-inner {
    background:
        radial-gradient(circle at 6% 86%, rgba(0, 106, 212, .12), transparent 25%),
        linear-gradient(100deg, #f4f9ff 0%, #eef6ff 50%, #ffffff 50.2%, #ffffff 100%);
    grid-template-columns: 1.02fr .98fr;
}

.home-promo-content {
    align-self: center;
    padding: 42px 52px;
    position: relative;
    z-index: 2;
}

.home-promo-kicker {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.home-promo-icon {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 58px;
    font-size: 25px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.home-promo-badge {
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    padding: 9px 18px;
    text-transform: uppercase;
}

.home-promo-giftcard .home-promo-icon,
.home-promo-giftcard .home-promo-badge,
.home-promo-giftcard .home-promo-btn {
    background: #69bd2f;
}

.home-promo-points .home-promo-icon,
.home-promo-points .home-promo-badge,
.home-promo-points .home-promo-btn {
    background: #0d6fd8;
}

.home-promo-title {
    color: #10243d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0;
}

.home-promo-title span {
    color: #69bd2f;
}

.home-promo-points .home-promo-title span {
    color: #0d6fd8;
}

.home-promo-line {
    border-radius: 999px;
    height: 4px;
    margin: 17px 0 18px;
    width: 78px;
}

.home-promo-giftcard .home-promo-line {
    background: #69bd2f;
}

.home-promo-points .home-promo-line {
    background: #0d6fd8;
}

.home-promo-text {
    color: #2f3b4a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.62;
    margin: 0 0 25px;
    max-width: 520px;
}

.home-promo-btn {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    gap: 13px;
    padding: 11px 24px 11px 11px;
}

.home-promo-btn i {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.home-promo-giftcard .home-promo-btn i {
    color: #69bd2f;
}

.home-promo-points .home-promo-btn i {
    color: #0d6fd8;
}

.home-promo-image {
    min-height: 350px;
    overflow: hidden;
    position: relative;
}

.home-promo-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.home-promo-giftcard .home-promo-image img {
    object-position: center center;
}

.home-promo-points .home-promo-image img {
    object-position: 72% center;
}

.home-promo-giftcard .home-promo-image {
    clip-path: none;
}

.home-promo-points .home-promo-image {
    clip-path: none;
}

.home-promo-giftcard .home-promo-image::after,
.home-promo-points .home-promo-image::after {
    bottom: 0;
    content: "";
    position: absolute;
    top: 0;
    width: 6px;
    z-index: 2;
}

.home-promo-giftcard .home-promo-image::after {
    background: linear-gradient(90deg, transparent, #f7fff3 42%, #f7fff3);
    right: -70px;
    transform: skewX(-10deg);
    width: 130px;
}

.home-promo-points .home-promo-image::after {
    background: linear-gradient(90deg, #f4f9ff, rgba(244, 249, 255, .84) 34%, transparent);
    left: -95px;
    transform: skewX(-10deg);
    width: 150px;
}

.home-promo-giftcard .home-promo-image::before,
.home-promo-points .home-promo-image::before {
    bottom: 0;
    content: "";
    position: absolute;
    top: 0;
    transform: skewX(-10deg);
    width: 5px;
    z-index: 3;
}

.home-promo-giftcard .home-promo-image::before {
    background: #69bd2f;
    right: 50px;
}

.home-promo-points .home-promo-image::before {
    background: #0d6fd8;
    left: 42px;
}

.banner-section.temp-4 {
    padding: 10px 12px;
}

.mat-loyalty-card {
    background:
        radial-gradient(circle at 7% 13%, rgba(140, 198, 63, .2), transparent 22%),
        linear-gradient(135deg, #061a2f 0%, #082b4b 52%, #f4f8f1 52.2%, #fff 100%);
    border-radius: 36px;
    box-shadow: 0 28px 80px rgba(8, 28, 48, .18);
    display: grid !important;
    gap: 28px;
    grid-template-columns: .9fr 1.1fr;
    min-height: 500px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.mat-loyalty-card::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 38px 38px;
    bottom: 0;
    content: "";
    left: 0;
    opacity: .55;
    position: absolute;
    right: 45%;
    top: 0;
}

.mat-loyalty-card::after {
    background: rgba(140, 198, 63, .95);
    border-radius: 999px;
    content: "";
    height: 150px;
    position: absolute;
    right: 38px;
    top: 34px;
    width: 150px;
    z-index: 0;
}

.mat-loyalty-card .hm-banner-text {
    align-items: flex-start;
    align-self: stretch;
    background: linear-gradient(145deg, rgba(7, 33, 58, .94), rgba(7, 51, 85, .78));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    position: relative;
    z-index: 2;
}

.mat-loyalty-card .hm-banner-text::after {
    background: linear-gradient(90deg, #8cc63f, transparent);
    border-radius: 999px;
    bottom: 0;
    content: "";
    height: 5px;
    left: 42px;
    position: absolute;
    width: 150px;
}

.mat-loyalty-badge {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .16);
    color: #79b829;
    display: inline-flex;
    font-size: 25px;
    height: 58px;
    justify-content: center;
    margin-bottom: 20px;
    transform: rotate(-6deg);
    width: 58px;
}

.mat-loyalty-card h1 {
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4.4vw, 64px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .98;
    margin: 0;
    max-width: 500px;
}

.mat-loyalty-card h1 span,
.mat-loyalty-card h5 span {
    color: #9be044;
}

.mat-title-mark {
    background: #9be044;
    border-radius: 999px;
    height: 5px;
    margin: 18px 0 18px;
    width: 86px;
}

.mat-loyalty-card h5 {
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 26px;
    max-width: 455px;
}

.mat-loyalty-features {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 30px;
    width: 100%;
}

.mat-loyalty-feature {
    align-items: flex-start;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    min-height: 128px;
    padding: 16px 14px;
    text-align: left;
}

.mat-loyalty-feature div {
    align-items: center;
    background: rgba(155, 224, 68, .13);
    border: 1px solid rgba(155, 224, 68, .18);
    border-radius: 14px;
    color: #9be044;
    display: inline-flex;
    font-size: 22px;
    height: 44px;
    justify-content: center;
    margin-bottom: 12px;
    width: 44px;
}

.mat-loyalty-feature strong,
.mat-loyalty-feature span {
    display: block;
    line-height: 1.2;
}

.mat-loyalty-feature strong {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.mat-loyalty-feature span {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.mat-loyalty-cta {
    align-items: center;
    background: linear-gradient(135deg, #9be044, #79bd2d);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 20px 34px rgba(121, 189, 45, .28);
    color: #06243d !important;
    display: inline-flex;
    font-size: 17px;
    font-weight: 900;
    gap: 14px;
    padding: 10px 28px 10px 10px;
    text-decoration: none;
}

.mat-loyalty-cta span {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #79bd2d;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.mat-loyalty-card .hm-banner-img {
    align-self: stretch;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(8, 28, 48, .24);
    margin: 0;
    min-height: 444px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.mat-loyalty-card .hm-banner-img::before {
    background: linear-gradient(180deg, transparent 48%, rgba(6, 26, 47, .74));
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.mat-loyalty-card .hm-banner-img::after {
    background: rgba(255, 255, 255, .92);
    border-radius: 22px;
    bottom: 22px;
    box-shadow: 0 18px 36px rgba(6, 26, 47, .22);
    color: #06243d;
    content: "Use points toward future lessons";
    font-size: 15px;
    font-weight: 800;
    left: 22px;
    max-width: 260px;
    padding: 16px 20px;
    position: absolute;
    z-index: 3;
}

.mat-loyalty-card .hm-banner-img img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    width: 100%;
}

.mat-events-card {
    background: #fff;
    border-radius: 42px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    display: grid;
    gap: 34px;
    grid-template-columns: .9fr 1.1fr;
    overflow: hidden;
    padding: 44px 48px 40px;
    position: relative;
}

.mat-events-card::before {
    background: radial-gradient(circle at center, rgba(106, 191, 72, .09), transparent 62%);
    bottom: -120px;
    content: "";
    height: 280px;
    left: -90px;
    position: absolute;
    width: 280px;
}

.mat-events-kicker {
    align-items: center;
    color: #8cc63f;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mat-events-kicker::after {
    background: #8cc63f;
    content: "";
    display: block;
    height: 2px;
    width: 110px;
}

.mat-events-card .event-content {
    align-items: flex-start;
    display: flex;
    flex-basis: auto;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.mat-events-card .event-content h2 {
    color: #071f3d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.mat-events-card .event-content h2 span {
    color: #78b82a;
}

.mat-events-card .event-content p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 470px;
}

.mat-event-features {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0 2px;
    width: 100%;
}

.mat-event-feature {
    align-items: center;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 94px;
    text-align: center;
}

.mat-event-feature:last-child {
    border-right: 0;
}

.mat-event-icon {
    align-items: center;
    background: #eef8e4;
    border-radius: 999px;
    color: #83bd31;
    display: inline-flex;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.mat-event-feature span {
    color: #0f2b4a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.mat-events-cta {
    align-items: center;
    background: #8cc63f;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 25px rgba(140, 198, 63, .35);
    color: #fff !important;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 24px 10px 10px;
    text-decoration: none;
}

.mat-events-cta span {
    align-items: center;
    background: #082a48;
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.mat-events-visual {
    align-self: center;
    flex-basis: auto;
    min-height: 430px;
    position: relative;
    z-index: 1;
}

.mat-events-visual img {
    border-radius: 38px 96px 34px 34px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    height: 360px;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 2;
}

.mat-events-green-shape {
    background: #8cc63f;
    border-radius: 90px 90px 0 0;
    height: 70px;
    position: absolute;
    right: 0;
    top: -22px;
    width: 78%;
    z-index: 1;
}

.mat-events-callout {
    align-items: center;
    background: #062a49;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    bottom: 28px;
    box-shadow: 0 18px 30px rgba(6, 42, 73, .22);
    color: #fff;
    display: flex;
    gap: 14px;
    left: -70px;
    max-width: 410px;
    padding: 12px 22px 12px 12px;
    position: absolute;
    z-index: 3;
}

.mat-events-callout::before {
    background: #062a49;
    bottom: -18px;
    content: "";
    height: 62px;
    left: -22px;
    position: absolute;
    transform: rotate(-8deg);
    width: 260px;
    z-index: -1;
}

.mat-events-callout-icon {
    align-items: center;
    background: #8cc63f;
    border-radius: 999px;
    color: #062a49;
    display: inline-flex;
    flex: 0 0 52px;
    font-size: 21px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.mat-events-callout strong,
.mat-events-callout span {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.mat-events-callout span {
    color: #8cc63f;
    font-weight: 800;
}

.mat-events-dots {
    background-image: radial-gradient(#cfd6ce 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    bottom: 10px;
    height: 84px;
    position: absolute;
    right: 12px;
    width: 120px;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .home-promo-banners .home-promo-card-inner,
    .mat-loyalty-card,
    .mat-events-card {
        grid-template-columns: 1fr;
    }

    .home-promo-content {
        padding: 34px 26px;
    }

    .home-promo-points .home-promo-content {
        order: 2;
    }

    .home-promo-points .home-promo-image {
        order: 1;
    }

    .home-promo-giftcard .home-promo-image,
    .home-promo-points .home-promo-image {
        clip-path: none;
        min-height: 260px;
    }

    .home-promo-giftcard .home-promo-image::after,
    .home-promo-points .home-promo-image::after {
        display: none;
    }

    .mat-loyalty-card .hm-banner-text {
        padding: 38px 26px 30px;
    }

    .mat-loyalty-card .hm-banner-img {
        min-height: 320px;
    }

    .mat-loyalty-card .hm-banner-img::after {
        left: 18px;
        max-width: calc(100% - 36px);
    }

    .mat-events-card {
        padding: 34px 24px 30px;
    }

    .mat-events-card .event-content {
        max-width: none;
    }

    .mat-events-visual {
        min-height: 360px;
    }

    .mat-events-callout {
        left: 18px;
        max-width: calc(100% - 36px);
    }
}

@media (max-width: 575.98px) {
    .home-promo-banners .home-promo-card-inner,
    .mat-loyalty-card,
    .mat-events-card {
        border-radius: 28px;
    }

    .home-promo-kicker {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-promo-icon {
        flex-basis: 52px;
        height: 52px;
        width: 52px;
    }

    .home-promo-title {
        font-size: 32px;
    }

    .mat-loyalty-features,
    .mat-event-features {
        grid-template-columns: 1fr;
    }

    .mat-loyalty-feature,
    .mat-event-feature {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        border-right: 0;
        min-height: auto;
        padding: 16px;
    }

    .mat-event-feature {
        border-bottom-color: #e5e7eb;
    }

    .mat-loyalty-feature:last-child,
    .mat-event-feature:last-child {
        border-bottom: 0;
    }

    .mat-loyalty-card .hm-banner-img {
        min-height: 260px;
    }

    .mat-events-card {
        padding: 28px 18px;
    }

    .mat-events-visual {
        min-height: 330px;
    }

    .mat-events-visual img {
        height: 280px;
    }

    .mat-events-callout {
        border-radius: 24px;
        bottom: 12px;
    }
}
