/* =======================================================
   SMK YADIKA 8 - RESPONSIVE GLOBAL STYLES
   Dibuat agar semua halaman rapi di HP, tablet & desktop
   ======================================================= */
/* =========================
   HOTFIX: kembalikan background
   dan scope jumbotron gradient
   ========================= */

/* restore body background (override rule yang menyebabkan halaman biru) */
body {
  background-color: #fafafa !important;
}

/* jika template lain men-set .jumbotron, batalkan background-nya di sini */
.jumbotron {
  background: none !important;
  color: inherit !important;
  padding: 0 !important; /* biar tidak mengubah padding yang tidak diinginkan */
}

/* Buat kelas baru untuk jumbotron header yang ingin diberi gradien
   Gunakan kelas ini hanya pada elemen header/hero yang memang ingin biru */
.site-jumbotron {
  background: linear-gradient(to right, #002b5b, #004c8c);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 0;
}

/* jika ada aturan lain yang memaksa isi menjadi putih, override secukupnya */
.site-jumbotron h1,
.site-jumbotron h2,
.site-jumbotron h3 {
  color: #ffffff;
}


/* --- Gaya umum --- */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #fafafa;
  color: #222;
  overflow-x: hidden;
}

section, .container {
  margin-bottom: 40px;
}

/* --- Gambar otomatis menyesuaikan layar --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Heading dan paragraf --- */
h1, h2, h3, h4, h5 {
  color: #002b5b;
  font-weight: 600;
}

p {
  font-size: 15px;
  color: #333;
  text-align: justify;
}

/* --- Navigasi --- */
.navbar {
  background-color: #002b5b !important;
  border: none;
}

.navbar-brand img {
  height: 45px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

.navbar-brand span {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  vertical-align: middle;
}

.navbar-nav > li > a {
  color: white !important;
  font-weight: 500;
}

.navbar-nav > li > a:hover {
  color: #ffda47 !important;
}

/* --- Footer --- */
.w3layouts_copy_right {
  background: #002b5b;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

.w3layouts_copy_right a {
  color: #ffda47;
  text-decoration: none;
}

/* --- Halaman Struktur & Guru --- */
.struktur-grid, .guru-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.struktur-card, .guru-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 250px;
  text-align: center;
  padding: 15px;
  transition: 0.3s;
}

.struktur-card:hover, .guru-card:hover {
  transform: translateY(-5px);
}

/* --- Judul Halaman --- */
.jumbotron {
  background: linear-gradient(to right, #002b5b, #004c8c);
  color: white;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 0;
}

/* --- Responsif Mobile --- */
@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: 20px !important;
  }

  p {
    font-size: 14px;
  }

  .struktur-card, .guru-card {
    width: 80%;
  }

  .navbar-brand span {
    font-size: 18px;
  }

  .container {
    padding: 0 15px;
  }

  .jumbotron {
    padding: 30px 15px;
  }
}

/* --- Responsif ekstra kecil (HP mini) --- */
@media (max-width: 480px) {
  .navbar-brand img {
    height: 35px;
  }

  .navbar-brand span {
    font-size: 16px;
  }

  .struktur-card, .guru-card {
    width: 90%;
  }
}
/* ==========================================================
   RESPONSIVE FIX TAMBAHAN - SMK YADIKA 8 (2025)
   ========================================================== */

/* --- SLIDER --- */
.carousel-inner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-inner img {
    height: 220px !important; /* biar pas di HP, tidak kepanjangan */
  }
}

/* --- SAMBUTAN KEPALA SEKOLAH --- */
.kepala-sekolah {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.kepala-sekolah img {
  max-width: 250px;
  height: auto;
  border-radius: 15px;
  border: 4px solid #FFD700;
}

@media (max-width: 768px) {
  .kepala-sekolah {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .kepala-sekolah img {
    width: 70%;
    margin-bottom: 15px;
  }

  .kepala-sekolah h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .kepala-sekolah p {
    font-size: 14px;
    text-align: justify;
  }
}

/* --- EVENT SEKOLAH --- */
.thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .thumbnail img {
    height: 160px;
  }

  .thumbnail h3 {
    font-size: 16px;
  }
}

/* --- FOOTER --- */
footer {
  background-color: #FFD700 !important;
  color: #00235B;
  text-align: center;
  padding: 20px 0;
}

footer i {
  font-size: 22px;
  margin: 0 15px;
  transition: 0.3s;
}

footer i:hover {
  color: #000;
  transform: scale(1.2);
}

@media (max-width: 600px) {
  footer {
    font-size: 13px;
  }
  footer i {
    font-size: 18px;
    margin: 0 10px;
  }
}
