/* ==== RESET ==== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==== THEME ==== */
:root {
  --bg: #f5f5f5;
  --text: #222;
  --surface: #fff;
  --primary: #0078ff;
}
body.dark {
  --bg: #111;
  --text: #eee;
  --surface: #1c1c1c;
  --primary: #5dd3ff;
}

/* ==== LAYOUT ==== */
.container { width: 90%; max-width: 1000px; margin: auto; padding: 2rem 0; }
header { background: var(--surface); box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.brand { font-size: 1.3rem; font-weight: bold; }
nav ul { display: flex; gap: 1rem; }
nav ul li { padding: .5rem 0; }
.menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ==== HERO ==== */
.hero { text-align: center; padding: 4rem 0; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { margin-bottom: 1.5rem; }

/* ==== BUTTON ==== */
.btn {
  background: var(--primary);
  color: #fff;
  padding: .7rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.btn.ghost { background: transparent; border: 1px solid var(--primary); color: var(--text); }

/* ==== SECTIONS ==== */
.features, .grid { display: grid; gap: 1rem; }
.features { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); padding: 2rem; border-radius: 10px; text-align: center; }

/* ==== FORM ==== */
form { display: grid; gap: 1rem; }
input, textarea {
  padding: .8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}

footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}
footer a {
  color: var(--primary);
}


/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  nav ul { 
    display: none; 
    flex-direction: column; 
    background: var(--surface); 
    position: absolute; 
    top: 60px; 
    right: 20px; 
    padding: 1rem; 
    border-radius: 10px;
  }
  nav ul.show { display: flex; }
  .menu-btn { display: block; }
}

/* ==== KELAS ==== */
#kelas .card:nth-child(1) {
  background: #0078ff; /* biru */
  color: #fff;
}

#kelas .card:nth-child(2) {
  background: #ff8800; /* oranye */
  color: #fff;
}

#kelas .card:nth-child(3) {
  background: #2ecc71; /* hijau */
  color: #fff; 
}
.math {
  background: #0078ff;
  color: #fff;
}

.english {
  background: #ff8800;
  color: #fff;
}

.indonesia {
  background: #2ecc71;
  color: #fff;
}

body {
  background: linear-gradient(to bottom, #b3e5fc, #e1f5fe);
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Jadwal */
#jadwal .card:nth-child(1) {
  background: #5dade2; /* biru lembut */
  color: #fff;
}
#jadwal .card:nth-child(2) {
  background: #ffb74d; /* oranye lembut */
  color: #fff;
}

/* Harga */
#harga .card:nth-child(1) {
  background: #81c784; /* hijau lembut */
  color: #fff;
}
#harga .card:nth-child(2) {
  background: #5dade2; /* biru lembut */
  color: #fff;
}
#harga .card:nth-child(3) {
  background: #ba68c8; /* ungu lembut */
  color: #fff;
}
.hidden {
  display: none;
}

.kategori-buttons {
  margin: 20px 0;
  text-align: center;
}

.kategori-buttons button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.kategori-buttons button:hover {
  background: #005bb5;
}

/* Supaya semua gambar otomatis menyesuaikan layar */
img {
  max-width: 100%;
  height: auto;
}

/* Supaya tombol kategori rapi */
.kategori-buttons {
  text-align: center;
  margin: 20px 0;
}

.kategori-buttons button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background: #007BFF;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.kategori-buttons button:hover {
  background: #0056b3;
}

/* Biar artikel yang hidden tidak kelihatan */
.artikel.hidden {
  display: none;
}

/* --- RESPONSIVE DESIGN --- */

/* Untuk layar kecil (HP) */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  header .nav ul {
    display: block;
    text-align: center;
    padding: 0;
  }

  .features {
    display: block;
  }

  .features .card {
    margin-bottom: 10px;
  }

  .grid {
    display: block;
  }

  .grid .card {
    margin-bottom: 10px;
  }

  footer {
    text-align: center;
    font-size: 14px;
  }
}

/* Untuk layar besar (komputer) */
@media (min-width: 769px) {
  .features {
    display: flex;
    justify-content: space-around;
  }

  .grid {
    display: flex;
    justify-content: space-around;
  }
}
.side-by-side {
  display: flex;
  gap: 20px; /* jarak antar gambar */
  justify-content: center; /* agar rata tengah */
  margin-top: 20px;
}

.side-by-side img {
  max-width: 100%;
  height: auto;
}

.image-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .image-row img {
    width: 48%; /* biar ada jarak */
    max-width: 500px; /* biar gak kelebaran di layar gede */
    height: auto;
    border-radius: 8px;
  }

  @media (max-width: 768px) {
    .image-row img {
      width: 100%; /* di HP otomatis vertikal */
    }
  }
  /* ==== Navbar Custom ==== */
#themeToggle {
  margin-left: 10px;   /* Jarak dari menu */
  white-space: nowrap; /* Supaya teks/ikon tidak pecah ke bawah */
}

/* Supaya tombol ikut rata tengah di mode HP */
@media (max-width: 768px) {
  #themeToggle {
    display: block;
    width: 100%;       /* Biar full lebar */
    margin: 10px 0;    /* Kasih jarak atas-bawah */
  }
}
body {
  font-family: 'Poppins', sans-serif;
}

/* Navbar brand size */
.navbar-brand {
  font-size: 1.5rem; /* default desktop */
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem; /* kecil di HP */
  }
}

