/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Inspired by digitalent.komdigi.go.id)
   ========================================================================== */
:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --line: #e2e8f0;
    --text: #0f172a;
    --muted: #475569;
    --primary: #1e3a8a; /* Royal Navy Blue */
    --primary-dark: #172554;
    --accent: #ea580c; /* Accent Orange/Gold */
    --accent-light: #ffedd5;
    --soft: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px 0;
}

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

.brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.main-nav a:hover:not(.nav-cta) {
    color: var(--primary);
    background: var(--soft);
}

.nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow);
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.menu-button {
    display: none;
    cursor: pointer;
}

/* ==========================================================================
   HERO / SLIDER SECTION
   ========================================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); /* Navy Gradient */
}

.slider-container {
    position: relative;
    height: 100%;
    min-height: 520px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-copy {
    max-width: 650px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-copy .eyebrow {
    margin-bottom: 14px;
}

.hero-copy p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-light {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #ffffff;
}

.btn-light:hover {
    background: var(--soft);
    border-color: var(--soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.is-active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-heading {
    margin-bottom: 48px;
}

.section-heading.center {
    text-align: center;
}

.section-heading .eyebrow {
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 12px;
}

.section-heading h2, 
.section-heading h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.section-heading p {
    font-size: 1.05rem;
    color: var(--muted);
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.info-section,
.guide-section,
.paths-section {
    padding: 80px 0;
}

/* ==========================================================================
   INFO & ANNOUNCEMENT SECTION (Clean Outline Cards)
   ========================================================================== */
.info-section {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.info-panels {
    display: grid;
    gap: 30px;
}

.panel {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: none;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--soft);
    padding-bottom: 12px;
}

.panel-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    position: relative;
}

.panel-head h3::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.announcement-card {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.announcement-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.announcement-card strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}

.announcement-card p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.announcement-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--soft);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    width: fit-content;
}

/* ==========================================================================
   GUIDE & TIMELINE SECTION (Elegant Tab Layout)
   ========================================================================== */
.guide-section {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.guide-switcher {
    display: inline-flex;
    background: var(--soft);
    padding: 6px;
    border-radius: var(--radius-md);
    gap: 4px;
    margin: 0 auto 36px;
}

.guide-tab {
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.guide-tab:hover {
    color: var(--text);
}

.guide-tab.is-active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.guide-panel {
    display: none;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.guide-panel.is-active {
    display: block;
}

.guide-intro {
    margin-bottom: 30px;
    max-width: 600px;
}

.guide-intro h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.guide-intro p {
    font-size: 0.95rem;
    color: var(--muted);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.timeline-card {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.timeline-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    flex-grow: 1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 14px;
}

.text-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   PATHS / JALUR PENDAFTARAN SECTION (Beautiful Grid)
   ========================================================================== */
.paths-section {
    background: #0f172a; /* Deep Navy Background */
    position: relative;
}

.paths-section .section-heading h2 {
    color: #ffffff;
}

.paths-section .section-heading .eyebrow {
    background: rgba(234, 88, 12, 0.2);
    color: #fb923c;
}

.paths-section .section-heading.center::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #fbbf24; /* Gold underline */
    margin: 20px auto 0;
    border-radius: 2px;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.path-card {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.path-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.path-card:hover::before {
    opacity: 1;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.path-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.path-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.path-card .btn {
    width: 100%;
}

/* ==========================================================================
   KETENTUAN, JADWAL, PROSEDUR & UNDUH SUBPAGES (Inspired by /micro-skill)
   ========================================================================== */
.page-main {
    background-color: var(--bg);
    padding-bottom: 80px;
}

.page-content {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

/* Tab visibility rules for content pages */
.premium-tabs-wrapper .tab-content,
.content-section .tab-content,
.content-section-premium .tab-content {
    position: relative;
}

.premium-tabs-wrapper .tab-pane,
.content-section .tab-pane,
.content-section-premium .tab-pane {
    display: none;
}

.premium-tabs-wrapper .tab-pane.active,
.content-section .tab-pane.active,
.content-section-premium .tab-pane.active {
    display: block;
}

.empty-state {
    text-align: center;
    padding: 100px 40px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.empty-state p {
    color: #64748b;
    max-width: 400px;
    margin: 0 auto;
}

/* Flat white header instead of colorful gradients */
/* Premium Hero Header */
.hero-blue,
.hero-orange,
.hero-indigo {
    background: #0f172a !important; /* Match dark theme */
    border-bottom: 1px solid #1e293b !important;
    padding: 80px 0 60px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-indigo {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
}

.hero-spmb-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0f172a 100%) !important;
    padding: 84px 0 130px !important;
    text-align: center;
    position: relative;
    color: white !important;
    overflow: hidden;
}

.hero-unduh-inner {
    position: relative;
    z-index: 5;
}

.hero-unduh-copy {
    max-width: 780px;
    margin: 40px auto 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-description {
    max-width: 640px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.8;
}

.hero-spmb-blue .bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(0.2px);
}

.hero-spmb-blue .circle-yellow {
    width: 18px;
    height: 18px;
    background: #fbbf24;
    top: 18%;
    left: 10%;
}

.hero-spmb-blue .circle-blue-light {
    width: 28px;
    height: 28px;
    background: #7dd3fc;
    top: 36%;
    left: 6%;
}

.hero-spmb-blue .circle-white-large {
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    top: -120px;
    right: -120px;
}

.hero-spmb-blue .circle-yellow-small {
    width: 14px;
    height: 14px;
    background: #fbbf24;
    bottom: 30%;
    right: 14%;
}

.hero-spmb-blue .circle-blue-light-large {
    width: 26px;
    height: 26px;
    background: #7dd3fc;
    bottom: 14%;
    right: 10%;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 20px;
    color: white !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 10;
}

.back-link:hover {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

.hero-title-elegant {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1;
    margin-top: 0 !important;
    letter-spacing: -0.03em;
}

.page-unduh-content {
    margin-top: -72px;
    position: relative;
    z-index: 10;
}

.page-unduh .info-card-sub {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 22px 26px;
    margin-top: 0;
    margin-bottom: 24px;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.14), 0 6px 18px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 20;
}

.page-unduh .info-card-sub .icon-box {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: inset 0 2px 4px rgba(37, 99, 235, 0.06);
    flex: 0 0 auto;
}

.page-unduh .info-card-sub .text-box span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.page-unduh .info-card-sub .text-box strong {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.document-list {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 50px;
}

.document-header,
.document-item {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) 110px;
    gap: 20px;
    align-items: center;
}

.document-header {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
    padding: 18px 28px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 800;
    color: #0f172a;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.header-cell.text-right,
.doc-action-cell {
    text-align: right;
}

.document-item {
    padding: 24px 28px;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.2s ease, transform 0.2s ease;
}

.document-item:hover {
    background: #fbfdff;
    transform: translateY(-1px);
}

.doc-title-cell {
    font-weight: 800;
    color: #1e293b;
    font-size: 0.98rem;
    line-height: 1.45;
}

.doc-desc-cell {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.75;
}

.link-unduh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
    transition: var(--transition);
}

.link-unduh:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.24);
    color: #ffffff;
}

.link-unduh i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-spmb-blue {
        padding: 72px 0 112px !important;
    }

    .page-unduh-content {
        margin-top: -56px;
    }

    .page-unduh .info-card-sub {
        padding: 18px;
        gap: 14px;
        align-items: flex-start;
    }

    .page-unduh .info-card-sub .text-box strong {
        font-size: 0.98rem;
    }

    .document-header {
        display: none;
    }

    .document-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .doc-action-cell,
    .header-cell.text-right {
        text-align: left;
    }

    .link-unduh {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero-unduh-copy {
        margin-top: 48px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .page-unduh .info-card-sub {
        flex-direction: column;
    }
}


.hero-title {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.02em;
}

.hero-blue::before,
.hero-orange::before,
.hero-indigo::before {
    display: none !important; /* Remove background glows */
}

.hero-title {
    color: var(--text) !important;
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    text-shadow: none !important;
    letter-spacing: -0.02em;
}

/* Subpages switcher tabs container */
.hero-blue .tabs-container,
.hero-orange .tabs-container,
.hero-indigo .tabs-container {
    display: inline-flex !important;
    background: var(--soft) !important;
    padding: 6px !important;
    border-radius: var(--radius-md) !important;
    gap: 4px !important;
    margin: 0 auto !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 1px solid var(--line) !important;
    flex-wrap: wrap;
}

.hero-blue .tab-active,
.hero-orange .tab-active,
.hero-indigo .tab-active {
    background: #ffffff !important;
    color: var(--primary) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow) !important;
}

.hero-blue .tab-inactive,
.hero-orange .tab-inactive,
.hero-indigo .tab-inactive {
    background: transparent !important;
    color: var(--muted) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.hero-blue .tab-inactive:hover,
.hero-orange .tab-inactive:hover,
.hero-indigo .tab-inactive:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    color: var(--text) !important;
}

/* Content Card sitting clean in normal flow (no negative margin overlay) */
.unified-card {
    background: #ffffff !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px 50px !important;
    box-shadow: var(--shadow) !important;
    margin-top: 40px !important;
}

.formatted-content {
    color: var(--muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
}

.formatted-content h4 {
    color: var(--text) !important;
    font-size: 1.25rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 800 !important;
    border-left: 4px solid var(--primary) !important;
    padding-left: 12px !important;
}

.formatted-content h4:first-child {
    margin-top: 0 !important;
}

/* Clean Document Lists */
.formatted-content ol, 
.formatted-content ul {
    padding-left: 20px !important;
    margin-bottom: 1.5rem !important;
}

.formatted-content li {
    margin-bottom: 8px !important;
}

.formatted-content ol > li::marker {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.formatted-content ul > li::marker {
    color: var(--primary) !important;
}

.formatted-content p {
    margin-bottom: 1rem !important;
}

.formatted-content a {
    color: var(--primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.formatted-content a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   TERMS CARD SECTION (Untuk halaman ketentuan.php)
   ========================================================================== */
.terms-section {
    padding: 60px 0 90px;
    background: var(--bg);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.terms-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    border-top: 4px solid var(--primary);
}

.terms-card-title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.terms-card-body {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.terms-card-body ul,
.terms-card-body ol {
    padding-left: 20px;
    margin: 8px 0 0;
}

.terms-card-body li {
    margin-bottom: 8px;
}

/* ==========================================================================
   DOWNLOAD CENTER (Premium Grid Layout)
   ========================================================================== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.download-card {
    background: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.download-card:hover::before {
    opacity: 1;
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.download-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.download-card:hover .download-icon {
    background: var(--primary);
    color: #ffffff;
}

.download-meta {
    flex-grow: 1;
}

.download-meta strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.download-meta span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.download-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.download-btn {
    width: 100%;
    background: var(--soft);
    color: var(--primary);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.download-card:hover .download-btn {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ==========================================================================
   DOCUMENT LIST LAYOUT (Table-like List) - ELEGANT VERSION
   ========================================================================== */
.info-card-sub {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 30px;
    margin-top: -60px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 1);
    position: relative;
    z-index: 20;
}

.info-card-sub .icon-box {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.05);
}

.info-card-sub .text-box span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.info-card-sub .text-box strong {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.document-list {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    margin-bottom: 50px;
}

.document-header {
    display: grid;
    grid-template-columns: 240px 1fr 100px;
    background: #f8fafc;
    padding: 22px 40px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 800;
    color: #0f172a;
    font-size: 1rem;
}

.document-item {
    display: grid;
    grid-template-columns: 240px 1fr 100px;
    padding: 28px 40px;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.document-item:hover {
    background: #fdfdfd;
}

.doc-title-cell {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
}

.doc-desc-cell {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.doc-desc-cell::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-size: 1.2rem;
}

.doc-action-cell {
    text-align: right;
}

.link-unduh {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.link-unduh:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PREMIUM TABS & CONTENT (Used in Jadwal, Ketentuan, Prosedur)
   ========================================================================== */
.content-section-premium {
    margin-top: -80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.premium-tabs-wrapper {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
}

.premium-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.6rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.tab-btn {
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.95rem;
}

.tab-btn i { font-size: 1.2rem; }

.tab-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.premium-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.premium-card .card-body {
    padding: 4rem;
}

.tab-pane {
    display: none;
    animation: premiumFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.content-body {
    color: #334155;
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-body h2, .content-body h3, .content-body h4 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.content-body h4 { font-size: 1.4rem; }

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body ul, .content-body ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.content-body li {
    margin-bottom: 0.75rem;
    position: relative;
}

@keyframes premiumFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .premium-tabs {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    .premium-card .card-body {
        padding: 2rem;
    }
    .content-section-premium {
        margin-top: -40px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #0f172a; /* Slate 900 */
    color: #94a3b8;
    padding: 60px 0;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.site-footer strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
}

.site-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 500px;
}

.site-footer .nav-cta {
    display: inline-flex;
    margin-top: 18px;
    border-radius: var(--radius-sm) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 920px) {
    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--text);
        font-weight: 700;
        font-size: 0.9rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 6px 14px;
        min-height: 36px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #ffffff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        gap: 10px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 10px 14px;
    }
    
    .hero-slider, .slider-container {
        min-height: 480px;
    }
    
    .slide {
        padding: 40px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-panel {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .hero-slider, .slider-container {
        min-height: 440px;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
    }
    
    .hero-copy p {
        font-size: 0.95rem;
    }
    
    .btn {
        width: 100%;
    }
}
