:root{
  --accent:#1f6f5b;
  --gold:#a67c3b;

  --bg:#f6f1e9;
  --card:rgba(255,255,255,.72);
  --text:#1f2937;
  --muted:rgba(31,41,55,.72);
  --line:rgba(17,24,39,.12);

  --ink:#133b35;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(31,111,91,.10), transparent 60%),
    linear-gradient(180deg, #fbf7f0, var(--bg));
}
a{ color:inherit; text-decoration:none; }
.u-container{ width:min(1100px,92%); margin:0 auto; }

.u-main{ padding-bottom:40px; padding-top: 10px; }

/* HEADER */
.u-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(251,247,240,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.u-header-inner{
  display:flex;
  gap:16px;
  align-items:center;
  padding:12px 0;
  justify-content:space-between;
}
.u-brand .u-logo{
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.u-tagline{ font-size: 13px; color: var(--muted); margin-top: 2px; }

/* NAV */
.u-nav{ position:relative; }
.u-menu{
  list-style:none;
  display:flex;
  gap:18px;
  padding:0;
  margin:0;
}
.u-menu li a{
  font-weight:650;
  font-size:14px;
  color:#111827;
}
.u-menu li a:hover{ color: var(--accent); }

.u-nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
}

@media (max-width: 900px){
  .u-menu{ display:none; }
  .u-nav-toggle{ display:inline-flex; }
}

.u-menu.is-open{
  display:flex !important;
  flex-direction:column;
  gap:6px;
  position:absolute;
  right:0;
  top:58px;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  box-shadow:0 20px 40px rgba(0,0,0,.10);
  min-width:200px;
  z-index:100;
}
.u-menu.is-open li a{
  padding:10px 12px;
  border-radius:12px;
}
.u-menu.is-open li a:hover{
  background: color-mix(in oklab, var(--accent) 10%, white);
}

/* HERO */
.u-hero{ padding: 26px 0 22px; }
.u-hero-inner{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.55));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 20px;
  box-shadow: 0 30px 70px rgba(0,0,0,.10);
  overflow:hidden;
}
/* Layer gambar hero dari admin */
.u-hero-inner::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  opacity: var(--hero-bg-opacity, .18);
  filter: saturate(.95);
  pointer-events:none;
}

/* Layer gradient overlay (tetap mempertahankan feel mockup) */
.u-hero-inner::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(31,111,91,.18), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(31,111,91,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.15));
  pointer-events:none;
}

.u-hero-tabs{
  position:relative;
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom: 14px;
  color: rgba(17,24,39,.78);
  font-weight: 650;
}
.u-hero-tabs a{ padding:8px 10px; border-radius:12px; }
.u-hero-tabs a:hover{ background: rgba(255,255,255,.55); }

.u-hero-kicker{
  position:relative;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.u-hero-title{
  position:relative;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing:-0.03em;
  line-height:1.08;
  margin: 0 0 10px;
}
.u-hero-sub{
  position:relative;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
}
.u-dot{ margin: 0 8px; opacity:.7; }
.u-hero-quote{
  position:relative;
  font-size: 15px;
  font-style: italic;
  color: #1f2937;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 14px 0 18px;
}
.u-hero-actions{ position:relative; display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 14px; }
.u-hero-social{ position:relative; display:flex; gap:10px; }
.u-hero-social a{
  width:34px; height:34px;
  display:inline-flex;
  align-items:center; justify-content:center;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.65);
  font-size:14px;
}
.u-hero-social a:hover{ background: rgba(255,255,255,.9); }

.u-hero-social{
  position: relative;
  display:flex;
  gap:10px;
  margin-top:14px;
  align-items:center;
}

.u-ico{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.70);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  color: #1f2937;
}

.u-ico svg{ width:20px; height:20px; }

.u-ico:hover{
  transform: translateY(-1px);
  transition: .15s ease;
  border-color: rgba(31,111,91,.25);
  color: var(--accent);
}

.u-ico-yt{ color:#e11d48; }     /* YouTube */
.u-ico-wa{ color:#16a34a; }     /* WhatsApp */

/* BUTTONS */
.u-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.u-btn-gold{ background: var(--gold); color:#fff; }
.u-btn-green{ background: #1e4f49; color:#fff; border-color: rgba(255,255,255,.12); }

/* SECTIONS */
.u-section{ padding: 26px 0; }
.u-section + .u-section{ padding-top: 30px; }

/* headings with ornament divider */
.u-h2{
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing:-0.02em;
  margin: 0 0 14px;
}
/* Alternatif: garis tipis elegan */
.u-h2::after{
  content:"" !important;
  display:block !important;
}

.u-h3{ font-size: 18px; margin: 0 0 10px; }

.u-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.u-link{ color: var(--accent); font-weight: 700; }

/* cards / grids */
.u-card{
  background: rgba(255,255,255,.70);
  border:1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
}
.u-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.u-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }

.u-list{ margin:0; padding-left: 16px; }
.u-note{ font-size: 12px; color: var(--muted); margin-top: 10px; }

/* chips */
.u-chips{ display:flex; gap:10px; flex-wrap:wrap; }
.u-chip{
  background: color-mix(in oklab, var(--accent) 12%, white);
  border:1px solid color-mix(in oklab, var(--accent) 22%, white);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
}

/* table */
.u-table{ width:100%; border-collapse: collapse; }
.u-table th, .u-table td{ border-bottom: 1px solid var(--line); padding: 10px 8px; text-align:left; }
.u-table th{ font-size:12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.u-badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, white);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, white);
  font-size: 12px;
  font-weight: 750;
}
.u-badge-alt{ background: rgba(2,132,199,.12); border-color: rgba(2,132,199,.18); }

/* posts */
.u-card-post .u-thumb{ display:block; border-radius: 14px; overflow:hidden; border: 1px solid var(--line); }
.u-thumb img{ width:100%; height:auto; display:block; }
.u-thumb-ph{ height: 140px; background: linear-gradient(135deg, rgba(31,111,91,.18), rgba(0,0,0,0)); }
.u-excerpt{ color: var(--muted); margin: 0; }

/* content */
.u-content{ line-height: 1.75; }
.u-meta{ font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.u-feature{ margin: 12px 0; }
.u-feature img{ max-width:100%; height:auto; border-radius: 14px; border: 1px solid var(--line); }

/* timeline */
.u-timeline{ display:flex; flex-direction:column; gap: 12px; }
.u-tl-item{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.u-tl-year{ font-weight: 850; color: var(--accent); }
.u-tl-body{ color: #111827; }

/* form */
.u-form label{ display:block; margin: 10px 0 6px; font-weight: 750; font-size: 13px; }
.u-form input, .u-form textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  outline: none;
  background:#fff;
}
.u-alert{ padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--line); }
.u-success{ background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.25); }
.u-danger{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); }

/* footer */
.u-footer{ border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; }

/* responsive */
@media (max-width: 900px){
  .u-grid-3{ grid-template-columns: 1fr; }
  .u-grid-2{ grid-template-columns: 1fr; }
  .u-tl-item{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  .u-hero-inner{ padding: 22px 16px; }
  .u-hero-title{ font-size: 34px; }
  .u-brand .u-logo{ font-size: 18px; }
  .u-tagline{ font-size: 12px; }
}

/* ===== MOBILE POLISH (lebih rapih & profesional) ===== */
@media (max-width: 600px){

  /* jarak antar section lebih ringkas */
  .u-section{ padding: 18px 0; }

  /* header lebih rapi */
  .u-header-inner{ padding: 10px 0; }
  .u-brand .u-logo{ font-size: 17px; line-height: 1.15; }
  .u-tagline{ font-size: 12px; }

  /* judul section lebih proporsional */
  .u-h2{
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 12px;
  }

  /* ornament bawah judul (pendekkan + rapikan) */
  .u-h2::after{
    width: 92px;
    height: 8px;
    margin-top: 8px;
    opacity: .55;
  }

  /* card: kurangin radius dan padding agar terlihat tegas */
  .u-card{
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,.06);
  }

  /* paragraf di card lebih nyaman */
  .u-card p{
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
  }

  /* timeline: rapikan spacing */
  .u-tl-item{
    padding: 12px 0;
    gap: 8px;
  }
  .u-tl-year{
    font-size: 18px;
    letter-spacing: -0.01em;
  }
  .u-tl-body b{
    display:inline-block;
    margin-bottom: 2px;
  }

  /* tombol menu (hamburger) biar lebih minimal */
  .u-nav-toggle{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
  }

  /* kalau menu dropdown kebuka: lebih rapi */
  .u-menu.is-open{
    top: 54px;
    border-radius: 16px;
    padding: 10px;
    min-width: 190px;
  }
}
/* Heading block jadi konsisten & tidak terasa "jatuh" */
.u-container > .u-h2{
  max-width: 720px;
}

/* === Section style: editorial (tanpa card tebal) === */
#tentang .u-card,
#pendidikan .u-card{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
#tentang p{
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(31,41,55,.82);
}
#tentang p{
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.85;
  color: rgba(31,41,55,.80);
}
/* === Divider ornamen antar section (lebih profesional) === */
.u-divider{
  margin: 18px 0 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  opacity:.65;
}

.u-divider::before,
.u-divider::after{
  content:"";
  height:1px;
  width:min(220px, 32vw);
  background: rgba(17,24,39,.16);
}

.u-divider span{
  width:32px;
  height:14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='28'%3E%3Cg fill='none' stroke='%23a67c3b' stroke-width='2'%3E%3Cpath d='M2 14h18'/%3E%3Cpath d='M44 14h18'/%3E%3Cpath d='M32 7c-6 0-10 3-10 7s4 7 10 7 10-3 10-7-4-7-10-7z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}
/* Lebih padat untuk paragraf (Tentang) */
#tentang .u-content,
#tentang p{
  line-height: 1.0x5;     /* sebelumnya terlalu tinggi */
  margin: 0 0 10px;      /* rapikan jarak antar paragraf */
  letter-spacing: 0;     /* hilangkan jarak huruf jika ada */
}

/* Kalau isi Tentang cuma 1 paragraf, biar tidak ada jarak bawah */
#tentang p:last-child{
  margin-bottom: 0;
}

/* Kurangi padding section Tentang supaya lebih ringkas */
#tentang.u-section{
  padding: 14px 0;
}

/* Kalau kamu pakai versi editorial tanpa card, rapikan padding container */
#tentang .u-container{
  padding-top: 4px;
}

/* Rata tengah judul & isi Tentang Ustadz */
#tentang{
  text-align: justify;
}

#tentang p{
  line-height: 1.05;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;   /* biar tetap rapi & tidak terlalu lebar */
}


