:root {
    --academy-primary: #6f28a8;
    --academy-primary-dark: #321246;
    --academy-primary-soft: #f1e8f8;
    --academy-ink: #18151d;
    --academy-muted: #716b79;
    --academy-paper: #faf8fc;
    --academy-line: #e7deed;
    --bs-primary: #6f28a8;
    --bs-primary-rgb: 111, 40, 168;
    --bs-dark: #18151d;
    --bs-light: #f1e8f8;
    --primary: var(--academy-primary);
    --dark: var(--academy-ink);
    --light: var(--academy-paper);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    color: var(--academy-ink);
    background: #fff;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    line-height: 1.65;
}

body,
button,
input,
textarea,
select {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--academy-ink);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-weight: 700;
}

a {
    text-underline-offset: 3px;
}

.skip-to-content {
    position: absolute;
    z-index: 1200;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    transform: translateY(-160%);
    border-radius: 8px;
    color: #fff;
    background: var(--academy-primary-dark);
}

.skip-to-content:focus {
    transform: translateY(0);
}

.academy-header {
    position: sticky;
    z-index: 1030;
    top: 0;
    border-bottom: 1px solid rgb(50 18 70 / 8%);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 8px 28px rgb(25 18 32 / 5%);
    backdrop-filter: blur(14px);
}

.academy-header-inner {
    display: flex;
    width: min(1440px, calc(100% - 40px));
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-inline: auto;
}

.academy-brand {
    display: inline-flex;
    min-width: 110px;
    flex: 0 0 auto;
    align-items: center;
    color: var(--academy-ink);
    text-decoration: none;
}

.academy-brand img {
    display: block;
    width: 106px;
    height: 100px;
    object-fit: contain;
}

.academy-brand-name {
    display: grid;
    color: var(--academy-primary-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.1;
}

.academy-brand-name strong {
    color: var(--academy-ink);
    font-size: 14px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.academy-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(8px, 1.2vw, 18px);
}

.academy-navigation > a,
.academy-nav-trigger {
    color: #51465e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
    white-space: nowrap;
}

.academy-navigation > a:hover,
.academy-navigation > a:focus-visible,
.academy-nav-trigger:hover,
.academy-nav-trigger:focus-visible {
    color: var(--academy-primary);
}

.academy-nav-group {
    position: relative;
}

.academy-nav-trigger {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.academy-nav-trigger span {
    color: var(--academy-primary);
    font-size: 15px;
    line-height: 1;
}

.academy-nav-dropdown {
    position: absolute;
    z-index: 1040;
    top: 100%;
    left: -14px;
    display: none;
    min-width: 225px;
    padding: 9px;
    border: 1px solid var(--academy-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgb(25 18 32 / 13%);
}

.academy-nav-group:hover .academy-nav-dropdown,
.academy-nav-group:focus-within .academy-nav-dropdown,
.academy-nav-group.is-open .academy-nav-dropdown {
    display: grid;
}

.academy-nav-dropdown a {
    padding: 10px 11px;
    border-radius: 7px;
    color: #51465e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

.academy-nav-dropdown a:hover,
.academy-nav-dropdown a:focus-visible {
    color: var(--academy-primary-dark);
    background: var(--academy-primary-soft);
}

.academy-nav-login {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--academy-primary);
    box-shadow: 0 8px 18px rgb(111 40 168 / 17%);
    cursor: pointer;
}

.academy-nav-login:hover,
.academy-nav-login:focus-visible,
.academy-nav-login[aria-expanded="true"] {
    color: #fff;
    background: var(--academy-primary-dark);
}

.academy-nav-login-dropdown {
    right: 0;
    left: auto;
}

.academy-menu-toggle {
    display: none;
}

.academy-footer {
    color: #f7f2fa;
    background:
        radial-gradient(ellipse at 80% 8%, rgb(111 40 168 / 18%), transparent 35%),
        #17121d;
}

.academy-footer-main {
    display: grid;
    width: min(1240px, calc(100% - 48px));
    grid-template-columns: 1.1fr .7fr .8fr 1.15fr;
    gap: 44px;
    margin-inline: auto;
    padding: 64px 0 48px;
}

.academy-brand-footer {
    min-width: 0;
    color: #fff;
}

.academy-brand-footer .academy-brand-name,
.academy-brand-footer .academy-brand-name strong {
    color: #fff;
}

.academy-footer-brand > p {
    max-width: 270px;
    margin: 0;
    color: #c8bdce;
    font-size: 16px;
    line-height: 1.8;
}

.academy-footer-links {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 11px;
}

.academy-footer-links h2,
.academy-footer-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.academy-footer-links a,
.academy-footer-bottom a {
    color: #c8bdce;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
}

.academy-footer-links a:hover,
.academy-footer-bottom a:hover {
    color: #fff;
}

.academy-content-width {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.academy-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(66px, 9vw, 112px) 0;
    color: #fff;
    background:
        radial-gradient(ellipse at 88% 15%, rgb(151 105 190 / 24%), transparent 32%),
        linear-gradient(120deg, #21112e, #6f28a8 72%, #8740b5);
}

.academy-page-hero::after {
    position: absolute;
    top: -160px;
    right: -100px;
    width: 430px;
    height: 430px;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgb(255 255 255 / 5%), 0 0 0 76px rgb(255 255 255 / 3%);
    content: "";
    pointer-events: none;
}

.academy-page-hero .academy-content-width {
    position: relative;
    z-index: 1;
}

.academy-page-hero .academy-eyebrow,
.academy-about-cta .academy-eyebrow {
    color: #f0b8aa;
}

.academy-page-hero h1 {
    max-width: 740px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -.055em;
    line-height: 1.08;
}

.academy-page-hero .academy-content-width > p:not(.academy-eyebrow) {
    max-width: 650px;
    margin: 0;
    color: #f3ded8;
    font-size: 16px;
    line-height: 1.8;
}

.academy-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #f0c8be;
    font-size: 12px;
}

.academy-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.academy-about-section {
    padding: clamp(64px, 8vw, 100px) 0;
}

.academy-story-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: clamp(36px, 8vw, 100px);
}

.academy-story-visual {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #eedbd5;
    border-radius: 26px;
    background: linear-gradient(145deg, #fff8f4, #f3e3dd);
}

.academy-story-visual img {
    display: block;
    width: min(86%, 410px);
    height: auto;
}

.academy-story-visual > span {
    position: absolute;
    right: 18px;
    bottom: 17px;
    padding: 9px 12px;
    border: 1px solid #ecd8d0;
    border-radius: 999px;
    color: var(--academy-primary-dark);
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.academy-story-visual > span i {
    margin: 0 5px;
    color: var(--academy-primary);
    font-style: normal;
}

.academy-story-copy h2,
.academy-values-heading h2,
.academy-about-cta h2 {
    margin: 0 0 16px;
    color: var(--academy-ink);
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -.05em;
    line-height: 1.15;
}

.academy-story-copy > p:not(.academy-eyebrow) {
    margin: 0 0 15px;
    color: var(--academy-muted);
    font-size: 14px;
    line-height: 1.85;
}

.academy-story-copy .academy-button {
    margin-top: 8px;
}

.academy-values-section {
    padding: clamp(64px, 8vw, 96px) 0;
    background: var(--academy-paper);
}

.academy-values-heading {
    max-width: 640px;
    margin-bottom: 34px;
}

.academy-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.academy-value-card {
    padding: 26px;
    border: 1px solid var(--academy-line);
    border-radius: 18px;
    background: #fff;
}

.academy-value-card > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 23px;
    border-radius: 13px;
    color: var(--academy-primary);
    background: var(--academy-primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.academy-value-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.academy-value-card p {
    margin: 0;
    color: var(--academy-muted);
    font-size: 13px;
    line-height: 1.75;
}

.academy-about-cta {
    padding: 0 0 80px;
    background: var(--academy-paper);
}

.academy-about-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 50px);
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(115deg, #281339, #71309e);
}

.academy-about-cta h2 {
    max-width: 620px;
    margin-bottom: 0;
    color: #fff;
}

.academy-footer-cta {
    padding: 24px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 20px;
    background: rgb(255 255 255 / 5%);
}

.academy-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #e5a69a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.academy-footer-cta h2 {
    max-width: 235px;
    margin-bottom: 19px;
    font-size: 20px;
}

.academy-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--academy-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.academy-button:hover {
    color: #fff;
    background: var(--academy-primary-dark);
    transform: translateY(-2px);
}

.academy-button-light {
    color: var(--academy-primary-dark);
    background: #fff;
}

.academy-button-light:hover {
    color: var(--academy-primary-dark);
    background: #f7e6e1;
}

.academy-footer-bottom {
    display: flex;
    width: min(1240px, calc(100% - 48px));
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-inline: auto;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #c8bdce;
    font-size: 14px;
}

.text-primary,
.section-title,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--academy-primary) !important;
}

.btn-primary,
.bg-primary,
.about-cta-button,
.back-to-top {
    border-color: var(--academy-primary) !important;
    color: #fff !important;
    background: var(--academy-primary) !important;
}

.btn-primary:hover,
.about-cta-button:hover,
.back-to-top:hover {
    border-color: var(--academy-primary-dark) !important;
    background: var(--academy-primary-dark) !important;
}

.page-header,
.about-hero-section,
.login-header,
.hero-courses {
    background: linear-gradient(130deg, var(--academy-primary-dark), var(--academy-primary)) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--academy-primary) !important;
    box-shadow: 0 0 0 .22rem rgb(111 40 168 / 15%) !important;
}

@media (max-width: 980px) {
    .academy-header-inner {
        min-height: 94px;
    }

    .academy-menu-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        align-content: center;
        justify-items: center;
        gap: 5px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
    }

    .academy-menu-toggle span:not(.visually-hidden) {
        width: 31px;
        height: 3px;
        border-radius: 2px;
        background: var(--academy-primary);
    }

    .academy-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        max-height: calc(100vh - 94px);
        overflow-y: auto;
        padding: 12px 24px 22px;
        border-bottom: 1px solid var(--academy-line);
        background: #fff;
        box-shadow: 0 18px 24px rgb(25 18 32 / 8%);
    }

    .academy-navigation.is-open {
        display: grid;
        justify-content: stretch;
        gap: 0;
    }

    .academy-navigation > a,
    .academy-nav-trigger {
        min-height: 46px;
        padding: 10px 0;
        font-size: 15px;
    }

    .academy-nav-group {
        border-top: 1px solid var(--academy-line);
    }

    .academy-nav-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .academy-nav-dropdown {
        position: static;
        min-width: 0;
        padding: 0 0 9px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .academy-nav-dropdown a {
        padding: 9px 11px;
    }

    .academy-navigation > .academy-nav-login-group {
        padding-top: 8px;
        border-top: 1px solid var(--academy-line);
    }

    .academy-navigation > .academy-nav-login-group .academy-nav-login {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        margin: 0;
        padding-inline: 14px;
    }

    .academy-nav-login-dropdown {
        padding-left: 12px;
    }

    .academy-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .academy-story-layout {
        gap: 38px;
    }
}

@media (max-width: 600px) {
    .academy-header-inner,
    .academy-footer-main,
    .academy-footer-bottom {
        width: min(100% - 32px, 1440px);
    }

    .academy-brand {
        min-width: 0;
    }

    .academy-brand img {
        width: 98px;
        height: 90px;
    }

    .academy-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px 20px;
        padding: 44px 0 32px;
    }

    .academy-footer-brand,
    .academy-footer-cta {
        grid-column: 1 / -1;
    }

    .academy-story-layout,
    .academy-value-grid {
        grid-template-columns: 1fr;
    }

    .academy-story-visual {
        min-height: 270px;
    }

    .academy-about-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .academy-footer-bottom {
        min-height: 70px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
