/* =======================================
   A. FONT DAN STRUKTUR DASAR
   ======================================= */
body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Latar belakang halaman (putih gading lembut) */
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =======================================
   B. HEADER & NAVIGASI (FIX DROPDOWN)
   ======================================= */
.main-header {
    background-color: #004d80; /* Biru Tua Kemendikbudristek */
    color: white; /* Warna teks default untuk header adalah putih */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 45px; 
    margin-right: 12px;
}

.site-title {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1;
}
.site-subtitle {
    font-size: 0.85em;
    line-height: 1;
    opacity: 0.9;
}

/* Navigasi Utama */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li {
    position: relative;
    margin-left: 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: #ffd700; 
}

/* Dropdown/Submenu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff; /* Latar belakang submenu putih */
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100; 
    border-top: 4px solid #ff8c00; 
    padding: 5px 0;
}

/* FIX KRUSIAL: Menargetkan link di dalam submenu dengan prioritas tinggi */
.main-header .main-nav .dropdown-content a {
    color: #343a40 !important; /* HARUS GELAP di atas latar putih */
    padding: 10px 20px;
    font-weight: 400; 
    /* Pastikan link di dropdown tidak mewarisi style link header */
    background-color: transparent; 
}

/* Memastikan link di dalam dropdown tetap gelap saat di-hover */
.main-header .main-nav .dropdown-content a:hover {
    color: #004d80 !important; 
    background-color: #e9ecef !important; 
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn .arrow-down {
    font-size: 0.7em;
    margin-left: 5px;
}

/* =======================================
   C. HERO SECTION (Halaman Utama)
   ======================================= */
.hero-slider {
    height: 400px;
    background-color: #eee;
    overflow: hidden;
    position: relative;
}

.slider-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), var(--bg-image);
}

.slider-caption {
    padding: 30px 50px;
    max-width: 75%;
}

.slider-caption h1 {
    margin-top: 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Tombol CTA (Call to Action) */
.cta-button {
    background-color: #ff8c00; 
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px; 
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #e07b00;
    transform: translateY(-2px);
}

/* =======================================
   D. KONTEN UMUM & TYPOGRAPHY
   ======================================= */
.main-content {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    color: #004d80;
    margin-bottom: 40px;
    font-size: 2.2em;
    font-weight: 700;
    border-bottom: 3px solid #ff8c00;
    display: inline-block;
    padding-bottom: 5px;
}

.section-title-left {
    text-align: left; 
    border-bottom: 3px solid #ff8c00;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    color: #004d80;
    font-size: 2.2em;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}
.intro-text {
    font-size: 1.1em;
    color: #555;
}

.read-more-link {
    color: #ff8c00;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

/* Grid Fokus (Home) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #004d80;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card h3 {
    color: #004d80;
    margin-top: 0;
}

.card-link {
    color: #ff8c00;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* Fitur Unggulan (Home) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    text-align: center;
}

.feature-item {
    background-color: white;
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
    color: #ff8c00; 
}

.feature-item h3 {
    color: #004d80;
    font-size: 1.2em;
    margin-top: 0;
}

.feature-link {
    color: #ff8c00;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9em;
}

/* Testimoni */
.testimony-container {
    max-width: 800px;
    margin: 30px auto 50px auto;
    padding: 20px;
    border-left: 5px solid #004d80;
    background-color: #e6f7ff; 
}

blockquote {
    font-style: italic;
    color: #333;
    margin: 0;
    padding: 0;
}

blockquote footer {
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: #004d80;
}

.partners-logos {
    text-align: center;
    margin-top: 50px;
}

.partner-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
}

/* =======================================
   E. LAYOUT PAGE (Blog/Detail/Info)
   ======================================= */
/* Layout Blog: Main Content + Sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr; 
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-hero {
    background-color: #007bff; /* Biru terang untuk hero section halaman konten */
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Header Artikel/Page */
.page-header {
    margin-bottom: 40px;
}

.article-title {
    color: #004d80;
    font-size: 2.5em;
    margin-top: 0;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9em;
    color: #6c757d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.article-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Isi Artikel */
.full-article h2, .full-article h3 {
    color: #004d80;
    border-left: 5px solid #ff8c00;
    padding-left: 15px;
    margin-top: 35px;
    margin-bottom: 15px;
}

.full-article p {
    margin-bottom: 20px;
    text-align: justify;
}

.full-article ul, .full-article ol {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
}

.highlight-quote {
    background-color: #f1f8ff;
    border-left: 4px solid #004d80;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #333;
}

.source-info {
    font-size: 0.85em;
    margin-top: 40px;
    color: #6c757d;
}

.cta-action {
    text-align: center;
    margin: 40px 0;
}


/* Sidebar */
.sidebar {
    padding-top: 20px;
}

.sidebar-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-box h3 {
    color: #ff8c00;
    font-size: 1.3em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box ul li a {
    color: #343a40;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
}

.sidebar-box ul li a:hover {
    color: #004d80;
    padding-left: 5px;
    transition: padding-left 0.1s;
}

/* =======================================
   F. CSS KHUSUS KURIKULUM & MATERI
   ======================================= */

.section-title-centered {
    text-align: center;
    color: #004d80;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
    border-bottom: 3px solid #ff8c00;
    display: inline-block;
    padding-bottom: 5px;
}

/* Grid Sumber Daya Jenjang */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom untuk jenjang */
    gap: 20px;
    margin-bottom: 40px;
}

.resource-card-jenjang {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid #004d80;
    transition: transform 0.3s;
}

.resource-card-jenjang:hover {
    transform: translateY(-5px);
}

.resource-card-jenjang h3 {
    color: #004d80;
    margin-top: 10px;
}

.resource-card-jenjang .jenjang-icon {
    font-size: 2.5em;
    color: #ff8c00;
}

.resource-card-jenjang a {
    display: block;
    margin-top: 15px;
    color: #ff8c00;
    font-weight: 600;
}

/* Styling Daftar Dokumen (di Kurikulum & Materi) */
.program-focus-list {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.program-focus-list li {
    background-color: #fcfcfc;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.program-focus-list li h4 {
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.program-icon {
    font-size: 1.8em;
    color: #ff8c00;
    margin-right: 15px;
    flex-shrink: 0;
}

/* =======================================
   G. CSS TAMBAHAN Visi & Misi Detail
   ======================================= */
.vision-block {
    background-color: #e6f7ff; 
    padding: 35px;
    border-left: 8px solid #004d80; 
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.vision-text {
    font-size: 1.5em;
    font-weight: 600;
    color: #004d80;
    line-height: 1.4;
    text-align: center;
}

.icon-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.vision-icon {
    font-size: 2.5em;
    margin-right: 15px;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px;
}

.mission-list li {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: box-shadow 0.3s;
}

.mission-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: #ff8c00;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

/* =======================================
   H. CSS TAMBAHAN DETAIL MISI
   ======================================= */
.mission-detail-icon {
    font-size: 3em;
    color: #004d80;
    display: block;
    margin-bottom: 20px;
}

.resource-highlight {
    background-color: #f7f7f7;
    padding: 20px;
    border-left: 5px solid #ff8c00;
    margin: 30px 0;
    border-radius: 5px;
}

/* Tambahan styling lain untuk detail misi seperti resource-type-grid, innovation-card, access-strategy-list bisa ditambahkan di sini */

/* =======================================
   I. FOOTER
   ======================================= */
.main-footer {
    background-color: #2c3e50; 
    color: white;
    padding: 40px 0;
    font-size: 0.9em;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 30px;
}

.footer-col h3 {
    color: #ffd700;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    display: block;
    padding: 5px 0;
    transition: opacity 0.2s, color 0.2s;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: #ff8c00;
}

.social-media a {
    margin-right: 15px;
    color: white;
    font-size: 1.6em;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-media a:hover {
    opacity: 1;
    color: #ff8c00;
}
/* --- CSS Khusus Galeri Sumber Daya Digital --- */

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}

.digital-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.resource-digital-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 4px solid #17a2b8; /* Aksen Biru Muda */
    transition: transform 0.3s;
}

.resource-digital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon-digital {
    font-size: 3.5em;
    display: block;
    margin-bottom: 15px;
}

.resource-digital-card h4 {
    color: #004d80;
    margin-top: 0;
    font-size: 1.4em;
    min-height: 40px;
}

.digital-cta-button {
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.digital-cta-button:hover {
    opacity: 0.9;
}
/* --- CSS Khusus Galeri Sumber Daya Digital --- */

.digital-resource-grid {
    display: grid;
    /* UBAH: Gunakan hanya 2 kolom, dan atur lebar kolom agar sesuai */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    
    /* TAMBAHKAN: Atur lebar maksimum agar kartu tidak terlalu lebar */
    max-width: 800px; /* Sesuaikan angka ini (misalnya 700px atau 900px) */
    
    /* TAMBAHKAN: Pusatkan container grid di halaman */
    margin-left: auto;
    margin-right: auto;
}

/* Biarkan style card individual tetap sama */
.resource-digital-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom: 4px solid #17a2b8;
    transition: transform 0.3s;
}

/* ... CSS lainnya ... */