/**
 * ====================================================================
 * CMS SEKOLAH MUHAMMADIYAH — MAIN STYLESHEET
 * Komprehensif, Modern, Responsif, dan Aksesibel
 * ====================================================================
 */

@import url('variables.css');
@import url('muhammadiyah-theme.css');

/* --------------------------------------------------------------------
   1. RESET & DASAR
-------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-sans);
  color: var(--muh-text-main);
  background-color: var(--muh-bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--muh-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--muh-green-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--muh-green-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------
   2. TOPBAR INFORMASI
-------------------------------------------------------------------- */
.topbar-muh {
  background-color: var(--muh-green-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.topbar-muh a {
  color: rgba(255, 255, 255, 0.88);
  transition: var(--transition-fast);
}

.topbar-muh a:hover {
  color: var(--muh-gold-primary);
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
}

.topbar-item i {
  color: var(--muh-gold-primary);
  font-size: 0.95rem;
}

.social-topbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  margin-left: 6px;
  font-size: 0.8rem;
}

.social-topbar a:hover {
  background: var(--muh-gold-primary);
  color: var(--muh-dark);
}

/* --------------------------------------------------------------------
   3. HEADER & NAVIGASI UTAMA
-------------------------------------------------------------------- */
.navbar-muh {
  background: #FFFFFF;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  z-index: 1030;
}

.navbar-muh.sticky-nav {
  position: sticky;
  top: 0;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-muh-official,
.logo-school-official {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

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

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--muh-green-dark);
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.76rem;
  color: var(--muh-text-muted);
  margin: 0;
  font-weight: 500;
}

.navbar-nav .nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muh-dark);
  padding: 10px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--muh-green-primary);
  background-color: var(--muh-green-light);
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
  border: 1px solid var(--muh-border-color);
  border-top: 3px solid var(--muh-green-primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 220px;
}

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 18px;
  color: var(--muh-dark);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--muh-green-subtle);
  color: var(--muh-green-primary);
  padding-left: 22px;
}

/* --------------------------------------------------------------------
   4. HERO BANNER & STATS
-------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: var(--muh-hero-gradient);
  color: #FFFFFF;
  padding: 90px 0 130px;
  overflow: hidden;
}

.hero-overlay-watermark {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background-image: url('../images/logo-muhammadiyah.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--muh-gold-primary);
  color: var(--muh-gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--muh-gold-primary);
}

.hero-lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero-visual-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--muh-gold-primary);
  color: var(--muh-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Kotak Statistik Cepat (Overlapping Hero) */
.stats-bar-wrapper {
  margin-top: -65px;
  position: relative;
  z-index: 20;
}

.stats-card-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--muh-border-color);
  padding: 28px 24px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--muh-green-light);
  color: var(--muh-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--muh-dark);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* --------------------------------------------------------------------
   5. SECTIONS UMUM & JUDUL
-------------------------------------------------------------------- */
.section-padding {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--muh-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muh-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------
   6. SAMBUTAN KEPALA SEKOLAH
-------------------------------------------------------------------- */
.principal-image-wrap {
  position: relative;
  text-align: center;
  display: inline-block;
}

.principal-photo-portrait {
  width: 280px;
  height: 380px;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
}

.principal-image-wrap:hover .principal-photo-portrait {
  transform: scale(1.03);
}

.principal-badge-nbm {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--muh-green-dark);
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--muh-gold-primary);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Direktori Guru & Tenaga Kependidikan Slider (1 Kolom x 1 Baris) */
.staff-directory-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.staff-directory-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-color: var(--muh-border-color) !important;
  background: #FFFFFF;
}

.staff-directory-card:hover {
  border-color: var(--muh-gold-primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.staff-photo-wrap {
  width: 100px;
  height: 100px;
}

.staff-photo-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--muh-gold-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.staff-directory-card:hover .staff-photo-img {
  transform: scale(1.04);
}

.staff-photo-placeholder {
  width: 100px;
  height: 100px;
  background: var(--muh-green-light);
  border: 3px solid var(--muh-green-primary);
}

.btn-staff-nav {
  width: 38px;
  height: 38px;
  color: var(--muh-green-primary);
  border-color: var(--muh-border-color);
  background: #FFFFFF;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-staff-nav:hover {
  background: var(--muh-green-primary);
  color: #FFFFFF;
  border-color: var(--muh-green-primary);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------
   7. PROGRAM UNGGULAN
-------------------------------------------------------------------- */
.program-card {
  height: 100%;
  border-radius: var(--radius-md, 16px);
  background: #FFFFFF;
  border: 1px solid var(--muh-border-color);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--muh-gold-primary);
}

.program-thumb-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #052B17 0%, #007A3D 100%);
  display: block;
}

.program-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover .program-thumb-img {
  transform: scale(1.06);
}

.program-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #052B17 0%, #007A3D 100%);
  position: relative;
}

.program-badge-floating {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 43, 23, 0.88);
  backdrop-filter: blur(6px);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.program-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--muh-green-light);
  color: var(--muh-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.program-card:hover .program-icon-wrap {
  background: var(--muh-gold-gradient);
  color: var(--muh-dark);
}

.program-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--muh-green-light);
  color: var(--muh-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.program-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muh-green-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: inline-block;
}

.btn-program-detail {
  color: var(--muh-green-primary);
  transition: all 0.2s ease;
  font-size: 0.92rem;
}

.btn-program-detail:hover {
  color: var(--muh-green-dark);
}

.btn-program-detail i {
  transition: transform 0.2s ease;
}

.btn-program-detail:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------
   8. WARTA & BERITA — FEATURED NEWS MODEL (MODERN MAGAZINE)
-------------------------------------------------------------------- */
.featured-news-card {
  height: 100%;
  min-height: 480px;
  background: #052B17;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--muh-border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.featured-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.featured-news-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-news-card:hover .featured-news-bg {
  transform: scale(1.05);
}

.featured-news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 43, 23, 0.96) 0%, rgba(5, 43, 23, 0.6) 45%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
}

.featured-badge-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  background: #FFFFFF;
  color: #111827;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-news-body {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.featured-news-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.featured-news-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.featured-news-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-news-title a:hover {
  color: #FACC15;
}

.featured-news-excerpt {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Side News Items (Right Column Stack) */
.side-news-list {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 12px;
}

.side-news-item {
  border: 1px solid var(--muh-border-color);
  background: #FFFFFF;
  border-radius: var(--radius-md, 16px);
  padding: 12px 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex: 1;
}

.side-news-item:hover {
  transform: translateX(4px);
  border-color: var(--muh-green-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.side-news-thumb-wrap {
  width: 108px;
  height: 84px;
  min-width: 108px;
  border-radius: 12px;
  overflow: hidden;
  background: #F3F4F6;
  flex-shrink: 0;
}

.side-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.side-news-item:hover .side-news-thumb {
  transform: scale(1.08);
}

.side-news-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #052B17, #007A3D);
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-news-content {
  flex-grow: 1;
  min-width: 0;
}

.side-news-meta {
  font-size: 0.75rem;
  color: #6B7280;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.side-news-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
}

.side-news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.side-news-item:hover .side-news-title a {
  color: var(--muh-green-primary);
}

.side-news-category-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muh-green-primary);
  background: var(--muh-green-light);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
}

@media (max-width: 991.98px) {
  .featured-news-card {
    min-height: 380px;
    margin-bottom: 12px;
  }
  .featured-news-title {
    font-size: 1.25rem;
  }
  .featured-news-body {
    padding: 22px;
  }
}

@media (max-width: 575.98px) {
  .side-news-thumb-wrap {
    width: 92px;
    height: 74px;
    min-width: 92px;
  }
  .side-news-title {
    font-size: 0.88rem;
  }
}

/* Fallback post-card for other components */
.post-card {
  height: 100%;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--muh-border-color);
  overflow: hidden;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.post-thumb-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.post-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb-wrap img {
  transform: scale(1.06);
}

.post-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--muh-green-dark);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.post-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--muh-text-muted);
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-title a {
  color: var(--muh-dark);
}

.post-title a:hover {
  color: var(--muh-green-primary);
}

.post-excerpt {
  font-size: 0.88rem;
  color: var(--muh-text-muted);
  flex-grow: 1;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------
   9. PRESTASI (HALL OF FAME - 1x1 PHOTO POSTER MODEL)
-------------------------------------------------------------------- */
.achievement-card {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--muh-border-color);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.achievement-card:hover {
  border-color: var(--muh-gold-primary);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.achievement-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #052B17;
  cursor: pointer;
}

.achievement-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.achievement-card:hover .achievement-photo {
  transform: scale(1.06);
}

.achievement-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #052B17 0%, #007A3D 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.achievement-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 43, 23, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.achievement-photo-wrap:hover .achievement-photo-overlay {
  opacity: 1;
}

.achievement-floating-level {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(5, 43, 23, 0.88);
  backdrop-filter: blur(4px);
  color: #FACC15;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.achievement-body {
  padding: 18px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.achievement-rank {
  font-size: 0.8rem;
  font-weight: 800;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.achievement-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.achievement-student {
  font-size: 0.82rem;
  color: #6B7280;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------
   10. AGENDA / EVENT KALENDER
-------------------------------------------------------------------- */
.event-card {
  display: flex;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid var(--muh-border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-base);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--muh-green-primary);
}

.event-date-box {
  width: 72px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--muh-green-light);
  border: 1px solid rgba(0, 122, 61, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

.event-day {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--muh-green-dark);
  line-height: 1;
}

.event-month {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muh-green-primary);
  text-transform: uppercase;
  margin-top: 2px;
}

/* --------------------------------------------------------------------
   11. PPDB BANNER CALLOUT
-------------------------------------------------------------------- */
.ppdb-banner-box {
  background: var(--muh-green-gradient);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ppdb-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ppdb-step-number {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--muh-gold-primary);
  color: var(--muh-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------
   12. FOOTER
-------------------------------------------------------------------- */
.footer-muh {
  background: var(--muh-dark);
  color: #D1D5DB;
  padding: 70px 0 24px;
  font-size: 0.92rem;
  border-top: 4px solid var(--muh-gold-primary);
}

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

.footer-muh h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--muh-gold-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9CA3AF;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--muh-gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: #9CA3AF;
}

.footer-social-wrapper {
  margin-top: 1.5rem;
}

.footer-social-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.footer-social-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-social-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.footer-social-btn:hover {
  transform: translateY(-4px) scale(1.04);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.footer-social-btn.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.45);
}

.footer-social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
  box-shadow: 0 8px 22px rgba(214, 36, 159, 0.45);
}

.footer-social-btn.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.45);
}

.footer-social-btn.tiktok:hover {
  background: #010101;
  border-color: #00F2FE;
  box-shadow: 0 8px 22px rgba(0, 242, 254, 0.4);
}

.footer-social-btn.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* --------------------------------------------------------------------
   13. RESPONSIFITAS MOBILE FIRST
-------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .stats-bar-wrapper {
    margin-top: 20px;
  }
  .hero-section {
    padding: 60px 0 70px;
  }
  .navbar-nav .nav-link {
    padding: 8px 12px !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .topbar-muh {
    display: none;
  }
  .ppdb-banner-box {
    padding: 30px 20px;
  }
}

/* --------------------------------------------------------------------
   14. SEKSI KEMUHAMMADIYAHAN (AIK) — GAYA IDENTIK DENGAN SECTION HEROES
-------------------------------------------------------------------- */
.section-kemuhammadiyah,
#aik {
  position: relative;
  background: var(--muh-hero-gradient) !important;
  color: #FFFFFF;
  overflow: hidden;
}

.aik-pillar-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.aik-pillar-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------
   15. SEKSI JEJARING KERJASAMA & KEMITRAAN LEMBAGA (CLIENT LOGO SECTION)
   Gaya Galeri Berwarna Asli dengan Background Kontras
-------------------------------------------------------------------- */
.partner-section {
  background-color: #F8FAFC !important;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  position: relative;
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  min-height: 86px;
  height: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
  background-color: #FFFFFF !important;
  border-color: #CBD5E1;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.09), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.partner-logo-img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* Gaya Galeri Berwarna Asli - full authentic vibrant colors */
  filter: none !important;
  transition: transform 0.28s ease;
}

.partner-logo-card:hover .partner-logo-img {
  transform: scale(1.05);
}

.partner-fallback-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1E293B;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.partner-link-badge {
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 0.72rem;
  color: #94A3B8;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all 0.22s ease;
}

.partner-logo-card:hover .partner-link-badge {
  opacity: 1;
  color: var(--muh-green-primary, #0D5C3A);
  transform: translate(0, 0);
}

/* --------------------------------------------------------------------
   16. SEKSI VIDEO PROFIL SEKOLAH & TESTIMONI ALUMNI/MASYARAKAT
-------------------------------------------------------------------- */
.video-profile-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-profile-card:hover {
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.12) !important;
}

.testimonial-box-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #FFFFFF;
}

.testimonial-box-card:hover {
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08) !important;
}

#homeTestimonialCarousel .carousel-indicators button.active {
  width: 24px !important;
  opacity: 1 !important;
  background-color: var(--muh-green-primary, #007A3D) !important;
}



