/* 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);
}

/* ==========================================================================
   CSS MASTER THEME: BLUE MADRASAH (MTsN 1 BANDAR LAMPUNG)
   Developed by: Kak Yusuf
   ========================================================================== */

:root {
  --biru-primer: #1e3c72;
  --biru-sekunder: #2a5298;
  --aksen-kuning: #ffc107;
  --biru-soft: rgba(30, 60, 114, 0.1);
  --putih: #ffffff;
}

/* 1. Global & Navbar Styles */
.bg-madrasah {
  background: linear-gradient(135deg, var(--biru-primer) 0%, var(--biru-sekunder) 100%) !important;
}

.navbar {
  transition: all 0.3s ease;
  padding: 12px 0;
}

.nav-link {
  font-weight: 500;
  margin: 0 5px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--aksen-kuning);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 2. Hero & Carousel Styles */
#heroCarousel .carousel-item {
  height: 80vh;
  min-height: 400px;
  background: #000;
  overflow: hidden;
}

#heroCarousel img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  opacity: 0.7;
  transition: transform 10s ease;
}

#heroCarousel .carousel-item.active img {
  transform: scale(1.15);
}

.carousel-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

/* 3. Program Card Visual */
.card-visual {
  border-radius: 20px;
  overflow: visible;
  transition: all 0.3s ease;
  background: var(--putih);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-visual:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(30, 60, 114, 0.15);
}

.card-visual-header {
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
  position: relative;
  border-radius: 20px 20px 0 0;
}

.bg-pattern-ipa {
  background-color: #e3f2fd;
  background-image: radial-gradient(var(--biru-sekunder) 0.5px, transparent 0.5px), radial-gradient(var(--biru-sekunder) 0.5px, #e3f2fd 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.bg-pattern-ips {
  background-color: #e8f5e9;
  background-image: linear-gradient(135deg, var(--biru-primer) 25%, transparent 25%), linear-gradient(225deg, var(--biru-primer) 25%, transparent 25%);
  background-size: 20px 20px;
}

.bg-pattern-agama {
  background-color: #fff8e1;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #fff8e1 10px), repeating-linear-gradient(var(--aksen-kuning), var(--aksen-kuning));
}

.icon-wrapper {
  width: 85px;
  height: 85px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -42px;
  z-index: 5;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card-visual:hover .icon-wrapper {
  transform: rotateY(180deg);
  color: var(--biru-primer);
}

.badge-pendaftar {
  position: absolute;
  top: 15px;
  right: -10px;
  background: #dc3545;
  color: white;
  padding: 5px 15px;
  border-radius: 8px;
  z-index: 10;
  transform: rotate(5deg);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* 4. Statistics & Steps Section */
.stat-section {
  background: linear-gradient(135deg, var(--biru-primer) 0%, var(--biru-sekunder) 100%);
  overflow: hidden;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.step-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--biru-primer) !important;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border: 5px solid #f8f9fa;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-line {
  background: repeating-linear-gradient(to right, var(--biru-primer) 0, var(--biru-primer) 5px, transparent 5px, transparent 10px) !important;
}

/* 5. Berita & Member (Pimpinan) Styles */
.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(30, 60, 114, 0.15) !important;
  border-color: var(--biru-soft) !important;
}

.member-info {
  border-top: 4px solid var(--biru-primer) !important;
  transition: all 0.4s ease;
}

.member:hover .member-info {
  background: var(--biru-primer) !important;
  color: var(--putih) !important;
}

.member:hover .member-info h4,
.member:hover .member-info span {
  color: var(--putih) !important;
}

.member .social {
  background: rgba(30, 60, 114, 0.9) !important;
}

/* 6. Footer Styles (SINKRON DENGAN HEADER) */
.main-footer {
  background: linear-gradient(135deg, var(--biru-primer) 0%, var(--biru-sekunder) 100%) !important;
  color: var(--putih);
  padding-top: 60px;
  position: relative;
}

.footer-title::after {
  background-color: var(--aksen-kuning) !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--aksen-kuning) !important;
  padding-left: 8px;
}

.sosmed-icon:hover {
  background: var(--aksen-kuning) !important;
  color: var(--biru-primer) !important;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2) !important;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item i {
  color: var(--aksen-kuning) !important;
}

.card-nilai {
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  background: #ffffff;
}

.card-nilai:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.nilai-box {
  width: 100%;
  padding: 12px 5px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.nilai-value {
  font-weight: 800;
  font-size: 1.2rem;
  color: #1e293b;
  display: block;
}

.nilai-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-premium {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: white;
  border-radius: 24px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-contrast {
  background: #ffffff;
  color: #2563eb !important;
  border: none;
  transition: all 0.3s;
}

.btn-contrast:hover {
  background: #f8fafc;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}