/* ============================================================
   GLOBAL RESET & VARIABLES
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #2e5fa3;
  --blue-dark: #1a3e7c;
  --blue-light: #4a80c4;
  --blue-bg: #e8eef7;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gray: #f5f5f5;
  --cream: #faf8f4;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --navy: #1a3e7c;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: #5164ce;
  color: #fff;
  padding: 12px 0;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  padding: 14px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-circle-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo-circle-inner .mosque {
  font-size: 22px;
  color: #fff;
  line-height: 1;
}
.logo-circle-inner .ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  position: absolute;
}
.logo-text h1 {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.logo-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
  line-height: 1.1;
}


/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.nav-inner {
  display: flex;
  align-items: center;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
nav ul li {
  position: relative;
}
nav ul li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}
nav ul li a:hover,
nav ul li.active > a {
  color: var(--blue);
}
.chevron {
  font-size: 9px;
  opacity: 0.6;
}
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 190px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--blue);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
}
nav ul li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 400;
  border-bottom: 1px solid #f5f5f5;
}
.sub-menu li a:hover {
  background: #f0f5ff;
  color: var(--blue);
  padding-left: 20px;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: #5164ce;
  padding: 34px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.75);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}
.breadcrumb .current {
  color: #fff;
  font-weight: 600;
}


/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #1565c0;
}
.slider-wrap {
  display: flex;
  transition: transform 0.6s ease;
}
.slide {
  min-width: 100%;
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide-ramadhan {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 30%, #1976d2 60%, #0d47a1 100%);
}
.arabic-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(100, 181, 246, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(100, 181, 246, 0.2) 0%, transparent 40%);
  pointer-events: none;
}
.lantern {
  position: absolute;
  font-size: 42px;
  animation: swing 3s ease-in-out infinite alternate;
}
.lantern-left  { left: 50px;  top: 30px; }
.lantern-right { right: 50px; top: 30px; animation-delay: 0.5s; }
.lantern-left2  { left: 20px;  bottom: 30px; animation-delay: 0.3s; font-size: 30px; }
.lantern-right2 { right: 20px; bottom: 30px; animation-delay: 0.8s; font-size: 30px; }

@keyframes swing {
  0%   { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.slide-content-center {
  text-align: center;
  color: #fff;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
  width: 100%;
}
.slide-tag { font-size: 13px; letter-spacing: 1px; opacity: 0.9; margin-bottom: 8px; }
.slide-title {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-style: italic;
  margin: 8px 0;
  line-height: 1.2;
}
.slide-subtitle { font-size: 14px; opacity: 0.85; margin-bottom: 10px; }
.slide-big {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.slide-big2 { font-size: 48px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  font-size: 13px;
}
.slider-btn:hover { background: rgba(255, 255, 255, 0.3); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }


/* ============================================================
   SECTIONS (HOMEPAGE)
   ============================================================ */
.section { padding: 56px 0; }
.section-alt { background: var(--gray); }
.section-title-wrap { text-align: center; margin-bottom: 28px; }
.section-title-wrap h2 { font-size: 24px; font-weight: 700; }
.section-title-wrap .underline {
  width: 40px;
  height: 3px;
  background: var(--blue);
  margin: 10px auto 0;
  border-radius: 2px;
}


/* ============================================================
   NEWS GRID (HOMEPAGE)
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: block;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.news-thumb {
  height: 155px;
  position: relative;
  overflow: hidden;
}
.news-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s;
}
.news-card:hover .news-thumb-bg { transform: scale(1.05); }
.news-thumb-bg.blue   { background: linear-gradient(135deg, var(--blue-dark), var(--blue-light)); }
.news-thumb-bg.teal   { background: linear-gradient(135deg, #006064, #00897b); }
.news-thumb-bg.indigo { background: linear-gradient(135deg, #283593, #3949ab); }
.news-thumb-bg.purple { background: linear-gradient(135deg, #4527a0, #7b1fa2); }
.news-thumb-bg.green  { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.news-thumb-bg.orange { background: linear-gradient(135deg, #bf360c, #e64a19); }
.news-thumb-icon { color: rgba(255, 255, 255, 0.3); font-size: 48px; }
.news-play {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.news-body { padding: 12px 14px; }
.news-body p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   INSTAGRAM SECTION
   ============================================================ */
.instagram-section { padding: 36px 0; background: #fff; }
.insta-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.insta-header h2 { font-size: 20px; font-weight: 700; }
.insta-header i {
  font-size: 22px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.insta-error {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  color: #856404;
  margin-bottom: 10px;
}


/* ============================================================
   YOUTUBE SECTION
   ============================================================ */
.yt-section { padding: 50px 0; background: var(--gray); }
.yt-header { text-align: center; margin-bottom: 20px; }
.yt-header h2 {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.yt-header i { color: #ff0000; font-size: 24px; }
.yt-main {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto 16px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.yt-thumb-main {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a237e, #283593);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.yt-play-btn {
  width: 64px;
  height: 46px;
  background: #ff0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  transition: transform 0.2s;
  position: absolute;
}
.yt-main:hover .yt-play-btn { transform: scale(1.1); }
.yt-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 16px 14px 10px;
  font-size: 12px;
  font-weight: 600;
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.yt-item { border-radius: 4px; overflow: hidden; cursor: pointer; }
.yt-item-thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.3);
}
.yt-item-thumb.c1 { background: linear-gradient(135deg, #1a237e, #283593); }
.yt-item-thumb.c2 { background: linear-gradient(135deg, #004d40, #00796b); }
.yt-item-thumb.c3 { background: linear-gradient(135deg, #bf360c, #e64a19); }
.yt-item-thumb.c4 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.yt-item-thumb.c5 { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.yt-item-caption {
  font-size: 10px;
  color: var(--text);
  padding: 4px 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.yt-pagination {
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}
.yt-page-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}
.yt-page-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }


/* ============================================================
   NEWS TICKER
   ============================================================ */
/* ============================================================
   NEWS TICKER
   ============================================================ */
.ticker { background: var(--blue); padding: 12px 0; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 14px; }
.ticker-label {
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0; /* tambahan: biar label ga gepeng */
}
.ticker-text { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; flex: 1; }
.ticker-scroll {
  display: inline-flex;   /* ganti dari inline-block */
  align-items: center;
  animation: ticker-move 60s linear infinite; /* ganti nama + naikkan durasi */
  will-change: transform;
}

.ticker-sep{
    margin: 0 20px;
}

.ticker-scroll:hover {
  animation-play-state: paused;
}

@keyframes ticker-move {
  0%   { transform: translateX(0); }    /* langsung muncul dari kiri */
  100% { transform: translateX(-50%); } /* -50% karena konten di-duplikat 2x */
}

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: 50px 0; background: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.stat-item { padding: 24px 16px; }
.stat-icon { font-size: 38px; color: var(--blue); margin-bottom: 10px; }
.stat-num { font-size: 44px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}


/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { padding: 56px 0; background: var(--gray); text-align: center; }
.testimonial h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.testi-icon { font-size: 26px; color: var(--blue); margin-bottom: 18px; }
.testi-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.8;
}
.testi-quote::before,
.testi-quote::after {
  font-size: 44px;
  color: var(--blue);
  opacity: 0.3;
  font-family: serif;
  line-height: 0;
  vertical-align: -16px;
}
.testi-quote::before { content: "\201C"; }
.testi-quote::after  { content: "\201D"; }
.testi-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}
.testi-name { font-size: 13px; color: var(--blue); font-weight: 700; }
.testi-title { font-size: 12px; color: var(--text-light); }
.testi-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.testi-dot.active { background: var(--blue); }


/* ============================================================
   GALLERY ITEMS (shared across pages)
   ============================================================ */
.gal-item { aspect-ratio: 1; border-radius: 3px; overflow: hidden; cursor: pointer; position: relative; }
.gal-item-bg { width: 100%; height: 100%; transition: transform 0.3s; }
.gal-item:hover .gal-item-bg { transform: scale(1.08); }
.gal-item-bg.g1  { background: linear-gradient(135deg, #1a237e, #283593); }
.gal-item-bg.g2  { background: linear-gradient(135deg, #004d40, #00796b); }
.gal-item-bg.g3  { background: linear-gradient(135deg, #bf360c, #e64a19); }
.gal-item-bg.g4  { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.gal-item-bg.g5  { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.gal-item-bg.g6  { background: linear-gradient(135deg, #0d47a1, #1565c0); }
.gal-item-bg.g7  { background: linear-gradient(135deg, #880e4f, #c2185b); }
.gal-item-bg.g8  { background: linear-gradient(135deg, #e65100, #f57c00); }
.gal-item-bg.g9  { background: linear-gradient(135deg, #006064, #00acc1); }
.gal-item-bg.g10 { background: linear-gradient(135deg, #33691e, #558b2f); }
.gal-item-bg.g11 { background: linear-gradient(135deg, #311b92, #512da8); }
.gal-item-bg.g12 { background: linear-gradient(135deg, #b71c1c, #e53935); }
.gal-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 16px;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #222; color: rgba(255, 255, 255, 0.75); padding: 50px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.6fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-about h3,
.footer-pub h3,
.footer-gallery h3 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer-pub h3 { text-align: center; }
.footer-about p { font-size: 12.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.6); }
.footer-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   WA FLOAT BUTTON
   ============================================================ */
.wa-float { position: fixed; bottom: 24px; left: 24px; z-index: 999; }
.wa-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
}
.wa-btn:hover { background: #128c7e; transform: translateY(-2px); }
.wa-btn i { font-size: 20px; }


/* ============================================================
   PAGE LAYOUT (inner pages)
   ============================================================ */
.page-wrap { padding: 36px 0 64px; background: #fff; }
.page-layout { display: flex; gap: 40px; align-items: start; }


/* ============================================================
   ARTICLE (detail-berita & visi-misi)
   ============================================================ */
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}
.article-meta-top span { display: flex; align-items: center; gap: 5px; }
.article-meta-top i { color: #5164ce; font-size: 11px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #888;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta i { color: var(--blue); font-size: 11px; }

.article-hero {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(160deg, #b8cce0 0%, #d6e8f5 40%, #e8f4fd 60%, #c5dbe8 80%, #a8c4d8 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(100, 130, 160, 0.5);
  gap: 10px;
}
.hero-placeholder i  { font-size: 48px; }
.hero-placeholder span { font-size: 13px; }
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  padding: 24px 16px 12px;
  font-size: 11.5px;
}

.article-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}
.article-divider {
  width: 44px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 20px;
}
.article-body { font-size: 14.5px; line-height: 1.9; color: #444; }
.article-body p { margin-bottom: 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--blue-dark); font-weight: 700; }
.article-body ul { margin: 0 0 16px 20px; }
.article-body ul li { margin-bottom: 6px; font-size: 14px; line-height: 1.7; }
.article-body .drop-cap::first-letter {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--blue);
  float: left;
  line-height: 0.8;
  margin: 6px 10px 0 0;
}
.article-body .highlight {
  background: var(--blue-bg);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-style: italic;
  color: #444;
}


/* ============================================================
   SHARE BAR
   ============================================================ */
.share-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.share-label { font-size: 12px; color: #888; font-weight: 600; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-copy { background: #888; }


/* ============================================================
   ARTICLE GALLERY
   ============================================================ */
.article-gallery { margin-top: 32px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item {
  border-radius: 6px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #b8cce0, #d6e8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(100, 130, 160, 0.5);
}
.gallery-item i { font-size: 32px; }
.gallery-caption { margin-top: 8px; font-size: 11px; color: #888; line-height: 1.6; }
.gallery-caption a { color: var(--blue); }


/* ============================================================
   ARTICLE NAVIGATION
   ============================================================ */
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.nav-item:hover { border-color: var(--blue); background: #f0f5ff; }
.nav-item.nav-next { justify-content: flex-end; text-align: right; }
.nav-icon { color: var(--blue); font-size: 18px; flex-shrink: 0; }
.nav-label { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.nav-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar-widget { margin-bottom: 28px; }
.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-item { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.related-thumb {
  width: 66px;
  height: 52px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #b8cce0, #d6e8f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(100, 130, 160, 0.5);
  font-size: 16px;
  overflow: hidden;
}
.related-thumb div { width: 100%; height: 100%; }
.related-body { flex: 1; }
.related-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.related-item:hover .related-title { color: var(--blue); }
.related-date { font-size: 11px; color: #999; margin-top: 3px; display: flex; align-items: center; gap: 4px; }

/* Thumb color variants for related/sidebar */
.tc1 { background: linear-gradient(135deg, #1a3e7c, #4a80c4); }
.tc2 { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.tc3 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.tc4 { background: linear-gradient(135deg, #006064, #00acc1); }
.tc5 { background: linear-gradient(135deg, #bf360c, #e64a19); }


/* ============================================================
   NEWS LIST (list-berita)
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 0; max-width: 1010px; }
.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child  { border-bottom: none; }
.news-item .news-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--gray);
  height: auto;
}
.news-item .news-thumb-bg { width: 100%; height: 100%; transition: transform 0.4s; }
.news-item:hover .news-thumb-bg { transform: scale(1.04); }
.news-thumb-bg.c1 { background: linear-gradient(135deg, #1a3e7c, #4a80c4); }
.news-thumb-bg.c2 { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.news-thumb-bg.c3 { background: linear-gradient(135deg, #bf360c, #e64a19); }
.news-thumb-bg.c4 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.news-thumb-bg.c5 { background: linear-gradient(135deg, #006064, #00acc1); }
.news-thumb-bg.c6 { background: linear-gradient(135deg, #880e4f, #c2185b); }
.news-thumb-bg.c7 { background: linear-gradient(135deg, #283593, #3949ab); }
.news-thumb-bg.c8 { background: linear-gradient(135deg, #004d40, #00897b); }
.news-thumb-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 40px;
}
.news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.news-cat {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-title { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.4; transition: color 0.2s; }
.news-item:hover .news-title { color: var(--blue); }
.news-excerpt {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--text-light); flex-wrap: wrap; }
.news-meta span { display: flex; align-items: center; gap: 5px; }
.news-meta i { color: var(--blue); font-size: 11px; }
.news-read { display: flex; justify-content: flex-end; }
.news-read a {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.news-read a:hover { gap: 9px; }


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
  max-width: 1010px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 10px;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }


/* ============================================================
   TEACHER / DAFTAR GURU
   ============================================================ */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 64px;
  margin-top: 40px;
}
.teacher-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: fadeUp 0.5s ease both;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26, 62, 124, 0.12); }
.card-accent { height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue-light)); }
.teacher-card:hover .card-accent { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #dce8f5 0%, #edf4fc 60%, #d8e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(46, 95, 163, 0.3); }
.photo-placeholder svg { width: 80px; height: 80px; }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 62, 124, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.teacher-card:hover .card-overlay { opacity: 1; }
.overlay-text {
  color: #fff;
  font-size: 11.5px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s 0.05s;
}
.teacher-card:hover .overlay-text { opacity: 1; transform: translateY(0); }
.overlay-text i { color: var(--gold-light); margin-right: 5px; font-size: 10px; }
.card-body { padding: 16px 16px 18px; border-top: 1px solid var(--border); }
.teacher-name {
  font-family: "Lora", serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 5px;
}
.teacher-mapel { font-size: 12px; color: var(--blue); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.teacher-mapel i { font-size: 10px; color: var(--gold); }
.teacher-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.meta-badge { font-size: 10.5px; padding: 3px 9px; border-radius: 50px; background: #eef3fb; color: var(--blue); font-weight: 500; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.teacher-card:nth-child(1)  { animation-delay: 0.05s; }
.teacher-card:nth-child(2)  { animation-delay: 0.10s; }
.teacher-card:nth-child(3)  { animation-delay: 0.15s; }
.teacher-card:nth-child(4)  { animation-delay: 0.20s; }
.teacher-card:nth-child(5)  { animation-delay: 0.25s; }
.teacher-card:nth-child(6)  { animation-delay: 0.30s; }
.teacher-card:nth-child(7)  { animation-delay: 0.35s; }
.teacher-card:nth-child(8)  { animation-delay: 0.40s; }
.teacher-card:nth-child(9)  { animation-delay: 0.45s; }
.teacher-card:nth-child(10) { animation-delay: 0.50s; }
.teacher-card:nth-child(11) { animation-delay: 0.55s; }
.teacher-card:nth-child(12) { animation-delay: 0.60s; }


/* ============================================================
   KONTAK KAMI
   ============================================================ */
.kontak-section { padding: 48px 20px 64px; background: var(--cream); display: flex; justify-content: center; }
.contact-wrap { max-width: 900px; width: 100%; }
.contact-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26, 62, 124, 0.1);
  border: 1px solid #e0e8f4;
}
.contact-left {
  background: var(--blue-dark);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.contact-left::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -60px;
  right: -60px;
}
.contact-left::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  top: -30px;
  left: -30px;
}
.contact-left-title { font-family: "Lora", serif; font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; position: relative; z-index: 1; }
.contact-left-sub { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; position: relative; z-index: 1; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 13px;
}
.contact-info-label { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 2px; }
.contact-info-value { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; }
.contact-info-value a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.contact-social-row { display: flex; gap: 8px; position: relative; z-index: 1; margin-top: 4px; }
.contact-soc-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.contact-soc-btn:hover { background: var(--gold); color: var(--blue-dark); }
.contact-right { padding: 0; display: flex; flex-direction: column; }
.contact-form-banner {
  background: linear-gradient(135deg, #2e5fa3 0%, #4a80c4 100%);
  padding: 22px 28px;
  position: relative;
  overflow: hidden;
}
.contact-form-banner::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  right: -40px;
  top: -40px;
}
.contact-form-banner p { font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.6; max-width: 420px; position: relative; z-index: 1; }
.contact-form-body { padding: 28px; flex: 1; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form-group { display: flex; flex-direction: column; gap: 5px; }
.contact-form-group label { font-size: 11.5px; font-weight: 600; color: #666; letter-spacing: 0.3px; }
.contact-form-group input,
.contact-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid #e0e8f4;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  color: #2a2a2a;
  background: #fdfdfd;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 95, 163, 0.08);
  background: #fff;
}
.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder { color: #bbb; }
.contact-form-group textarea { resize: vertical; min-height: 110px; }
.contact-form-full { margin-bottom: 14px; }
.contact-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: linear-gradient(135deg, #2e5fa3, #1a3e7c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(26, 62, 124, 0.25);
}
.contact-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26, 62, 124, 0.3); }
.contact-btn-submit i { font-size: 12px; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .lantern-left2, .lantern-right2 { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-gallery { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 220px 1fr; }
  .news-title { font-size: 17px; }
  .page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .hamburger { display: flex; }
  .navbar { display: none; }
  .navbar.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  nav ul li a { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: #f8f9ff;
    display: none;
  }
  nav ul li.open .sub-menu { display: block; }
  .sub-menu li a { padding: 10px 28px; }

  /* Topbar */
  .topbar .container { justify-content: center; font-size: 12px; gap: 12px; }
  .topbar span:nth-child(1) { display: none; }

  /* Logo */
  .logo-text h2 { font-size: 20px; }
  .logo-text h1 { font-size: 11px; }

  /* Slider */
  .slide { height: 360px; }
  .slide-big { font-size: 44px; }
  .slide-big2 { font-size: 34px; }
  .slide-title { font-size: 24px; }
  .lantern { font-size: 28px; }
  .lantern-left  { left: 10px; }
  .lantern-right { right: 10px; }

  /* Grids */
  .news-grid { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; gap: 0; max-width: 320px; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-gallery { grid-column: auto; }

  /* WA */
  .wa-btn span { display: none; }
  .wa-btn { padding: 14px; border-radius: 50%; }

  /* Article */
  .article-hero { min-height: 220px; }
  .article-title { font-size: 20px; }
  .article-body { font-size: 14px; }
  .article-nav { flex-direction: column; }
  .nav-item.nav-next { justify-content: flex-start; text-align: left; }
  .share-btn span { display: none; }
  .share-btn { padding: 7px 10px; }

  /* News list */
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item .news-thumb { aspect-ratio: 16/7; }
  .news-title { font-size: 16px; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-left { padding: 28px 24px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .kontak-section { padding: 32px 16px 48px; }
}

@media (max-width: 480px) {
  .slide { height: 300px; }
  .slide-big { font-size: 36px; }
  .slide-big2 { font-size: 28px; }
  .slide-title { font-size: 20px; }
  .stat-num { font-size: 36px; }
  .article-hero { min-height: 180px; }
  .article-title { font-size: 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .article-meta-top { gap: 10px; font-size: 11px; }
  .news-title { font-size: 15px; }
  .news-excerpt { -webkit-line-clamp: 2; }
  .pagination { gap: 4px; }
  .page-btn { min-width: 32px; height: 32px; font-size: 12px; }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px 12px 14px; }
  .teacher-name { font-size: 13px; }
  .contact-form-body { padding: 20px; }
  .contact-form-banner { padding: 18px 20px; }
  .contact-form-banner p { font-size: 13.5px; }
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.custom-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px; /* Jarak antar tombol */
}

.custom-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    color: #2e5fa3;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

/* Hover Effect */
.custom-pagination li a:hover {
    background-color: #2e5fa3;
    color: #fff;
    border-color: #2e5fa3;
}

/* State Aktif (Halaman Sekarang) */
.custom-pagination li.active a {
    background-color: #2e5fa3;
    color: #fff;
    border-color: #2e5fa3;
    cursor: default;
}

/* State Disabled (Tombol mati) */
.custom-pagination li.disabled a {
    background-color: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
}

/* Responsive: Perkecil tombol di HP */
@media (max-width: 576px) {
    .custom-pagination li a {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* --- DETAIL PROFILE PURE CSS --- */

.profile-container {
    display: grid;
    grid-template-columns: 320px 1fr; /* Sidebar fix, sisanya fleksibel */
    gap: 40px;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    margin: 20px auto;
    max-width: 1200px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* SIDEBAR (FOTO) */
.profile-sidebar {
    position: relative;
}

.profile-image-wrapper {
    position: sticky;
    top: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f8fafc;
}

.profile-image-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.profile-placeholder {
    padding: 80px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder svg {
    width: 120px;
}

.profile-social-links {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 18px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.profile-social-links a {
    color: #2e5fa3;
    font-size: 1.1rem;
    transition: 0.3s;
}

.profile-social-links a:hover {
    color: #1a3a63;
    transform: translateY(-3px);
}

/* MAIN CONTENT (INFO) */
.profile-header {
    margin-bottom: 35px;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.profile-line {
    width: 60px;
    height: 5px;
    background: #2e5fa3;
    border-radius: 10px;
}

/* GRID INFORMASI */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 KOLOM DI DESKTOP */
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(5px);
}

.info-icon-box {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    color: #2e5fa3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 18px;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet (Layar < 992px) */
@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }

    .profile-sidebar {
        max-width: 350px;
        margin: 0 auto;
    }

    .profile-name {
        text-align: center;
        font-size: 2rem;
    }

    .profile-line {
        margin: 0 auto;
    }
}

/* Mobile (Layar < 640px) */
@media (max-width: 640px) {
    .profile-info-grid {
        grid-template-columns: 1fr; /* KEMBALI KE 1 KOLOM DI HP */
    }

    .profile-container {
        padding: 20px;
        border-radius: 0; /* Full width di HP */
    }
}

/* Container Galeri */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Kolom Desktop */
    gap: 25px;
    padding: 20px 0;
}

/* Card Galeri */
.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    background: #eee;
    aspect-ratio: 4 / 4; /* Memastikan semua kotak seragam */
}

.gallery-image {
    width: 100%;
    height: 100%;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay Efek */
.gallery-overlay {
    position: absolute;
    inset: 0; /* Menutupi seluruh card */
    background: rgba(46, 95, 163, 0.85); /* Warna biru Al Azhar transparan */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    text-decoration: none;
    transition: all 0.4s ease;
}

.overlay-content {
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.overlay-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Hover States */
.gallery-card:hover img {
    transform: scale(1.15); /* Gambar nge-zoom dikit */
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

/* RESPONSIVE */

/* Tablet (2 Kolom) */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile (1 Kolom) */
@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-overlay {
        opacity: 1; /* Di mobile overlay biarkan sedikit terlihat atau munculkan title di bawah */
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
    }
    
    .overlay-content {
        transform: none;
    }
    
    .overlay-content i { display: none; }
}

/* Container Video */
.video-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Kolom di Desktop */
    gap: 25px;
    padding: 20px 0;
}

/* Card Video */
.video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    /* Rasio Video Standard */
    aspect-ratio: 16 / 9;
}

.video-thumb {
    width: 100%;
    height: 100%;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    opacity: 0.9;
}

/* Overlay & Play Button */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.video-play-btn {
    width: 60px;
    height: 60px;
    background: #2e5fa3; /* Warna Biru Al Azhar */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    box-shadow: 0 0 0 0 rgba(46, 95, 163, 0.7);
    transition: all 0.3s ease;
}

/* Icon Play sedikit geser ke kanan agar presisi di tengah lingkaran */
.video-play-btn i {
    margin-left: 4px;
}

.video-info h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Hover Effects */
.video-card:hover .video-overlay {
    background: rgba(46, 95, 163, 0.7);
}

.video-card:hover img {
    transform: scale(1.1);
}

.video-card:hover .video-play-btn {
    transform: scale(1.1);
    background: #fff;
    color: #2e5fa3;
    /* Efek Pulse saat Hover */
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .video-container {
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom Tablet */
    }
}

@media (max-width: 600px) {
    .video-container {
        grid-template-columns: 1fr; /* 1 Kolom Mobile */
    }
    
    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 1. Pastikan wrapper menyusun item ke samping (horizontal) */
.testi-wrapper {
    display: flex; 
}

/* 2. Pastikan tiap item lebarnya pas satu kotak carousel */
.testi-item {
    min-width: 100%; 
    box-sizing: border-box; /* Agar padding tidak merusak lebar 100% */
}

/* 3. Pastikan container utama menyembunyikan item yang belum tampil */
.testi-carousel {
    overflow: hidden; 
}