/* ==========================================================================
   OSKANU IV 2026 OFFICIAL EDITORIAL IDENTITY SYSTEM & DESIGN GUIDELINES
   Publisher: LP Ma'arif NU PWNU Jawa Tengah
   Art Direction: Premium Swiss Editorial / Official Ministry & University Level
   Color Tokens: Deep Green (#0B5D3A), Gold (#C89A15), White (#FFFFFF), Slate (#F8FAFC)
   ========================================================================== */

/* 1. CSS VARIABLES & SYSTEM TOKENS */
:root {
    --primary-green: #0B5D3A;
    --primary-green-dark: #084229;
    --primary-green-light: #E6F0EC;
    --accent-gold: #C89A15;
    --accent-gold-light: #FBF4E2;
    --accent-gold-dark: #9B750C;
    --neutral-dark: #0F172A;
    --neutral-body: #334155;
    --neutral-muted: #64748B;
    --neutral-light: #F8FAFC;
    --border-color: #E2E8F0;
    
    --font-heading: 'Montserrat', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Lora', Georgia, serif;

    --a4-width: 210mm;
    --a4-height: 297mm;
    --page-margin: 20mm;
}

/* 2. RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-body);
    color: var(--neutral-body);
    background-color: #0F172A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 3. TOP NAVIGATION & TOOLBAR (SCREEN ONLY) */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #084229;
    border-bottom: 2px solid var(--accent-gold);
    z-index: 1000;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-badge {
    background: var(--accent-gold);
    color: var(--primary-green-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tab-switch {
    display: flex;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #CBD5E1;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #FFFFFF;
}

.tab-btn.active {
    background: var(--accent-gold);
    color: var(--primary-green-dark);
}

.view-toggle-group {
    display: flex;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.view-btn.active {
    background: #FFFFFF;
    color: var(--primary-green-dark);
}

.btn-primary-gold {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gold);
    color: var(--primary-green-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(200, 154, 21, 0.4);
    transition: transform 0.2s;
}

.btn-primary-gold:hover {
    transform: translateY(-1px);
    background: #D8A61B;
}

/* 4. APP LAYOUT & SIDEBAR */
.app-layout {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

.sidebar-nav {
    width: 300px;
    background: #1E293B;
    border-right: 1px solid #334155;
    padding: 20px;
    position: fixed;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #475569;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
    margin-bottom: 20px;
}

.sidebar-search input:focus {
    border-color: var(--accent-gold);
}

.menu-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748B;
    letter-spacing: 1px;
    margin: 16px 0 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: #FFFFFF;
}

.menu-item.active {
    background: var(--primary-green);
    color: #FFFFFF;
    font-weight: 600;
}

.menu-num {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 12px;
}

.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 1000px;
}

.tab-content.active {
    display: block;
}

.document-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 5. A4 PAGE CONTAINER & SWISS EDITORIAL LAYOUT */
.a4-page {
    width: var(--a4-width);
    height: var(--a4-height);
    background: #FFFFFF;
    margin: 0 auto 40px auto;
    padding: 15mm 18mm 15mm 18mm; /* Standard 15mm Top/Bottom Padding for Exact Content Budget */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    page-break-after: always;
    break-after: page;
}

/* Screen Mode vs Print Preview Mode Styling (Strict 1-to-1 A4 Parity) */
body.view-mode-screen .a4-page {
    height: var(--a4-height); /* 297mm exact in screen mode as well! */
    border-radius: 4px;
}

.page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    overflow: hidden;
}

/* 6. COVER DEPAN (FRONT COVER FULLPAGE DESIGN) */
.page-cover-full {
    padding: 0 !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

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

.bg-ornament-islamic {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background-image: radial-gradient(var(--accent-gold) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    transform: rotate(45deg);
}

.bg-wireframe-science {
    position: absolute;
    bottom: 150px;
    left: -50px;
    width: 300px;
    height: 300px;
    border: 1px stroke var(--primary-green);
    opacity: 0.03;
    pointer-events: none;
}

.cover-header {
    padding: 25mm 20mm 0 25mm;
}

.inst-tag {
    display: inline-block;
    background: var(--primary-green-light);
    color: var(--primary-green);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.inst-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-green-dark);
    letter-spacing: 0.5px;
}

.cover-hero {
    padding: 0 20mm 0 25mm;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-container-hero {
    width: 220px;
    margin-bottom: 24px;
}

.oskanu-logo-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(11, 93, 58, 0.15));
}

.document-title-block {
    margin-bottom: 24px;
}

.doc-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold-dark);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 8px;
}

.title-green {
    color: var(--primary-green);
}

.title-gold {
    color: var(--accent-gold);
    margin-left: 8px;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--neutral-dark);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.gold-divider-line {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

.cover-theme-box {
    background: #FFFFFF;
    border-left: 4px solid var(--primary-green);
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 520px;
    margin-top: 10px;
}

.theme-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.theme-text {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}

.slogan-text {
    font-size: 12px;
    color: var(--accent-gold-dark);
    font-weight: 600;
}

.cover-bottom-waves {
    position: relative;
    height: 120px;
    width: 100%;
    margin-top: auto;
}

.cover-bottom-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cover-footer-text {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 10;
}

/* 7. COVER DALAM (TITLE PAGE) */
.page-cover-inner {
    padding: 12mm;
    background: #FFFFFF;
}

.page-margin-border {
    border: 2px solid var(--accent-gold);
    outline: 1px solid var(--primary-green);
    outline-offset: -5px;
    height: 100%;
    padding: 16mm 14mm;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
}

.inner-title-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.inner-pub-tag {
    font-size: 9px;
    font-weight: 800;
    color: var(--accent-gold-dark);
    letter-spacing: 1.5px;
}

.doc-code-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 1px;
    background: var(--primary-green-light);
    padding: 3px 10px;
    border-radius: 4px;
}

.mini-logo-wrapper {
    margin: 12px 0 10px 0;
}

.inner-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(11, 93, 58, 0.12));
}

.inner-doc-type {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--neutral-dark);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.inner-doc-type span {
    color: var(--accent-gold-dark);
    font-size: 13px;
}

.title-gold-accent-bar {
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    margin: 10px auto 14px auto;
    border-radius: 2px;
}

.inner-main-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.inner-sub-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--neutral-muted);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.inner-theme-snippet {
    background: var(--neutral-light);
    border-left: 3px solid var(--accent-gold);
    padding: 10px 16px;
    border-radius: 0 6px 6px 0;
    max-width: 480px;
    margin: 0 auto 16px auto;
}

.its-theme {
    font-family: var(--font-serif);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--neutral-dark);
}

.its-slogan {
    font-size: 10.5px;
    color: var(--primary-green-dark);
    font-weight: 600;
}

.inner-meta-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 18px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 4px;
}

.meta-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.meta-key {
    color: var(--neutral-muted);
    font-weight: 600;
}

.meta-val {
    color: var(--neutral-dark);
    font-weight: 700;
    text-align: right;
}

.inner-title-footer {
    font-size: 10.5px;
    color: var(--neutral-body);
    line-height: 1.4;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.itf-publisher {
    font-weight: 800;
    color: var(--primary-green-dark);
    letter-spacing: 0.5px;
}

.itf-address {
    color: var(--neutral-muted);
    font-size: 9.5px;
}

.pub-date {
    margin-top: 4px;
    font-weight: 800;
    color: var(--accent-gold-dark);
    font-size: 10px;
    letter-spacing: 1px;
}

/* 8. RUNNING HEADER & RUNNING FOOTER */
.running-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--accent-gold);
    margin-bottom: 16px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
}

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

.rh-logo-img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.rh-right {
    color: var(--accent-gold-dark);
}

.running-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    font-size: 9px;
    color: var(--neutral-muted);
}

.page-number::after {
    font-weight: 800;
    color: var(--primary-green);
}

/* 9. SECTION HEADINGS & EDITORIAL TYPOGRAPHY */
.section-heading-editorial {
    margin-bottom: 20px;
}

.sec-number {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold-dark);
    letter-spacing: 2px;
    display: block;
}

.sec-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-green-dark);
    line-height: 1.2;
}

.heading-gold-line {
    width: 40px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: 6px;
    border-radius: 2px;
}

/* CHAPTER BANNER */
.chapter-divider-banner {
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 6px;
    border-left: 5px solid var(--accent-gold);
    margin: 20px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.chap-badge {
    background: var(--accent-gold);
    color: var(--primary-green-dark);
    font-size: 13px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
}

.chap-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.paragraph-lead {
    font-size: 12px;
    font-weight: 500;
    color: var(--neutral-dark);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* KATA PENGANTAR EDITORIAL TYPOGRAPHY & UNIFORM LAYOUT */
.foreword-text-content {
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    line-height: 1.65;
    color: #1E293B;
}

.foreword-text-content p {
    font-family: 'Lora', Georgia, serif;
    font-size: 11pt;
    line-height: 1.65;
    color: #1E293B;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 12px;
    text-indent: 1.8em;
}

.foreword-text-content p.drop-cap-paragraph {
    text-indent: 0;
}

.drop-cap {
    float: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 4px;
    color: var(--primary-green);
}

.foreword-highlight-quote {
    background: linear-gradient(135deg, #F0FDF4 0%, #FEFCE8 100%);
    border-left: 4px solid var(--accent-gold);
    border-right: 1px solid #E2E8F0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 12px 18px;
    margin: 14px 0;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-size: 10.5pt;
    color: #0F172A;
    text-indent: 0 !important;
    text-align: center;
    line-height: 1.5;
}

.foreword-signature-block {
    margin-top: 16px;
    float: right;
    text-align: right;
    min-width: 260px;
    clear: both;
}

.sig-location {
    font-family: var(--font-body);
    font-size: 10.5pt;
    color: var(--neutral-dark);
    margin-bottom: 2px;
}

.sig-role {
    font-family: var(--font-body);
    font-size: 10.5pt;
    font-weight: 700;
    color: var(--primary-green-dark);
    margin-bottom: 6px;
}

.sig-space {
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sig-space .sig-img {
    max-height: 50px;
    max-width: 140px;
}

.sig-name {
    font-family: var(--font-body);
    font-size: 11pt;
    color: var(--primary-green-dark);
    border-top: 1px dashed var(--border-color);
    padding-top: 4px;
    display: inline-block;
}

/* 10. OFFICIAL TABLES STYLING */
.official-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 11px;
}

.official-table th {
    background: var(--primary-green);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--accent-gold);
}

.official-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--neutral-body);
}

.official-table tbody tr:nth-child(even) {
    background: var(--neutral-light);
}

.official-table tbody tr:hover {
    background: #F1F5F9;
}

.table-sm th, .table-sm td {
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.45;
}

.table-compact th, .table-compact td {
    padding: 6px 9px;
    font-size: 10.5px;
    line-height: 1.4;
}

/* DOCUMENT CONTROL TABLE */
.doc-control-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.table-group-header {
    background: var(--primary-green-dark);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 8px 14px;
    text-align: left;
}

.col-label {
    width: 30%;
    background: var(--neutral-light);
    font-weight: 700;
    color: var(--neutral-dark);
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
}

.col-value {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--neutral-body);
}

.badge-status-approved {
    background: #DCFCE7;
    color: #15803D;
    font-weight: 800;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 50px;
}

/* 11. CALLOUT BOXES & CARDS */
.callout-box {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 11px;
}

.info-box {
    background: #F0FDF4;
    border-left: 4px solid var(--primary-green);
}

.warning-box {
    background: var(--accent-gold-light);
    border-left: 4px solid var(--accent-gold);
}

.note-box {
    background: #F8FAFC;
    border-left: 4px solid var(--neutral-muted);
}

.callout-icon {
    flex-shrink: 0;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.callout-content h5 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--primary-green-dark);
}

/* 12. DAFTAR ISI (TOC STYLING) */
.toc-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.toc-item {
    display: flex;
    align-items: baseline;
    font-size: 11.5px;
}

.toc-code {
    font-weight: 800;
    color: var(--primary-green);
    width: 65px;
    flex-shrink: 0;
}

.toc-title {
    font-weight: 600;
    color: var(--neutral-dark);
}

.toc-dots {
    flex: 1;
    border-bottom: 1px dotted #CBD5E1;
    margin: 0 10px;
}

.toc-page {
    font-weight: 800;
    color: var(--accent-gold-dark);
}

.toc-meta-item .toc-title {
    font-weight: 700;
    color: var(--neutral-muted);
}

.toc-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* 13. FLOWCHART & TIMELINE COMPONENTS */
.flowchart-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary-green);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 2px solid var(--accent-gold);
}

.step-card {
    background: var(--neutral-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    width: 100%;
}

.step-card h5 {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 4px;
}

.step-card p {
    font-size: 9.5px;
    color: var(--neutral-body);
    line-height: 1.3;
}

.step-success {
    background: #DCFCE7;
    border-color: #86EFAC;
}

.flow-arrow {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 800;
}

/* SCHEDULE CARDS & SCORING */
.schedule-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.schedule-card {
    background: var(--neutral-light);
    border-top: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 16px;
}

.schedule-card.gold-border {
    border-top-color: var(--accent-gold);
}

.sc-badge-online, .sc-badge-offline {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.sc-badge-online { background: var(--primary-green); color: #FFFFFF; }
.sc-badge-offline { background: var(--accent-gold); color: var(--primary-green-dark); }

.sc-dates { font-size: 11px; margin-bottom: 8px; }
.sc-date-item { margin-bottom: 4px; }
.sc-venue { font-size: 10.5px; color: var(--neutral-muted); }

/* SCORING & AWARDS GRID (BAB H & BAB I) */
.scoring-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.scoring-card-green {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
    border: 1px solid #BBF7D0;
    border-top: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(11, 93, 58, 0.06);
}

.scoring-card-gold {
    background: linear-gradient(135deg, #FEFCE8 0%, #FFFFFF 100%);
    border: 1px solid #FEF08A;
    border-top: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(200, 154, 21, 0.06);
}

.scoring-card-green h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scoring-card-gold h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-gold-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-pill {
    font-weight: 800;
    font-size: 10.5px;
    padding: 3px 10px;
    border-radius: 4px;
    min-width: 36px;
    text-align: center;
}

.score-pill.green { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.score-pill.red { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.score-pill.grey { background: #E2E8F0; color: #475569; }

/* BAB I: AWARD CARDS & OVERALL CHAMPION BANNER */
.award-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0;
}

.award-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.award-card-cert { border-top: 4px solid #3B82F6; background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%); }
.award-card-medal { border-top: 4px solid var(--accent-gold); background: linear-gradient(180deg, #FEFCE8 0%, #FFFFFF 100%); }
.award-card-runnerup { border-top: 4px solid var(--primary-green); background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%); }

.award-icon-badge {
    font-size: 20px;
    margin-bottom: 6px;
}

.award-card h5 {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 6px;
}

.award-card p {
    font-size: 10px;
    color: var(--neutral-body);
    line-height: 1.4;
}

.overall-champion-banner {
    background: linear-gradient(135deg, #084229 0%, #0B5D3A 100%);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 6px solid var(--accent-gold);
    box-shadow: 0 6px 20px rgba(11, 93, 58, 0.2);
}

.overall-champion-banner h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.overall-champion-banner p {
    font-size: 11px;
    color: #F8FAFC;
    margin-bottom: 12px;
}

.points-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0;
}

.point-badge-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(200, 154, 21, 0.5);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.point-badge-card .pts {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-gold);
    display: block;
}

.point-badge-card .rank {
    font-size: 10.5px;
    font-weight: 700;
    color: #FFFFFF;
}

/* BAB J & BAB K STRUCTURAL CARDS */
/* REGISTRATION STEP CARDS GRID */
.registration-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
}

.reg-step-detail-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-left: 3.5px solid var(--primary-green);
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.reg-step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.reg-step-tag {
    background: var(--primary-green);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.reg-step-header h5 {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--primary-green-dark);
}

.file-requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0;
}

.file-req-card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-gold);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 11.5px;
    line-height: 1.5;
}

.file-req-icon {
    background: var(--accent-gold-light);
    color: var(--accent-gold-dark);
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* BAB K EXECUTION CHECKLIST GRID */
.execution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.execution-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.execution-card-online { border-top: 4px solid var(--primary-green); }
.execution-card-offline { border-top: 4px solid var(--accent-gold); }

.execution-card h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
}

.execution-card-online h4 { color: var(--primary-green-dark); }
.execution-card-offline h4 { color: var(--accent-gold-dark); }

.execution-checklist {
    list-style: none;
    margin-top: 8px;
}

.execution-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11.5px;
    margin-bottom: 10px;
    line-height: 1.5;
    border-bottom: 1px dashed #F1F5F9;
    padding-bottom: 8px;
}

.execution-checklist li:last-child {
    border-bottom: none;
}

.num-badge {
    background: var(--primary-green-light);
    color: var(--primary-green-dark);
    font-weight: 800;
    font-size: 10px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.num-badge-gold {
    background: var(--accent-gold-light);
    color: var(--accent-gold-dark);
}

/* 14. SIGNATURES & STAMP SECTION */
.legalisation-stamp-container {
    margin-top: 24px;
    text-align: center;
}

.legal-date-city {
    font-size: 11px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.signature-grid-3 {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sig-card {
    text-align: center;
}

.sig-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 4px;
}

.sig-box {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sig-img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
}

.sig-person-name {
    font-size: 11px;
    color: var(--primary-green-dark);
}

.sig-person-id {
    font-size: 9.5px;
    color: var(--neutral-muted);
}

.stamp-box-center {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.official-seal-img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(11, 93, 58, 0.2));
}

.signature-main-approval {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.sig-box-lg {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 4px 0;
}

.sig-img-lg {
    max-height: 75px;
    max-width: 180px;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

.stamp-img-overlay {
    position: absolute;
    height: 85px;
    width: 85px;
    object-fit: contain;
    opacity: 0.85;
    left: 38%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(11, 93, 58, 0.25));
}

.cover-official-img {
    max-width: 250px;
    max-height: 190px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 16px rgba(11, 93, 58, 0.15));
}

/* 15. COVER BELAKANG (BACK COVER) */
.page-cover-back {
    padding: 25mm 20mm;
    background: linear-gradient(135deg, #084229 0%, #0B5D3A 100%);
    color: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-card-aswaja {
    background: rgba(255,255,255,0.08);
    border-left: 4px solid var(--accent-gold);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    max-width: 540px;
    margin-top: 40px;
}

.quote-icon-gold {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #F8FAFC;
}

.quote-author {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.back-contact-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 24px;
    align-items: flex-end;
}

.contact-col h5 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-col p {
    font-size: 10.5px;
    line-height: 1.5;
    color: #E2E8F0;
}

.qr-placeholder-box {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.qr-svg {
    width: 100px;
    height: 100px;
}

.qr-placeholder-box span {
    display: block;
    font-size: 8px;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-top: 4px;
}

.back-cover-footer {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 12px;
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    letter-spacing: 1px;
}

/* 16. BRAND GUIDELINES SECTION */
.guidelines-section {
    padding: 20px 0;
}

.guidelines-hero-banner {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    color: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    border-bottom: 4px solid var(--accent-gold);
    margin-bottom: 30px;
}

.guidelines-hero-banner h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}

.guidelines-hero-banner p {
    font-size: 14px;
    color: #E2E8F0;
    margin-bottom: 16px;
}

.guideline-badge {
    background: var(--accent-gold);
    color: var(--primary-green-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
}

.guideline-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.guide-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 12px;
}

.color-swatch-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.swatch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--neutral-light);
    padding: 10px;
    border-radius: 6px;
}

.swatch-color {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
}

.swatch-info strong { display: block; font-size: 11px; color: var(--neutral-dark); }
.swatch-info code { font-size: 11px; color: var(--primary-green); font-weight: 700; }
.swatch-info span { display: block; font-size: 9.5px; color: var(--neutral-muted); }

/* LIST & LIST STYLES */
.styled-list-gold { list-style: none; margin: 12px 0; }
.styled-list-gold li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 11.5px; }
.styled-list-gold li::before { content: "▪"; position: absolute; left: 0; color: var(--accent-gold); font-size: 14px; }

.styled-numbered-list { padding-left: 20px; margin: 12px 0; font-size: 11.5px; }
.styled-numbered-list li { margin-bottom: 10px; }

.sub-list-dot { list-style: disc; padding-left: 20px; margin-top: 6px; }

.sub-heading-green {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-green);
    margin: 14px 0 8px 0;
}

/* SYLLABUS GRID & SPACIOUS FORMATTING (BAB M) */
.syl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.syl-subject-card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-green);
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.syl-heading {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent-gold);
}

.syl-sub-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-green-dark);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1.5px dashed #CBD5E1;
}

.syl-sub-head {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin: 10px 0 4px 0;
}

.syl-list {
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--neutral-body);
}

.syl-list li {
    margin-bottom: 4px;
}

.gold-text { color: var(--accent-gold-dark); }

/* ==========================================================================
   17. PRINT MEDIA QUERY (@media print)
   Exact A4 output rendering with crisp page breaks and zero color distortion
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html, body {
        background: #FFFFFF !important;
        color: #000000 !important;
        width: 210mm !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .no-print, .top-nav-bar, .sidebar-nav, .view-toggle-group, .tab-switch, .guidelines-section {
        display: none !important;
    }

    .app-layout {
        margin-top: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 210mm !important;
    }

    .a4-page {
        box-shadow: none !important;
        margin: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        padding: 16mm 18mm 16mm 18mm !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        background: #FFFFFF;
    }

    /* Cover Depan (Full Bleed Image) */
    .page-cover-full {
        padding: 0 !important;
        background: transparent !important;
    }

    .fullpage-cover-img {
        width: 210mm !important;
        height: 297mm !important;
        object-fit: cover !important;
    }

    /* Cover Belakang (Preserve Dark Green Gradient & Text Visibility in Print/PDF) */
    .page-cover-back {
        padding: 12mm 14mm 10mm 14mm !important;
        background: linear-gradient(135deg, #09472C 0%, #0B5D3A 50%, #063822 100%) !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .page-cover-back * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    .quote-card-aswaja {
        background: rgba(255, 255, 255, 0.12) !important;
        border-left: 4px solid #C89A15 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .back-footer-card {
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(200, 154, 21, 0.4) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .qr-card-inner {
        background: #FFFFFF !important;
        border: 2px solid #C89A15 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
