/* ================================================================
   Netflix-Inspired LMS Homepage  —  home-netflix.css
   Brand red: #d0252b  |  Dark base: #141414
   ================================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
    --nf-bg:           #141414;
    --nf-surface:      #1f1f1f;
    --nf-card:         #1e1e1e;
    --nf-card-hover:   #282828;
    --nf-red:          #d0252b;
    --nf-red-hover:    #a81e23;
    --nf-white:        #ffffff;
    --nf-text:         rgba(255,255,255,0.92);
    --nf-text-muted:   rgba(255,255,255,0.65);
    --nf-text-dim:     rgba(255,255,255,0.40);
    --nf-border:       rgba(255,255,255,0.08);
    --nf-ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --nf-t:            0.25s;
}

/* ── BODY + GLOBAL ──────────────────────────────────────────────── */
body {
    background-color: var(--nf-bg) !important;
}

/* ── PAGE WRAPPER ───────────────────────────────────────────────── */
.nf-page {
    background: var(--nf-bg);
    min-height: 100vh;
    padding-bottom: 60px;
    color: var(--nf-text);
}

/* ================================================================
   HERO
   ================================================================ */
.nf-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 520px;
    max-height: 920px;
    overflow: hidden;
}

/* Ambient video underneath */
.nf-hero__video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}
.nf-hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

/* Swiper fills hero */
.nf-hero .swiper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}
.nf-hero .swiper-slide {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Per-slide background image */
.nf-hero__slide-bg {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    transition: transform 9s ease;
    will-change: transform;
}
.nf-hero .swiper-slide-active .nf-hero__slide-bg {
    transform: scale(1.05);
}

/* Cinematic gradient overlays */
.nf-hero__grad-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        77deg,
        rgba(20,20,20,0.92) 0%,
        rgba(20,20,20,0.65) 38%,
        rgba(20,20,20,0.15) 62%,
        transparent 100%
    );
    z-index: 2;
}
.nf-hero__grad-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        var(--nf-bg) 0%,
        rgba(20,20,20,0.70) 35%,
        transparent 100%
    );
    z-index: 2;
}

/* Full-height flex column: greeting pinned top, content pinned bottom */
.nf-hero__layout {
    position: absolute;
    top: 80px;      /* below fixed navbar */
    bottom: 22%;    /* breathing room above the bottom gradient + autoplay bar */
    left: 0; right: 0;
    z-index: 3;
    padding: 0 5%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

/* Greeting sits at the very top of the layout */
.nf-hero__greeting {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.5px;
}

/* Content is always pushed to the bottom of the layout */
.nf-hero__content {
    margin-top: auto;
    padding: 20px 22px 22px;
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Eyebrow badge */
.nf-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(208,37,43,0.22);
    border: 1px solid rgba(208,37,43,0.55);
    color: rgba(255,255,255,0.95);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Blinking dot */
.nf-blink-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--nf-red);
    border-radius: 50%;
    animation: nf-blink 1.6s infinite;
    flex-shrink: 0;
}
@keyframes nf-blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.nf-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24px, 3.6vw, 54px);
    font-weight: 800;
    color: var(--nf-white);
    line-height: 1.12;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65);
    letter-spacing: -0.5px;
}

.nf-hero__desc {
    font-size: clamp(13px, 1.1vw, 15px);
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nf-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Primary CTA — white button (Netflix "▶ Play") */
.nf-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    color: #0d0d0d;
    padding: 13px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.40);
    letter-spacing: 0.2px;
}
.nf-btn-play:hover {
    background: rgba(255,255,255,0.88);
    color: #0d0d0d;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.55);
}
.nf-btn-play:active { transform: translateY(0); }
.nf-btn-play i { font-size: 12px; }

/* Secondary CTA — translucent button (Netflix "ⓘ More Info") */
.nf-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(80,80,82,0.62);
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer;
    text-decoration: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.nf-btn-info:hover {
    background: rgba(80,80,82,0.40);
    border-color: rgba(255,255,255,0.26);
    color: #ffffff;
    transform: translateY(-1px);
}
.nf-btn-info:active { transform: translateY(0); }
.nf-btn-info i { font-size: 13px; }

/* Pagination pills — bottom-right of hero */
.nf-hero__pagination.swiper-pagination {
    bottom: 10% !important;
    right: 5% !important;
    left: auto !important;
    width: auto !important;
    text-align: right;
    z-index: 4;
}
.nf-hero__pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.55);
    opacity: 1;
    width: 8px; height: 8px;
    border-radius: 4px;
    transition: all 0.35s var(--nf-ease);
    margin: 0 3px;
}
.nf-hero__pagination .swiper-pagination-bullet-active {
    background: var(--nf-white);
    width: 22px;
}

/* Plain hero (no slides) */
.nf-hero--plain .nf-hero__content {
    max-width: 640px;
}

/* ================================================================
   CONTENT AREA  (overlaps hero bottom for seamless dark flow)
   ================================================================ */
.nf-content {
    background: var(--nf-bg);
    padding-top: 50px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* ================================================================
   SECTION ROWS
   ================================================================ */
.nf-row {
    padding: 0 0 36px;
}

.nf-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4% 14px;
}

.nf-row__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.3vw, 19px);
    font-weight: 700;
    color: var(--nf-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nf-row__title-accent {
    width: 3px; height: 20px;
    background: var(--nf-red);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Nav arrows — fade in on row hover */
.nf-row__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}
.nf-row:hover .nf-row__nav {
    opacity: 1;
}

.nf-nav-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.45);
    background: rgba(20,20,20,0.75);
    color: var(--nf-white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.nf-nav-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: var(--nf-white);
    transform: scale(1.08);
}
.nf-nav-btn.swiper-button-disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* Row track — clips overflow but allows card hover scale */
.nf-row__track-outer {
    padding: 8px 4% 20px;
    overflow: hidden;
    position: relative;
}

/* Edge vignette for row scrolling illusion */
.nf-row__track-outer::before,
.nf-row__track-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 4%;
    z-index: 10;
    pointer-events: none;
}
.nf-row__track-outer::before {
    left: 0;
    background: linear-gradient(to right, var(--nf-bg) 0%, transparent 100%);
}
.nf-row__track-outer::after {
    right: 0;
    background: linear-gradient(to left, var(--nf-bg) 0%, transparent 100%);
}

/* Swiper — overflow visible so scaled cards show above siblings */
.nf-row__swiper.swiper {
    overflow: visible !important;
}

/* Slide sizing */
.nf-row__swiper .swiper-slide {
    width: 210px;
    height: auto;
    position: relative;
    z-index: 1;
    transition: transform 0.28s var(--nf-ease), z-index 0s 0.28s;
}
.nf-row__swiper .swiper-slide:hover {
    transform: scale(1.13) translateY(-8px);
    z-index: 90;
    transition: transform 0.28s var(--nf-ease), z-index 0s;
}

@media (max-width: 575px)  { .nf-row__swiper .swiper-slide { width: 150px; } }
@media (min-width: 576px)  { .nf-row__swiper .swiper-slide { width: 180px; } }
@media (min-width: 768px)  { .nf-row__swiper .swiper-slide { width: 200px; } }
@media (min-width: 992px)  { .nf-row__swiper .swiper-slide { width: 215px; } }
@media (min-width: 1200px) { .nf-row__swiper .swiper-slide { width: 230px; } }
@media (min-width: 1400px) { .nf-row__swiper .swiper-slide { width: 250px; } }

/* ================================================================
   COURSE CARD
   ================================================================ */
.nf-card {
    background: var(--nf-card);
    border-radius: 5px;
    overflow: visible;          /* allow hover-reveal panel */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55);
    transition: box-shadow 0.28s var(--nf-ease);
}
.nf-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.85);
}

/* ── Thumbnail ─────────────────────────────────── */
.nf-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background: #111;
    flex-shrink: 0;
}
.nf-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.38s var(--nf-ease);
    border-radius: 5px 5px 0 0;
}
.nf-card:hover .nf-card__thumb img {
    transform: scale(1.06);
}

/* ── Play overlay ──────────────────────────────── */
.nf-card__play-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s;
    border-radius: 5px 5px 0 0;
}
.nf-card:hover .nf-card__play-overlay {
    background: rgba(0,0,0,0.22);
}
.nf-card__play-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.93);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.22s, transform 0.22s;
}
.nf-card:hover .nf-card__play-icon {
    opacity: 1;
    transform: scale(1);
}
.nf-card__play-icon i {
    color: #111;
    font-size: 13px;
    margin-left: 2px;
}

/* ── Inline trailer overlay ────────────────────── */
.nf-card__trailer-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 20;
    display: none;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}
.nf-card__trailer-overlay.nf-active {
    display: block;
}
.nf-card__trailer-overlay iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.nf-card__trailer-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 21;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.nf-card__trailer-close:hover {
    background: rgba(208,37,43,0.9);
}

/* ── Progress row (bar + label side by side) ── */
.nf-card__progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.nf-card__progress {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
}
.nf-card__progress-fill {
    height: 100%;
    background: var(--nf-red);
    border-radius: 3px;
    min-width: 0;
    transition: width 0.6s ease;
}

/* ── Completed badge ───────────────────────────── */
.nf-card__badge-done {
    position: absolute;
    top: 7px; right: 7px;
    background: rgba(22,163,74,0.93);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    display: flex; align-items: center; gap: 3px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.nf-card__badge-done i { font-size: 8px; }

/* ── Detail panel (below thumbnail, always visible) ─ */
.nf-card__detail {
    background: var(--nf-card);
    border-radius: 0 0 5px 5px;
    padding: 10px 11px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nf-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--nf-white);
    line-height: 1.42;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.84em;
}

.nf-card__prog-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--nf-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 26px;
    text-align: right;
    line-height: 1;
}

/* ── Action row (fades in on hover) ─────────────── */
.nf-card__actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s var(--nf-ease), transform 0.22s var(--nf-ease);
}
.nf-card:hover .nf-card__actions-row {
    opacity: 1;
    transform: translateY(0);
}

.nf-card__action-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.45);
    background: transparent;
    color: var(--nf-white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: border-color 0.2s, background 0.2s;
    padding: 0; line-height: 1;
}
.nf-card__action-btn:hover {
    border-color: var(--nf-white);
    background: rgba(255,255,255,0.10);
}
.nf-card__action-btn.nf-play-btn {
    background: var(--nf-white);
    border-color: var(--nf-white);
    color: #111;
    width: 30px; height: 30px;
    font-size: 11px;
}
.nf-card__action-btn.nf-play-btn i { margin-left: 2px; }
.nf-card__action-btn.nf-play-btn:hover {
    background: rgba(255,255,255,0.82);
}

/* ================================================================
   EVENTS BANNER
   ================================================================ */
.nf-events {
    padding: 8px 4% 40px;
}
.nf-events .carousel-item img,
.nf-events img {
    border-radius: 8px;
    width: 100%;
    display: block;
    transition: opacity 0.3s;
}
.nf-events a:hover img {
    opacity: 0.85;
}

/* ================================================================
   ISCA+ REWARD MODAL  (unchanged from original)
   ================================================================ */
.reward-modal .modal-content {
    background: linear-gradient(160deg, #FF007F, #6A0336);
    border: none; border-radius: 20px; overflow: hidden;
}
.reward-modal .modal-body { padding: 36px 28px; text-align: center; }
.reward-modal .modal-img  { max-width: 150px; margin: 0 auto 16px; display: block; }
.reward-congrats { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.reward-earned   { font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: 4px; }
.reward-pts      { font-size: 28px; font-weight: 800; color: #FFD700; margin-bottom: 24px; }
.reward-ok {
    background: #fff; color: #FF007F; border: none;
    padding: 12px 0; border-radius: 50px;
    font-weight: 700; font-size: 15px;
    cursor: pointer; width: 100%;
    transition: opacity .2s;
}
.reward-ok:hover { opacity: .88; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .nf-hero            { height: 70vh; min-height: 460px; }
    .nf-hero__layout    { top: 68px; bottom: 20%; }
    .nf-content         { margin-top: 0; }
    .nf-row__nav        { opacity: 1; } /* always show on tablets */
}

@media (max-width: 767px) {
    .nf-hero            { height: 62vh; min-height: 400px; }
    .nf-hero__layout    { top: 60px; bottom: 16%; padding: 0 14px; max-width: 100%; }
    .nf-hero__content   { padding: 14px 16px 16px; border-radius: 10px; }
    .nf-hero__desc      { -webkit-line-clamp: 2; margin-bottom: 16px; }
    .nf-hero__autoplay-bar { bottom: 10px; left: 4%; right: 4%; }
    .nf-btn-play,
    .nf-btn-info        { padding: 10px 20px; font-size: 13px; border-radius: 6px; }
    .nf-row__header     { padding: 0 16px 12px; }
    .nf-row__track-outer{ padding: 8px 16px 16px; }
    .nf-row             { padding-bottom: 24px; }
    .nf-content         { margin-top: 0; }
    .nf-events          { padding: 8px 16px 32px; }
}

@media (max-width: 480px) {
    .nf-hero            { height: 56vh; min-height: 360px; }
    .nf-hero__layout    { bottom: 18%; }
    .nf-hero__content   { padding: 12px 14px 14px; border-radius: 8px; }
    .nf-hero__title     { font-size: 21px; letter-spacing: 0; }
    .nf-btn-play,
    .nf-btn-info        { padding: 9px 16px; font-size: 12px; border-radius: 6px; }
    .nf-hero__actions   { gap: 8px; }
    .nf-hero__greeting  { font-size: 12px; }
    .nf-hero__eyebrow   { font-size: 8px; padding: 4px 10px; }
    .nf-content         { margin-top: 0; }
}

/* ================================================================
   NAVBAR  —  Dark Theme
   ================================================================ */

/* Logo area */
header .navbar-brand img { filter: brightness(1.1); }

/* "Back to admin" bar */
header + .bg-light,
.back-to-admin-bar,
header .bg-light {
    background-color: #0d0d0d !important;
}
.back-to-admin { color: rgba(255,255,255,0.60) !important; }
.back-to-admin:hover { color: rgba(255,255,255,0.90) !important; }

/* Mobile app banner */
.mobile-app-banner {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.mobile-app-banner-content { color: rgba(255,255,255,0.80) !important; }
#mobile-app-banner-close-button { color: rgba(255,255,255,0.60) !important; }

/* Navbar base */
header .navbar { background-color: transparent !important; }

/* Category / Events dropdown panel */
header .navbarHover {
    background-color: #1c1c1c !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.70) !important;
}
header .navbarHover li a {
    color: rgba(255,255,255,0.80) !important;
    background: transparent !important;
}
header .navbarHover li a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
}
header .navbarHover .text-cat { color: rgba(255,255,255,0.80) !important; }
header .navbarHover .has-sub-category i { color: rgba(255,255,255,0.50) !important; }
header .navbarHover .icons i { color: rgba(255,255,255,0.55) !important; }

/* Sub-category flyout */
header .sub-category-menu {
    background-color: #222 !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.60) !important;
}
header .sub-category-menu li a {
    color: rgba(255,255,255,0.75) !important;
}
header .sub-category-menu li a:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
}

/* "More" custom-page dropdown */
header .navbarHover a {
    color: rgba(255,255,255,0.80) !important;
}

/* Login link */
header .right-menubar > a,
header .right-menubar > li > a {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 600;
}
header .right-menubar > a:hover { color: #fff !important; }

/* Profile avatar dropdown */
header .menu_pro_tgl_bg {
    background-color: #1e1e1e !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.70) !important;
}
header .menu_pro_tgl_bg .path-pos h4 { color: #fff !important; }
header .menu_pro_tgl_bg .path-pos p  { color: rgba(255,255,255,0.55) !important; }
header .menu_pro_tgl_bg ul li a {
    color: rgba(255,255,255,0.78) !important;
    padding: 9px 0 !important;
}
header .menu_pro_tgl_bg ul li a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.06) !important;
}
header .menu_pro_tgl_bg ul li a i { color: rgba(255,255,255,0.55) !important; }
header .menu_pro_tgl_bg .path-pos { border-bottom: 1px solid rgba(255,255,255,0.09) !important; }

/* My Course link in right-menubar */
header .right-menubar .dropdown-item {
    color: rgba(255,255,255,0.88) !important;
    background: transparent !important;
}
header .right-menubar .dropdown-item:hover { color: #fff !important; }

/* Search dropdown menu */
header .dropdown-menu {
    background-color: #1c1c1c !important;
    border: 1px solid rgba(255,255,255,0.09) !important;
}

/* Hamburger bar icon */
header .btn-bar { color: rgba(255,255,255,0.88) !important; font-size: 20px; }

/* ================================================================
   MOBILE OFFCANVAS  —  Dark Theme
   ================================================================ */
.mobile-view-offcanves .offcanvas {
    background-color: #181818 !important;
    color: rgba(255,255,255,0.85) !important;
}
.mobile-view-offcanves .offcanvas-header,
.mobile-view-offcanves .offcanvas-header.bg-light {
    background-color: #181818 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.mobile-view-offcanves .btn-close { filter: invert(1) grayscale(1) brightness(1.5); }

/* User profile area inside offcanvas */
.mobile-view-offcanves .offcanves-profile h4 { color: #fff !important; }
.mobile-view-offcanves .offcanves-profile p  { color: rgba(255,255,255,0.55) !important; }

/* Login button in offcanvas */
.mobile-view-offcanves .logIn-btn,
.mobile-view-offcanves .signUp-btn {
    background: var(--nf-red) !important;
    color: #fff !important;
    border-color: var(--nf-red) !important;
}

/* Nav items */
.mobile-view-offcanves .bg-light { background-color: #181818 !important; }
.mobile-view-offcanves .btn-toggle,
.mobile-view-offcanves .btn-toggle-list,
.mobile-view-offcanves .text-dark {
    color: rgba(255,255,255,0.80) !important;
    background-color: transparent !important;
}
.mobile-view-offcanves .btn-toggle:hover,
.mobile-view-offcanves .btn-toggle-list:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.06) !important;
}

/* Sub-category collapse panels */
.mobile-view-offcanves .collapse .bg-white { background-color: #222 !important; }
.mobile-view-offcanves .btn-toggle-nav.bg-white { background-color: #222 !important; }
.mobile-view-offcanves .btn-toggle-nav li a { color: rgba(255,255,255,0.70) !important; }
.mobile-view-offcanves .btn-toggle-nav li a:hover { color: #fff !important; }

/* Event links in offcanvas */
.mobile-view-offcanves .offcanvas-body a[style*="color: #000"] {
    color: rgba(255,255,255,0.75) !important;
}

/* ================================================================
   FOOTER  —  Dark Theme
   ================================================================ */
.footer.border-top,
section.footer {
    background-color: #0d0d0d !important;
    border-color: rgba(255,255,255,0.08) !important;
    padding-top: 28px !important;
    padding-bottom: 12px !important;
}

/* Description text */
.footer p {
    color: rgba(255,255,255,0.50) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
}

/* Section headings */
.footer h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.90) !important;
    margin-bottom: 10px !important;
}

/* Link lists */
.footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.footer ul li { margin-bottom: 5px !important; }
.footer ul li a {
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    transition: color 0.18s !important;
}
.footer ul li a:hover { color: #fff !important; }

/* Social media icons */
.footer ul li a .fa-brands {
    color: rgba(255,255,255,0.45) !important;
    margin-right: 2px;
    font-size: 13px;
    transition: color 0.18s;
}
.footer ul li a:hover .fa-brands { color: var(--nf-red) !important; }

/* Bottom border separator line */
.footer .row {
    border-bottom: none !important;
}

/* ================================================================
   NAVBAR — Transparent → Dark on scroll (home page only)
   ================================================================ */
header {
    position: relative;
    z-index: 1050;
    height: 0;            /* remove from doc flow so hero fills viewport */
}
.menubar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.45s ease,
                border-color   0.45s ease,
                box-shadow     0.45s ease !important;
}
.menubar.nf-scrolled {
    background-color: rgba(20,20,20,0.97) !important;
    border-bottom-color: rgba(255,255,255,0.07) !important;
    box-shadow: 0 2px 24px rgba(0,0,0,0.55) !important;
}

/* ================================================================
   HERO — Top gradient + slide animations + autoplay bar
   ================================================================ */

/* Top vignette keeps nav links legible over any hero image */
.nf-hero__grad-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(
        to bottom,
        rgba(20,20,20,0.78) 0%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Slide content: start hidden, animate in when slide becomes active */
.nf-hero .swiper-slide .nf-hero__layout {
    opacity: 0;
    transform: translateY(28px);
    transition: none;
}
.nf-hero .swiper-slide-active .nf-hero__layout {
    animation: nf-hero-enter 0.85s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}
@keyframes nf-hero-enter {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Hero inline trailer player ─────────────────────────────────── */
.nf-hero__trailer-player {
    position: absolute;
    inset: 0;
    z-index: 1060;
    background: #000;
    display: none;
    flex-direction: column;
}
.nf-hero__trailer-player.nf-active {
    display: flex;
}
/* Header bar sits ABOVE the iframe — no overlap, no pointer capture issue */
.nf-hero__trailer-bar {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    background: rgba(0,0,0,0.88);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nf-hero__trailer-player iframe {
    flex: 1;
    width: 100%;
    border: 0;
    display: block;
    min-height: 0;
}
.nf-hero__trailer-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.85);
    padding: 5px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s, color 0.2s;
}
.nf-hero__trailer-close:hover {
    background: rgba(208,37,43,0.85);
    border-color: rgba(208,37,43,0.6);
    color: #fff;
}

/* Autoplay progress strip — floating pill, clearly separated from content */
.nf-hero__autoplay-bar {
    position: absolute;
    bottom: 14px; left: 5%; right: 5%;
    height: 4px;
    background: rgba(255,255,255,0.14);
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.30);
}
.nf-hero__autoplay-fill {
    height: 100%;
    width: 0%;
    background: var(--nf-red);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(208,37,43,0.55);
}

/* ================================================================
   COURSE ROWS — Scroll-triggered entrance animation
   ================================================================ */
.nf-row {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.nf-row.nf-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delay for successive rows */
.nf-row:nth-child(1) { transition-delay: 0.05s; }
.nf-row:nth-child(2) { transition-delay: 0.12s; }
.nf-row:nth-child(3) { transition-delay: 0.18s; }
.nf-row:nth-child(4) { transition-delay: 0.24s; }
.nf-row:nth-child(5) { transition-delay: 0.30s; }

/* ── "Explore All" link (fades in on row hover) ─────────────── */
.nf-row__explore {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.55);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.22s, transform 0.22s, color 0.18s;
    white-space: nowrap;
    margin-left: 10px;
}
.nf-row:hover .nf-row__explore {
    opacity: 1;
    transform: translateX(0);
}
.nf-row__explore:hover { color: #fff !important; }
.nf-row__explore i { font-size: 10px; transition: transform 0.18s; }
.nf-row__explore:hover i { transform: translateX(3px); }

/* ── Row title + explore link wrapper ─── */
.nf-row__title-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ================================================================
   CARD — Shimmer skeleton + re-enabled action buttons
   ================================================================ */

/* Shimmer while image loads */
.nf-card__thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(
        90deg,
        #1c1c1c 25%,
        #272727 50%,
        #1c1c1c 75%
    );
    background-size: 600px 100%;
    animation: nf-shimmer 1.5s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.35s;
    pointer-events: none;
}
.nf-card__thumb.nf-img-loaded::before {
    opacity: 0;
}
@keyframes nf-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

/* Re-enable action buttons — already in HTML, just ensure visibility */
.nf-card__actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.22s cubic-bezier(0.22,1,0.36,1),
                transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
.nf-card:hover .nf-card__actions-row {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   BACK-TO-TOP BUTTON
   ================================================================ */
.nf-back-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(208,37,43,0.88);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transform: translateY(14px) scale(0.85);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(208,37,43,0.40);
    pointer-events: none;
}
.nf-back-top.nf-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.nf-back-top:hover {
    background: #d0252b;
    box-shadow: 0 6px 28px rgba(208,37,43,0.65);
    transform: translateY(-2px) scale(1.05);
}
@media (max-width: 767px) {
    .nf-back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ================================================================
   EVENTS BANNER — polished section header
   ================================================================ */
.nf-events-header {
    padding: 0 4% 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nf-events-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(14px, 1.3vw, 19px);
    font-weight: 700;
    color: var(--nf-white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nf-events-wrap {
    padding: 0 4% 48px;
}
.nf-events-wrap a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
/* .nf-events-wrap a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.25s;
    border-radius: 10px;
} */
.nf-events-wrap a:hover::after { background: rgba(0,0,0,0.18); }
.nf-events-wrap img {
    width: 100%; display: block;
    border-radius: 10px;
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.nf-events-wrap a:hover img { transform: scale(1.025); }

/* ================================================================
   FOOTER — bottom padding spacer for fixed back-top button
   ================================================================ */
section.footer { padding-bottom: 24px !important; }
