/* ===================================================
   MI YAPPI GEDAD I - Official Theme Stylesheet
   Color Palette: Emerald Green (#047857), Forest (#064e3b), Gold/Amber (#d97706)
   =================================================== */

:root {
  --madrasah-primary: #047857;
  --madrasah-primary-dark: #064e3b;
  --madrasah-primary-light: #10b981;
  --madrasah-secondary: #d97706;
  --madrasah-secondary-light: #fbbf24;
  --madrasah-accent: #0284c7;
  --madrasah-bg-light: #f8fafc;
  --madrasah-text-dark: #0f172a;
  --madrasah-text-muted: #64748b;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--madrasah-text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Top Bar */
.top-bar {
  background-color: var(--madrasah-primary-dark);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--madrasah-secondary);
}

.top-bar a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--madrasah-secondary-light);
}

.running-text-ticker {
  overflow: hidden;
  white-space: nowrap;
}

.running-text-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Navbar */
.navbar-madrasah {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s;
}

.navbar-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--madrasah-primary-dark);
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.brand-text p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--madrasah-secondary);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: #334155 !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.nav-link:hover, .nav-link.active {
  color: var(--madrasah-primary) !important;
  background-color: #ecfdf5;
}

/* RDM Special Nav Link */
.nav-link-rdm {
  background-color: #eff6ff;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe;
  font-weight: 700;
}

.nav-link-rdm:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

/* PPDB Button in Navbar */
.btn-nav-ppdb {
  background: linear-gradient(135deg, var(--madrasah-secondary), #b45309);
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 18px !important;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  animation: pulse-glow 2s infinite;
}

.btn-nav-ppdb:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  transform: translateY(-1px);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.94), rgba(6, 78, 59, 0.96)), url('../img/pattern-islamic.svg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--madrasah-secondary-light);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  font-weight: 400;
}

/* Card Madrasah */
.card-madrasah {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #ffffff;
}

.card-madrasah:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/* Badge & Highlights */
.badge-madrasah {
  background-color: #ecfdf5;
  color: var(--madrasah-primary);
  border: 1px solid #a7f3d0;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Section Header */
.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-tag {
  color: var(--madrasah-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.section-title {
  font-weight: 800;
  color: var(--madrasah-primary-dark);
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--madrasah-secondary);
  border-radius: 2px;
}

/* Floating WA Button */
.btn-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-floating-wa:hover {
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer-madrasah {
  background-color: #064e3b;
  color: #cbd5e1;
  padding-top: 60px;
  padding-bottom: 20px;
  border-top: 4px solid var(--madrasah-secondary);
}

.footer-madrasah h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-madrasah h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--madrasah-secondary);
}

.footer-madrasah a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-madrasah a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85rem;
}

/* PPDB Form Steps & Cards */
.ppdb-step-badge {
  width: 36px;
  height: 36px;
  background-color: var(--madrasah-primary);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 12px;
}

/* Print Styling */
@media print {
  .no-print, .top-bar, .navbar-madrasah, .footer-madrasah, .btn-floating-wa {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    font-size: 12pt;
  }
  .card {
    border: 1px solid #333 !important;
    box-shadow: none !important;
  }
}
