
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Top */
.header-top {
  background: #8B0000;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.header-top .container {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  margin-right: 15px;
}

.school-name h1 {
  font-size: 20px;
  font-weight: 600;
}

.school-name p {
  font-size: 13px;
}

/* Header */
.header-top {
    background: #8B0000;
    transition: all 0.3s ease;
}
.header-top .logo {
    height: 70px;
}

/* Sticky Navbar Modern */
.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    background-color: #fff;
}
.sticky-navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #000;
    padding: 10px 18px; /* beri jarak lebih longgar */
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: #d4af37; /* emas saat hover */
}
.navbar-nav .active > .nav-link {
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
}

/* Dropdown - muncul saat hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* hilangkan jarak loncat */
    animation: fadeDown 0.2s ease-in-out;
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 10px;
    padding: 8px 0;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dropdown-item {
    padding: 8px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover {
    background: #fff7e0; /* kuning lembut */
    color: #d4af37; /* emas */
}

/* Auth Icon */
.user-icon svg {
    display: block;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}
.user-icon:hover svg {
    color: #d4af37;
    transform: scale(1.1);
}


/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 500px; /* default desktop */
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* gambar menutupi area */
}

/* Default Desktop */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 80%;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-text p {
  margin-top: 8px;
  font-size: 1rem;
}

/* Tablet */
@media (max-width: 992px) {
  .hero {
    height: 400px;
  }
  .hero-text h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .hero-text p {
    font-size: 0.9rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero {
    height: 300px;
  }
  .hero-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* tetap center */
    padding: 8px 12px;
    max-width: 95%; /* lebih lega */
  }
  .hero-text h2 {
    font-size: 1rem;
    line-height: 1.3;
    word-wrap: break-word; /* supaya teks turun baris */
  }
  .hero-text p {
    font-size: 0.8rem;
  }
}


/* Berita */
.card-img-top {
    height: 250px; /* atau sesuaikan kebutuhan */
    object-fit: cover;
    width: 100%;
}
.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.footer {
    background: #8B0000;
    color: white;
}

.footer-logo {
    max-width: 80px;
}

.footer h5 {
    margin-bottom: 10px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    color: #FFD700; /* kuning emas saat hover */
}

.ratio iframe {
    border: 0;
}

/* Style item sosial media vertikal */
.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-item:hover .social-link {
    background: gold;
    color: #8B0000;
    transform: translateY(-3px) scale(1.1);
}

.social-item:hover .social-text {
    color: #FFD700;
}

.social-text {
    font-size: 1rem;
}

/* Lingkaran ikon */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s ease;
}

/* Copyright footer full width */
.footer .copyright {
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 0;
    width: 100vw; /* bikin full layar */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


.list-guru {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  padding: 0 10px;
}

/* Baris yang berisi 2 guru */
.guru-row {
  display: flex;
  gap: 40px;
}

/* Item guru, foto kiri, info kanan */
.guru-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1; /* agar 2 guru berbagi ruang sama */
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.guru-item .foto img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.guru-item .info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}

.guru-item .info p {
  margin: 3px 0;
  font-size: 14px;
  color: #222;
}

.alert {
  background: #fdd;
  color: #a00;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}/*/* === Container Umum === */
.sejarah {
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  padding: 80px 20px;
  font-family: 'Poppins', sans-serif;
  color: #222;
}

.sejah {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* === Judul === */
.sejarah h2 {
  font-size: 36px;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
}

.sejarah h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #8B0000;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* === Paragraf === */
.sejarah p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 22px;
  text-align: justify;
  letter-spacing: 0.4px;
  color: #333;
}

/* === Slideshow === */
.slideshow-sejah {
  position: relative;
  max-width: 850px;
  margin: 0 auto 50px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slideshow-sejah img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 1s ease-in-out, transform 0.6s ease;
  border-radius: 16px;
}

.slideshow-sejah img:hover {
  transform: scale(1.03);
}

.slideshow-sejah::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 5;
}

/* === Sembunyikan Panah & Titik === */
.arrow,
.dots-container {
  display: none !important;
}

/* === Responsive === */
@media (max-width: 768px) {
  .sejarah h2 {
    font-size: 26px;
  }

  .sejarah p {
    font-size: 15.5px;
  }

  .slideshow-sejah {
    margin-bottom: 40px;
  }
}

/* ===== Login Box Style ===== */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background-color: #ffffff; /* latar belakang halaman login */
}

.login-box {
  background: #f0f0f0;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  position: relative;
}

.login-box h3 {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

.login-box .form-group {
    position: relative;
    margin-bottom: 20px;
}

.login-box .form-group i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #999;
}

.login-box input.form-control {
    padding-left: 35px;
    height: 45px;
    width: 100%;
    box-sizing: border-box;
}

.login-box button {
    background-color: #8B0000;
    color: white;
    font-weight: bold;
    border: none;
    height: 45px;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.login-box button:hover {
    background-color: #a30000;
    cursor: pointer;
}






