body {
    font-family: 'Montserrat', sans-serif;
}

:root {
    --primary-color: #BBA478;
    --secondary-color: #77684b;
    --bg-opacity: #ffffff36;
    --dark-bg: #000000;
    --dark-bg-2: #222222;
    --dark-bg-3: #666666;
    --course-card-width: 270px;
    --course-card-height: 380px;
    --course-card-aspect-ratio: 27 / 38;
}

.container-fluid {
    max-width: 1920px;
}

.bg-opacity {
    background-color: var(--bg-opacity) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-dark-2 {
    background-color: var(--dark-bg-2) !important;
}

.bg-dark-3 {
    background-color: var(--dark-bg-3) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: #666666;
}

.mt-n1 {
    margin-top: -3.5rem !important;
}

.fs-5 {
    font-size: 1.12rem !important;
}

.fs-6 {
    font-size: 0.88rem !important;
}

.fs-7 {
    font-size: 0.75rem !important;
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
}

@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }

    header.py-2 {
        padding-block: 0 !important;
    }
}

#headerMenu li {
    font-weight: 600;
}

#headerMenu li.active a {
    color: var(--primary-color) !important;
}

.search-input {
    background-color: #262626;
    border: none;
    border-radius: 50px;
    padding-left: 2.5rem;
    color: #fff;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    background-color: #262626;
    color: #fff;
    box-shadow: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.profile-page {
    min-height: calc(100vh - 72px);
}

.profile-container {
    max-width: 1660px;
}

.profile-page-title {
    width: fit-content;
    font-size: 1.55rem;
    padding-bottom: .8rem;
    border-bottom: 2px solid var(--primary-color);
}

.profile-section-title {
    color: var(--primary-color);
    font-size: 1rem;
}

.profile-nav {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.profile-nav-link {
    min-height: 48px;
    padding: .75rem .35rem;
    color: rgba(255, 255, 255, .58);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: color .2s ease;
}

.profile-nav-link:hover,
.profile-nav-link.is-active {
    color: var(--primary-color);
}

.profile-nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.profile-card {
    max-width: 850px;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .04);
}

.profile-card-banner {
    height: 155px;
    background: #171717;
    border-bottom: 1px solid rgba(255, 255, 255, .035);
}

.profile-card-brand {
    width: 180px;
    right: 42px;
    top: 43px;
    opacity: .68;
    filter: grayscale(1) sepia(.2);
}

.profile-card-content {
    position: relative;
    z-index: 1;
    margin-top: -110px;
    padding-bottom: 1.65rem;
}

.profile-avatar-frame {
    width: 140px;
    height: 140px;
    cursor: pointer;
    background: linear-gradient(145deg, #c9b488, var(--primary-color));
    color: #fff;
    border: 0;
    font-size: 4rem;
    font-weight: 600;
}

.profile-avatar-action {
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
    font-size: .76rem;
    transition: color .2s ease;
}

.profile-avatar-action:hover {
    color: var(--primary-color);
}

.profile-name {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.profile-metrics {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

.profile-metrics i {
    color: var(--primary-color);
    font-size: 1rem;
}

.profile-alert {
    max-width: 850px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.profile-progress-section {
    margin-top: 2.8rem;
}

.profile-subtitle,
.profile-member-since {
    color: rgba(255, 255, 255, .56);
    font-size: .72rem;
}

.profile-progress {
    height: 8px;
    background: #2a2a2a;
    border-radius: 10px;
}

.profile-progress .progress-bar {
    background: var(--primary-color);
    border-radius: 10px;
}

.profile-progress-value {
    min-width: 38px;
    color: var(--primary-color);
    font-size: .76rem;
}

.profile-achievements {
    margin-top: 2.4rem;
}

.profile-achievement {
    width: 70px;
    height: 70px;
    background: #252525;
}

.profile-achievement img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-member-since {
    min-height: 1rem;
    margin-top: 2.8rem;
}

.account-form-card,
.certificate-card,
.account-empty-state {
    max-width: 850px;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, .035);
}

.account-mini-avatar {
    width: 54px;
    height: 54px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

.account-form .form-label {
    color: rgba(255, 255, 255, .58);
    font-size: .76rem;
}

.account-form .form-control,
.account-form .form-select {
    min-height: 48px;
    color: #fff;
    background-color: #1d1d1d;
    border: 1px solid transparent;
    border-radius: 0;
}

.account-form .form-control:focus,
.account-form .form-select:focus {
    color: #fff;
    background-color: #1d1d1d;
    border-color: var(--primary-color);
    box-shadow: none;
}

.account-outline-button {
    min-width: 200px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: .75rem 2rem;
}

.account-outline-button:hover {
    color: #111;
    background: var(--primary-color);
}

.account-outline-button:disabled {
    color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: .7;
}

.account-muted-action,
.account-empty-state {
    color: rgba(255, 255, 255, .48);
}

.account-muted-action {
    text-decoration: underline;
}

.account-empty-state {
    padding: 2.5rem;
}

.certificate-card {
    min-height: 180px;
}

.certificate-cover {
    width: 190px;
    height: 125px;
    color: #555;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.certificate-card small {
    color: rgba(255, 255, 255, .48);
}

.certificate-card h3 {
    max-width: 520px;
    font-size: 1rem;
}

.profile-alert-error {
    border-left: 3px solid #dc5d67 !important;
}

.profile-alert-success {
    border-left: 3px solid var(--primary-color) !important;
}

@media (max-width: 991px) {
    .account-navigation-column {
        overflow: hidden;
    }

    .profile-nav {
        display: flex;
        gap: .25rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        scroll-snap-type: x proximity;
    }

    .profile-nav::-webkit-scrollbar {
        display: none;
    }

    .profile-nav-link {
        flex: 0 0 auto;
        min-height: 44px;
        padding: .65rem .8rem;
        border-bottom: 2px solid transparent;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .profile-nav-link.is-active {
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 767px) {
    .profile-page {
        min-height: calc(100vh - 60px);
    }

    .profile-container {
        padding-top: .75rem !important;
    }

    .profile-page-title {
        margin-bottom: 1rem !important;
        padding-bottom: .6rem;
        font-size: 1.25rem;
    }

    .account-navigation-column {
        margin-bottom: 1.4rem !important;
    }

    .profile-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        overflow: visible;
    }

    .profile-nav-link {
        justify-content: center;
        gap: .5rem !important;
        padding-inline: .65rem;
        font-size: .78rem;
        text-align: center;
    }

    .profile-section-title {
        margin-bottom: 1rem !important;
        font-size: .95rem;
    }

    .profile-card-banner {
        height: 92px;
    }

    .profile-card-brand {
        width: 118px;
    }

    .profile-card-content {
        margin-top: -38px;
        padding-right: 1.15rem !important;
        padding-bottom: 1.25rem;
        padding-left: 1.15rem !important;
    }

    .profile-avatar-frame {
        width: 104px;
        height: 104px;
        font-size: 3rem;
    }

    .profile-summary {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 1rem !important;
    }

    .profile-card-brand {
        right: 18px;
        top: 25px;
    }

    .profile-avatar-action {
        font-size: .7rem;
    }

    .profile-identity {
        padding-bottom: 0 !important;
    }

    .profile-name {
        margin-bottom: .7rem !important;
        font-size: 1rem;
        line-height: 1.3;
    }

    .profile-metrics {
        gap: .8rem !important;
        font-size: .75rem;
    }

    .profile-progress-section,
    .profile-achievements {
        margin-top: 1.8rem;
    }

    .profile-member-since {
        margin-top: 2rem;
    }

    .profile-progress-section > .d-flex:first-child {
        gap: 1rem;
    }

    .profile-achievements > .d-flex {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-achievement {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .account-form-card,
    .account-empty-state {
        padding: 1.2rem !important;
    }

    .account-form-card > .d-flex:first-child {
        align-items: flex-start !important;
    }

    .account-mini-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .account-form-card strong {
        display: block;
        font-size: .85rem;
        line-height: 1.35;
    }

    .account-form .form-control,
    .account-form .form-select {
        min-height: 46px;
        padding: .65rem .75rem;
        font-size: .88rem;
    }

    .account-outline-button {
        min-width: 0;
        padding-inline: 1rem;
    }

    .account-muted-action {
        margin-top: 2rem !important;
        font-size: .8rem;
    }

    .certificate-card {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 1rem !important;
        min-height: 0;
        padding: 1.2rem !important;
    }

    .certificate-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 7;
    }

    .certificate-content,
    .certificate-content .account-outline-button {
        width: 100%;
    }

    .certificate-card h3 {
        margin-block: .7rem 1rem !important;
        font-size: .9rem;
        line-height: 1.35;
    }
}

@media (max-width: 380px) {
    .profile-nav-link {
        padding-inline: .35rem;
        font-size: .73rem;
    }

    .profile-progress-section > .d-flex:last-child {
        gap: .6rem !important;
    }

    .profile-achievements > .d-flex {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hero-carousel {
    width: 100%;
    max-width: none;
    overflow: hidden;
}

.hero-carousel h2,
#course-details h1 {
    font-size: 3rem;
}

.hero-carousel .carousel-inner {
    height: 600px;
    overflow: hidden;
}

.homepage-feedback {
    background: #FFFFFF0F;
    border: 1px solid #FFFFFF1F;
}

.livestreams-swiper {
    overflow: visible;
}

.livestreams-swiper .swiper-slide {
    flex: 0 0 340px;
    width: 340px;
    height: auto;
}

.homepage-livestream {
    color: inherit;
}

.homepage-livestream:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.homepage-livestream-media {
    width: 340px;
    height: 190px;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.homepage-livestream-media img {
    display: block;
    width: 340px;
    height: 190px;
}

.homepage-livestream-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.34) 100%);
    pointer-events: none;
}

.homepage-livestream-status {
    margin: 8px;
    background: rgba(18, 18, 18, 0.82);
    color: #ffffffb3;
    font-size: .58rem;
    letter-spacing: .08em;
    line-height: 1;
    padding: .38rem .45rem;
}

.homepage-livestream-status.is-live {
    background: linear-gradient(180deg, #ff5b4d 0%, #ff2e1f 100%);
    color: #fff;
}

.homepage-livestream-title {
    font-size: .9rem;
    line-height: 1.18;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.homepage-livestream-meta {
    line-height: 1.2;
}

@media (max-width: 767px) {
    .hero-carousel.d-md-none {
        width: calc(100% - 2rem);
        margin-inline: auto;
    }

    .livestreams-swiper {
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel h2 {
        font-size: 1.3rem;
    }
}

.hero-carousel .control {
    width: 50px;
    height: 50px;
    background-color: #99999940;
    transition: all 0.3s ease;
}

.hero-carousel .control:hover {
    background-color: var(--primary-color)
}

.hero-carousel .carousel-item {
    height: 600px;
    position: relative;
}

.hero-carousel .hero-slide-image-link {
    width: 100%;
    height: 600px;
    background-position: right 20%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.hero-carousel .hero-slide-image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.5) 0%,
        rgba(5, 5, 5, 0) 24%,
        rgba(5, 5, 5, 0) 58%,
        rgba(5, 5, 5, 0.52) 80%,
        rgba(5, 5, 5, 0.96) 100%
    );
    pointer-events: none;
}

.hero-carousel .carousel-caption {
    z-index: 3;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-carousel .carousel-caption.container {
        max-width: 1400px;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 7.5%;
    }
}

.hero-carousel .hero-slide-cta {
    pointer-events: auto;
    position: relative;
    z-index: 4;
}

.hero-carousel [data-bs-slide="next"] .control svg {
    margin-left: 3px;
    margin-top: -1px;
}

.hero-carousel [data-bs-slide="prev"] .control svg {
    margin-left: -3px;
    margin-top: -1px;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #666666;
    border: none;
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
}

.keep-watching .card {
    background: #FFFFFF33;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 124px;
}

.keep-watching-swiper {
    overflow: visible;
}

.keep-watching-swiper .swiper-slide {
    height: auto;
}

.keep-watching .card:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

.keep-watching .keep-watching-thumb {
    width: 240px;
    height: 140px;
    flex: 0 0 240px;
}

.keep-watching .keep-watching-thumb img {
    width: 240px;
    height: 140px;
    object-fit: cover;
}

.keep-watching .card-body {
    min-width: 0;
}

.keep-watching .card-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.keep-watching-progress .progress {
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.keep-watching-progress .progress-bar {
    background: var(--primary-color);
    border-radius: inherit;
}

.keep-watching-footer {
    font-size: .95rem;
}

.keep-watching-play {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.keep-watching .card:hover .keep-watching-play {
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    transform: scale(1.06);
}

.keep-watching-percent {
    font-size: .85rem;
}

@media (max-width: 768px) {
    .keep-watching-swiper {
        padding-right: 1rem;
    }

    .keep-watching .card {
        width: 100%;
    }

}

.ribbon {
    position: absolute;
    top: 14px;
    left: -42px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 30px;
    transform: rotate(-28deg);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    width: 180px;
    text-align: center;
    letter-spacing: 1px;
}

.trail-card {
    background-color: transparent;
    position: relative;
}

.libraries-swiper {
    overflow: visible;
}

.libraries-swiper .swiper-slide {
    width: 150px;
}

.digital-library-cover {
    aspect-ratio: 212 / 300;
    background-color: #171717;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.digital-library-cover:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.digital-library-cover:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (min-width: 576px) {
    .libraries-swiper .swiper-slide {
        width: 180px;
    }
}

@media (min-width: 992px) {
    .libraries-swiper .swiper-slide {
        width: 212px;
    }
}

.trails-swiper .swiper-slide {
    flex: 0 0 500px;
    width: 500px;
}

.trail-card .card-img-top,
.trail-card .card-img-top img {
    width: 500px;
    height: 280px;
}

.trail-card .card-img-top img {
    object-fit: cover;
    border-radius: 16px;
    filter: brightness(0.6);
}

.trail-card .overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 23%) 50%, rgba(0, 0, 0, 1) 100%);
    border-radius: 16px;
}

.course .card {
    width: 100%;
    min-width: 0;
    transition: transform .3s ease;
}

.homepage-course-swiper {
    overflow: visible;
    padding: 2px;
    margin: -2px;
}

.homepage-course-swiper .swiper-slide {
    flex: 0 0 var(--course-card-width);
    width: var(--course-card-width);
    height: auto;
}

.course-collection-card {
    color: inherit;
}

.course-collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color .3s ease;
    z-index: 3;
}

.course-collection-card:hover::after {
    border-color: var(--primary-color);
}

.course .card-header img {
    height: 383px;
    max-height: 383px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.course .card-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 28%, rgba(0, 0, 0, 0) 58%);
    pointer-events: none;
}

.homepage-course-swiper .course-collection-card {
    width: var(--course-card-width);
    height: var(--course-card-height);
    aspect-ratio: var(--course-card-aspect-ratio);
}

.homepage-course-swiper .card-header,
.homepage-course-swiper .card-header img {
    height: 100%;
}

@media (max-width: 767px) {
    .homepage-course-swiper {
        padding-right: 2rem;
    }
}

.category-card {
    width: 180px;
    min-width: 180px;
    height: 180px;
    background: #b89f70;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    font-family: Impact, sans-serif;
    letter-spacing: 0.02em;
}

.categories-rail {
    overflow-x: auto;
}

.category-card-glow {
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.category-card-title {
    max-width: 7rem;
    color: #fff;
    font-size: 1.35rem;
    line-height: 0.92;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

@media (max-width: 767px) {
    .category-card {
        width: 164px;
        min-width: 164px;
        height: 164px;
    }

    .category-card-title {
        max-width: 6rem;
        font-size: 1.2rem;
    }
}

.accordion-button {
    box-shadow: unset;
    background-color: #1a1a1a;
    color: #fff;
}

.accordion-button {
    border: unset !important;
    box-shadow: unset !important;
}

.accordion-button[aria-expanded="true"] {
    border-bottom: 1px solid var(--dark-bg-3) !important;
}

.accordion-button.collapsed svg {
    transform: rotate(180deg);
}

.accordion-button::after {
    display: none;
}

/* Custom dark form controls */
.form-control-dark {
    background-color: #1a1a1a;
    color: #fff;
}

.form-control-dark::placeholder {
    color: #666;
}

.form-control-dark:focus {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: none;
}

/* Timeline/Module List Styles */
.lesson-timeline {
    position: relative;
}

.lesson-timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.lesson-timeline-item.is-locked {
    opacity: .58;
}

.lesson-timeline-item.is-locked .lesson-number {
    background-color: #444 !important;
    color: rgba(255, 255, 255, .65);
}

.lesson-locked-label {
    position: absolute;
    inset: 50% auto auto 50%;
    width: max-content;
    max-width: 90%;
    padding: .45rem .7rem;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, .78);
    color: rgba(255, 255, 255, .8);
    font-size: .7rem;
    font-weight: 700;
    text-align: center;
}

.lesson-locked-hint {
    display: block;
    margin-top: .3rem;
    color: var(--primary-color) !important;
}

.lesson-timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: -2rem;
    width: 1px;
    background-color: var(--dark-bg-3);
    z-index: 0;
}

.lesson-number {
    top: 0;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;

    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.lesson-number.active {
    background-color: var(--primary-color) !important;
}

.lesson-thumb {
    width: 240px;
    height: 135px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.download-item {
    background-color: #1a1a1a;
    transition: background-color 0.2s;
}

.download-item:hover {
    background-color: #252525;
}

.course-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.explore-page {
    background:
        radial-gradient(circle at top right, rgba(187, 164, 120, 0.18), transparent 25%),
        radial-gradient(circle at left center, rgba(255, 255, 255, 0.08), transparent 22%),
        var(--dark-bg);
}

.explore-kicker,
.explore-page h1,
.explore-kicker {
    display: block;
}

.explore-page h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.explore-feedback {
    background: linear-gradient(180deg, rgba(34, 34, 34, 0.95), rgba(17, 17, 17, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.explore-course-card {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform .3s ease;
}

.explore-page .card-header img {
    height: 383px;
    max-height: 383px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.explore-page .card-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 28%, rgba(0, 0, 0, 0) 58%);
    pointer-events: none;
}

.explore-kicker {
    color: #ffffff80;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .explore-page .card-header img {
        height: 460px;
        max-height: 460px;
    }
}

@media (max-width: 767px) {
    .explore-page .card-header img {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --course-card-width: min(42vw, 150px);
        --course-card-height: auto;
        --course-card-aspect-ratio: 5 / 7;
    }

    header.py-2 {
        padding-block: .25rem !important;
    }

    .navbar-brand img {
        width: min(50vw, 172px);
    }

    .hero-carousel .carousel-inner {
        border-radius: 1rem;
    }

    .hero-carousel .carousel-caption > div {
        gap: .75rem !important;
        padding-bottom: 1rem !important;
    }

    .hero-carousel .custom-badge {
        padding: .45rem 1.25rem !important;
        font-size: .7rem !important;
    }

    .hero-carousel h2 {
        max-width: 18rem;
        margin-bottom: 0;
        font-size: 1.15rem;
        line-height: 1.08;
    }

    .hero-carousel .hero-slide-cta {
        gap: .65rem !important;
        font-size: .82rem;
    }

    .hero-carousel .hero-slide-cta span {
        margin-left: .85rem !important;
    }

    .hero-carousel .hero-slide-cta svg {
        width: 32px;
        height: 32px;
    }

    .hero-carousel .carousel-indicators {
        margin-block: .75rem 0 !important;
    }

    .hero-carousel .carousel-indicators button,
    .hero-carousel .carousel-indicators button.active {
        width: 7px;
        height: 7px;
        margin-inline: 3px;
    }

    .keep-watching,
    .course,
    .homepage-livestreams,
    .trails,
    .categories,
    .digital-library {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .keep-watching .row.mt-4,
    .course .row.mt-4,
    .homepage-livestreams .row.mt-4,
    .trails .row.mt-4,
    .categories .row.mt-4,
    .digital-library .row.mt-4 {
        margin-top: .85rem !important;
    }

    .homepage-section-heading h2,
    .keep-watching h2 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .homepage-section-heading svg {
        width: 11px;
        height: auto;
    }

    .keep-watching .keep-watching-thumb,
    .keep-watching .keep-watching-thumb img {
        width: min(34.23vw, 133.5px);
        height: auto;
        aspect-ratio: 267 / 160;
    }

    .keep-watching .keep-watching-thumb {
        flex-basis: min(34.23vw, 133.5px);
    }

    .keep-watching .card {
        min-height: 0;
        border-radius: .8rem !important;
    }

    .keep-watching .card-title {
        font-size: .82rem !important;
        line-height: 1.1;
    }

    .keep-watching .card-body .small {
        font-size: .68rem;
    }

    .keep-watching .card-body {
        gap: .25rem;
    }

    .keep-watching-progress {
        gap: .45rem !important;
    }

    .keep-watching-footer {
        font-size: .72rem;
    }

    .keep-watching-play {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .keep-watching-play svg {
        width: 6px;
        height: 7px;
    }

    .keep-watching-percent {
        font-size: .68rem;
    }

    .homepage-course-swiper .swiper-slide,
    .homepage-course-swiper .course-collection-card {
        width: var(--course-card-width);
    }

    .homepage-course-swiper .swiper-slide {
        flex-basis: var(--course-card-width);
    }

    .homepage-course-swiper .course-collection-card {
        height: var(--course-card-height);
        aspect-ratio: var(--course-card-aspect-ratio);
    }

    .homepage-course-swiper .card-header img {
        max-height: none;
    }

    .homepage-course-swiper .card-body {
        padding: .75rem !important;
    }

    .homepage-course-swiper .card-title {
        margin-bottom: .35rem;
        font-size: .78rem !important;
        line-height: 1.05;
    }

    .homepage-course-swiper .card-body .fs-6 {
        font-size: .62rem !important;
        line-height: 1.25;
    }

    .trails-swiper .swiper-slide,
    .trail-card .card-img-top,
    .trail-card .card-img-top img {
        width: min(64.1vw, 250px);
    }

    .trails-swiper .swiper-slide {
        flex-basis: min(64.1vw, 250px);
    }

    .trail-card .card-img-top,
    .trail-card .card-img-top img {
        height: auto;
        aspect-ratio: 25 / 14;
    }

    .trail-card .card-body {
        padding: 1rem !important;
    }

    .trail-card .card-title {
        font-size: 1rem !important;
    }

    .trail-card .card-text,
    .trail-card .fs-6 {
        font-size: .72rem !important;
    }

    .trail-card .btn {
        padding-block: .65rem !important;
        font-size: .88rem !important;
    }

    .livestreams-swiper .swiper-slide,
    .homepage-livestream-media,
    .homepage-livestream-media img {
        width: min(50vw, 195px);
    }

    .livestreams-swiper .swiper-slide {
        flex-basis: min(50vw, 195px);
    }

    .homepage-livestream-media,
    .homepage-livestream-media img {
        height: auto;
        aspect-ratio: 39 / 22;
    }

    .homepage-livestream-title {
        font-size: .72rem;
    }

    .category-card {
        width: min(30.77vw, 120px);
        min-width: min(30.77vw, 120px);
        height: auto;
        aspect-ratio: 1;
    }

    .category-card-title {
        font-size: .82rem;
    }

    .libraries-swiper .swiper-slide,
    .digital-library-cover {
        width: min(23.08vw, 90px);
    }

    .libraries-swiper .swiper-slide {
        flex: 0 0 min(23.08vw, 90px);
    }

    .digital-library-cover {
        height: auto;
        aspect-ratio: 18 / 25;
    }
}

.navbar-brand img {
    max-width: 200px;
    transform: translateX(-3%);
}

.mobile-menu-inner,
.mobile-profile-card,
.mobile-main-nav,
.mobile-profile-link,
.mobile-profile-user,
.mobile-account-link {
    min-width: 0;
}

.mobile-profile-link {
    color: var(--primary-color);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-profile-link:hover,
.mobile-profile-link:focus-visible {
    color: #fff;
}

.mobile-profile-label,
.mobile-profile-user {
    color: rgba(255, 255, 255, .72);
    font-size: .76rem;
}

.mobile-profile-divider {
    height: 1px;
    margin: .8rem 0;
    background: rgba(187, 164, 120, .55);
}

.mobile-profile-user {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.mobile-user-avatar,
.mobile-profile-user .user-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--primary-color);
    color: #161616;
    font-size: .65rem;
    font-weight: 700;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-name {
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-profile-user .user-avatar {
    font-size: .65rem;
}

.mobile-profile-arrow {
    color: rgba(255, 255, 255, .75);
    font-size: 1.4rem;
    line-height: 1;
}

.mobile-account-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    color: rgba(255, 255, 255, .78);
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: color .2s ease;
}

.mobile-account-link:hover,
.mobile-account-link:focus-visible {
    color: #fff;
}

.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    header {
        position: relative;
        z-index: 20;
    }

    header .navbar {
        background: #000;
    }

    header .container-fluid {
        position: relative;
    }

    .navbar-brand img {
        width: min(47vw, 174px);
    }

    .navbar-toggler {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 0 !important;
        border-radius: 9px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(187, 164, 120, .28);
    }

    .navbar-toggler-icon {
        width: 22px;
        height: 16px;
        background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
        background-position: center top, center center, center bottom;
        background-repeat: no-repeat;
        background-size: 100% 2px;
        transition: transform .2s ease, background-size .2s ease;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        width: 24px;
        height: 24px;
        background-image: linear-gradient(45deg, transparent 45%, #fff 46%, #fff 54%, transparent 55%), linear-gradient(-45deg, transparent 45%, #fff 46%, #fff 54%, transparent 55%);
        background-position: center;
        background-size: 100% 100%;
    }

    #headerMenu {
        margin-inline: -.75rem;
        padding: 1.25rem .9rem 1.5rem;
        min-height: calc(100vh - 58px);
        min-height: calc(100dvh - 58px);
        height: calc(100vh - 58px);
        height: calc(100dvh - 58px);
        overflow: hidden;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, .13);
        background: #000;
    }

    .app-mode #headerMenu {
        padding-bottom: calc(1.5rem + 84px);
    }

    .mobile-menu-inner {
        min-height: calc(100vh - 58px - 2.75rem);
        min-height: calc(100dvh - 58px - 2.75rem);
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .mobile-profile-card {
        padding: .95rem 1rem;
        margin-bottom: 1.2rem;
        border-radius: 7px;
        background: #222326;
    }

    .mobile-account-link {
        padding: .25rem 0;
    }

    .mobile-account-link span {
        color: rgba(255, 255, 255, .75);
        font-size: 1.15rem;
    }

    .mobile-main-nav {
        position: relative;
        gap: 0;
        margin: 0;
        flex: 1 1 auto;
        flex-direction: column;
        padding-bottom: 5.5rem;
        overflow: hidden;
    }

    .mobile-main-nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, .09);
    }

    .mobile-main-nav-item .nav-link {
        padding: .78rem 0;
        color: rgba(255, 255, 255, .72);
        font-size: 1rem;
        font-weight: 650;
        letter-spacing: -.015em;
    }

    .mobile-main-nav-item .nav-link:hover,
    .mobile-main-nav-item .nav-link:focus-visible {
        color: var(--primary-color);
    }

    .mobile-logout-item,
    .mobile-login-item {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        margin-top: 0;
        padding-top: 1.35rem;
    }

    .app-mode .mobile-logout-item,
    .app-mode .mobile-login-item {
        bottom: 84px;
    }

    .mobile-logout-item form,
    .mobile-logout-button,
    .mobile-login-item a {
        width: 100%;
    }

    .mobile-logout-button {
        padding: .55rem 1.25rem;
        border-radius: 8px;
        font-weight: 700;
        text-align: center;
    }
}

/* Minha Lista */
.my-list-page {
	min-height: calc(100vh - 72px);
	background: #000;
}
.my-list-title {
	font-size: 1.35rem;
	line-height: 1.2;
	letter-spacing: -.025em;
}
.my-list-filters { max-width: 12rem; }
.my-list-filter-link {
	color: rgba(255, 255, 255, .72);
	padding: .4rem 0;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}
.my-list-filter-link:hover,
.my-list-filter-link.is-active {
	color: var(--primary-color);
	border-color: rgba(187, 164, 120, .55);
}
.my-list-grid {
	display: grid;
	grid-template-columns: repeat(7, 200px);
	gap: 20px;
	width: min(100%, 1520px);
}
.my-list-card {
	position: relative;
	min-width: 0;
	aspect-ratio: 5 / 7;
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(160deg, #cab27e 0%, #a58f60 47%, #6c5d3f 100%);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
	isolation: isolate;
}
.my-list-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .08) 55%, rgba(0, 0, 0, .26) 100%),
		radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .14), transparent 33%);
	pointer-events: none;
}
.my-list-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 24px 18px 22px;
	color: #fff;
	text-decoration: none;
}
.my-list-card-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.82) brightness(.72);
	transition: transform .35s ease, filter .35s ease;
}
.my-list-card:has(.my-list-card-image)::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .1) 38%, rgba(0, 0, 0, .72));
}
.my-list-card:hover .my-list-card-image { transform: scale(1.035); filter: saturate(.92) brightness(.82); }
.my-list-card-title {
	max-width: 9.5rem;
	margin: 0;
	font-family: Impact, "Arial Narrow", sans-serif;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: .98;
	letter-spacing: .012em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.my-list-card-type {
	font-family: Impact, "Arial Narrow", sans-serif;
	font-size: .82rem;
	letter-spacing: .04em;
	color: rgba(255, 255, 255, .67);
}
.my-list-remove-form {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
}
.my-list-remove {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ff484f;
	color: #fff;
	box-shadow: 0 5px 14px rgba(150, 12, 18, .35);
	transition: transform .2s ease, background-color .2s ease;
}
.my-list-remove:hover, .my-list-remove:focus-visible { transform: scale(1.08); background: #ff2932; }
.my-list-card-link:focus-visible, .my-list-remove:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.my-list-empty, .my-list-feedback {
	max-width: 42rem;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .09);
}
.my-list-empty-icon {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(187, 164, 120, .16);
	color: var(--primary-color);
}
@media (max-width: 1599px) {
	.my-list-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 200px)); }
}

/*
 * iOS Safari zooms the page when a text-entry control's computed font-size is
 * smaller than 16px. Cover touch devices in both portrait and landscape, with
 * the width check kept as a fallback for small viewports.
 */
@media (max-width: 767px), (any-pointer: coarse) {
	input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]):not([type="color"]):not([type="image"]),
	textarea,
	select {
		font-size: 16px !important;
	}
}

@media (max-width: 767px) {
	.app-home .mobile-hero-swiper {
		width: 100%;
		/* Keep the banner crop stable as the mobile browser toolbar moves. */
		height: clamp(370px, calc(100vh - 350px), 520px);
		height: clamp(370px, calc(100svh - 350px), 520px);
		position: relative;
	}

	.app-home .mobile-hero-swiper .swiper-wrapper {
		height: calc(100% - 20px);
		align-items: center;
	}

	.app-home .mobile-hero-swiper .swiper-slide {
		width: calc(100% - 4.5rem);
		height: 100%;
		opacity: .44;
		transform: scale(.95);
		transition: opacity .4s ease, transform .4s ease;
	}

	.app-home .mobile-hero-swiper .swiper-slide:only-child {
		width: calc(100% - 2rem);
	}

	.app-home .mobile-hero-swiper .swiper-slide-active {
		opacity: 1;
		transform: scale(1);
	}

	.app-home .mobile-hero-card,
	.app-home .mobile-hero-card .hero-slide-image-link {
		height: 100%;
	}

	.app-home .mobile-hero-card {
		background: #080808;
		border-radius: 1rem;
	}

	.app-home .mobile-hero-swiper .swiper-pagination {
		bottom: 0;
		line-height: 1;
	}

	.app-home .mobile-hero-swiper .swiper-pagination-bullet {
		width: 7px;
		height: 7px;
		margin-inline: 3px;
		background: #666;
		opacity: 1;
	}

	.app-home .mobile-hero-swiper .swiper-pagination-bullet-active {
		background: var(--primary-color);
	}

	.app-home .keep-watching {
		margin-top: 1rem !important;
	}

	.app-home .keep-watching .row.mt-4 {
		margin-top: .75rem !important;
	}

	.hero-carousel .hero-slide-image-link {
		background-position: center 20%;
	}

	.my-list-page { min-height: calc(100vh - 58px); }
	.my-list-title { font-size: 1.05rem; }
	.my-list-filters { max-width: none; }
	.my-list-filter-nav {
		flex-direction: row !important;
		overflow-x: auto;
		padding-bottom: .5rem;
		scrollbar-width: thin;
	}
	.my-list-filter-link { flex: 0 0 auto; white-space: nowrap; padding-inline: .25rem; }
	.my-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.my-list-card-link { padding: 18px 14px 16px; }
	.my-list-card-title { max-width: calc(100% - 18px); font-size: clamp(.9rem, 4.6vw, 1.12rem); }
	.my-list-card-type { font-size: .68rem; }
	.my-list-remove-form { top: 8px; right: 8px; }
	.my-list-remove { width: 26px; height: 26px; }
}

/* Shared app tabs: Explore, My List and My Progress. */
.app-mode .explore-filters,
.app-mode .my-list-filters {
	width: 100%;
	max-width: none;
}

.app-mode .explore-filter-nav,
.app-mode .my-list-filter-nav,
.app-mode .my-progress-tabs {
	display: flex;
	flex-direction: row !important;
	align-items: center;
	justify-content: safe center;
	width: 100%;
	gap: 1.5rem !important;
	margin-inline: auto;
	padding: 0 .25rem .65rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.app-mode .explore-filter-nav::-webkit-scrollbar,
.app-mode .my-list-filter-nav::-webkit-scrollbar,
.app-mode .my-progress-tabs::-webkit-scrollbar {
	display: none;
}

.app-mode .explore-filter-link,
.app-mode .my-list-filter-link,
.app-mode .my-progress-tab {
	position: relative;
	flex: 0 0 auto;
	padding: .35rem 0 .6rem !important;
	border: 0;
	color: rgba(255, 255, 255, .72);
	font-size: .8rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: color .2s ease;
}

.app-mode .explore-filter-link::after,
.app-mode .my-list-filter-link::after,
.app-mode .my-progress-tab::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--primary-color);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}

.app-mode .explore-filter-link:hover,
.app-mode .explore-filter-link.is-active,
.app-mode .my-list-filter-link:hover,
.app-mode .my-list-filter-link.is-active,
.app-mode .my-progress-tab:hover,
.app-mode .my-progress-tab.is-active {
	color: var(--primary-color);
}

.app-mode .explore-filter-link:hover::after,
.app-mode .explore-filter-link.is-active::after,
.app-mode .my-list-filter-link:hover::after,
.app-mode .my-list-filter-link.is-active::after,
.app-mode .my-progress-tab:hover::after,
.app-mode .my-progress-tab.is-active::after {
	transform: scaleX(1);
}
