:root {
    --template-bg: #07111f;
    --template-bg-soft: #0c1a2d;
    --template-surface: rgba(255, 255, 255, 0.06);
    --template-surface-strong: rgba(255, 255, 255, 0.12);
    --template-border: rgba(255, 255, 255, 0.12);
    --template-text: #f7fbff;
    --template-muted: rgba(247, 251, 255, 0.72);
    --template-accent: #8ce7ff;
    --template-accent-2: #f8c26a;
    --template-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(140, 231, 255, 0.18), transparent 36%),
        radial-gradient(circle at top right, rgba(248, 194, 106, 0.18), transparent 30%),
        linear-gradient(180deg, #07111f 0%, #0b1728 55%, #060b13 100%);
    color: var(--template-text);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.template-nav {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    margin-bottom: 28px;
    background: rgba(7, 17, 31, 0.72);
    border: 1px solid var(--template-border);
    border-radius: 24px;
    backdrop-filter: blur(24px);
    box-shadow: var(--template-shadow);
}

.template-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.template-nav__mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--template-accent), var(--template-accent-2));
    box-shadow: 0 0 30px rgba(140, 231, 255, 0.45);
}

.template-hero {
    background-image: var(--template-hero-background);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.template-category-hero {
    min-height: 320px;
}

.template-category-hero__count,
.template-category-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--template-border);
    border-radius: 24px;
    color: var(--template-text);
    box-shadow: var(--template-shadow);
}

.template-category-hero__count {
    min-height: 180px;
}

.template-category-card {
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.template-category-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--template-accent);
}

.template-category-card__number {
    display: inline-flex;
    margin-bottom: 34px;
    color: var(--template-accent);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.template-category-card h3 {
    margin-bottom: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
}

.template-category-card p,
.template-category-section > .container > .mb-4 p {
    color: var(--template-muted);
}

.template-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

.template-nav__dropdown {
    position: relative;
    z-index: 60;
}

.template-nav__dropdown-toggle::after {
    margin-left: 0.5rem;
}

.template-nav__dropdown-menu {
    z-index: 1050;
    min-width: 280px;
    margin-top: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(9, 19, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--template-shadow);
    backdrop-filter: blur(20px);
}

.template-nav__dropdown-menu .dropdown-item,
.template-nav__dropdown-menu .dropdown-item-text {
    border-radius: 12px;
    color: var(--template-muted);
    padding: 10px 12px;
}

.template-nav__dropdown-menu .dropdown-item:hover,
.template-nav__dropdown-menu .dropdown-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--template-text);
}

.template-nav__accordion {
    display: grid;
    gap: 10px;
}

.template-nav__category {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.template-nav__category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--template-text);
    font-weight: 700;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.template-nav__category-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.template-nav__category-toggle::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.template-nav__category-toggle.collapsed::after {
    transform: rotate(-45deg);
}

.template-nav__category-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.template-nav__category-body {
    padding: 8px;
    display: grid;
    gap: 6px;
}

.template-nav__course-link {
    border-radius: 12px;
}

.template-nav__course-link:hover,
.template-nav__course-link.active {
    background: rgba(255, 255, 255, 0.08);
}

.template-slider__slide {
    width: min(100%, 1120px);
}

.template-slider__image {
    border-radius: 24px 24px 0 0;
}

.template-slider__content {
    padding: 18px 20px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    color: var(--template-text);
}

.template-split {
    --template-split-card-text: #111827;
}

.template-split__content {
    order: 1;
}

.template-split__media {
    order: 2;
}

.template-split--right-left .template-split__content {
    order: 2;
}

.template-split--right-left .template-split__media {
    order: 1;
}

.template-split__media img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.template-split__intro {
    color: var(--template-muted);
}

.template-split-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.template-split-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--template-split-card-text);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.template-split-card__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.template-split-card__copy {
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

.template-split-card__copy h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.25;
}

.template-split-card__copy h3 + div {
    margin-top: 4px;
}

.template-reviews .slick-track {
    display: flex;
}

.template-reviews .slick-slide {
    height: auto;
    padding: 0 10px;
}

.template-reviews .slick-slide > div,
.template-reviews .review-slide,
.template-review {
    height: 100%;
}

.template-review {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: var(--template-text);
    box-shadow: var(--template-shadow);
}

.template-review__person {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.template-review__stars {
    color: var(--template-accent-2);
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.template-nav__link {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--template-muted);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.template-nav__link:hover,
.template-nav__link.is-active {
    color: var(--template-text);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--template-border);
}

.template-nav__actions {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-nav__logout {
    margin: 0;
}

.template-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #f8c26a 0%, #f59f00 100%);
    color: #111827;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 28px rgba(245, 159, 0, 0.28);
}

.template-nav__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(245, 159, 0, 0.32);
}

.template-nav__button--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--template-text);
    box-shadow: none;
}

.template-form {
    padding: 28px 24px;
    border-radius: 28px;
    background: #ffffff;
    color: #111827;
    box-shadow: var(--template-shadow);
}

.template-form__header {
    text-align: center;
    margin-bottom: 18px;
}

.template-form__eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 159, 0, 0.12);
    color: #d97706;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.template-form__header p {
    margin: 14px 0 0;
    color: #374151;
    line-height: 1.5;
}

.template-form__field + .template-form__field {
    margin-top: 12px;
}

.template-form__field input {
    width: 100%;
    height: 52px;
    border: 2px solid #dbe3f0;
    border-radius: 999px;
    padding: 0 18px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.template-form__field input:focus {
    outline: none;
    border-color: var(--template-accent);
    box-shadow: 0 0 0 0.2rem rgba(140, 231, 255, 0.22);
}

.template-form__field input.is-invalid,
.template-form__field input.error {
    border-color: #dc3545;
}

.template-form__field input.is-valid,
.template-form__field input.valid {
    border-color: #198754;
}

.template-form__check {
    margin-top: 16px;
    text-align: left;
}

.template-form__check label {
    position: relative;
    display: inline-flex;
    gap: 10px;
    align-items: flex-start;
    padding-left: 24px;
    cursor: pointer;
    color: #4b5563;
    line-height: 1.4;
}

.template-form__check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    inset: 0 auto auto 0;
}

.template-form__check .checkmark {
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #94a3b8;
    background: #ffffff;
}

.template-form__check input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 2px;
    background: #0f172a;
}

.template-form .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 6px;
}

.template-form__submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8c26a 0%, #f59f00 100%);
    color: #111827;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(245, 159, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(245, 159, 0, 0.32);
}

@media (max-width: 991px) {
    .template-nav {
        justify-content: center;
    }

    .template-nav__links {
        order: 3;
    }

    .template-nav__actions {
        order: 2;
    }
}

@media (max-width: 767px) {
    .template-hero {
        background-image: var(--template-hero-background-mobile);
    }

    .template-nav {
        align-items: flex-start;
    }

    .template-form {
        padding: 24px 18px;
    }

    .template-split__content,
    .template-split--right-left .template-split__content,
    .template-split__media,
    .template-split--right-left .template-split__media {
        order: 0;
    }

    .template-split-cards {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
