/* ==========================================================================
   SELICA DEDICATED CURRICULUM DETAIL PAGE & DOCUMENT READER MODAL
   Design System: Deep Forest Dark, Botanical Glassmorphism, Gold Accents
   ========================================================================== */

.modul-detail-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 15%, #173715 0%, #0c200e 45%, #061107 100%);
    color: #f0ece4;
    padding: clamp(90px, 12vh, 130px) 0 90px;
    overflow: hidden;
}

/* Background Animated Canvas / Lottie Glow */
.modul-detail-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 225, 86, 0.12) 0%, rgba(82, 146, 56, 0.08) 50%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

/* ═══════════ TOP BREADCRUMB & BACK ACTION (CENTERED SYMMETRICALLY) ═══════════ */
.modul-detail-top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    position: relative;
    z-index: 4;
    text-align: center;
    width: 100%;
}

.modul-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(18, 42, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(254, 225, 86, 0.35);
    color: #E1E0CC;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

.modul-back-btn i {
    transition: transform 0.3s ease;
    color: var(--idm-secondary-yellow, #fee156);
    font-size: 0.9rem;
}

.modul-back-btn:hover {
    background: var(--idm-secondary-yellow, #fee156);
    color: #081406;
    border-color: var(--idm-secondary-yellow, #fee156);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(254, 225, 86, 0.45);
}

.modul-back-btn:hover i {
    transform: translateX(-4px);
    color: #081406;
}

.modul-breadcrumb-trail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    flex-wrap: wrap;
}

.modul-breadcrumb-trail a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.modul-breadcrumb-trail a:hover {
    color: var(--idm-secondary-yellow, #fee156);
}

.modul-breadcrumb-trail .current {
    color: var(--idm-secondary-yellow, #fee156);
    font-weight: 800;
}

/* ═══════════ HERO BANNER CARD ═══════════ */
.detail-hero-card {
    position: relative;
    z-index: 4;
    background: linear-gradient(165deg, rgba(16, 38, 15, 0.92) 0%, rgba(10, 24, 10, 0.98) 100%);
    border: 1px solid rgba(254, 225, 86, 0.35);
    border-radius: clamp(24px, 3.5vw, 36px);
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(254, 225, 86, 0.12);
    margin-bottom: clamp(32px, 5vw, 48px);
    overflow: hidden;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.detail-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 225, 86, 0.14);
    border: 1px solid rgba(254, 225, 86, 0.4);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--idm-secondary-yellow, #fee156);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.detail-hero-title {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.detail-hero-tagline {
    font-size: clamp(0.92rem, 1.3vw, 1.12rem);
    font-weight: 700;
    color: var(--idm-secondary-yellow, #fee156);
    margin-bottom: 14px;
    line-height: 1.4;
}

.detail-hero-desc {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    color: rgba(240, 236, 228, 0.85);
    line-height: 1.65;
    margin-bottom: 22px;
}

.detail-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.detail-meta-item i {
    color: var(--idm-secondary-yellow, #fee156);
}

/* Image Visual Box */
.detail-hero-media-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(254, 225, 86, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    background: #061107;
}

.detail-hero-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.detail-media-stat-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(8, 20, 8, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-stat-val {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--idm-secondary-yellow, #fee156);
    font-family: 'Space Mono', monospace;
}

.detail-stat-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

/* ═══════════ MAIN CONTENT & FULL CURRICULUM SYLLABUS ═══════════ */
.detail-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(24px, 3.5vw, 40px);
    align-items: flex-start;
    position: relative;
    z-index: 4;
}

.syllabus-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.syllabus-main-title {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.syllabus-main-title i {
    color: var(--idm-secondary-yellow, #fee156);
}

.syllabus-count-badge {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 12px;
    background: rgba(254, 225, 86, 0.15);
    border: 1px solid rgba(254, 225, 86, 0.35);
    border-radius: 999px;
    color: var(--idm-secondary-yellow, #fee156);
}

/* Syllabus Cards Stack */
.syllabus-modules-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.syllabus-card-item {
    background: rgba(14, 34, 14, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.syllabus-card-item:hover {
    border-color: rgba(254, 225, 86, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.syllabus-card-item.is-open {
    background: rgba(18, 42, 17, 0.94);
    border-color: rgba(254, 225, 86, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(254, 225, 86, 0.12);
}

.syllabus-card-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.syllabus-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.syllabus-num-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(254, 225, 86, 0.15);
    border: 1px solid rgba(254, 225, 86, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--idm-secondary-yellow, #fee156);
    flex-shrink: 0;
}

.syllabus-card-item.is-open .syllabus-num-badge {
    background: var(--idm-secondary-yellow, #fee156);
    color: #081406;
}

.syllabus-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.syllabus-tag-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.syllabus-tag-chip {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--idm-secondary-yellow, #fee156);
    background: rgba(254, 225, 86, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
}

.syllabus-level-chip {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.syllabus-duration-chip {
    font-size: 0.65rem;
    font-weight: 700;
    color: #8aff78;
    background: rgba(82, 224, 56, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.syllabus-doc-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.syllabus-item-title {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.syllabus-toggle-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
    flex-shrink: 0;
}

.syllabus-card-item.is-open .syllabus-toggle-arrow {
    transform: rotate(180deg);
    background: var(--idm-secondary-yellow, #fee156);
    color: #081406;
}

/* Card Drawer Content */
.syllabus-card-body {
    display: none;
    padding: 0 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.syllabus-card-item.is-open .syllabus-card-body {
    display: block;
    padding-top: 18px;
    animation: drawerFadeIn 0.3s ease;
}

@keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.syllabus-body-desc {
    font-size: 0.88rem;
    color: rgba(240, 236, 228, 0.88);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Rundown Timeline Table */
.syllabus-rundown-box {
    background: rgba(6, 16, 6, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.syllabus-subhead {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--idm-secondary-yellow, #fee156);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.syllabus-rundown-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rundown-row-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.rundown-time-chip {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--idm-secondary-yellow, #fee156);
    font-family: 'Space Mono', monospace;
    background: rgba(254, 225, 86, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    text-align: center;
}

.rundown-desc-cell {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.rundown-pic-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8aff78;
    background: rgba(82, 224, 56, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Outcomes & Tools */
.syllabus-outcomes-box {
    background: rgba(6, 16, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.syllabus-outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.syllabus-outcomes-list li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.syllabus-outcomes-list li i {
    color: #52e038;
    font-size: 0.75rem;
}

.syllabus-tools-box {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 16px;
}

.syllabus-tools-box strong {
    color: #ffffff;
}

/* Action Buttons (BACA & UNDUH) */
.syllabus-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.syllabus-actions-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tombol Baca Isi Dokumen */
.syllabus-view-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fee156 0%, #d8be1d 100%);
    color: #081406;
    border: none;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(254, 225, 86, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.syllabus-view-doc-btn:hover {
    background: #ffffff;
    color: #081406;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.45);
}

/* Tombol Unduh Dokumen */
.syllabus-download-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.syllabus-download-file-btn:hover {
    background: rgba(254, 225, 86, 0.15);
    color: var(--idm-secondary-yellow, #fee156);
    border-color: rgba(254, 225, 86, 0.4);
    transform: translateY(-2px);
}

.syllabus-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.syllabus-action-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* ═══════════ SIDEBAR / QUICK ACTION WIDGETS ═══════════ */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-widget-card {
    background: rgba(14, 34, 14, 0.85);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sidebar-widget-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title i {
    color: var(--idm-secondary-yellow, #fee156);
}

/* Program Switcher Pills */
.sidebar-program-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-program-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
}

.sidebar-program-item:hover {
    background: rgba(254, 225, 86, 0.12);
    border-color: rgba(254, 225, 86, 0.4);
    transform: translateX(4px);
}

.sidebar-program-item.active {
    background: var(--idm-secondary-yellow, #fee156);
    color: #081406;
    font-weight: 800;
    border-color: var(--idm-secondary-yellow, #fee156);
    box-shadow: 0 6px 20px rgba(254, 225, 86, 0.35);
}

.sidebar-prog-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-prog-code {
    font-weight: 900;
    font-size: 0.85rem;
}

.sidebar-prog-name {
    font-size: 0.78rem;
    opacity: 0.85;
}

.sidebar-program-item.active .sidebar-prog-name {
    opacity: 1;
    font-weight: 800;
}

/* Document Download List */
.sidebar-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.25s ease;
}

.sidebar-file-item:hover {
    background: rgba(254, 225, 86, 0.15);
    border-color: rgba(254, 225, 86, 0.45);
    transform: translateY(-2px);
}

.sidebar-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon-word {
    font-size: 1.25rem;
    color: #60a5fa;
}

.sidebar-file-meta {
    display: flex;
    flex-direction: column;
}

.sidebar-file-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
}

.sidebar-file-size {
    font-size: 0.68rem;
    color: var(--idm-secondary-yellow, #fee156);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.sidebar-dl-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--idm-secondary-yellow, #fee156);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-dl-icon-btn:hover {
    background: var(--idm-secondary-yellow, #fee156);
    color: #081406;
    transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════════════════════════
   INTERACTIVE DOCUMENT PREVIEW MODAL / READER (PREMIUM LUXURY DESIGN)
   ══════════════════════════════════════════════════════════════════════════ */
.doc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 8, 3, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.doc-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.doc-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 94%;
    max-width: 900px;
    height: 88vh;
    max-height: 860px;
    background: #08180a;
    border: 1.5px solid rgba(254, 225, 86, 0.45);
    border-radius: 24px;
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(254, 225, 86, 0.15);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.doc-modal-container.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Header */
.doc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #071508;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.doc-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.doc-modal-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(254, 225, 86, 0.15);
    border: 1px solid rgba(254, 225, 86, 0.35);
    color: var(--idm-secondary-yellow, #fee156);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.doc-modal-title-wrap {
    min-width: 0;
}

.doc-modal-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-modal-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    display: block;
}

.doc-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.doc-modal-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fee156 0%, #e2c422 100%);
    color: #081406;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(254, 225, 86, 0.3);
    transition: all 0.25s ease;
}

.doc-modal-dl-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.doc-modal-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.doc-modal-close-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: rotate(90deg);
}

/* Modal Body / Paper Sheet View */
.doc-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px 18px 40px;
    background: #061107;
    display: block;
    box-sizing: border-box;
    width: 100%;
}

.doc-paper-sheet {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    color: #1e293b;
    border-radius: 18px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65);
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

/* Letterhead Kop Surat */
.doc-letterhead {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.doc-letterhead-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.doc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.doc-letterhead-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.doc-inst-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #334155;
    text-transform: uppercase;
}

.doc-org-name {
    font-size: 1.12rem;
    font-weight: 900;
    color: #0f3813;
    margin: 2px 0;
    letter-spacing: 0.5px;
}

.doc-univ-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
}

.doc-loc-tag {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

.doc-letterhead-divider {
    width: 100%;
    height: 3px;
    background: #0f3813;
    border-bottom: 1px solid #0f3813;
    margin-bottom: 22px;
}

/* Document Inner Headings */
.doc-header-block {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px dashed #cbd5e1;
}

.doc-main-heading {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.doc-sub-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: #15803d;
}

/* Sections & Typography */
.doc-section-card {
    margin-bottom: 20px;
}

.doc-sec-title {
    font-size: 0.88rem;
    font-weight: 900;
    color: #0f3813;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border-left: 4px solid #16a34a;
    padding-left: 8px;
}

.doc-table-plain {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    color: #1e293b;
}

.doc-table-plain td {
    padding: 5px 6px;
    vertical-align: top;
    color: #1e293b;
}

.doc-prop-key {
    width: 150px;
    font-weight: 800;
    color: #0f172a;
}

.doc-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 6px;
}

.doc-table-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    border: 1px solid #cbd5e1;
}

.doc-table-grid th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.doc-table-grid td {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background: #ffffff;
}

.doc-td-time {
    color: #0f3813;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
}

.doc-pic-tag {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.74rem;
    display: inline-block;
}

.doc-ol-list,
.doc-ul-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.6;
}

.doc-ol-list li,
.doc-ul-list li {
    color: #1e293b;
}

.doc-paragraph {
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.65;
    margin: 0;
}

.doc-pre-text {
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.65;
    white-space: pre-line;
}

.doc-step-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.doc-step-title {
    font-weight: 800;
    font-size: 0.82rem;
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

.doc-sign-block {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 16px;
}

.doc-sign-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 240px;
}

.doc-sign-date {
    font-size: 0.8rem;
    color: #64748b;
}

.doc-sign-role {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 50px;
}

.doc-sign-name {
    font-size: 0.86rem;
    color: #0f172a;
    text-decoration: underline;
}

.doc-sign-id {
    font-size: 0.72rem;
    color: #64748b;
}

/* ═══════════ MODAL FOOTER & AESTHETIC NAVIGATION BAR ═══════════ */
.doc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 16px);
    padding: 14px clamp(12px, 2.5vw, 24px);
    background: #071508;
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    width: 100%;
}

.doc-nav-prev {
    flex: 0 0 auto;
}

.doc-nav-next {
    flex: 0 0 auto;
}

.doc-footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    flex: 1 1 auto;
    min-width: 0;
}

.doc-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(254, 225, 86, 0.1);
    border: 1px solid rgba(254, 225, 86, 0.28);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #E1E0CC;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.3px;
}

.doc-counter-pill i {
    color: var(--idm-secondary-yellow, #fee156);
    font-size: 0.85rem;
}

.doc-counter-pill strong {
    color: var(--idm-secondary-yellow, #fee156);
    font-weight: 900;
}

.doc-dots-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.doc-dot-item {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-dot-item:hover {
    background: rgba(254, 225, 86, 0.6);
    transform: scale(1.2);
}

.doc-dot-item.is-active {
    width: 20px;
    background: var(--idm-secondary-yellow, #fee156);
    box-shadow: 0 0 10px rgba(254, 225, 86, 0.4);
}

.doc-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-sizing: border-box;
}

.doc-nav-btn i {
    font-size: 0.85rem;
    color: var(--idm-secondary-yellow, #fee156);
    transition: transform 0.2s ease;
}

.doc-nav-btn:hover:not(:disabled) {
    background: var(--idm-secondary-yellow, #fee156);
    color: #081406;
    border-color: var(--idm-secondary-yellow, #fee156);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 225, 86, 0.35);
}

.doc-nav-btn:hover:not(:disabled) i {
    color: #081406;
}

.doc-nav-prev:hover:not(:disabled) i {
    transform: translateX(-3px);
}

.doc-nav-next:hover:not(:disabled) i {
    transform: translateX(3px);
}

.doc-nav-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

/* ═══════════ RESPONSIVE BREAKPOINTS ═══════════ */
@media (max-width: 1024px) {
    .detail-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-content-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .modul-detail-page {
        padding: 85px 0 70px;
    }

    .detail-hero-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .detail-hero-title {
        font-size: 1.6rem;
    }

    .detail-hero-tagline {
        font-size: 0.88rem;
    }

    .detail-hero-desc {
        font-size: 0.82rem;
    }

    .syllabus-card-header {
        padding: 14px 14px;
        gap: 10px;
    }

    .syllabus-num-badge {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .syllabus-item-title {
        font-size: 0.92rem;
    }

    .syllabus-card-body {
        padding: 0 14px 16px;
    }

    .syllabus-body-desc {
        font-size: 0.8rem;
    }

    .rundown-row-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .rundown-time-chip {
        display: inline-block;
        width: fit-content;
    }

    .syllabus-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .syllabus-actions-left {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .syllabus-view-doc-btn,
    .syllabus-download-file-btn {
        justify-content: center;
        width: 100%;
    }

    /* Fullscreen Modal Reader on Mobile */
    .doc-modal-container {
        top: 0 !important;
        left: 0 !important;
        transform: translateY(100%) !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .doc-modal-container.is-active {
        transform: translateY(0) !important;
    }

    .doc-modal-header {
        padding: 12px 14px;
    }

    .doc-modal-title {
        font-size: 0.9rem;
    }

    .doc-paper-sheet {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .doc-letterhead {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .doc-letterhead-logo {
        width: 48px;
        height: 48px;
    }

    .doc-org-name {
        font-size: 0.98rem;
    }

    .doc-prop-key {
        width: 100px;
    }

    .doc-modal-footer {
        padding: 10px 12px;
        gap: 6px;
    }

    .doc-nav-btn {
        padding: 7px 12px;
        font-size: 0.72rem;
    }

    .doc-counter-pill {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 440px) {
    .doc-modal-footer {
        padding: 8px 10px;
        gap: 4px;
    }

    .doc-nav-btn {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .doc-counter-pill {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .doc-counter-pill i {
        display: none;
    }
}
