:root {
    --brand-primary: #1e40af;
    --brand-dark: #0f172a;
    --brand-accent: #f59e0b;
    --brand-light: #eff6ff;
    --nav-gradient-start: #1e1b4b;
    --nav-gradient-mid: #6d28d9;
    --nav-gradient-end: #0284c7;
    --nav-gradient-accent: #f59e0b;
    --site-nav-height: 86px;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #334155;
    background: #f8fafc;
    overflow-x: hidden;
    padding-top: var(--site-nav-height);
}

html {
    overflow-x: hidden;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: linear-gradient(
        115deg,
        #eeeef6 0%,
        #f9efef 28%,
        #08a5e3 52%,
        #2563eb 78%,
        var(--nav-gradient-end) 100%
    );
    box-shadow: 0 4px 24px rgba(30, 27, 75, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.site-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 50%, rgba(245, 158, 11, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 45%);
    pointer-events: none;
}

.site-nav > .container,
.site-nav > .container-fluid {
    position: relative;
    z-index: 1;
}

.site-nav .navbar-brand {
    color: #fff !important;
    letter-spacing: 0.01em;
}

.site-nav .navbar-brand i {
    color: var(--nav-gradient-accent);
}

.site-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
}

.site-nav .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    backdrop-filter: blur(4px);
}

.site-nav .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.site-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.site-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.hero-section {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1e3a8a 50%, var(--brand-primary) 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 540px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.5rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-accent);
}

.hero-stat span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Hero course image slider */
.hero-course-panel {
    position: relative;
    z-index: 1;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-course-panel--empty {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 1.25rem;
}

.hero-image-slider {
    position: relative;
}

.hero-image-slider .mini-slider-viewport {
    border-radius: 1.25rem;
}

.hero-course-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-course-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.hero-slider-controls--overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    pointer-events: none;
    z-index: 2;
}

.hero-slider-controls--overlay .slider-btn {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.hero-image-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 2;
}

/* Course slide — image only */
.course-slide-image-link {
    display: block;
    text-decoration: none;
    border-radius: inherit;
    overflow: hidden;
}

.course-slide-image-link--hero .course-slide-image,
.course-slide-image-link--hero .course-slide-image--placeholder {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 1.25rem;
}

.course-slide-image-link--carousel .course-slide-image,
.course-slide-image-link--carousel .course-slide-image--placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.course-slide-image--placeholder {
    background:
        linear-gradient(135deg, hsl(var(--slide-hue, 220) 70% 45%), hsl(calc(var(--slide-hue, 220) + 40) 65% 35%));
    position: relative;
}

.course-slide-image--placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.course-slide-image-link:hover .course-slide-image,
.course-slide-image-link:hover .course-slide-image--placeholder {
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.course-carousel .course-slide-image-link {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* Mini slider shared */
.mini-slider {
    width: 100%;
    max-width: 100%;
}

.mini-slider-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.mini-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mini-slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
}

.mini-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.mini-slider-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s, background 0.25s;
    cursor: pointer;
}

.mini-slider-dot.is-active {
    width: 1.25rem;
    background: var(--brand-accent);
}

.course-carousel-dots .mini-slider-dot {
    background: #cbd5e1;
}

.course-carousel-dots .mini-slider-dot.is-active {
    background: var(--brand-primary);
}

.slider-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.slider-btn-outline {
    border-color: #e2e8f0;
    background: #fff;
    color: var(--brand-primary);
}

.slider-btn-outline:hover {
    background: var(--brand-light);
    border-color: #bfdbfe;
    color: var(--brand-primary);
}

.course-carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.course-carousel .mini-slider-track {
    gap: 1.25rem;
}

.course-carousel-slide {
    flex: 0 0 auto;
}

.btn-accent {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.section-heading {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.course-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.course-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.course-card-link:hover {
    color: inherit;
}

.course-card--overlay {
    border: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.course-card-cover {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #0f172a;
}

.course-card-cover img,
.course-card-cover-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.course-card-cover-placeholder {
    background:
        linear-gradient(135deg, hsl(var(--slide-hue, 220) 70% 45%), hsl(calc(var(--slide-hue, 220) + 40) 65% 35%));
}

.course-card-link:hover .course-card-cover img,
.course-card-link:hover .course-card-cover-placeholder {
    transform: scale(1.05);
}

.course-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.15rem 1.25rem 1.25rem;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.05) 0%,
        rgba(15, 23, 42, 0.35) 45%,
        rgba(15, 23, 42, 0.88) 100%
    );
    color: #fff;
}

.course-card-category {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
    border-radius: 0.3rem;
    margin-bottom: 0.65rem;
}

.course-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-code {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.course-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #64748b;
}

.course-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.course-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.course-card-media img,
.course-card-media-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.course-card-media-placeholder {
    background:
        linear-gradient(135deg, hsl(var(--slide-hue, 220) 70% 45%), hsl(calc(var(--slide-hue, 220) + 40) 65% 35%));
}

.course-card-link:hover .course-card-media img,
.course-card-link:hover .course-card-media-placeholder {
    transform: scale(1.04);
}

.course-card-header {
    background: linear-gradient(135deg, var(--brand-primary), #3b82f6);
    color: #fff;
    padding: 1.5rem;
    min-height: 120px;
}

.course-card-header .course-code,
.course-card-body .course-code {
    font-size: 0.75rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
}

.course-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.course-price-old {
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: line-through;
}

.course-card-cta {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-accent, #f59e0b);
}

.course-catalog-hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #312e81 45%, var(--brand-primary) 100%);
    color: #fff;
    padding: 2.5rem 0 2.75rem;
}

.course-catalog-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.course-catalog-lead {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.course-curriculum-lock {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.course-curriculum-lock-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary);
    font-size: 1.15rem;
}

.course-lesson-accordion .accordion-button:disabled {
    opacity: 1;
    pointer-events: none;
    background: #fff;
    box-shadow: none;
}

.branch-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.branch-code {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.trainer-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.trainer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.trainer-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trainer-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trainer-avatar--sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
}

.trainer-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trainer-name {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0;
}

.trainer-batch-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: var(--brand-light);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.trainer-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.trainer-specialty-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.trainer-bio {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.apply-section {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.apply-card {
    background: linear-gradient(135deg, #f8fafc 0%, var(--brand-light) 100%);
    border: 1px solid #bfdbfe;
    border-radius: 1.25rem;
    padding: 2.5rem;
}

.empty-state {
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
}

.empty-state i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.site-footer {
    position: relative;
    padding-top: 0;
    overflow: hidden;
    color: #ddd;
    background:
        radial-gradient(circle at 8% 100%, rgba(37, 99, 235, 0.24), transparent 32%),
        radial-gradient(circle at 95% 5%, rgba(124, 58, 237, 0.2), transparent 28%),
        #080f20;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 46px 46px;
}

.site-footer > .container {
    position: relative;
    z-index: 1;
}

.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid var(--brand-accent);
    border-radius: 0 0 1.25rem 1.25rem;
    background: linear-gradient(115deg, rgba(30, 64, 175, 0.88), rgba(109, 40, 217, 0.85));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.footer-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: #fcd34d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-cta h3 {
    margin: 0 0 0.35rem;
    color: #ddd;
    font-weight: 700;
}

.footer-cta p {
    margin: 0;
    color: #ddd;
}

.footer-cta-btn {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    color: #172554;
    background: #fff;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-cta-btn:hover {
    color: #172554;
    background: #fef3c7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
}

.footer-main {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 1.15rem;
}

.footer-brand img {
    width: 165px;
    height: 55px;
    object-fit: contain;
}

.footer-description {
    max-width: 24rem;
    margin-bottom: 1.4rem;
    color: #ddd;
    line-height: 1.75;
}

.footer-heading {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    color: #ddd;
    font-weight: 700;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-accent);
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    line-height: 2.15;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 0.3rem;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-contact-divider {
    width: 100%;
    height: 1px;
    margin: 1.4rem 0 1.1rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

.footer-social-heading {
    margin: 0 0 0.8rem;
    color: #ddd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-social-link {
    --social-color: #334155;
    --social-color-2: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 2.9rem;
    min-height: 2.8rem;
    padding: 0.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.8rem;
    color: #ddd;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    transition: width 0.3s ease, gap 0.3s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-link i {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    place-items: center;
    margin: 0;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(145deg, var(--social-color), var(--social-color-2));
    box-shadow: 0 5px 14px color-mix(in srgb, var(--social-color) 35%, transparent);
    font-size: 1.1rem;
    transition: transform 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-link span {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    gap: 0.55rem;
    width: 7.6rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: color-mix(in srgb, var(--social-color) 70%, white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.footer-social-link:hover span,
.footer-social-link:focus-visible span {
    max-width: 5rem;
    opacity: 1;
}

.footer-social-link:hover i,
.footer-social-link:focus-visible i {
    border-radius: 50%;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--social-color) 48%, transparent);
    transform: rotate(-6deg) scale(1.08);
}

.social-facebook { --social-color: #1877f2; --social-color-2: #0d5dcc; }
.social-instagram { --social-color: #f58529; --social-color-2: #c13584; }
.social-youtube { --social-color: #ff2d2d; --social-color-2: #c90000; }
.social-linkedin { --social-color: #0a66c2; --social-color-2: #084d91; }
.social-x { --social-color: #334155; --social-color-2: #020617; }
.social-whatsapp { --social-color: #25d366; --social-color-2: #128c4a; }
.social-telegram { --social-color: #38bdf8; --social-color-2: #168acd; }
.social-tiktok { --social-color: #fe2c55; --social-color-2: #111827; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: #ddd;
    text-decoration: none;
    line-height: 1.55;
}

.footer-contact-item i {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    border-radius: 0.55rem;
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.07);
}

a.footer-contact-item:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: #ddd;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #ddd;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .footer-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.5rem;
    }

    .footer-main {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3.5rem 0 4rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat strong {
        font-size: 1.35rem;
    }

    .hero-course-panel {
        margin-top: 0.5rem;
    }

    .course-slide-image-link--hero .course-slide-image,
    .course-slide-image-link--hero .course-slide-image--placeholder {
        height: 220px;
    }

    .course-slide-image-link--carousel .course-slide-image,
    .course-slide-image-link--carousel .course-slide-image--placeholder {
        height: 180px;
    }

    .course-card-cover {
        height: 210px;
    }

    .course-detail-hero {
        padding: 2rem 0 2.5rem;
    }

    .course-detail-title {
        font-size: 1.65rem;
    }

    .course-detail-image,
    .course-detail-image--placeholder {
        height: 220px;
    }

    .course-detail-sidebar {
        position: static;
        margin-top: 1rem;
    }

    .course-lesson-accordion .accordion-button {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 0.85rem;
        font-size: 0.9375rem;
    }

    .lesson-meta-badge {
        margin-left: 2.5rem;
        margin-top: 0.25rem;
    }

    .public-material-item {
        flex-wrap: wrap;
    }

    .apply-card {
        padding: 1.5rem;
    }

    .site-nav .navbar-collapse {
        background: rgba(15, 23, 42, 0.96);
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav .navbar-nav {
        gap: 0.25rem;
    }

    .site-nav .nav-link {
        padding: 0.65rem 0.85rem !important;
    }

    .site-nav .btn-outline-light {
        width: 100%;
        margin-top: 0.35rem;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.login-section {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
}

.login-card {
    background: #fff;
}

.login-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.admin-body {
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-shell {
    display: flex;
    min-height: calc(100vh - var(--site-nav-height));
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 1.25rem 0.75rem;
}

.admin-sidebar .nav-link {
    color: #475569;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover {
    background: #f1f5f9;
    color: var(--brand-primary);
}

.admin-sidebar .nav-link.active {
    background: var(--brand-light);
    color: var(--brand-primary);
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-table thead th {
    background: #f8fafc;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.admin-table tbody td {
    border-bottom: 1px solid #f1f5f9;
}

.permission-matrix-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: auto;
}

.permission-matrix {
    margin-bottom: 0;
}

.permission-matrix thead th {
    background: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.permission-matrix tbody td {
    vertical-align: middle;
}

.permission-matrix .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem;
    }

    .admin-sidebar .nav {
        flex-direction: row !important;
        gap: 0.5rem;
    }

    .admin-sidebar .nav-link {
        margin-bottom: 0;
    }
}

.dashboard-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.dashboard-stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dashboard-stat-card .stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0;
}

.dashboard-module-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    color: inherit;
    text-decoration: none;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.dashboard-module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #bfdbfe;
    color: inherit;
}

.dashboard-module-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.dashboard-module-label {
    font-weight: 600;
    color: var(--brand-dark);
    flex: 1;
}

.dashboard-module-arrow {
    color: #94a3b8;
    font-size: 1.35rem;
}

.module-assign-group {
    background: #f8fafc;
}

.open-batch-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.open-batch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.open-batch-header {
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: #fff;
    padding: 1.25rem;
}

.open-batch-header .batch-status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.open-batch-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Public course detail */
.course-detail-hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #312e81 45%, var(--brand-primary) 100%);
    color: #fff;
    padding: 2.5rem 0 3.5rem;
}

.course-detail-back {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.course-detail-back:hover {
    color: #fff;
}

.course-detail-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.course-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.course-detail-code {
    opacity: 0.85;
    font-size: 0.9375rem;
}

.course-detail-lead {
    font-size: 1.0625rem;
    opacity: 0.92;
    max-width: 560px;
    line-height: 1.65;
}

.course-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.course-detail-stats i {
    margin-right: 0.35rem;
    color: var(--brand-accent);
}

.course-detail-price-now {
    font-size: 1.75rem;
    color: var(--brand-accent);
}

.course-detail-price-old {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 0.5rem;
}

.course-detail-scholarship {
    color: #86efac;
    font-size: 0.9375rem;
}

.course-detail-image-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.course-detail-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.course-detail-image--placeholder {
    height: 280px;
    background: linear-gradient(135deg, hsl(var(--slide-hue, 220) 70% 45%), hsl(calc(var(--slide-hue, 220) + 40) 65% 35%));
}

.course-detail-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.course-detail-text {
    color: #475569;
    line-height: 1.75;
}

.course-lesson-accordion .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.course-lesson-accordion .accordion-button {
    font-weight: 600;
    color: var(--brand-dark);
    background: #f8fafc;
    box-shadow: none;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
}

.course-lesson-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-light);
    color: var(--brand-primary);
}

.lesson-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.course-lesson-accordion .accordion-button:not(.collapsed) .lesson-order {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.lesson-title {
    flex: 1;
    text-align: left;
}

.lesson-meta-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.public-material-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.public-material-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.public-material-type {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-primary);
    white-space: nowrap;
}

.public-material-type i {
    margin-right: 0.25rem;
}

.public-material-title {
    flex: 1;
    color: #334155;
}

.public-material-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
}

.course-detail-sidebar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--site-nav-height) + 0.5rem);
}

.course-batch-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.course-batch-card:last-child {
    margin-bottom: 0;
}

.student-body {
    background: #f1f5f9;
    min-height: 100vh;
}

#overview,
#classes,
#exams,
#results,
#routine,
#attendance {
    scroll-margin-top: calc(var(--site-nav-height) + 1rem);
}

.site-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
}

.student-main {
    padding-bottom: 2rem;
}

.student-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.student-panel-header {
    margin-bottom: 1.25rem;
}

.student-class-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 1.25rem;
    height: 100%;
}

.student-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.student-meta-list li + li {
    margin-top: 0.35rem;
}

.student-table {
    margin-bottom: 0;
}

.student-table thead th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    border-bottom-width: 1px;
}

.student-option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    cursor: pointer;
    background: #fff;
}

.student-option-label:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
}

.student-option-label input {
    margin-top: 0.2rem;
}

.exam-result-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    margin-bottom: 0.85rem;
    background: #fff;
}

.exam-result-item--correct {
    border-left: 4px solid #22c55e;
}

.exam-result-item--wrong {
    border-left: 4px solid #ef4444;
}


