:root {
  --primary: #d61a3c;   /* merah utama */
  --secondary: #fff;    /* putih */
  --hover: #b51230;     /* merah lebih gelap */
  --text-dark: #333;    /* abu tua untuk teks */
}

/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #fdeff2 0%, #f5f8ff 100%);
  line-height: 1.6;
  color: var(--text-dark);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
header {
  display: grid;
  grid-template-columns: auto 1fr auto; /* kiri = logo, tengah = nav, kanan = nav-right */
  align-items: center;
  background: var(--secondary);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo img {
  height: 45px;
}

nav {
  display: flex;
  justify-content: center; /* bener² center */
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* ==== NAV CENTER ==== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  flex: 1; /* ambil ruang tengah */
  display: flex;
  justify-content: center; /* menu ditaruh di tengah */
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center; /* posisikan semua item di tengah */
  align-items: center;
  gap: 20px; /* jarak antar menu */
  margin: 0;
  padding: 0;
}

/* MENU NAV */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

nav ul li {
  position: relative;
}

nav ul li.has-sub {
  position: relative;
}

nav ul li a {
  color: #b22222;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #b22222;
  color: #fff0f5;
  border-radius: 4px;
}

/* SUBMENU */
.submenu {
  display: none;
  position: absolute;
  background: var(--secondary);
  top: 40px;
  left: 0;
  min-width: 180px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  border-radius: 5px;
  z-index: 1000;
}

.submenu li a {
  color: var(--text-dark);
  padding: 10px;
}

.submenu li a:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* Tampilkan submenu saat di-hover ATAU saat memiliki style display:block dari JavaScript */
nav ul li:hover > .submenu,
.submenu[style*="display: block"] {
  display: block !important;
}

/* NESTED SUBMENU */
.submenu .submenu {
  left: 100%;
  top: 0;
  min-width: 200px;
}

/* ================= TRAINING MENU HIERARCHY STYLING ================= */
/* Styling khusus untuk menu Training dengan struktur hierarki */

/* Level 1: Training submenu */
#training-submenu {
  min-width: 220px;
  padding: 8px 0;
}

/* Level 2: Minna no Nihongo item */
#training-submenu > li.has-sub > a {
  font-weight: 600;
  padding-left: 15px;
  position: relative;
}

/* Tambahkan icon arrow untuk Minna no Nihongo */
#training-submenu > li.has-sub > a::before {
  content: "▶";
  position: absolute;
  left: 5px;
  font-size: 0.7rem;
  transition: transform 0.3s;
}

/* Rotate arrow saat submenu terbuka */
#training-submenu > li.has-sub:hover > a::before {
  transform: rotate(90deg);
}

/* Level 3: Minna submenu (Bab 1-50) */
#minna-submenu {
  background: #f9f9f9;
  border-left: 3px solid var(--primary);
  max-height: 400px;
  overflow-y: auto;
  padding: 5px 0;
}

/* Styling untuk item Bab dengan indentasi */
#minna-submenu li a {
  padding-left: 30px !important;
  font-size: 0.95rem;
  position: relative;
}

/* Tambahkan bullet point untuk setiap Bab */
#minna-submenu li a::before {
  content: "├─";
  position: absolute;
  left: 10px;
  color: var(--primary);
  font-weight: bold;
}

/* Bab terakhir menggunakan └─ */
#minna-submenu li:last-child a::before {
  content: "└─";
}

/* Hover effect untuk Bab */
#minna-submenu li a:hover {
  background: var(--primary);
  color: white;
  padding-left: 35px !important;
  transition: all 0.2s ease;
}

/* Active state untuk Bab yang sedang dibuka */
#minna-submenu li a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-left: 4px solid var(--hover);
}

/* Styling untuk Irodori submenu */
#irodori-submenu {
  background: #f9f9f9;
  border-left: 3px solid var(--primary);
  max-height: 400px;
  overflow-y: auto;
  padding: 5px 0;
}

/* Styling untuk item Irodori dengan indentasi */
#irodori-submenu li a {
  padding-left: 30px !important;
  font-size: 0.95rem;
  position: relative;
}

/* Tambahkan bullet point untuk setiap item Irodori */
#irodori-submenu li a::before {
  content: "├─";
  position: absolute;
  left: 10px;
  color: var(--primary);
  font-weight: bold;
}

/* Item terakhir menggunakan └─ */
#irodori-submenu li:last-child a::before {
  content: "└─";
}

/* Hover effect untuk item Irodori */
#irodori-submenu li a:hover {
  background: var(--primary);
  color: white;
  padding-left: 35px !important;
  transition: all 0.2s ease;
}

/* Active state untuk item Irodori yang sedang dibuka */
#irodori-submenu li a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-left: 4px solid var(--hover);
}

/* Custom scrollbar untuk irodori-submenu */
#irodori-submenu::-webkit-scrollbar {
  width: 8px;
}

#irodori-submenu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#irodori-submenu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

#irodori-submenu::-webkit-scrollbar-thumb:hover {
  background: var(--hover);
}

/* Styling untuk Original submenu */
#original-submenu {
  background: #f9f9f9;
  border-left: 3px solid var(--primary);
  max-height: 400px;
  overflow-y: auto;
  padding: 5px 0;
}

/* Styling untuk item Original dengan indentasi */
#original-submenu li a {
  padding-left: 30px !important;
  font-size: 0.95rem;
  position: relative;
}

/* Tambahkan bullet point untuk setiap item Original */
#original-submenu li a::before {
  content: "├─";
  position: absolute;
  left: 10px;
  color: var(--primary);
  font-weight: bold;
}

/* Item terakhir menggunakan └─ */
#original-submenu li:last-child a::before {
  content: "└─";
}

/* Hover effect untuk item Original */
#original-submenu li a:hover {
  background: var(--primary);
  color: white;
  padding-left: 35px !important;
  transition: all 0.2s ease;
}

/* Active state untuk item Original yang sedang dibuka */
#original-submenu li a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-left: 4px solid var(--hover);
}

/* Custom scrollbar untuk original-submenu */
#original-submenu::-webkit-scrollbar {
  width: 8px;
}

#original-submenu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#original-submenu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

#original-submenu::-webkit-scrollbar-thumb:hover {
  background: var(--hover);
}

/* Styling untuk Irodori dan Original YTC */
#training-submenu > li:not(.has-sub) > a {
  padding-left: 15px;
  font-weight: 500;
}

/* Custom scrollbar untuk minna-submenu */
#minna-submenu::-webkit-scrollbar {
  width: 8px;
}

#minna-submenu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#minna-submenu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

#minna-submenu::-webkit-scrollbar-thumb:hover {
  background: var(--hover);
}

/* Separator visual antara Minna no Nihongo dan Irodori/Original YTC */
#training-submenu > li:not(.has-sub) {
  border-top: 1px solid #e0e0e0;
  margin-top: 5px;
  padding-top: 5px;
}

/* Responsive: Untuk mobile, submenu muncul di bawah bukan di samping */
@media (max-width: 768px) {
  .submenu .submenu {
    left: 0;
    top: 100%;
    position: relative;
  }

  #minna-submenu {
    max-height: 300px;
  }

  #irodori-submenu {
    max-height: 300px;
  }

  #original-submenu {
    max-height: 300px;
  }
}

/* PANAH DROPDOWN (sub-toggle) */
.sub-toggle {
  display: none;               /* default tidak muncul */
  background: transparent;
  border: none;
  font-size: 0.75rem;          /* ukuran panah kecil */
  color: var(--primary);
  margin-left: 5px;
  cursor: pointer;
  vertical-align: middle;
}

/* tampilkan panah hanya di mobile */
@media (max-width: 768px) {
  .sub-toggle {
    display: inline-block;
    font-size: 1rem;           /* di mobile lebih besar sedikit */
  }
}


/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-right input {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn {
  padding: 7px 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--secondary);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--hover);
  border-color: var(--hover);
}

/* ================= HERO SLIDESHOW ================= */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease;
}

.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}

.cta-btn:hover {
  background: var(--hover);
}



/* Dots */
.dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}
.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}
.dot.active, .dot:hover { background-color: var(--primary); }

/* Prev/Next buttons for hero */
.hero-slideshow .prev, .hero-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
  z-index: 10;
}
/* ================= PROFILE SINGKAT (di index) ================= */
.profile {
  background: #fff;
  padding: 80px 20px;
}

.profile .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.profile h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.profile p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-top: 15px;
}

/* Tambahan efek biar tidak monoton */
.profile {
  background: linear-gradient(to right, rgba(214,26,60,0.05), rgba(255,255,255,0.9));
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================= PROFILE PAGE ================= */
.profile-section {
  background: linear-gradient(135deg, #f5f8ff 0%, #e8f4fd 100%);
  padding: 80px 20px;
  min-height: 100vh;
}

.profile-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 60px;
  border-left: 3px solid var(--primary);
  padding-left: 30px;
}
.timeline-item {
  margin-bottom: 40px;
  position: relative;
}
.timeline-marker {
  position: absolute;
  left: -45px;
  top: 0;
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-content h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Highlight Cards */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
  margin: 40px 0;
}
.card {
  background: var(--primary);
  color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Keunggulan & Sektor */
.profile-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}
.keunggulan, .sektor {
  flex: 1 1 300px;
}
.keunggulan h3, .sektor h3 {
  color: var(--primary);
  margin-bottom: 15px;
}
.keunggulan ul, .sektor ul {
  list-style: disc;
  margin-left: 20px;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Quote */
.profile-quote {
  margin-top: 40px;
  padding: 20px;
  border-left: 5px solid var(--primary);
  background: #fff;
  font-style: italic;
  color: var(--text-dark);
  text-align: center;
  border-radius: 8px;
}

/* ================= GALERI ================= */
.gallery {
  background: var(--secondary);
  padding: 60px 20px;
  text-align: center;
}

.gallery .container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(214, 26, 60, 0.15);
  background: var(--secondary);
  text-align: center;
}

.gallery h2 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: bold;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.gallery-item {
  position: relative;
  flex: 0 0 30%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  vertical-align: top;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(214, 26, 60, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.gallery-text {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
  font-size: 1.1rem;
  background: rgba(0,0,0,0.4);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Tombol Next & Prev */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
  z-index: 10;
}
.prev:hover, .next:hover { background-color: var(--primary); }
.prev { left: 10px; }
.next { right: 10px; }

/* ================= KAIWA ================= */
#kaiwa {
  background: var(--secondary);
  padding: 60px 20px;
  text-align: center;
}

#kaiwa h2 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: bold;
}

.kaiwa-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.kaiwa-item {
  text-align: center;
  max-width: 400px;
}

.kaiwa-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kaiwa-item a {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--secondary);
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.kaiwa-item a:hover {
  background: var(--hover);
}

/* Responsive for KAIWA */
@media (max-width: 768px) {
  .kaiwa-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ================= CONTACT ================= */
.contact {
  background: #fdeff2;
  padding: 60px 20px;
}
.contact .container {
  max-width: 1100px;
  margin: 0 auto;
}
.contact h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-dark);
}
.contact-info strong {
  color: var(--primary);
  font-size: 1.1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 4px rgba(214, 26, 60, 0.3);
}
.btn-contact {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-contact:hover { background: var(--hover); }

/* ================= FOOTER ================= */
footer {
  background: var(--primary);
  color: var(--secondary);
  text-align: center;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.95rem;
}

/* ================= OUR TEAM ================= */
.team-section {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.team-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

.team-section h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.team-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.team-member {
  background: #fdeff2;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(214, 26, 60, 0.15);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: auto;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(214, 26, 60, 0.3);
}

.team-member img {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-member h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.team-member p {
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  header { flex-wrap: wrap; justify-content: center; text-align: center; }
  nav ul { flex-wrap: wrap; justify-content: center; }
  .nav-right { margin-top: 10px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
  .gallery-item { flex: 0 0 45%; }
}
@media (max-width: 480px) {
  .intro h1 { font-size: 1.5rem; }
  .intro p { font-size: 0.9rem; }
  footer { font-size: 0.8rem; }
}

/* ======== Vision & Mission ======== */
.vision-section {
  position: relative;
  background: url("images/suasanabelajar.png") center/cover no-repeat;
  padding: 120px 30px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  color: #ffffff; /* isi teks hitam pekat */
}

/* Overlay lebih soft (biar gambar tidak terlalu menutupi) */
.vision-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25); /* putih tipis, bukan gelap */
  z-index: 0;
}

.vision-section .container {
  position: relative;
  z-index: 1;
}

/* Judul Utama Visi & Misi */
.vision-section h2 {
  font-size: 3.5rem; /* lebih besar */
  font-weight: 800; /* extra bold */
  margin-bottom: 70px;
  text-shadow:
    2px 2px 10px rgba(233,30,99,0.6), /* glow pink */
    0 0 15px rgba(255,255,255,0.8);   /* glow putih halus */
  letter-spacing: 2px; /* agak renggang biar elegan */
  position: relative;
  display: inline-block;
}

/* Judul Visi */
.visi-box h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #e91e63; /* pink polos */
  font-weight: 700;
  text-transform: uppercase; /* opsional, biar lebih tegas */
}

/* Judul Misi */
.misi-box h3 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #e91e63; /* pink polos */
  font-weight: 700;
  text-transform: uppercase; /* opsional */
}

/* Tambahan garis bawah dekoratif */
.vision-section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff2d6f, #e91e63);
  box-shadow: 0 0 12px rgba(233,30,99,0.8);
}


/* Box Visi */
.visi-box {
  background: rgba(255,255,255,0.95); /* putih hampir solid */
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin-bottom: 60px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.visi-box h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #e91e63; /* pink tegas */
  font-weight: 600;
}

.visi-box p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #111; /* teks isi hitam untuk kontras maksimal */
}

/* Box Misi */
.misi-box h3 {
  font-size: 2rem;
  margin-bottom: 35px;
  color: #ff2d6f; /* pink terang */
  font-weight: 600;
}

.misi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
}

.misi-card {
  background: rgba(255,255,255,0.95); /* hampir putih penuh */
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.misi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.misi-card i {
  font-size: 2.5rem;
  color: #ff4081; /* ikon pink */
  margin-bottom: 15px;
  display: block;
}

.misi-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #111; /* isi jadi hitam biar jelas */
}

.misi-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

/* ================= LANGUAGE TRAINING PAGE ================= */
.language-training {
  background: #fff;
  padding: 60px 20px;
}

.language-training h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.language-training > h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.program-objective {
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.program-objective h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.program-objective p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.program-options h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 40px;
}

.program-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.program-section {
  background: #fdeff2;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  text-align: center;
}

.program-section:hover {
  transform: translateY(-5px);
}

.program-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.program-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.program-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 15px;
  text-align: center;
}

.program-section ul {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  text-align: left;
  display: inline-block;
}

.program-section li {
  margin-bottom: 8px;
}

/* ================= TECHNICAL SKILLS PAGE ================= */
.technical-skills {
  background: #fff;
  padding: 60px 20px;
}

.technical-skills h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.skill-item {
  background: #fdeff2;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item img {
  float: left;
  width: 250px;
  height: 180px;
  border-radius: 8px;
  margin-right: 20px;
}

.skill-item h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.skill-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 15px;
  text-align: justify;
}

.skill-item ul {
  margin-left: 25px;
  margin-bottom: 15px;
  text-align: justify;
}

.skill-item li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* ================= LESSON CONTENT STYLING (for minna pages) ================= */
.lesson-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.lesson-content h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: bold;
}

.lesson-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.lesson-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.lesson-content h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 25px;
  margin-bottom: 10px;
}

.lesson-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.lesson-content ul, .lesson-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.lesson-content li {
  margin-bottom: 10px;
}

.lesson-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-content th, .lesson-content td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.lesson-content th {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

.lesson-content tr:nth-child(even) {
  background-color: #f9f9f9;
}

.lesson-content .callout {
  background-color: #e8f4fd;
  border-left: 5px solid var(--primary);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .exercise {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .exercise h4 {
  color: #856404;
  margin-bottom: 10px;
}

.lesson-content .vocabulary {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .vocabulary h4 {
  color: #0c5460;
  margin-bottom: 10px;
}

.lesson-content .grammar {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .grammar h4 {
  color: #721c24;
  margin-bottom: 10px;
}

.lesson-content .example {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .example h4 {
  color: #155724;
  margin-bottom: 10px;
}

.lesson-content .conversation {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .conversation h4 {
  color: #856404;
  margin-bottom: 10px;
}

.lesson-content .summary {
  background-color: #e2e3e5;
  border: 1px solid #d6d8db;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .summary h4 {
  color: #383d41;
  margin-bottom: 10px;
}

.lesson-content .quiz {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.lesson-content .quiz h4 {
  color: #495057;
  margin-bottom: 10px;
}

.lesson-content .quiz ol {
  margin-left: 0;
  padding-left: 20px;
}

.lesson-content .quiz li {
  margin-bottom: 10px;
}

.lesson-content .answer {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  font-weight: bold;
  color: #0c5460;
}

.lesson-content strong {
  font-weight: bold;
  color: var(--primary);
}

.lesson-content em {
  font-style: italic;
}

.lesson-content .highlight {
  background-color: #ffff99;
  padding: 2px 4px;
  border-radius: 3px;
}

.lesson-content .japanese {
  font-family: 'MS Gothic', 'Hiragino Kaku Gothic Pro', sans-serif;
  font-size: 1.2rem;
}

.lesson-content .romaji {
  font-style: italic;
  color: #666;
}

.lesson-content .translation {
  color: var(--text-dark);
}

/* ================= MINNA11 PAGE SPECIFIC STYLES ================= */
.minna11-page .lesson-content {
  font-size: 1rem;
  background-color: #fff;
  padding: 20px;
  line-height: 1.6;
}

.minna11-page .lesson-content h1 {
  font-size: 2rem;
  color: #000;
  margin-bottom: 20px;
}

.minna11-page .lesson-content h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  color: #000;
}

.minna11-page .lesson-content h3 {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #000;
}

/* ================= FACILITIES PAGE ================= */
.facilities {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  color: var(--text-dark);
}

.facilities h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2.8rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.facility-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 30px;
}

.facility-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.facility-content {
  flex: 1 1 400px;
}

.facility-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.facility-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.facility-image {
  flex: 1 1 300px;
  text-align: center;
}

.facility-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .facility-item {
    flex-direction: column;
  }
  .facility-content, .facility-image {
    flex: 1 1 100%;
  }
  .facility-image img {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* ================= E-LEARNING SECTION ================= */
.e-learning {
  background: #fff;
  padding: 40px 20px;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(214, 26, 60, 0.15);
  text-align: center;
}

.e-learning h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.e-learning img {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.e-learning p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: justify;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= JIAEC COLLABORATION SECTION ================= */
.jiaec-collaboration {
  background: #fff;
  padding: 40px 20px;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(214, 26, 60, 0.15);
  text-align: center;
}

.jiaec-collaboration h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.jiaec-collaboration img {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.jiaec-collaboration p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: justify;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
