/* ==========================================================================
   MIN 2 GRESIK - MODERN DESIGN SYSTEM (Bootstrap 5.3.3 Compatible)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #065f46;         /* Deep Emerald */
  --primary-light: #ecfdf5;         /* Mint Light */
  --primary-hover: #047857;         /* Medium Emerald */
  --primary-dark: #022c22;          /* Forest Deep */
  --accent-color: #0284c7;          /* Sky Blue */
  --accent-light: #e0f2fe;          /* Sky Light */
  --accent-hover: #0369a1;          /* Ocean */
  --warning-gold: #d97706;          /* Warm Gold / Amber */
  --warning-light: #fef3c7;         /* Warm Gold Light */
  --surface-card: #ffffff;          /* Pure White Card */
  --surface-subtle: #f8fafc;        /* Slate 50 */
  --border-color: #e2e8f0;          /* Slate 200 */
  --text-main: #1e293b;             /* Slate 800 */
  --text-muted: #64748b;            /* Slate 500 */
  --text-light: #94a3b8;            /* Slate 400 */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-normal: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets and Typography */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f1f5f9;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-hover);
}

/* Bootstrap container override – ensure consistent max-width */
.container-xl {
  max-width: 1280px;
}

/* Main content spacing */
.main-content-area {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* --------------------------------------------------------------------------
   TOP INFO BAR
   -------------------------------------------------------------------------- */
.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: #38bdf8;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   MAIN BRAND HEADER
   -------------------------------------------------------------------------- */
.main-header-brand {
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  max-height: 75px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.header-quick-search .form-control {
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  border: 1.5px solid var(--border-color);
  padding: 9px 18px;
  font-size: 14px;
}

.header-quick-search .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.1);
}

.header-quick-search .btn {
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  padding: 9px 20px;
  font-weight: 600;
}

.header-quick-search .btn:hover {
  background: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   NAVBAR & MULTI-LEVEL DROPDOWN
   -------------------------------------------------------------------------- */
.main-navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #044e39 100%);
  padding: 0;
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.2);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
}

.main-navbar .nav-link {
  color: #f1f5f9 !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 16px 18px !important;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-item.active .nav-link {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
}

.main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: #38bdf8;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-item.active .nav-link::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Dropdowns */
.main-navbar .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  margin-top: 4px;
  background: #ffffff;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-navbar .dropdown-item {
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
}

.main-navbar .dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Multi-level Dropdowns */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: 2px;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Mobile Navbar */
.navbar-toggler {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* --------------------------------------------------------------------------
   HERO CAROUSEL / SLIDER (Bootstrap 5)
   -------------------------------------------------------------------------- */
.hero-slider-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: #0f172a;
}

.hero-slider-container .carousel-item {
  height: 440px;
  background-color: #0f172a;
}

@media (max-width: 768px) {
  .hero-slider-container .carousel-item {
    height: 280px;
  }
}

.hero-slider-container .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 6s ease-in-out;
}

.hero-slider-container .carousel-item.active img {
  transform: scale(1.05);
}

.hero-slider-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 30px 25px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(6, 95, 70, 0.92) 80%, rgba(2, 44, 34, 0.98) 100%);
  color: #fff;
  text-align: left;
}

.hero-slider-caption .badge-date {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.hero-slider-caption h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-slider-caption h3 {
    font-size: 16px;
  }
  .hero-slider-caption {
    padding: 20px 16px 16px;
  }
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 16px;
  opacity: 0.7;
  transition: var(--transition-normal);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   MODERN CARDS & UI COMPONENTS
   -------------------------------------------------------------------------- */
.modern-card {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
  margin-bottom: 24px;
}

.modern-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.modern-card-header {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modern-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.modern-card-body {
  padding: 20px;
}

/* Article News Cards */
.news-card-horizontal {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  transition: var(--transition-normal);
}

.news-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.news-card-thumb {
  width: 170px;
  height: 115px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

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

.news-card-horizontal:hover .news-card-thumb img {
  transform: scale(1.08);
}

.news-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.news-card-title a {
  color: var(--text-main);
}

.news-card-title a:hover {
  color: var(--primary-color);
}

.news-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.news-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-card-snippet {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 576px) {
  .news-card-horizontal {
    flex-direction: column;
  }
  .news-card-thumb {
    width: 100%;
    height: 180px;
  }
}

/* Announcement Cards / Badges */
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--warning-gold);
  margin-bottom: 12px;
  transition: var(--transition-normal);
}

.announcement-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.announcement-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warning-light);
  color: var(--warning-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

/* Sidebar Headmaster / Kepala Madrasah Widget */
.headmaster-card {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-subtle) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.headmaster-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.headmaster-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.15);
}

.headmaster-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.headmaster-title {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Popular News List in Sidebar */
.popular-news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.popular-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-rank {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.popular-news-thumb {
  width: 65px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.popular-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-news-content h5 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.35;
}

.popular-news-content h5 a {
  color: var(--text-main);
}

.popular-news-content h5 a:hover {
  color: var(--primary-color);
}

.popular-news-date {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Link Terkait & Chips */
.tag-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  background: var(--surface-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-chip:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   AGENDA / EVENTS CARD
   -------------------------------------------------------------------------- */
.agenda-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: var(--transition-normal);
}

.agenda-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.agenda-date-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(6, 95, 70, 0.2);
}

.agenda-date-box .date-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
}

.agenda-date-box .date-month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   GALLERY & VIDEO PLAYLIST
   -------------------------------------------------------------------------- */
.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.media-thumb-container {
  position: relative;
  width: 100%;
  padding-top: 62%;
  overflow: hidden;
  background: #0f172a;
}

.media-thumb-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.media-badge-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   TABLES & DOWNLOADS
   -------------------------------------------------------------------------- */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modern-table thead {
  background: var(--primary-color);
  color: #ffffff;
}

.modern-table th {
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
}

.modern-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  vertical-align: middle;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr:hover {
  background-color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   PAGINATION (Bootstrap 5 Modern)
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

.pagination a, .pagination strong {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-normal);
}

.pagination strong, .pagination a:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   RICH MODERN FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #022c22 0%, #011c16 100%);
  color: #cbd5e1;
  padding-top: 60px;
  border-top: 4px solid var(--primary-color);
  margin-top: 60px;
}

.footer-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

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

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

.footer-links a {
  color: #94a3b8;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #94a3b8;
}

.footer-contact-item i {
  color: #34d399;
  font-size: 16px;
  margin-top: 3px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 13.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   BACK TO TOP & UTILITIES
   -------------------------------------------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-4px);
}

/* Detail Article View Styling */
.article-detail-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 12px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-detail-content {
  font-size: 15.5px;
  line-height: 1.85;
  color: #334155;
}

.article-detail-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-md);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.article-detail-content table {
  width: 100% !important;
  max-width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.article-detail-content table th {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-detail-content table td {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  vertical-align: middle;
}

.article-detail-content table tr:nth-child(even) td {
  background: #f8fafc;
}

.article-detail-content table tr:hover td {
  background: var(--primary-light);
}

.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-detail-content h2 {
  font-size: 22px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 8px;
}

.article-detail-content h3 {
  font-size: 18px;
}

.article-detail-content ul,
.article-detail-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-detail-content li {
  margin-bottom: 6px;
}

.article-detail-content blockquote {
  border-left: 4px solid #059669;
  background: #ecfdf5;
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: #064e3b;
}

.article-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   MIN 2 GRESIK - DYNAMIC MODERN DESIGN SYSTEM EXTENSIONS
   ========================================================================== */

/* Color & Badge Helpers */
.bg-emerald { background-color: #059669 !important; color: #fff !important; }
.text-emerald { color: #059669 !important; }
.bg-emerald-light { background: #ecfdf5; }
.bg-emerald-badge { background: linear-gradient(135deg, #059669, #10b981); }

.bg-amber { background-color: #f59e0b !important; color: #fff !important; }
.text-amber { color: #d97706 !important; }
.bg-amber-light { background: #fef3c7; }

.bg-sky { background-color: #0284c7 !important; color: #fff !important; }
.text-sky { color: #0284c7 !important; }
.bg-sky-light { background: #e0f2fe; }

.bg-rose { background-color: #e11d48 !important; color: #fff !important; }
.bg-purple-light { background: #ede9fe; }
.text-purple { color: #7c3aed !important; }

.text-light-muted { color: #94a3b8; }

.btn-emerald {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: var(--transition-normal);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}

.btn-emerald-gradient {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: var(--transition-normal);
}
.btn-emerald-gradient:hover {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.3);
}

.btn-success-subtle {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  transition: var(--transition-normal);
}
.btn-success-subtle:hover {
  background: #065f46;
  color: #fff;
  border-color: #065f46;
}

/* Brand Header Additions */
.brand-logo-fallback {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #065f46, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.2);
}
.brand-sub-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  background: #ecfdf5;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 2px;
}

/* Header Icon Badges in Cards */
.header-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Quick Access Feature Cards */
.feature-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
}
.feature-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  color: var(--primary-color);
}
.feature-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.feature-quick-card:hover .feature-quick-icon {
  transform: scale(1.1);
}
.feature-quick-title {
  font-size: 13px;
  font-weight: 700;
}

/* Hero Slider Modern */
.hero-slider-modern {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-slider-modern .slider-image-container {
  height: 360px;
  background-color: #0f172a;
}
@media (max-width: 768px) {
  .hero-slider-modern .slider-image-container {
    height: 240px;
  }
}
.hero-slider-modern .slider-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transition: transform 6s ease;
}
.hero-slider-modern .carousel-item.active .slider-image-container img {
  transform: scale(1.05);
}
.hero-slider-modern-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 44, 34, 0.85) 60%, rgba(2, 44, 34, 0.98) 100%);
  color: #fff;
}
.hero-slider-modern-caption .badge-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}
.hero-slider-modern-caption .slider-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}
@media (max-width: 576px) {
  .hero-slider-modern-caption .slider-title {
    font-size: 15px;
  }
}
.carousel-control-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-normal);
}
.carousel-control-prev:hover .carousel-control-icon-circle,
.carousel-control-next:hover .carousel-control-icon-circle {
  background: rgba(255, 255, 255, 0.5);
  color: #065f46;
}

/* Modern Announcement Items */
.announcement-item-modern {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}
.announcement-item-modern:last-child {
  border-bottom: none;
}
.announcement-item-modern:hover {
  background: #f8fafc;
}
.announcement-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Modern News Card */
.news-card-modern {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}
.news-card-modern:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.news-card-modern:hover {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding-left: 8px;
  padding-right: 8px;
}
.news-card-thumb-wrapper {
  position: relative;
  width: 130px;
  height: 95px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.news-card-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card-modern:hover .news-card-thumb-wrapper img {
  transform: scale(1.08);
}
.category-chip {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(6, 95, 70, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.news-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.news-card-heading {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}
.news-card-heading a {
  color: var(--text-main);
}
.news-card-heading a:hover {
  color: var(--primary-color);
}
.news-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.news-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 576px) {
  .news-card-modern {
    flex-direction: column;
  }
  .news-card-thumb-wrapper {
    width: 100%;
    height: 160px;
  }
}

/* Modern Article Grid Card */
.article-grid-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.article-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -6px rgba(5, 150, 105, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: #a7f3d0;
}
.article-card-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #f1f5f9;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-grid-card:hover .article-card-thumb img {
  transform: scale(1.06);
}
.article-badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(5, 150, 105, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 2;
}
.article-card-no-thumb-header {
  padding: 16px 20px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.article-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}
.article-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-card-title a:hover {
  color: #059669;
}
.article-card-snippet {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  color: #64748b;
  margin-top: auto;
}
.article-card-footer .author-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #334155;
}
.article-card-footer .read-more-btn {
  color: #059669;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.article-grid-card:hover .article-card-footer .read-more-btn {
  transform: translateX(3px);
  color: #047857;
}

/* Modern Playlist & Video Cards */
.playlist-card-modern {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.playlist-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -8px rgba(225, 29, 72, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #fda4af;
}
.playlist-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.playlist-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.playlist-card-modern:hover .playlist-card-thumb img {
  transform: scale(1.08);
}
.playlist-badge-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.playlist-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 48px;
  height: 48px;
  background: rgba(225, 29, 72, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  z-index: 2;
}
.playlist-card-modern:hover .playlist-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
  background: #e11d48;
}
.playlist-no-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e24 0%, #2b1055 50%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.8);
}
.playlist-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.playlist-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.playlist-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.playlist-card-title a:hover {
  color: #e11d48;
}
/* Media & Gallery Cards */
.media-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}
.media-thumb-container {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #0f172a;
}
.media-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.media-card:hover .media-thumb-container img {
  transform: scale(1.08);
}
.media-badge-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* Sidebar Pill List */
.sidebar-pill-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition-normal);
}
.sidebar-pill-item:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(4px);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
}
.pill-arrow {
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.sidebar-pill-item:hover .pill-arrow {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Card Gradient Highlight */
.card-gradient-highlight {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #022c22 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.2);
}

/* Headmaster Modern Card */
.headmaster-modern-card {
  text-align: center;
  padding: 18px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.headmaster-modern-card .headmaster-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}
.headmaster-modern-card .headmaster-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #059669;
  padding: 2px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.2);
}
.headmaster-badge-icon {
  position: absolute;
  bottom: 0;
  right: 2px;
  color: #059669;
  background: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}
.headmaster-quote {
  font-size: 12px;
  font-style: italic;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.45;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Popular News Modern Ranked */
.popular-news-item-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}
.popular-news-item-modern:last-child {
  border-bottom: none;
}
.popular-news-item-modern:hover {
  background: #f8fafc;
  border-radius: 8px;
}
.popular-rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-gold { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.rank-silver { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.rank-bronze { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }
.rank-normal { background: #f8fafc; color: #94a3b8; }

.popular-news-thumb-sm {
  width: 52px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.popular-news-thumb-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popular-news-info {
  flex: 1;
  min-width: 0;
}
.popular-news-info h6 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-news-info h6 a {
  color: var(--text-main);
}
.popular-news-info h6 a:hover {
  color: var(--primary-color);
}
.popular-news-meta-sm {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* Tag Chips Modern */
.tag-chip-modern {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-normal);
}
.tag-chip-modern:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
  transform: translateY(-2px);
}

/* Footer Stats Card & Social Buttons */
.footer-stat-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
}
.social-links-modern {
  display: flex;
  gap: 10px;
}
.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition-normal);
}
.social-icon-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}
.social-icon-btn.fb { background: #1877f2; }
.social-icon-btn.tw { background: #0f1419; border: 1px solid rgba(255,255,255,0.2); }
.social-icon-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon-btn.yt { background: #ff0000; }

/* ==========================================================================
   MAN 1 GRESIK INSPIRED DESIGN SYSTEM - ISLAMIC EMERALD PALETTE
   ========================================================================== */

/* Top Header Bar */
.top-header-man {
  background-color: #064e3b;
  color: #e2e8f0;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 2px solid #059669;
}
.top-header-man a {
  color: #e2e8f0;
}
.top-header-man a:hover {
  color: #34d399;
}
.top-contact-info {
  font-weight: 500;
}
.top-phone i, .top-email i {
  color: #34d399;
}
.top-socials {
  margin: 0;
  padding: 0;
}
.top-socials li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.top-socials li a:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-2px);
}
.top-btn-spmb {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: #f59e0b;
  color: #1e293b !important;
  font-weight: 700;
  font-size: 12px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}
.top-btn-spmb:hover {
  background: #d97706;
  color: #fff !important;
  transform: translateY(-1px);
}
.top-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.top-btn-login:hover {
  background: #10b981;
}

/* Main Navbar MAN 1 Gresik Style */
.main-navbar-man {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 3px solid #059669;
  transition: all 0.3s ease;
}
.man-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}
.man-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #064e3b, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.site-title-wrap {
  display: flex;
  flex-direction: column;
}
.site-title-main {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.site-tagline {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}
.main-navbar-man .nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b !important;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.main-navbar-man .nav-link:hover,
.main-navbar-man .nav-link.active {
  color: #059669 !important;
  background: #ecfdf5;
}
.main-navbar-man .dropdown-menu {
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 3px solid #059669 !important;
}
.main-navbar-man .dropdown-item {
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  padding: 8px 18px;
  transition: all 0.2s ease;
}
.main-navbar-man .dropdown-item:hover {
  background: #ecfdf5;
  color: #059669;
  padding-left: 22px;
}
.btn-man-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
}
.btn-man-search:hover {
  background: #059669;
  color: #fff;
}

/* Hero Slider Banner (MAN 1 Gresik Style) */
.man-hero-slider {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.15);
}
.man-slide-bg {
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  display: flex;
  align-items: center;
}
.man-banner-title {
  font-size: 32px;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.man-banner-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #f1f5f9;
  max-width: 90%;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.btn-man-primary {
  background-color: #059669;
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-man-primary:hover {
  background-color: #047857;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}
.btn-man-outline-primary {
  border: 2px solid #059669;
  color: #059669;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-man-outline-primary:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-man-sm-primary {
  background-color: #059669;
  color: #ffffff !important;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-man-sm-primary:hover {
  background-color: #047857;
  color: #ffffff !important;
}
.man-carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}
.man-carousel-nav-btn:hover {
  background: #059669;
}

/* Signature Section Title with Graduation Cap Line Divider (MAN 1 Gresik Style) */
.man-main-title {
  position: relative;
  margin-bottom: 32px;
}
.man-widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.man-title-line {
  position: relative;
  display: block;
  width: 160px;
  height: 2px;
  background-color: #059669;
  margin: 0 auto;
}
.man-main-title.text-start .man-title-line {
  margin: 0;
}
.man-title-line span.fa-graduation-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 0 10px;
  color: #059669;
  font-size: 18px;
}
.bg-light-soft .man-title-line span.fa-graduation-cap {
  background-color: #f8fafc;
}
.bg-light-soft {
  background-color: #f8fafc;
}

/* Sambutan Kepala Madrasah Featured Split Layout */
.man-featured-img-wrap {
  position: relative;
  display: inline-block;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #059669;
}
.man-featured-img {
  max-height: 380px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.man-featured-img-wrap:hover .man-featured-img {
  transform: scale(1.03);
}
.man-featured-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 78, 59, 0.95) 100%);
  color: #fff;
  padding: 24px 16px 12px;
  text-align: center;
}

/* Published Notice / Berita 4-Col Grid with Stacked Date Box */
.man-post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.man-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(6, 78, 59, 0.12);
  border-color: #059669;
}
.man-post-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.man-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.man-post-card:hover .man-post-thumb img {
  transform: scale(1.08);
}
.man-entry-header {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.man-entry-meta-date {
  width: 50px;
  height: 52px;
  background: #059669;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
}
.man-date-day {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.man-date-month {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.man-entry-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.man-entry-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.man-entry-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.man-entry-title a:hover {
  color: #059669;
}
.man-entry-desc {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* Program Unggulan 4-Circle Icons Grid */
.man-about-item {
  padding: 20px 14px;
  transition: all 0.3s ease;
}
.man-circle-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #059669;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.15);
}
.man-about-item:hover .man-circle-icon {
  background: #059669;
  color: #ffffff;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}
.man-about-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.man-about-desc {
  font-size: 13px;
  line-height: 1.6;
}

/* Galeri Foto Kegiatan (Education Gallery) */
.man-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.man-gallery-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.man-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.man-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 78, 59, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 16px;
  text-align: center;
}
.man-gallery-thumb:hover .man-gallery-overlay {
  opacity: 1;
}
.man-gallery-thumb:hover img {
  transform: scale(1.1);
}
.man-gallery-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.man-gallery-zoom-btn:hover {
  background: #f59e0b;
  color: #fff;
  transform: scale(1.1);
}
.man-gallery-caption-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* Pengumuman & Agenda Widgets */
.man-card-widget {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.man-card-widget-header {
  background: linear-gradient(135deg, #064e3b, #047857);
  padding: 12px 18px;
}
.man-info-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.man-info-list-item:last-child {
  border-bottom: none !important;
}

/* Footer MAN 1 Gresik Style */
.site-footer-man {
  background-color: #043629;
  color: #cbd5e1;
  padding: 50px 0 20px;
  border-top: 4px solid #059669;
}
.footer-logo-img {
  max-height: 52px;
  width: auto;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
}
.footer-logo-fallback {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #059669;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.footer-man-title {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}
.footer-man-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: #059669;
}
.footer-man-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-man-links li {
  margin-bottom: 10px;
}
.footer-man-links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-man-links li a:hover {
  color: #34d399;
  padding-left: 5px;
}
.footer-man-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #94a3b8;
}
.footer-social-strip {
  display: flex;
  gap: 8px;
}
.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-social-btn:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-2px);
}
.footer-stat-box-man {
  background: rgba(2, 44, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
}
.footer-bottom-man {
  background-color: #022019;
  color: #64748b;
  font-size: 13px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .man-banner-title {
    font-size: 24px;
  }
  .man-slide-bg {
    min-height: 380px;
    padding: 50px 0;
  }
  .man-widget-title {
    font-size: 22px;
  }
  .main-navbar-man .nav-link {
    padding: 10px 12px !important;
  }
}
@media (max-width: 576px) {
  .man-banner-title {
    font-size: 20px;
  }
  .man-slide-bg {
    min-height: 320px;
    padding: 40px 0;
  }
  .man-circle-icon {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
  .man-about-title {
    font-size: 15px;
  }
}

/* Compact Article & Page Meta */
.article-meta-compact {
  background: #f8fafc;
  border-color: #e2e8f0 !important;
  line-height: 1.4;
}
.article-detail-content.entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.article-detail-content.entry-content h2,
.article-detail-content.entry-content h3 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

