:root {
    --primary: #401f68;
    --secondary: #9348ff;
    --accent: #a9efea;
    --background: #fafafe;
    --white: #fff;
    --pink: #f9d4dd;
    --gradient: linear-gradient(89deg, #9348ff 0%, #51ffe4 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Rubik', 'Nunito', Arial, sans-serif;
    background: var(--background);
    color: var(--primary);
    line-height: 1.7;
    min-height: 100vh;
}

header {
    background: var(--primary);
    color: var(--white);
    padding: 1.8rem 0 1.1rem 0;
    box-shadow: 0px 3px 24px rgba(64, 31, 104, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-size: 2.05rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-align: center;
    margin-bottom: 0.22rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--secondary);
    font-size: 2.3rem;
}

nav {
    margin-top: 0.7rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 1.5px;
    font-size: 1.08rem;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2.5px;
    background: var(--accent);
    margin: 0 auto;
    transition: width 0.23s;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

nav a:hover::after,
nav a.active::after {
    width: 85%;
}

/* Banner hero section */
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient);
    color: var(--white);
    padding: 5.3rem 1.7rem 4rem 1.7rem;
    border-radius: 0 0 68px 68px;
    margin-bottom: 2.7rem;
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: '';
    position: absolute;
    left: 75%;
    top: 0;
    width: 340px;
    height: 140px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.32;
    z-index: 0;
    transform: translate(-50%, 10%);
}

.banner>* {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 3.1rem;
    font-weight: 800;
    margin-bottom: 1.22rem;
    text-shadow: 0px 4px 22px rgba(73, 25, 151, 0.13);
    letter-spacing: 1.6px;
}

.banner p {
    font-size: 1.29rem;
    max-width: 600px;
    margin: 0 auto 2.35rem auto;
    font-family: 'Nunito', sans-serif;
    color: #e2f8ff;
}

.banner .cta-btn {
    background: var(--white);
    color: var(--secondary);
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    letter-spacing: 1.1px;
    border: none;
    padding: 0.85rem 2.7rem;
    border-radius: 32px;
    box-shadow: 0 3px 18px rgba(125, 73, 255, 0.19);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.banner .cta-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.045) translateY(-4px);
}

/* Section styling */
.section {
    padding: 3.6rem 1.2rem 2.7rem 1.2rem;
    max-width: 1220px;
    margin: 0 auto 2.8rem auto;
    background: var(--white);
    border-radius: 23px;
    box-shadow: 0 3px 24px rgba(73, 25, 151, 0.05);
}

.section h2 {
    color: var(--secondary);
    font-size: 2.25rem;
    margin-bottom: 2.2rem;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    letter-spacing: 1.1px;
}

/* Services grid styling */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.2rem;
    margin-top: 0.4rem;
}

.service-card {
    background: linear-gradient(110deg, var(--pink) 80%, var(--accent) 180%);
    border-radius: 18px;
    padding: 2.15rem 1.3rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(147, 72, 255, 0.06);
    border: 2.7px solid var(--accent);
    transition: box-shadow 0.17s, transform 0.17s, border 0.15s;
}

.service-card:hover {
    border: 2.7px solid var(--secondary);
    box-shadow: 0 6px 38px 0 rgba(147, 72, 255, 0.11);
    transform: translateY(-7px) scale(1.046);
}

.service-card i {
    font-size: 2.3rem;
    color: var(--secondary);
    margin-bottom: 1.1rem;
    background: var(--white);
    border-radius: 50%;
    padding: 0.7em;
    box-shadow: 0 3px 12px rgba(173, 73, 255, 0.06);
}

.service-card h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.22rem;
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.service-card p {
    font-size: 1.09rem;
    color: #6429a6;
}

/* Classes grid styling */
.classes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
    gap: 2.3rem;
}

.class-card {
    background: linear-gradient(99deg, var(--white) 70%, var(--accent) 190%);
    border: 2px solid var(--secondary);
    border-radius: 17px;
    padding: 2.1rem 1.11rem 1.4rem 1.11rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2.5px 10px rgba(51, 234, 220, 0.08);
    transition: box-shadow 0.17s, border 0.16s, transform 0.16s;
}

.class-card:hover {
    box-shadow: 0 6px 22px rgba(147, 72, 255, 0.10);
    border: 2px solid var(--primary);
    transform: translateY(-7px) scale(1.03);
}

.class-card h3 {
    color: var(--secondary);
    margin-bottom: 1.05rem;
    font-size: 1.09rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
}

.class-card p {
    margin-bottom: 1.1rem;
    font-size: 1.06rem;
    color: var(--primary);
}

.class-card .enroll-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.6rem 2.1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    margin-top: auto;
    align-self: flex-end;
    font-family: 'Rubik', sans-serif;
    box-shadow: 0 1px 7px rgba(147, 72, 255, 0.11);
    transition: background 0.15s, color 0.17s, transform 0.15s;
}

.class-card .enroll-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.044);
}

/* Testimonials */
.testimonial-section {
    background: linear-gradient(112deg, var(--accent) 20%, var(--pink) 100%);
    padding: 2.7rem 1.2rem 2.7rem 1.2rem;
    margin: 2.4rem 0;
    border-radius: 24px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 27px rgba(147, 72, 255, 0.09);
}

.testimonial-section h2 {
    color: var(--primary);
    font-family: 'Rubik', sans-serif;
    font-size: 2.03rem;
    margin-bottom: 2.1rem;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem 1.4rem 1.15rem 1.4rem;
    max-width: 355px;
    min-width: 260px;
    flex: 1 0 260px;
    box-shadow: 0 1px 12px rgba(73, 25, 151, 0.08);
    border-left: 7px solid var(--secondary);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.07rem;
    color: #7157a7;
}

.testimonial-card .name {
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.07rem;
    font-family: 'Rubik', sans-serif;
}

/* Responsiveness */
@media (max-width: 1100px) {

    .section,
    .testimonial-section {
        max-width: 99vw;
    }
}

@media (max-width: 900px) {

    .section,
    .testimonial-section {
        padding: 2.1rem 0.6rem 1.5rem 0.6rem;
    }

    .banner {
        padding: 3.1rem 0.6rem 2.5rem 0.6rem;
    }
}

@media (max-width: 700px) {
    .banner h1 {
        font-size: 2.1rem;
    }

    .section h2,
    .testimonial-section h2 {
        font-size: 1.38rem;
    }

    .services,
    .classes-list,
    .testimonials {
        grid-template-columns: 1fr !important;
        flex-direction: column;
        gap: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 1.3rem 0.2rem 1.5rem 0.2rem;
        border-radius: 0 0 30px 30px;
    }

    header {
        padding: 0.6rem 0 0.6rem 0;
    }

    .section,
    .testimonial-section {
        padding: 0.7rem 0.1rem;
        border-radius: 11px;
    }
}

#footer {
    background: var(--primary, #401f68);
    color: var(--white, #fff);
    padding: 2rem 1rem 1.2rem 1rem;
    text-align: center;
    font-size: 1rem;
    margin-top: 40px;
    box-shadow: 0px -2px 12px rgba(64, 31, 104, 0.05);
    position: relative;
    z-index: 10;
}

#footer .footer-links {
    margin-bottom: 1rem;
    font-size: 1.08rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3em;
}

#footer .footer-links a {
    color: var(--accent, #a9efea);
    text-decoration: none;
    padding: 0 0.4em;
    transition: color 0.18s;
    font-weight: 500;
    font-family: 'Nunito', 'Rubik', Arial, sans-serif;
}

#footer .footer-links a:hover {
    color: var(--secondary, #9348ff);
    text-decoration: underline;
}

#footer .footer-links span {
    color: var(--white, #fff);
    margin: 0 0.15em;
    font-weight: 700;
}

#footer i.fa-envelope {
    margin-right: 0.27em;
}

#footer a[target="_blank"] {
    text-decoration: underline dotted;
}

#footer>div:last-child {
    font-size: 0.98em;
    color: var(--accent, #a9efea);
    margin-top: 0.35em;
}

#footer>div:last-child a {
    color: var(--white, #fff);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    #footer {
        font-size: 0.92rem;
        padding: 1rem 0.3rem 0.7rem 0.3rem;
    }

    #footer .footer-links {
        flex-direction: column;
        gap: 0.2em;
    }

    #footer .footer-links a,
    #footer .footer-links span {
        display: block;
        margin: 0.08em 0;
    }
}

.banner {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 60px 60px;
    padding: 2.8rem 1.2rem 2.6rem 1.2rem;
    box-shadow: 0 4px 18px rgba(94, 99, 182, 0.17);
    color: #27296d;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 60px 60px;
    /* background: linear-gradient(115deg, rgba(246, 246, 253, 0.97) 65%, rgba(227, 207, 163, 0.13) 100%); */
    z-index: 0;
    pointer-events: none;
}

.banner>* {
    position: relative;
    z-index: 1;
}

.terms-section {
    max-width: 840px;
    margin: 2.4rem auto 3rem auto;
    background: #fff;
    border-radius: 21px;
    padding: 2.4rem 2.1rem 2rem 2.1rem;
    box-shadow: 0 4px 24px 0 rgba(94, 99, 182, 0.08);
    font-family: 'Lato', sans-serif;
    color: #36375f;
}

.terms-section h2 {
    color: #5e63b6;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.terms-section p {
    margin-bottom: 1.12em;
    line-height: 1.59em;
    font-size: 1.08rem;
}

.terms-section a {
    color: #7c83fd;
    text-decoration: underline;
}

.terms-section a:hover {
    color: #222260;
}

@media (max-width: 680px) {
    .terms-section {
        padding: 1.2rem 0.6rem 1.2rem 0.6rem;
        border-radius: 13px;
    }

    .banner {
        padding: 1.7rem 0.6rem 1.7rem 0.6rem;
        border-radius: 0 0 30px 30px;
    }
}