/* ===================== */
/* ======= GLOBAL ====== */
/* ===================== */

body {
  padding-top: 80px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('assets/background.png');
  background-repeat: no-repeat;        /* Biar tidak berulang */
  background-size: cover;              /* Menyesuaikan layar */
  background-position: center;         /* Posisi di tengah */
  background-attachment: fixed;        /* Background tetap, hanya konten yang scroll */
  scroll-behavior: smooth;
}


img.rounded.shadow-lg {
  border-radius: 12px;
}

.tittle {
    text-align: center;
    margin: 20px 0;
}

/* ===================== */
/* ======= NAVBAR ====== */
/* ===================== */
.custom-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  background-color: rgba(163, 200, 230, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.custom-nav .nav-link {
  font-size: 1.1rem;
  padding: 10px 30px;
  color: #333;
  transition: color 0.3s;
}

.custom-nav .nav-link:hover,
.custom-nav .nav-link.active {
  color: #0F67B1;
  font-weight: 600;
  border-bottom: 2px solid #0F67B1;
}

.nav-link.active {
  font-weight: bold;
  color: #0F67B1 !important;
}

/* Dropdown muncul saat hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* biar posisi tetap rapi */
}

.nav-item.dropdown .dropdown-menu {
  display: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
}

/* ===================== */
/* ======= HERO ======== */
/* ===================== */

div[style*="background-image"] h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

div[style*="background-image"] p {
  font-size: 1.25rem;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ===================== */
/* ===== CAROUSEL ====== */
/* ===================== */

.carousel-wrapper {
  max-width: 1500px;
  margin: 40px auto;
  padding: 20px 1rem;
}

.carousel-inner img {
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); /* Membuat panah jadi putih */
}

/* Background image section */
#home {
  background-image: url('assets/sekolah6.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  position: relative;
  z-index: 5;
}


/* ==================== */
/* ======= FONT ======= */
/* ==================== */

.text-black {
  color: black;
}
.text-white {
  color: rgb(255, 255, 255);
}

p.text-black {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* ================================ */
/* ======= SEJARAH SINGKAT ========= */
/* ================================ */

/* Background Section */
.bg-baithani {
  background: linear-gradient(135deg, #fdfdfd);
  margin-top: 80px; /* atur sesuai kebutuhan */
  background: none;   /* hapus background */
  margin-top: 80px;   /* tetap kasih jarak dari atas */
}

/* Card Transparan */
.transparent-card {
  backdrop-filter: blur(8px); /* efek kaca */
  background: rgba(255, 255, 255, 0.7); /* transparan */
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Judul */
.transparent-card h4 {
  color: #1d1e1f;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Tombol */
.transparent-card .btn {
  background-color: #3FA2F6;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  color: white;
  transition: background-color 0.1s ease; /* lebih cepat */
}


.transparent-card .btn:hover {
  background-color: #1e2e70;
}

/* Animasi Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================== */
/* ======== INFORMASI ======== */
/* =========================== */
/* Menyesuaikan tinggi gambar agar match dengan tinggi konten PPDB */
.ppdb-flyer {
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Agar kolom flyer sejajar dengan tinggi informasi */
.ppdb-flyer-wrapper {
  display: flex;
  height: 100%;
  align-items: stretch;
}


  /* ===== Informasi PPDB Section ===== */
.ppdb-section {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

.ppdb-section h4,
.ppdb-section h5 {
  color: #2c3e50;
  margin-bottom: 12px;
}

.ppdb-section p,
.ppdb-section ol,
.ppdb-section ul {
  font-size: 1rem;
  color: #333;
}

.ppdb-section hr {
  margin: 20px 0;
}

.ppdb-section a.btn-primary {
  background-color: #3FA2F6;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.ppdb-section a.btn-primary:hover {
  background-color: #1e2e70;
}

/* =========================== */
/* ======== FAQ Area ========= */
/* =========================== */
#faq h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 30px;
  font-weight: bold;
}

#faq .accordion {
  max-width: 800px;
  margin: auto;
}

#faq .accordion-item {
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: none;
}

#faq .accordion-button {
  background-color: #f0f4f8;
  color: #003366;
  font-weight: 500;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#faq .accordion-button:hover {
  background-color: #dbe9f4;
  color: #001f4d;
}

#faq .accordion-body {
  background-color: #fafafa;
  padding: 15px 20px;
}

/* Saat accordion terbuka, panah berputar ke atas */
#faq .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* =========================== */
/* ======== ACTIVITY ========= */
/* =========================== */
#activity {
  padding: 40px 20px;
}

.activity-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.activity-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c4586;
}

.activity-desc {
  font-size: 16px;
  margin-bottom: 30px;
  color: #444;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.activity-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* CSS khusus untuk menyamakan ukuran foto */
.activity-card img {
  width: 100%;        /* penuh lebar card */
  height: 175;      /* tinggi seragam */
  object-fit: cover;  /* crop foto biar proporsional */
  border-radius: 12px;
  margin-bottom: 15px;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.activity-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.activity-card h3 {
  font-size: 20px;
  color: #2c4586;
  margin-bottom: 10px;
}

.activity-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}


/* =========================== */
/* ======== TESTIMONI ======== */
/* =========================== */
.testimonial-box {
  max-width: 850px;
}

.testimonial-card {
  background-color: #fafafa;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0F67B1;
}

.testimonial-message {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.testimonial-message i {
  color: #0F67B1;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    text-align: center;
  }
}

  .testimonial-message {
    margin-top: 1rem;
  }


.testimonial-message {
  margin-left: 20px; /* Geser teks ke kanan */
  color: #000000; /* Ubah warna teks menjadi hitam */
}
.testimonial-message p {
  color: #000000;
}

/* =========================== */
/* ========= KONTAK ========== */
/* =========================== */
.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  background-color: #0f1311;
  color: white;
  border-radius: 0;
  flex-wrap: nowrap;
}

.left-content {
  flex: 1;
}

.left-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.left-content p {
  margin: 0.5rem 0;
  color: #ddd;
}

.left-content a {
  color: #ffffff;
  text-decoration: none;
}

.contact-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #166934;
  color: #fff;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background-color: #284cbd;
}

.right-map {
  flex: 1;
  max-width: 500px;
}

.right-map iframe {
  width: 100%;
  height: 300px;
  border: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

/* ✅ Tambahan Media Query untuk Mobile */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .left-content,
  .right-map {
    max-width: 100%;
  }

  .contact-button {
    width: 100%;
    padding: 0.8rem;
  }

  .right-map iframe {
    height: 250px;
  }
}

/* =========================== */
/* ========= FOOTER ========== */
/* =========================== */
footer {
  background-color: #0F67B1; /* Lebih gelap dari bg-dark agar elegan */
  color: #f1f1f1;
  font-size: 15px;
  line-height: 1.7;
}

footer h5 {
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

footer p, footer a {
  color: #dcdcdc;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer img {
  width: 60px;
}

footer .bi {
  vertical-align: middle;
  margin-right: 6px;
}

footer .social-icons a {
  color: #dcdcdc;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #ffffff;
}

/* Batas garis di atas copyright */
footer hr {
  border-top: 1px solid #444;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Responsive padding dan text align */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer .text-md-start,
  footer .text-md-center,
  footer .text-md-end {
    text-align: center !important;
  }

  footer .social-icons {
    justify-content: center !important;
  }
}


/* =========================== */
/* ========= SEJARAH ========= */
/* =========================== */

.history-content {
  display: flex;
  flex-direction: column; /* default untuk mobile */
  gap: 20px; /* jarak antara gambar dan teks */
  align-items: center;
}

.history-section {
  padding: 60px 0;
}

.sejarah-card {
  border-radius: 16px;
  padding: 1.5rem 2rem;   /* tambah padding kanan-kiri biar isi lebih lega */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
  max-width: 900px;      /* tambah lebar maksimal (default biasanya 700px) */
}

.sejarah-card:hover {
  transform: translateY(-4px);
}

.history-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Efek hover di desktop */
.history-img img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Teks sejarah */
.history-text {
  text-align: justify;
  line-height: 1.6;
  max-width: 700px;
  padding: 0 15px;
}

/* ===== 3 Card Section ===== */
.three-card-section {
  margin: 60px auto;
  padding: 20px;
}

.three-card-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr; /* card 1 lebih lebar lagi */
  gap: 10px; /* jarak antar card diperkecil */
  justify-items: stretch; /* biar semua card full area kolomnya */
  align-items: start;
}


/* Style umum */
.three-card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 20px;
  width: 100%;           /* biar ikut proporsi grid */
  max-width: 100%;       /* jangan kunci di 320px */
}

.three-card h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #2c4586;
}

.three-card p {
  font-size: 14px;
  color: #444;
  margin: 0 0 8px 0;
  text-align: justify;
}

/* Card 1: Makna Logo */
.three-card-makna {
  text-align: left;
}

/* Card 2: Foto */
.three-card-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; 
  box-shadow: none;        
  padding: 0;              
}

.three-card-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Card 3: Misi / Motto */
.three-card-misi {
  text-align: center;
  width: auto;
  max-width: 320px;
  padding: 15px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .three-card-container {
    grid-template-columns: 1fr; /* jadi 1 kolom di HP */
  }
}


/* Mode mobile: kasih jarak antara foto dan card */
@media (max-width: 767px) {
  .sejarah-card {
    margin-top: 20px; /* sesuaikan dengan kebutuhan */
  }
}

/* Mode desktop: gambar dan teks sejajar */
@media (min-width: 768px) {
  .history-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    margin-top: 0; /* di desktop tidak perlu jarak tambahan */
  }
  .history-img img {
    max-height: 350px;
  }
  .history-text {
    flex: 1;
    padding: 0;
  }
}

    .dropdown-item.active {
  background-color: #0d6efd;
  color: #fff !important;
}

/* =========================== */
/* ===== EKSTRAKURIKULER ===== */
/* =========================== */

.extracurricular {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Judul Section */
.section__title {
  text-align: center;
  margin-bottom: 60px;
}

.section__title h2 {
  font-size: 3rem;
  font-weight: bold;
  color: #0F67B1;
  margin-bottom: 10px;
}

.section__title h3 {
  font-size: 1.5rem;
  color: #555;
}

.section__title p {
  font-size: 1rem;
  max-width: 700px;
  margin: auto;
  color: #777;
}

/* Wrapper */
.extracurricular-wrapper {
  position: relative;
  width: 100%;
  margin: auto;
  padding: 0 30px;
}

/* Timeline Desktop */
.timeline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom, transparent, #00509e, transparent);
  box-shadow: 0 -20px 30px rgba(0, 0, 0, 0.25),
              0 20px 30px rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.timeline__point {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.75rem;
  height: 1.75rem;
  border: 5px solid #5ea5d7;
  padding: 0.5rem;
  background: #0F67B1;
  border-radius: 50%;
  z-index: 99;
}

/* Konten */
.extracurricular-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

/* Animasi awal */
.extracurricular-image,
.extracurricular-text {
  width: 45%;
  opacity: 0;
  transition: all 0.8s ease;
}

.extracurricular-image.from-left {
  transform: translateX(-50px);
}


/* Saat terlihat */
.extracurricular-image.show,
.extracurricular-text.show {
  opacity: 1;
  transform: translateX(0);
}

/* Gambar */
.extracurricular-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Teks */
.extracurricular-text {
  padding: 20px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.extracurricular-text h3 {
  color: #0F67B1;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.extracurricular-text p {
  color: #555;
  line-height: 1.6;
}

/* ✅ RESPONSIVE: Mobile */
@media screen and (max-width: 768px) {
  .extracurricular-wrapper {
    padding: 0 15px;
  }

  .extracurricular-content {
    flex-direction: column;
    text-align: center;
    margin-bottom: 80px;
  }

  .extracurricular-image,
  .extracurricular-text {
    width: 100%;
    transform: translateY(30px); /* animasi dari bawah */
  }

  /* Saat terlihat */
  .extracurricular-image.show,
  .extracurricular-text.show {
    transform: translateY(0);
  }

  .extracurricular-image {
    margin-bottom: 20px;
  }

  .timeline,
  .timeline__point {
    display: none;
  }
}

/* ===================== */
/* ======= VISI ======== */
/* ===================== */

.header {
  background-color: #0F67B1;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 2.5rem;
}

/* Container utama */
.visi-misi-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* Visi dan Misi Section */
.visi {
  background-color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.misi {
  background-color: #96C9F4;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.visi h2, .misi h2 {
  color: #0F67B1;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.misi ul {
  padding-left: 1.5rem;
}

.misi ul li {
  margin-bottom: 0.75rem;
  position: relative;
}

.misi ul li::before {
  content: "✓";
  color: #0F67B1;
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

.tujuan {
  background-color: #ffffff;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tujuan h2 {
  color: #0F67B1;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.tujuan ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.tujuan ul li {
  margin-bottom: 0.75rem;
  position: relative;
}

.tujuan ul li::before {
  content: "✓";
  color: #0F67B1;
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

/* Card Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Tetap untuk semua info-card */
.info-card {
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

/* Card ganjil (1, 3, 5, dst): putih */
.card-container .info-card:nth-child(odd) {
  background-color: #96C9F4;
}

/* Card genap (2, 4, 6, dst): biru muda */
.card-container .info-card:nth-child(even) {
  background-color: #ffffff; /* kamu juga bisa coba: #f0f9ff atau #f7fbff */
}

/* (Opsional) Warna teks jika background-nya lebih terang */
.card-container .info-card:nth-child(even) h3,
.card-container .info-card:nth-child(even) p {
  color: #000000;
}

/* ===================== */
/* ======= GURU ======== */
/* ===================== */
.guru-container {
  margin: 1rem auto 2rem auto; /* atas 1rem, bawah 2rem */
  padding: 0 1rem;
}

.guru-container .row:first-child {
  margin-top: 0;        /* biar nempel ke judul */
  margin-bottom: 1.5rem; /* jarak bawah ke barisan guru */
}

.guru-card {
  position: relative;
  width: 100%;
  max-width: 200px;   /* sebelumnya 250px → diperkecil */
  height: 260px;      /* sebelumnya 320px → diperkecil */
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.guru-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.guru-card:hover img {
  transform: scale(1.05);
}

.guru-info {
  position: absolute;
  bottom: -70px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  transition: bottom 0.4s ease;
}

.guru-card:hover .guru-info {
  bottom: 0;
}

.guru-name {
  font-weight: bold;
  font-size: 16px;
}

.guru-subject {
  font-size: 14px;
  font-weight: normal;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .guru-card {
    height: 280px;
  }

  .guru-name {
    font-size: 14px;
  }

  .guru-subject {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .guru-card {
    height: 220px; /* lebih pendek biar kompak */
    max-width: 180px; /* batasi lebar maksimal kartu */
  }

  .guru-card img {
    max-width: 100%;
    height: auto; /* biar proporsional */
  }

  .guru-info {
    padding: 8px 0;
  }

  .guru-name {
    font-size: 13px;
  }

  .guru-subject {
    font-size: 12px;
  }
}


/* ===================== */
/* ===== PRESTASI ====== */
/* ===================== */
.news-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;

  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;

  justify-items: center;   /* ✅ bikin setiap card center */
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;

  max-width: 900px;  /* perbesar dari 700px -> 900px */
  width: 100%;
  min-height: 300px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  position: relative;
  overflow: hidden; /* penting agar efek zoom tidak keluar dari card */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-image img {
  width: 100%;        /* penuh sesuai card */
  height: 350px;      /* bisa diubah sesuai selera */
  object-fit: cover;
  transition: transform 0.4s ease, border-radius 0.4s ease;
}

/* Efek hover di bagian gambar */
.card:hover .card-image img {
  transform: scale(1.05) rotate(1deg);
  border-radius: 16px;
}

.date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #3FA2F6;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}

.date-badge .day {
  display: block;
  font-size: 18px;
}

.date-badge .month {
  font-size: 14px;
}

.card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.card-content p {
  flex: 1;
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background-color: #3FA2F6;
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0F67B1;
}

.extra-article {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: #f7f7f7;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.extra-article.show {
  max-height: 500px;
  padding: 10px;
}

.extra-content p {
  text-align: justify;   /* teks rata kiri-kanan */
  line-height: 1.6;      /* spasi antar baris lebih lega */
  margin: 0;             /* hilangkan margin default */
}

/* Laptop / layar sedang */
@media (max-width: 1200px) {
  .news-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .news-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .news-section {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/* ====== SARANA ======= */
/* ===================== */

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 10px;
}

.card {
  width: 100%;
  max-width: 250px; /* biar gak terlalu melebar */
  background: white;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 8px solid white; /* frame polaroid */
  border-radius: 8px;
}

.card-body {
  padding: 8px 0 0;
  text-align: center;
}

.card-body h3 {
  font-size: 1rem;
  margin: 8px 0;
  color: #222;
}

.card-text {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

.tittle-sarana {
  text-align: center;
  margin-top: 100px; /* atur sesuai tinggi navbar */
  margin-bottom: 40px;
}

/* ===== Responsif ===== */

/* HP */
@media (max-width: 576px) {
  .card img {
    height: 140px;
  }
  .card-body h3 {
    font-size: 0.95rem;
  }
  .card-text {
    font-size: 0.85rem;
  }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {
  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mini Laptop (<= 1366px) */
@media (min-width: 992px) and (max-width: 1366px) {
  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ===================== */
/* ======= VIDEO ======= */
/* ===================== */
    /* Styling iframe YouTube saja */
iframe[title="Video Profil"],
iframe[src*="youtube.com/embed"] {
  display: block;
  /* responsif & center */
  width: min(100%, 800px) !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 32px auto;

  /* look & feel */
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Tambahan untuk layar kecil */
@media (max-width: 768px) {
  iframe[title="Video Profil"],
  iframe[src*="youtube.com/embed"] {
    width: 92vw !important;
  }
}