* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

.container {
    width: 80%;
    margin-inline: auto;
}

@media (max-width: 992px) {
    .container {
        width: 90%;
    }
}

/* Navbar */
.navbar {
    padding: 30px 0;
}

.navbar-box {
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    align-items: center;
    gap: 45px;
}

.navbar-box .menu li{
    list-style-type: none;
} 

.navbar-box .menu li a {
    text-decoration: none;
    color: black;
}
/* Navbar */

/* Hero */
.hero {
    margin-block: 70px;
}

.hero-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding-bottom: 0px;
}

.hero-box img {
    width: 400px;
    margin-top: -50px;
    margin-bottom: -100px;
}

.hero-box h1{
    text-align: center;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.4;
}
.hero-box h1 span{
    font-weight: bold;
    color: #00008B;
}
/* #0099ff */

@media (max-width: 475px){
    .hero-box h1 {
        font-size: 20px;
    }
}

@media (max-width: 475px){
    .hero-box img {
        width: 250px;
    }
}
/* Hero */

header svg {
    margin-bottom: -10px;
    margin-top: -10px;
}

/* Tentang */
.tentang {
    background-color: #00008B;
    color: aliceblue;
    padding-bottom: 100px;
}

.tentang .container > h1{
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.tentang-box .box:nth-child(1) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 150px;
    align-items: center;
    gap: 50px;
}

.tentang-box .box:nth-child(1) img{
    width: 300px;
    padding: 10px 10px 0px 10px;
    background-color: aliceblue;
    border: 1px solid #010101;
    border-radius: 10px;
    margin-inline: auto;
}

.tentang-box .box:nth-child(1) p{
    letter-spacing: px;
    line-height: 35px;
    text-align: justify;
    margin-bottom: 30px;
}

.tentang-box .box:nth-child(1) a{
    text-decoration: none;
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;    
}

.tentang-box .box:nth-child(1) a:hover{
    background-color: white;
    color: black;
    font-weight: bold;
}

.tentang-box .struktur {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.tentang-box .box .struktur-box {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px;
}

.tentang-box .box .struktur-box:hover {
    background-color: white;
    color: black;
}

.tentang-box .box .struktur-box img{
    width: 100px;
    border-radius: 5px;
    background-color: white;
}

.tentang-box .box p{
    margin-bottom: 10px;
}

.tentang-box .box .struktur-box a{
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
    transition: 0.3s;
}

.tentang-box .box .struktur-box:hover a {
    border-color: #00008b; 
    color: #00008b;
}

.tentang-box .box .struktur-box a:hover {
    background-color: #00008b;
    color: white ;
}

.box .struktur-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px){
    .tentang-box .box:nth-child(1) {
        grid-template-columns: 1fr;
    }

    .tentang-box .box:nth-child(1) img{
        width: 200px;
    }

    .tentang-box .box:nth-child(1) div{
        text-align: center;
    }
}

@media (max-width: 475px) {
    .tentang-box .box:nth-child(2) .struktur {
        grid-template-columns: 1fr;
    }
}

/* Tentang */

/* Kelas */

.kelas {
    padding-block: 5px;
}

.kelas .container{
    text-align: center;
    margin-top: -20px;
    margin-bottom: 10px;
}

.kelas .kelas-box {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-top: 20px;
}


.kelas-box .box {
    padding: 20px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kelas-box .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.kelas-box .box img {
    width: 50%;
    border-radius: 10px;
}

.kelas-box .kelas-desc {
    margin-top: 20px;
}

.kelas-box .kelas-desc p {
    line-height: 2px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 10px;
    margin-bottom: 20px;
}

.kelas-box .kelas-desc .kelas-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kelas-box .kelas-desc .kelas-btn a {
    background-color: #00cba9;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
}

.kelas-box .kelas-desc .kelas-btn a:hover {
    background-color: #00d6b2;
}

.kelas-box .box:nth-child(1) .kelas-desc {
    margin-top: 30px;
}

@media (max-width: 475px){
    .kelas .kelas-box {
    grid-template-columns: 1fr;
}
}
/* Kelas */

/* Kontak */
footer {
    background-color: #080d27;
    margin-top: -10px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

footer span {
    font-weight: bold;
}

footer .social {
    display: flex;
    gap: 30px;
}

footer .social a {
    font-size: 50px;
    color: white;
    text-decoration: none;
}

@media (max-width: 475px){
    footer {
        flex-direction: column-reverse;
        gap: 20px;
    }

      footer .social a {
        font-size: 40px;
    }
}

/* Kontak */

/* Scroll Up */
.scroll-up {
    position: fixed;
    bottom: -50px;
    right: 50px;
    background-color: #00008B;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    opacity: 0;
    transition: all 0.3s ease;
}

.scroll-up:hover {
    background-color: #0000e2;
}

.scroll-up.scroll-active {
    bottom: 30px;
    opacity: 1;
}

.scroll-up a {
    color: white;
}

@media (max-width: 475px) {
    .scroll-up.scroll-active{
        right: 30px;
        bottom: 20px;
    }
}
/* Scroll Up */

/* Section artikel */
.artikel-terbaru {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #00008B;
    color: white;
    padding-bottom: 50px;
}
/* Container untuk membungkus semua kartu artikel */
.container-artikel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 30px;
}

/* Desain untuk masing-masing kartu artikel */
.kartu-artikel {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* Efek saat kursor diarahkan ke kartu (Hover) */
.kartu-artikel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Styling Judul Artikel */
.kartu-artikel h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.kartu-artikel h3 a {
  color: #1e293b;
  text-decoration: none;
}

.kartu-artikel h3 a:hover {
  color: #2563eb; /* Warna biru saat di-hover */
}

/* Tanggal Artikel */
.kartu-artikel small {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

/* Tag artikel */
.tags-container {
    margin: 2px 0 20px 0;  
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 28px;
}

.tag-item {
    background-color: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Ringkasan Artikel */

.kartu-artikel p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Tombol "Lihat Semua Artikel" */
.btn-selengkapnya {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-selengkapnya:hover {
  background-color: #1d4ed8;
}

/* BANK ARTIKEL */
/* ================= BANK ARTIKEL ================= */
.bank-artikel {
    padding-block: 40px;
}

.bank-artikel .page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
}

/* Layout Grid Kartu Artikel */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Desain Kartu Artikel (Latar Putih, Bayangan Soft) */
.artikel-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artikel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Teks & Meta Info */
.artikel-date {
    color: #6b7280;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
}

.artikel-card h3 {
    margin-bottom: 12px;
}

.artikel-card h3 a {
    color: #1e1b4b; /* Biru gelap bersih */
    text-decoration: none;
    font-weight: 700;
}

.artikel-card h3 a:hover {
    color: #2563eb; /* Biru terang saat hover */
}

.artikel-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tombol Baca Selengkapnya */
.btn-baca {
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.btn-baca:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Detail Artikel */
/* ================= DETAIL ARTIKEL ================= */
.detail-artikel {
    max-width: 800px; /* Batasi lebar agar mata tidak lelah membaca */
    margin: 40px auto;
    padding: 0 20px;
}

.artikel-header {
    text-align: center;
    margin-bottom: 20px;
}

.artikel-title {
    font-size: 2.2rem;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
}

.artikel-meta {
    font-size: 0.9rem;
    color: #6b7280;
}

.divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 30px 0;
}

/* Penataan Isi Teks Markdown (.Content) */
.artikel-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

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

.artikel-body h3, .artikel-body h2 {
    color: #111827;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* Tombol Kembali */
.artikel-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-kembali {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.btn-kembali:hover {
    text-decoration: underline;
}

/* Visi misi */
/* Box Pembungkus Utama */
.tentang-box .box:nth-child(2) {
    display: flex;
    flex-direction: column; /* Menyusun Judul di atas dan Konten di bawah */
    align-items: center;
    margin-bottom: 80px;
    width: 100%;
}

/* Styling Judul Visi & Misi di Atas */
.tentang-box .vm-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Container Grid 2 Kolom (Visi Kiri, Misi Kanan) */
.tentang-box .visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Membagi 2 kolom sama rata (50% : 50%) */
    gap: 30px;
    width: 100%;
}

/* Kartu Visi & Misi */
.tentang-box .vm-card {
    border: 1px solid white;
    border-radius: 5px;
    padding: 24px;
    transition: 0.3s;
    height: 100%; /* Agar tinggi kedua kartu sejajar otomatis */
}

/* Efek Hover */
.tentang-box .vm-card:hover {
    background-color: white;
    color: #00008B; /* Warna teks berubah saat di-hover */
}

/* Header & Badge */
.tentang-box .vmheader {
    margin-bottom: 16px;
}

.tentang-box .vm-badge {
    background-color: aliceblue;
    color: #00008B;
    padding: 4px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
}

/* Teks Visi & List Misi */
.tentang-box .visi-text,
.tentang-box .misi-list {
    line-height: 1.8;
    margin: 0;
}

.tentang-box .misi-list {
    padding-left: 20px;
}

.tentang-box .misi-list li {
    margin-bottom: 8px;
}

.tentang-box .misi-list li:last-child {
    margin-bottom: 0;
}

/* Responsif Mobile: Otomatis Bertumpuk di Layar Kecil */
@media (max-width: 768px) {
    .tentang-box .visi-misi-grid {
        grid-template-columns: 1fr; /* Jadi 1 kolom untuk HP */
    }
}

/* Header & Badge */
.tentang-box .vmheader {
    margin-bottom: 12px;
}

.tentang-box .vm-badge {
    background-color: aliceblue;
    color: #00008B;
    padding: 4px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
}

/* Teks Visi */
.tentang-box .visi-text {
    line-height: 1.8;
    margin: 0;
}

/* List Misi */
.tentang-box .misi-list {
    padding-left: 20px;
    margin: 0;
}

.tentang-box .misi-list li {
    line-height: 1.8;
    margin-bottom: 8px;
}

.tentang-box .misi-list li:last-child {
    margin-bottom: 0;
}
