/* ============================================================
   MasjidKu — Mosque Profile Theme
   Teal & Gold Palette | Playfair Display + Nunito
   IndoKoding.net
   ============================================================ */

/* 00. BOOTSTRAP VARIABLE OVERRIDES
   ============================================================ */
:root {
  --bs-primary: #0F4C5C;
  --bs-primary-rgb: 15, 76, 92;
  --bs-link-color: #0F4C5C;
  --bs-link-hover-color: #0A3040;
  --bs-dropdown-link-active-bg: #E0F4F8;
  --bs-dropdown-link-active-color: #0F4C5C;
  --bs-accordion-btn-active-color: #0F4C5C;
  --bs-accordion-active-bg: #E0F4F8;
  --bs-focus-ring-color: rgba(15,76,92,.25);
}

/* 01. DESIGN TOKENS
   ============================================================ */
:root {
  --primary:       #0F4C5C;
  --primary-dark:  #0A3040;
  --primary-mid:   #1A6678;
  --primary-light: #E0F4F8;
  --accent:        #C9A227;
  --accent-dark:   #A6841E;
  --accent-light:  #FDF4DC;
  --secondary:     #0C2D38;
  --text-dark:     #1A2B30;
  --text-muted:    #5B7178;
  --text-light:    #8FA8AF;
  --bg-body:       #FAFAF8;
  --bg-cream:      #F5F0E8;
  --bg-section:    #F0F7FA;
  --white:         #FFFFFF;
  --border:        #D5E8EE;

  --shadow-sm:  0 2px 8px rgba(15,76,92,.08);
  --shadow-md:  0 4px 24px rgba(15,76,92,.12);
  --shadow-lg:  0 8px 40px rgba(15,76,92,.18);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 9999px;

  --transition: .3s ease;
  --font-head:  'Playfair Display', serif;
  --font-body:  'Nunito', sans-serif;
}

/* 02. BASE & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* 03. UTILITY CLASSES
   ============================================================ */
.text-primary-custom { color: var(--primary) !important; }
.text-accent    { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted); }
.bg-primary-custom { background: var(--primary) !important; }
.bg-accent-custom  { background: var(--accent) !important; }
.bg-cream       { background: var(--bg-cream) !important; }
.bg-section     { background: var(--bg-section) !important; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .5rem 1.4rem;
  transition: all var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .5rem 1.4rem;
  transition: all var(--transition);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .5rem 1.4rem;
  transition: all var(--transition);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-outline-accent {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .5rem 1.4rem;
  transition: all var(--transition);
}
.btn-outline-accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-outline-white {
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: .5rem 1.4rem;
  transition: all var(--transition);
}
.btn-outline-white:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--primary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--text-dark);
  margin-bottom: .5rem;
}
.section-title span { color: var(--accent); }

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 0;
  font-size: .95rem;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1rem auto;
}
.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: .4;
}
.divider-ornament span { color: var(--accent); font-size: 1rem; }

/* Islamic geometric SVG pattern (used as data URI) */
.geo-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201,162,39,0.12)' stroke-width='1'/%3E%3Cpath d='M30 10L50 30L30 50L10 30Z' fill='none' stroke='rgba(201,162,39,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.geo-pattern-white {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cpath d='M30 10L50 30L30 50L10 30Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* 04. TOP RIBBON
   ============================================================ */
.top-ribbon {
  background: var(--secondary);
  color: rgba(255,255,255,.8);
  font-size: .77rem;
  font-weight: 600;
  height: 40px;
  overflow: hidden;
  position: relative;
  z-index: 1031;
}
.top-ribbon .container {
  height: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
}
.top-ribbon .d-flex {
  gap: 1rem;
  flex-wrap: nowrap;
  height: 100%;
}
.top-ribbon a { color: rgba(255,255,255,.8); }
.top-ribbon a:hover { color: var(--accent); }
.ribbon-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.ribbon-right {
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
  flex-shrink: 1;
  min-width: 0;
}
.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.ribbon-item i { color: var(--accent); font-size: .82rem; }
.ribbon-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.prayer-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .72rem;
  padding: 0 .35rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.prayer-ribbon-item i { font-size: .72rem; }
.prayer-ribbon-item.next-prayer {
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
  padding: 2px .5rem;
}

/* 05. NAVBAR
   ============================================================ */
#mainNav {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: .7rem 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition),
              padding var(--transition), top var(--transition);
}
#mainNav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(15,76,92,.12);
  padding: .35rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
#mainNav.scrolled .navbar-brand { color: var(--primary); }

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(201,162,39,.25);
  border: 1px solid rgba(201,162,39,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--transition);
}
#mainNav.scrolled .brand-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: .875rem;
  padding: .4rem .7rem;
  transition: color var(--transition);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .7rem;
  right: .7rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

#mainNav.scrolled .navbar-nav .nav-link { color: var(--text-dark); }
#mainNav.scrolled .navbar-nav .nav-link:hover,
#mainNav.scrolled .navbar-nav .nav-link.active { color: var(--primary); }

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: .5rem;
  margin-top: .5rem;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  padding: .45rem .85rem;
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dropdown-item i { color: var(--primary); font-size: .9rem; width: 16px; }
.dropdown-item:hover,
.dropdown-item:focus { background: var(--primary-light); color: var(--primary); }
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active { background: var(--primary-light); color: var(--primary); }

/* Mobile */
.navbar-toggler {
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius-sm);
  padding: .25rem .5rem;
}
#mainNav.scrolled .navbar-toggler { border-color: var(--primary); }
.navbar-toggler .bi { color: rgba(255,255,255,.9); font-size: 1.3rem; }
#mainNav.scrolled .navbar-toggler .bi { color: var(--primary); }

@media (max-width: 991.98px) {
  #mainNav {
    top: 0;
    background: rgba(12,45,56,.96);
    backdrop-filter: blur(12px);
  }
  #mainNav .navbar-collapse {
    background: var(--primary-dark);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: .5rem;
  }
  #mainNav.scrolled .navbar-collapse {
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }
  #mainNav.scrolled .navbar-nav .nav-link { color: var(--text-dark); }
  .top-ribbon { display: none; }
}

/* img-cover: used inside fixed-height containers */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 06. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(150deg, #0C2D38 0%, #0F4C5C 50%, #145E72 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-body), transparent);
  z-index: 3;
}
.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='rgba(201,162,39,0.1)' stroke-width='1.5'/%3E%3Cpath d='M40 12L68 40L40 68L12 40Z' fill='none' stroke='rgba(201,162,39,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 65% 45%, rgba(201,162,39,.07) 0%, transparent 55%);
}
.hero > .container { position: relative; z-index: 4; }
.hero-content { position: relative; z-index: 4; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  animation: heroScroll 2s ease-in-out infinite;
}
@keyframes heroScroll {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.35);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hero-title span { color: var(--accent); }
.hero-ayat {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  font-style: italic;
  margin-bottom: .5rem;
}
.hero-ayat-ref {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: block;
}
.hero-subtitle {
  font-size: 1.02rem;
  color: rgba(255,255,255,.78);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Prayer Box */
.hero-prayer-box {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.hero-prayer-box-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.prayer-card-hero {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .45rem;
  transition: all var(--transition);
}
.prayer-card-hero:last-child { margin-bottom: 0; }
.prayer-card-hero.active-prayer {
  background: var(--accent);
  border-color: var(--accent);
}
.prayer-card-hero .p-name {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .87rem;
  color: rgba(255,255,255,.85);
}
.prayer-card-hero .p-name i { font-size: .8rem; color: rgba(255,255,255,.4); }
.prayer-card-hero.active-prayer .p-name { color: var(--secondary); }
.prayer-card-hero.active-prayer .p-name i { color: var(--secondary); opacity: .6; }
.prayer-card-hero .p-time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.prayer-card-hero.active-prayer .p-time { color: var(--secondary); }
.next-prayer-badge {
  font-size: .65rem;
  background: var(--secondary);
  color: var(--accent);
  font-weight: 700;
  padding: .1rem .4rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* 07. STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--primary);
  padding: 1.25rem 0;
  position: relative;
  z-index: 10;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.stat-item {
  text-align: center;
  position: relative;
  padding: .5rem 1rem;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.18);
}
.stat-icon {
  display: block;
  font-size: 1.4rem;
  color: rgba(255,255,255,.3);
  margin-bottom: .1rem;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.68);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* 08. SELAMAT DATANG / ABOUT
   ============================================================ */
.about-section { padding: 80px 0; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.about-img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-cream) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.about-img-placeholder img { border-radius: var(--radius-xl); }
.about-img-placeholder .geo-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(15,76,92,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .78rem;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  line-height: 1.2;
}
.about-badge span {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: .1rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1rem;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.feature-icon.gold { background: var(--accent-light); color: var(--accent); }
.feature-text h6 { font-size: .9rem; font-weight: 700; color: var(--text-dark); margin-bottom: .1rem; }
.feature-text p { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* 09. JADWAL SHOLAT (Homepage widget)
   ============================================================ */
.sholat-section {
  background: var(--bg-cream);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.sholat-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='rgba(201,162,39,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.sholat-header-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.sholat-header-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.sholat-header-card > * { position: relative; }
.sholat-date-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: .2rem; }
.sholat-date-val { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin-bottom: .1rem; }
.sholat-hijriyah { font-size: .85rem; color: var(--accent); margin-bottom: 1.5rem; }
.sholat-divider { border-color: rgba(255,255,255,.15); margin: 1rem 0; }
.sholat-next-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .2rem; }
.sholat-next-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: .15rem; }
.sholat-next-time { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.sholat-location { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .3rem; }

.prayer-time-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem .75rem;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
}
.prayer-time-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-3px);
}
.prayer-time-card.active {
  background: var(--primary);
  border-color: var(--primary);
}
.prayer-time-card .pt-icon {
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
  margin-bottom: .5rem;
}
.prayer-time-card.active .pt-icon { color: var(--accent); }
.prayer-time-card .pt-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-dark);
  margin-bottom: .25rem;
}
.prayer-time-card.active .pt-name { color: rgba(255,255,255,.85); }
.prayer-time-card .pt-time {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.prayer-time-card.active .pt-time { color: var(--accent); }
.prayer-time-card .pt-iqamah {
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .2rem;
}
.prayer-time-card.active .pt-iqamah { color: rgba(255,255,255,.55); }

/* 10. KEGIATAN CARDS
   ============================================================ */
.kegiatan-section { padding: 80px 0; }
.kegiatan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.kegiatan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.kegiatan-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.kegiatan-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kegiatan-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='rgba(15,76,92,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.kegiatan-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 1;
}
.kegiatan-badge.mingguan { background: var(--primary); color: var(--white); }
.kegiatan-badge.bulanan  { background: var(--accent); color: var(--white); }
.kegiatan-badge.harian   { background: #27AE60; color: var(--white); }
.kegiatan-badge.tahunan  { background: #8E44AD; color: var(--white); }
.kegiatan-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.kegiatan-schedule {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .77rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.kegiatan-schedule i { color: var(--accent); }
.kegiatan-card h5 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: .4rem; line-height: 1.4; }
.kegiatan-card p { font-size: .83rem; color: var(--text-muted); margin-bottom: .75rem; flex: 1; }
.kegiatan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
}
.kegiatan-pemateri { font-size: .77rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.kegiatan-pemateri i { color: var(--primary); }

/* 11. BERITA CARDS (Homepage)
   ============================================================ */
.berita-section { padding: 80px 0; background: var(--bg-section); }
.berita-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.berita-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.berita-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary);
  overflow: hidden;
  position: relative;
}
.berita-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.berita-category {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .5rem;
  background: var(--primary-light);
  color: var(--primary);
}
.berita-category.donasi   { background: var(--accent-light); color: var(--accent-dark); }
.berita-category.kegiatan { background: #E8F5E9; color: #2E7D32; }
.berita-category.sosial   { background: #FCE4EC; color: #C62828; }
.berita-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.berita-body h5 { font-size: .97rem; font-weight: 700; color: var(--text-dark); margin-bottom: .35rem; line-height: 1.45; }
.berita-body h5 a { color: inherit; }
.berita-body h5 a:hover { color: var(--primary); }
.berita-body p { font-size: .83rem; color: var(--text-muted); margin-bottom: .75rem; flex: 1; }
.berita-meta { display: flex; align-items: center; gap: .65rem; font-size: .74rem; color: var(--text-muted); flex-wrap: wrap; }
.berita-meta i { color: var(--accent); }

/* 12. GALERI PREVIEW
   ============================================================ */
.galeri-section { padding: 80px 0; }
.galeri-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  display: block;
  transition: all var(--transition);
}
.galeri-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.galeri-item .galeri-icon { font-size: 1.8rem; color: var(--primary); opacity: .4; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeri-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,45,56,.85), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}
.galeri-item:hover .galeri-item-overlay { opacity: 1; }
.galeri-item-overlay span { color: var(--white); font-size: .78rem; font-weight: 600; }

/* 13. DONASI SECTION (Homepage)
   ============================================================ */
.donasi-section { padding: 80px 0; background: var(--bg-cream); position: relative; overflow: hidden; }
.donasi-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='rgba(201,162,39,0.06)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}
.donasi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
}
.donasi-card:hover { box-shadow: var(--shadow-md); }
.donasi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: .9rem;
  background: var(--primary-light);
  color: var(--primary);
}
.donasi-icon.gold { background: var(--accent-light); color: var(--accent); }
.donasi-icon.green { background: #E8F5E9; color: #2E7D32; }
.donasi-card h6 { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: .35rem; }
.donasi-card p { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.progress {
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  overflow: hidden;
  margin-bottom: .4rem;
}
.progress-bar { background: var(--primary); border-radius: var(--radius-pill); }
.progress-bar.accent { background: var(--accent); }
.progress-bar.green { background: #27AE60; }
.donasi-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: .73rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.donasi-progress-labels .terkumpul { color: var(--primary); }
.donasi-progress-labels .target { color: var(--text-muted); }
.donasi-persen { font-size: .72rem; color: var(--text-muted); }
.donasi-cta-box {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.donasi-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201,162,39,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.donasi-cta-box > * { position: relative; }
.donasi-cta-box h2 { font-family: var(--font-head); font-size: clamp(1.4rem,2.5vw,2rem); color: var(--white); margin-bottom: .65rem; }
.donasi-cta-box p { color: rgba(255,255,255,.75); max-width: 480px; margin: 0 auto 1.5rem; font-size: .92rem; }

/* 14. TAKMIR / PENGURUS
   ============================================================ */
.takmir-section { padding: 80px 0; }
.takmir-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}
.takmir-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.takmir-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--white);
  margin: 1.5rem auto .75rem;
}
.takmir-name { font-weight: 700; font-size: .95rem; color: var(--text-dark); margin-bottom: .1rem; }
.takmir-jabatan { font-size: .78rem; color: var(--primary); font-weight: 700; margin-bottom: .2rem; }
.takmir-kontak { font-size: .74rem; color: var(--text-muted); padding-bottom: 1.25rem; }
.takmir-card-featured {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.takmir-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.takmir-card-featured > * { position: relative; }
.takmir-avatar-featured {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--white);
  margin: 0 auto 1rem;
}
.takmir-card-featured .takmir-name { color: var(--white); font-size: 1.05rem; }
.takmir-card-featured .takmir-jabatan { color: var(--accent); }
.takmir-card-featured .takmir-kontak { color: rgba(255,255,255,.6); }

/* 15. HIKMAH / QURAN AYAT BLOCK
   ============================================================ */
.hikmah-section { padding: 60px 0; }
.hikmah-block {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hikmah-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201,162,39,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.hikmah-block > * { position: relative; }
.hikmah-ornament { color: var(--accent); font-size: 1.5rem; margin-bottom: .75rem; opacity: .8; }
.hikmah-arabic {
  font-size: clamp(1.1rem,2.5vw,1.6rem);
  color: var(--accent);
  font-style: italic;
  line-height: 2;
  margin-bottom: .75rem;
  font-family: var(--font-head);
}
.hikmah-latin { font-size: .95rem; color: rgba(255,255,255,.82); font-style: italic; margin-bottom: .4rem; }
.hikmah-sumber { font-size: .75rem; color: rgba(255,255,255,.45); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* 16. PAGE HEADER (Inner pages)
   ============================================================ */
.page-header {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--secondary) 0%, var(--primary) 100%);
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201,162,39,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.page-header > .container { position: relative; z-index: 2; }
.page-header .breadcrumb { background: transparent; padding: 0; margin-bottom: .5rem; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255,255,255,.65); font-size: .8rem; }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.page-header h1 { font-family: var(--font-head); font-size: clamp(1.75rem,4vw,2.75rem); color: var(--white); margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.72); font-size: .97rem; max-width: 580px; margin: 0; }

/* 17. JADWAL SHOLAT PAGE
   ============================================================ */
.jadwal-page-section { padding: 80px 0; }
.jadwal-table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.jadwal-table-card table thead th {
  background: var(--primary);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .85rem 1rem;
  border: none;
  white-space: nowrap;
}
.jadwal-table-card table thead th:first-child { border-radius: 0; }
.jadwal-table-card table tbody td {
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--text-dark);
  vertical-align: middle;
  border-color: var(--border);
}
.jadwal-table-card table tbody tr:hover { background: var(--bg-section); }
.jadwal-table-card table tbody tr.today td { background: var(--primary-light); font-weight: 700; color: var(--primary); }
.jadwal-time-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary);
}
.jadwal-time-badge.maghrib { color: var(--accent-dark); }

.imam-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.imam-card:hover { box-shadow: var(--shadow-md); }
.imam-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}
.imam-name { font-weight: 700; font-size: .9rem; color: var(--text-dark); margin-bottom: .05rem; }
.imam-role { font-size: .75rem; color: var(--primary); font-weight: 700; margin-bottom: .05rem; }
.imam-schedule { font-size: .73rem; color: var(--text-muted); }

/* 18. KEGIATAN PAGE
   ============================================================ */
.kegiatan-page-section { padding: 80px 0; }
.filter-wrap { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  background: var(--bg-section);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* 19. DONASI PAGE
   ============================================================ */
.donasi-page-section { padding: 80px 0; }
.donasi-program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.donasi-program-card:hover { box-shadow: var(--shadow-md); }
.donasi-program-card.urgent { border-left-color: var(--accent); }
.donasi-program-name { font-weight: 700; font-size: 1rem; color: var(--text-dark); margin-bottom: .3rem; }
.donasi-program-desc { font-size: .83rem; color: var(--text-muted); margin-bottom: 1rem; }
.donasi-amount-collected { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.donasi-amount-collected.urgent { color: var(--accent); }
.donasi-amount-target { font-size: .78rem; color: var(--text-muted); }

.bank-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.bank-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.bank-logo {
  width: 64px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .78rem;
  color: var(--primary);
  flex-shrink: 0;
}
.bank-info { flex: 1; }
.bank-name { font-weight: 700; font-size: .88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.bank-rek { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: .1rem 0; }
.bank-atas-nama { font-size: .78rem; color: var(--text-muted); }

.konfirmasi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
}
.konfirmasi-card h5 { font-family: var(--font-head); font-size: 1.2rem; color: var(--primary); margin-bottom: 1.25rem; }

/* 20. BERITA PAGE
   ============================================================ */
.berita-page-section { padding: 80px 0; }
.berita-list-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  margin-bottom: 1.25rem;
}
.berita-list-card:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.berita-list-img {
  width: 190px;
  min-width: 190px;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}
.berita-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.berita-list-body { padding: 1.25rem; flex: 1; }
.berita-list-body h5 { font-size: .98rem; font-weight: 700; color: var(--text-dark); margin-bottom: .3rem; line-height: 1.45; }
.berita-list-body h5 a { color: inherit; }
.berita-list-body h5 a:hover { color: var(--primary); }
.berita-list-body p { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
@media (max-width: 575.98px) {
  .berita-list-card { flex-direction: column; }
  .berita-list-img { width: 100%; min-width: 0; aspect-ratio: 16/9; height: auto; }
}

/* 21. SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.sidebar-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-title i { color: var(--primary); }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { border-bottom: 1px solid var(--border); }
.sidebar-cat-list li:last-child { border-bottom: none; }
.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 0;
  color: var(--text-dark);
  font-size: .875rem;
  font-weight: 600;
  transition: color var(--transition);
}
.sidebar-cat-list a:hover,
.sidebar-cat-list a.active { color: var(--primary); font-weight: 700; }
.sidebar-cat-list .badge { background: var(--primary-light); color: var(--primary); font-size: .7rem; border-radius: var(--radius-pill); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.sidebar-cta > * { position: relative; }
.sidebar-cta h6 { font-family: var(--font-head); font-size: 1rem; color: var(--white); margin-bottom: .4rem; }
.sidebar-cta p { font-size: .8rem; color: rgba(255,255,255,.72); margin-bottom: .75rem; }

.recent-post-item {
  display: flex;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-img {
  width: 54px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--primary);
  overflow: hidden;
}
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.recent-post-text a { font-size: .8rem; font-weight: 700; color: var(--text-dark); line-height: 1.35; display: block; margin-bottom: .15rem; }
.recent-post-text a:hover { color: var(--primary); }
.recent-post-date { font-size: .7rem; color: var(--text-muted); }

/* 22. BERITA DETAIL
   ============================================================ */
.article-hero {
  background: linear-gradient(150deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 120px 0 50px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201,162,39,0.09)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.article-hero > .container { position: relative; z-index: 2; }
.article-hero h1 { font-family: var(--font-head); font-size: clamp(1.5rem,3.5vw,2.4rem); color: var(--white); line-height: 1.3; margin-bottom: .75rem; }
.article-hero-meta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; color: rgba(255,255,255,.65); font-size: .8rem; }
.article-hero-meta span { display: flex; align-items: center; gap: .3rem; }
.article-hero-meta i { color: var(--accent); }

.article-img-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, var(--primary-light), var(--bg-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
}
.article-img-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: .95rem; line-height: 1.88; color: var(--text-dark); }
.article-body p { margin-bottom: 1.25rem; }
.article-body h4 { font-family: var(--font-head); font-size: 1.2rem; color: var(--primary); margin: 1.75rem 0 .75rem; }
.article-blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dark);
}
.article-blockquote cite { display: block; margin-top: .4rem; font-size: .78rem; font-style: normal; font-weight: 700; color: var(--accent-dark); }
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.article-tags .tag { background: var(--primary-light); color: var(--primary); font-size: .73rem; font-weight: 700; padding: .2rem .65rem; border-radius: var(--radius-pill); }
.article-share { display: flex; align-items: center; gap: .65rem; padding: 1rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.article-share span { font-size: .83rem; font-weight: 700; color: var(--text-muted); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .77rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn.fb { background: #1877F2; color: #fff; }
.share-btn.wa { background: #25D366; color: #fff; }
.share-btn.tw { background: #1DA1F2; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }

.author-card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}
.author-info h6 { font-weight: 700; font-size: .9rem; color: var(--text-dark); margin-bottom: .12rem; }
.author-info .role { font-size: .76rem; color: var(--primary); font-weight: 700; margin-bottom: .25rem; }
.author-info p { font-size: .8rem; color: var(--text-muted); margin: 0; }

.article-nav { display: flex; gap: 1rem; margin: 2rem 0; }
.article-nav-link {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: all var(--transition);
}
.article-nav-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-nav-link.prev { text-align: left; }
.article-nav-link.next { text-align: right; }
.article-nav-link .dir { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .2rem; }
.article-nav-link .title { font-size: .875rem; font-weight: 700; color: var(--primary); line-height: 1.3; }

/* 23. GALERI PAGE
   ============================================================ */
.galeri-page-section { padding: 80px 0; }
.galeri-grid .galeri-item { aspect-ratio: 1; }

/* 24. KONTAK
   ============================================================ */
.kontak-section { padding: 80px 0; }
.kontak-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition);
  height: 100%;
}
.kontak-info-card:hover { box-shadow: var(--shadow-md); }
.kontak-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.kontak-icon-wrap.gold { background: var(--accent-light); color: var(--accent); }
.kontak-info-content h6 { font-weight: 700; font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.kontak-info-content p, .kontak-info-content a { font-size: .9rem; color: var(--text-dark); margin: 0; font-weight: 600; }
.kontak-info-content a:hover { color: var(--primary); }
.kontak-form-card { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; height: 350px; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* 25. PROFIL PAGE
   ============================================================ */
.profil-section { padding: 80px 0; }
.profil-identity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.profil-identity-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.profil-identity-row:last-child { border-bottom: none; padding-bottom: 0; }
.profil-identity-label {
  width: 140px;
  min-width: 140px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.profil-identity-val { font-size: .9rem; color: var(--text-dark); font-weight: 600; flex: 1; }
.profil-identity-val a { color: var(--primary); }

.fasilitas-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.fasilitas-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.fasilitas-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0 auto .75rem;
}
.fasilitas-icon.gold { background: var(--accent-light); color: var(--accent); }
.fasilitas-item h6 { font-size: .9rem; font-weight: 700; color: var(--text-dark); margin-bottom: .15rem; }
.fasilitas-item p { font-size: .78rem; color: var(--text-muted); margin: 0; }

.visi-misi-card {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}
.visi-misi-card.misi { background: var(--accent-light); }
.visi-misi-card h4 { font-family: var(--font-head); font-size: 1.2rem; color: var(--primary); margin-bottom: 1rem; }
.visi-misi-card.misi h4 { color: var(--accent-dark); }
.misi-list { list-style: none; padding: 0; margin: 0; }
.misi-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text-dark); margin-bottom: .6rem; }
.misi-list li::before { content: '✦'; color: var(--accent); font-size: .7rem; margin-top: .3rem; flex-shrink: 0; }

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  bottom: -2rem;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-year {
  width: 50px;
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  color: var(--white);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}
.timeline-year.accent { background: var(--accent); }
.timeline-content { padding-top: .5rem; }
.timeline-content h6 { font-weight: 700; font-size: .95rem; color: var(--text-dark); margin-bottom: .25rem; }
.timeline-content p { font-size: .83rem; color: var(--text-muted); margin: 0; }

/* 26. FOOTER
   ============================================================ */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,.72);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(201,162,39,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.footer > * { position: relative; }
.footer-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .9rem;
}
.footer-brand-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.footer-brand-tagline { font-size: .8rem; color: rgba(255,255,255,.48); margin-bottom: 1.1rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: .45rem;
  font-size: .82rem;
}
.footer-contact-item i { color: var(--accent); font-size: .88rem; margin-top: .2rem; flex-shrink: 0; }
.footer-heading {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(201,162,39,.25);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .38rem; }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-links a i { font-size: .75rem; color: var(--accent); }
.footer-links a:hover { color: var(--accent); }

.footer-sholat-mini { list-style: none; padding: 0; margin: 0; }
.footer-sholat-mini li {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .8rem;
}
.footer-sholat-mini li:last-child { border-bottom: none; }
.footer-sholat-mini .sholat-nm { color: rgba(255,255,255,.6); }
.footer-sholat-mini .sholat-tm { color: var(--accent); font-weight: 700; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .77rem;
  color: rgba(255,255,255,.42);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--accent); }

/* 27. BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--accent); transform: translateY(-3px); }

/* 28. LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#lightbox.active { opacity: 1; pointer-events: auto; }
#lightboxImg { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-lg); box-shadow: 0 20px 80px rgba(0,0,0,.5); }
#lightboxClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
#lightboxClose:hover { background: var(--accent); border-color: var(--accent); }

/* 29. RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero { padding: 110px 0 60px; }
  .about-section,.sholat-section,.kegiatan-section,.berita-section,
  .galeri-section,.donasi-section,.takmir-section,.hikmah-section,
  .jadwal-page-section,.kegiatan-page-section,.donasi-page-section,
  .berita-page-section,.galeri-page-section,.kontak-section,
  .profil-section { padding: 60px 0; }
  .page-header { padding: 100px 0 50px; }
}
@media (max-width: 767.98px) {
  .stat-item + .stat-item::before { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-nav { flex-direction: column; }
  .berita-list-img { display: none; }
}
