/* File: assets/css/style.css 
   Deskripsi: Gabungan CSS Header, Konten Beranda, dan Footer
*/

/* 1. VARIABEL GLOBAL */
:root {
  --primary-color: #1a5928;
  /* Hijau Madrasah */
  --primary-dark: #11401d;
  /* Hijau Tua */
  --accent-color: #ffc107;
  /* Kuning Emas */
  --bg-light: #f8f9fa;
  /* Abu-abu Sangat Muda */
  --white: #ffffff;
}

/* 2. BASE STYLES */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: #333;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Agar footer tetap di bawah meski konten dikit */
}

/* 3. HELPER CLASSES */
.bg-madrasah {
  background-color: var(--primary-color) !important;
}

.text-madrasah {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

/* 4. NAVBAR STYLES */
.navbar {
  border-bottom: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
}

@media (min-width: 992px) {
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 70%;
  }
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #eab106;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 5. BERANDA / REGISTER WRAPPER */
.register-wrapper {
  flex: 1 0 auto;
  /* Menorong footer ke bawah */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.main-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: #fff;
  max-width: 950px;
  width: 100%;
}

.info-side {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 50px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 12px;
}

.form-side {
  padding: 50px;
}

/* 6. FOOTER STYLES */
.main-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 60px;
  border-top: 5px solid var(--accent-color);
}

.footer-title {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: 0.3s;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.sosmed-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  margin-right: 8px;
  transition: 0.3s;
}

.sosmed-icon:hover {
  background: var(--accent-color);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

.footer-bottom {
  background-color: var(--primary-dark);
  padding: 20px 0;
  margin-top: 50px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

/* SECTION BERANDA */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto;
  border-radius: 2px;
}

.carousel-item img {
  height: 550px;
  width: 100%;
  object-fit: cover;
}

.poster-box {
  height: 450px;
  position: relative;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
}

.img-blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(0.5);
  transform: scale(1.1);
  z-index: 1;
}

.img-main-poster {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 450px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 350px;
  }
}

/* Kotak Program dengan Garis Tegas */
.card-program {
  border: 2px solid #e9ecef !important;
  /* Garis kotak abu-abu muda */
  border-radius: 15px;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

/* Efek saat mouse mendekat (hover) */
.card-program:hover {
  border-color: var(--primary-color) !important;
  /* Garis berubah jadi hijau madrasah */
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Garis pembatas kecil di bawah judul program (opsional) */
.card-program h5 {
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
}

/* STYLE TEAM PIMPINAN */
/* STYLE TEAM PIMPINAN */
.team .member {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.team .member .member-img {
  position: relative;
  overflow: hidden;
}

.team .member .social {
  position: absolute;
  left: 0;
  bottom: 30px;
  right: 0;
  opacity: 0;
  transition: ease-in-out 0.3s;
  text-align: center;
}

.team .member .social a {
  transition: color 0.3s;
  color: #493c3e;
  margin: 0 3px;
  padding-top: 7px;
  border-radius: 50px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  display: inline-block;
  transition: ease-in-out 0.3s;
}

.team .member .social a:hover {
  background: var(--primary-color);
  color: #fff;
}

.team .member:hover .social {
  bottom: 10px;
  opacity: 1;
}

.team .member .member-info {
  padding: 25px 15px;
}

#alur .bg-success {
  transition: all 0.3s ease;
}

#alur .col-lg-3:hover .bg-success {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary-dark) !important;
}

#alur h5 {
  color: var(--primary-dark);
}

/* Custom Styling Tombol & Input */
.btn.btn-madrasah {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border: none;
  transition: all 0.3s ease;
}

.btn.btn-madrasah:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 89, 40, 0.3) !important;
}


.stepper-wrapper {
  scrollbar-width: none;
}

.stepper-wrapper::-webkit-scrollbar {
  display: none;
}

.step-counter {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #6c757d;
  border: 2px solid #dee2e6;
  transition: 0.3s;
}

.stepper-item.active .step-counter {
  background: #1a5928;
  color: #fff;
  border-color: #1a5928;
}

.stepper-item.completed .step-counter {
  background: #e9ecef;
  color: #1a5928;
  border-color: #1a5928;
}

.stepper-item.active .step-name {
  color: #1a5928;
}

.stepper-item {
  min-width: 100px;
  flex: 1;
}

.cursor-pointer {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.cursor-pointer:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.border-success {
  border-color: #198754 !important;
}


bg-success-opacity {
  background-color: rgba(25, 135, 84, 0.1);
}

.bg-danger-opacity {
  background-color: rgba(220, 53, 69, 0.1);
}


/* 1. Container Utama Chat */
.chat-container {
  height: 400px;
  overflow-y: auto;
  background-color: #e5ddd5;
  /* Warna dasar chat */
  /* Background pattern halus agar tidak membosankan */
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-repeat: repeat;
  scroll-behavior: smooth;
}

/* 2. Custom Scrollbar (Biar tipis dan keren) */
.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* 3. Gelembung Chat (Bubble) */
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  margin-bottom: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  display: inline-block;
  clear: both;
}

/* 4. Gelembung SISWA (Kanan) */
.bubble-siswa {
  align-self: flex-end;
  background-color: #dcf8c6;
  /* Hijau WA */
  color: #303030;
  border-radius: 15px 15px 2px 15px;
  margin-left: auto;
  /* Paksa ke kanan */
}

/* 5. Gelembung PANITIA (Kiri) */
.bubble-panitia {
  align-self: flex-start;
  background-color: #ffffff;
  /* Putih */
  color: #303030;
  border-radius: 15px 15px 15px 2px;
  margin-right: auto;
  /* Paksa ke kiri */
}

/* 6. Label Nama & Waktu */
.bubble small.sender-name {
  font-weight: 800;
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bubble-siswa small.sender-name {
  color: #075e54;
}

.bubble-panitia small.sender-name {
  color: #34b7f1;
}

.chat-time {
  font-size: 9px;
  display: block;
  margin-top: 5px;
  opacity: 0.6;
  font-style: italic;
}

/* 7. Efek Animasi (Wajib pakai Animate.css atau logic ini) */
.animate-chat {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. Styling Input Group di Footer Modal */
.modal-footer .input-group {
  transition: all 0.3s ease;
}

.modal-footer .input-group:focus-within {
  border-color: #198754 !important;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}


    /* Hover Card Berita */
    .hover-card {
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        border: 1px solid rgba(0,0,0,0.05) !important;
    }

    .hover-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(5, 150, 105, 0.1) !important;
        border-color: var(--hijau-soft) !important;
    }

    /* Zoom Effect pada Gambar */
    .img-container {
        overflow: hidden;
        position: relative;
    }

    .hover-card img {
        transition: transform 0.6s ease;
    }

    .hover-card:hover img {
        transform: scale(1.1);
    }

    /* Link Baca Selengkapnya */
    .read-more-link {
        letter-spacing: 1px;
        transition: all 0.3s;
    }

    .hover-card:hover .read-more-link {
        color: var(--hijau-hover) !important;
        gap: 12px; /* Memberi jarak lebih saat hover */
    }
