:root {
    --bg-main: #0c121d;
    --bg-soft: #121c2b;
    --text-main: #f5f7fb;
    --text-muted: #b9c3d6;
    --bs-light-text-emphasis: #adb5bd;
    --accent: #ff5a2c;
    --accent-2: #ff8a00;
    --trust: #14b8a6;
    --card-bg: rgba(255, 255, 255, 0.06);
    --border-soft: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 10% 10%, #17233a 0%, #0c121d 48%, #070b12 100%);
}

html {
    scroll-padding-top: 110px;
}

main {
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

.container,
.container-fluid {
    position: relative;
}

.text-light-emphasis,
.text-muted-custom {
    color: #adb5bd !important;
    opacity: 1 !important;
}

.course-card .text-light-emphasis,
.course-card .text-muted-custom,
.contact-card .text-light-emphasis,
.contact-card .text-muted-custom,
.feature-card .text-light-emphasis,
.feature-card .text-muted-custom,
.testimonial-card .text-light-emphasis,
.testimonial-card .text-muted-custom,
.result-card .text-light-emphasis,
.result-card .text-muted-custom {
    color: #adb5bd !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

.section-pad {
    padding: 5rem 0;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: rgba(7, 11, 18, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-brand-title {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

.admin-brand-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.admin-nav-link {
    text-decoration: none;
    color: #d8e1f2;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 90, 44, 0.2), rgba(255, 138, 0, 0.16));
    border-color: rgba(255, 154, 89, 0.45);
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-content-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 16, 26, 0.94);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-topbar-title {
    font-weight: 700;
    color: #fff;
}

.admin-main {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.course-manager-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.course-tree-panel {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 8rem);
    overflow: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.course-tree-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.course-tree-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.course-tree-course {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 0.95rem;
    margin-bottom: 0.9rem;
}

.course-tree-course.active {
    border-color: rgba(255, 154, 89, 0.5);
    background: linear-gradient(135deg, rgba(255, 90, 44, 0.16), rgba(20, 184, 166, 0.08));
}

.course-tree-course-title {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.course-tree-course-title a,
.course-tree-subject-title a {
    color: #fff;
    text-decoration: none;
}

.course-tree-course-title a:hover,
.course-tree-subject-title a:hover {
    color: #ffddb9;
}

.course-tree-subjects {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.course-tree-subject {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.course-tree-subject-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.course-tree-subject-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.resource-board {
    display: grid;
    gap: 1rem;
}

.resource-group {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.15rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    position: relative;
}

.resource-group-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-group-title {
    margin-bottom: 0.25rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.resource-card {
    background: rgba(8, 12, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.resource-card.dragging {
    opacity: 0.52;
    transform: scale(0.985);
}

.resource-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(255, 90, 44, 0.18), rgba(20, 184, 166, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.resource-thumb img,
.resource-thumb video,
.resource-thumb object {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.resource-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.resource-thumb-placeholder small {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0;
}

.resource-card-body {
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
}

.resource-card-body h4 {
    margin-bottom: 0;
}

.resource-type-pill,
.resource-order-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-type-pill {
    background: rgba(20, 184, 166, 0.14);
    color: #b9fff8;
    border: 1px solid rgba(20, 184, 166, 0.4);
}

.resource-order-pill {
    background: rgba(255, 138, 0, 0.14);
    color: #ffd9b6;
    border: 1px solid rgba(255, 138, 0, 0.34);
}

.resource-drag-handle {
    cursor: grab;
    user-select: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resource-action-row,
.resource-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.resource-order-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.resource-dropzone {
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.resource-dropzone.is-dragover {
    border-color: rgba(255, 154, 89, 0.85);
    background: rgba(255, 90, 44, 0.16);
    transform: translateY(-1px);
}

.resource-dropzone-info {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.resource-dropzone-preview {
    width: 104px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.resource-upload-preview-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.resource-upload-preview-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
}

.resource-upload-note {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.top-urgency-bar {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff8eb;
    font-weight: 600;
    font-size: 0.92rem;
}

.glass-nav {
    backdrop-filter: blur(8px);
    background: rgba(11, 16, 26, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-line {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.navbar-brand small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.btn-cta,
.btn-cta-outline {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.72rem 1.2rem;
}

.btn-cta {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.btn-cta-outline {
    color: #fff;
    border: 1px solid #ff9a59;
    background: transparent;
}

.btn-cta:hover,
.btn-cta-outline:hover {
    color: #fff;
    opacity: 0.9;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(12, 18, 29, 0.86), rgba(18, 28, 43, 0.6)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 90, 44, 0.35), rgba(255, 90, 44, 0));
    top: -120px;
    right: -100px;
    z-index: -1;
}

.hero-tag {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(20, 184, 166, 0.45);
    color: #b2fff6;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.metric-card,
.feature-card,
.course-card,
.result-card,
.testimonial-card,
.product-card,
.quiz-card,
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 1.2rem;
    height: 100%;
}

.contact-page {
    padding-bottom: 7rem;
}

.contact-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 90, 44, 0.12), rgba(20, 184, 166, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-stack {
    display: grid;
    gap: 1rem;
}

.contact-detail-card,
.contact-map-card,
.contact-form-shell {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-map-head,
.contact-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.contact-map-frame {
    margin-top: 1rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.contact-page {
    padding-bottom: 7rem;
}

.contact-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 90, 44, 0.12), rgba(20, 184, 166, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-info-stack {
    display: grid;
    gap: 1rem;
}

.contact-detail-card,
.contact-map-card,
.contact-form-shell {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 1.35rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-map-head,
.contact-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.contact-map-frame {
    margin-top: 1rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.trust-strip {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: rgba(13, 20, 33, 0.8);
}

.trust-pill {
    border: 1px solid rgba(20, 184, 166, 0.4);
    background: rgba(20, 184, 166, 0.15);
    color: #b7fff7;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.offering-card {
    background: linear-gradient(145deg, rgba(255, 90, 44, 0.12), rgba(255, 138, 0, 0.08));
    border: 1px solid rgba(255, 154, 89, 0.45);
    border-radius: 18px;
    padding: 1.2rem;
    height: 100%;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.metric-label {
    color: var(--text-muted);
    margin-bottom: 0;
}

.teacher-photo,
.avatar-thumb {
    border-radius: 16px;
    object-fit: cover;
}

.badge-soft {
    display: inline-block;
    background: rgba(255, 138, 0, 0.16);
    border: 1px solid rgba(255, 138, 0, 0.5);
    color: #ffd7ac;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
}

.cta-banner {
    background: linear-gradient(135deg, #ff5a2c 0%, #ff8a00 100%);
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid #e0e4ee;
    box-shadow: none;
}

.footer-section {
    background: rgba(7, 11, 18, 0.95);
    position: relative;
    z-index: 1;
}

.badge-link {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #f8fafc;
    padding: 0.35rem 0.7rem;
}

.quick-call-btn {
    position: fixed;
    bottom: 88px;
    right: 20px;
    z-index: 998;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    text-decoration: none;
    color: #fff;
    background: #25d366;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-slider-shell {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: calc((100% - 2rem) / 3);
}

.testimonial-video-preview {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    padding: 0;
    cursor: pointer;
}

.testimonial-video-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.testimonial-video-preview-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(5, 10, 18, 0.75);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.testimonial-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 14, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 1rem;
}

.testimonial-video-modal.is-open {
    display: flex;
}

.testimonial-video-dialog {
    width: min(860px, 96vw);
    background: rgba(13, 19, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 1rem;
    position: relative;
}

.testimonial-video-dialog video {
    width: 100%;
    max-height: 72vh;
    border-radius: 12px;
    background: #000;
}

.testimonial-video-close {
    position: absolute;
    right: 0.8rem;
    top: 0.3rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.results-slider-shell {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.results-slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.results-slide {
    flex: 0 0 calc((100% - 2rem) / 3);
    min-width: calc((100% - 2rem) / 3);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(7, 12, 22, 0.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-nav-prev {
    left: 8px;
}

.slider-nav-next {
    right: 8px;
}

.slider-nav-btn:hover {
    background: rgba(255, 110, 26, 0.9);
    border-color: rgba(255, 110, 26, 0.95);
}

.slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        flex-basis: auto;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-content-wrap {
        width: 100%;
    }

    .testimonial-slide {
        flex: 0 0 calc((100% - 1rem) / 2);
        min-width: calc((100% - 1rem) / 2);
    }

    .results-slide {
        flex: 0 0 calc((100% - 1rem) / 2);
        min-width: calc((100% - 1rem) / 2);
    }

    .hero {
        padding-top: 4.8rem;
    }

    .quick-call-btn {
        bottom: 128px;
    }

    .whatsapp-float {
        bottom: 64px;
    }

    main {
        padding-bottom: 5rem;
    }

    .contact-hero,
    .contact-map-head,
    .contact-form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-map-frame iframe {
        height: 260px;
    }

    .course-manager-layout {
        grid-template-columns: 1fr;
    }

    .course-tree-panel {
        position: static;
        max-height: none;
        z-index: auto;
    }

    .resource-group-head,
    .resource-dropzone {
        flex-direction: column;
        align-items: flex-start;
    }

    .resource-dropzone-preview {
        width: 100%;
        height: 140px;
    }
}

@media (max-width: 767px) {
    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .results-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .slider-nav-btn {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 575px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-order-form {
        align-items: flex-start;
    }
}
