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

h1 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

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

@media (max-width: 768px) {
    .container {
        width: 80%;
    }
}

/* Navbar */
.my-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;
}

@media (max-width: 768px) {
    .navbar-box {
        width: 80%;
        margin: 0 auto;
    }

    .menu {
        gap: 25px;
    }
}

/* 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: 30px;
    margin-bottom: -100px;
}

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

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

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

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

/* Tentang */
.tentang {
    color: aliceblue;
    padding: 30px 0 30px 0;
    background-color: #1B4332;
}

.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: 60px;
    align-items: center;
    gap: 50px;
}

.tentang-box .box:nth-child(1) img{
    width: 300px;
    padding: 10px 10px 10px 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;
}

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

    .tentang-box .box:nth-child(1) a {
        display: block;
        margin: 20px auto 0;
        text-align: center;
        width: fit-content;
    }
}

/* Visi misi */

.tentang-box .box:nth-child(2) {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
}


.tentang-box .vm-title {
    text-align: center;
    margin-bottom: 40px;
}

.tentang-box .visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    width: 100%;
}

.tentang-box .vm-card {
    border: 1px solid white;
    border-radius: 5px;
    padding: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;;
    height: 100%; 
}


.tentang-box .vm-card:hover {
    background-color: white;
    color: #1B4332;
}

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

.tentang-box .vm-badge {
    background-color: aliceblue;
    color: #1B4332;
    padding: 4px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.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;
}


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

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

/* 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;
}
/* Tentang */

/* Struktur */
.struktur {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.struktur .struktur-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.struktur-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    text-align: left;
}

.struktur .struktur-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.struktur .struktur-box-inner {
    display: flex;
    height: 100%;
    padding: 30px;
    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;
    gap: 15px;
}

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

.struktur .struktur-body .struktur-box:hover h3 {
    color: #1B4332;
}

.struktur .struktur-body .struktur-box:hover li {
    color: black;
}

.struktur .struktur-body .struktur-box img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    background-color: white;
}

.struktur .struktur-body .struktur-box .struktur-desc {
    margin-left: 20px;
}

.struktur .struktur-body .struktur-box .struktur-desc .list-peran {
    color: #1B4332;
    list-style-type: circle;
}

.struktur .struktur-body .struktur-box li {
    color: #1B4332
}

.struktur .struktur-body .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;
}

.struktur .struktur-body .struktur-box:hover a {
    border-color: #1B4332; 
    color: #1B4332;
}

.struktur .struktur-body .struktur-box a:hover {
    background-color: #1B4332;
    color: white ;
}


.struktur .struktur-box.hidden-card {
    display: none;
}

.struktur .struktur-box.hidden-card.show {
    display: flex;
    flex-direction: column;
    animation: munculHalus 0.5s ease-in-out;
}

#btn-toggle {
    background-color: #1B4332;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    padding: 20px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block; 
    margin: 30px auto 0;
    justify-content: center;
    grid-column: 1 / -1;
}

#btn-toggle:hover{
    background-color: white;
    color: black;
}

@keyframes munculHalus {
    from {
        opacity: 0;
        transform: translateY(20px); /
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .struktur-header, .struktur-body {
        grid-template-columns: 1fr;
        width: 80%;
    }
}

@media (max-width: 768px){
    .struktur-body, .struktur-header{
        grid-template-columns: 1fr;
        width: 80%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .struktur .struktur-header h1 {
        font-size: 30px;
    }

    .struktur .struktur-body .struktur-box {
        width: 100%;
    }

    .struktur .struktur-body .struktur-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        gap: 12px;
    }

   .struktur .struktur-body .struktur-box img {
        width: 80px;
        height: 80px;
    }

    .struktur .struktur-body .struktur-box .struktur-desc {
        margin-left: 0;
        margin-top: 8px;
    }

    .struktur .struktur-body .struktur-box .list-peran {
        text-align: center;
        list-style-position: inside;
        padding-left: 0;
    }

    .struktur .struktur-body .struktur-box .list-peran li {
        list-style: none;
    }
}

@media (max-width: 570px) {
    .struktur .struktur-body .struktur-box {
        grid-template-columns: 1fr;
    }
    .struktur .struktur-body .struktur-box {
        padding: 0 20px;
        margin: 0 auto;
    }
}
/* Struktur */

/* kurikulum */

.kelas {
    padding-block: 5px;
    background-color: #1B4332;
    color: white;
}

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


.kelas .kelas-box {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    margin-top: 30px;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.kelas-box .box {
    border: 1px solid white;
    border-radius: 10px;
    padding: 20px 10px 20px;
    transition: 0.3s;
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.kelas-box .box:hover {
    background-color: white;
    color: #1B4332;
}

.kelas-box .box img {
    width: 130px;            
    height: 160px;           
    object-fit: cover;  
    border-radius: 10px;
    flex-shrink: 0;
}

.kelas-box .box .kelas-desc {
    flex: 1;
    width: 0;
    text-align: left;
}

.kelas-box .kelas-desc p {
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
}



@media (max-width: 768px){
    .kelas .container h1 {
        font-size: 30px;
    }

    .kelas .kelas-box {
        grid-template-columns: 1fr;
        padding: 0 20px 0;
    }

    .kelas-box .box {
       flex-direction: column;
       justify-content: center;
       text-align: center;
    }

    .kelas-box .box .kelas-desc {
        text-align: center;
        width: 100%;
    }
}
/* Kelas */

/* galeri */
.galeri {
    background-color: white;
    width: 80%;
    margin: 0 auto;
}

.galeri h1 {
    text-align: center;
}

.galeri .galeri-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    padding: 10px 20px;
    margin: 0 auto;
}


.galeri .galeri-box .box {
    border: 1px solid white;
    padding: 20px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.galeri .galeri-box img {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.galeri .galeri-box .galeri-desc {
    margin-top: 10px;
}

@media (max-width: 768px){
    .galeri h1 {
        font-size: 30px;
    }

    .galeri .galeri-box {
        grid-template-columns: repeat(1, 1fr);
    }
}

#galeriCarousel {
    max-width: 600px;
    margin: 0 auto;
}

.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

#btn-toggle-2 {
    background-color: #1B4332;
    color: white;
    border: 1px solid black;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    grid-column: 1 / -1;   
    justify-self: center;    
    margin-top: 15px;       
}

#btn-toggle-2:hover {
    background-color: #2d6a4f;
}
/* galeri */



/* index- artikel */
.artikel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1B4332;
    color: white;
    padding-bottom: 50px;
}

.artikel h1 {
    margin-bottom: 20px;
}

/* 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;
}

@media (max-width: 1040px) {
    .artikel h1 {
        font-size: 30px;
    }

    .container-artikel{
        padding-left: 20px;
        padding-right: 20px ;
    }

    .container-artikel {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* 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: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
}

.tag-item:hover {
    background-color: #c7d2fe;
    color: #3730a3;
}

.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;
}

/* ARTIKEL */


/* 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: #1B4332;
    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: #328964;
}

.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 */


/* LIST 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-top: 0px;
}

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

.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 .artikel-body .tags-container {
    margin-top: 10px;
}

.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;
}

/* LIST ARTIKEL */

/* SINGLE ARTIKEL */

.detail-artikel {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.artikel-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    align-items: center;
}

.artikel-title {
    font-size: 2.2rem;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
}

.artikel-meta {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.artikel-meta .tags-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.artikel-header .artikel-meta .tag-item {
    font-size: 0.85rem;
    padding: 8px 15px;
}

.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 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;
}

/* SINGLE ARTIKEL */


/* Daftar Artikel */
.articles-title {
  text-align: center;
  margin-bottom: 20px;
}

.article-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.article-title {
  margin-bottom: 5px;
}

.article-title a {
  text-decoration: none;
  color: #00008B; /* Sesuaikan dengan warna brand kamu */
}

.article-title a:hover {
  text-decoration: underline;
}

.article-date {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 10px;
}

.article-summary {
  color: #333333;
  line-height: 1.5;
}

.empty-articles {
  text-align: center;
  color: #888888;
}

