/* ==========================================
   PROFIL-GURU.CSS
   ========================================== */

.red { color: var(--primary); }

/* ── Breadcrumb ─────────────────────────────── */
.ek-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px;
}
.ek-breadcrumb a { color: var(--ink-soft); }
.ek-breadcrumb a:hover { color: var(--primary); }
.ek-breadcrumb svg { width: 13px; height: 13px; }
.ek-breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ── Hero ───────────────────────────────────── */
.pg-hero {
  background: var(--bg-soft);
  padding: 64px 0;
}
.pg-hero .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.pg-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft-2);
}
.pg-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-hero-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: rgba(255,255,255,0.3);
}
.pg-hero-img-fallback svg { width: 96px; height: 96px; }
.pg-hero-body h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin: 0 0 16px; }
.pg-hero-body p  { font-size: 1rem; color: var(--ink-soft); line-height: 1.75; margin: 0 0 28px; max-width: 480px; }
.pg-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 26px; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  transition: background .15s ease;
}
.pg-cta:hover { background: var(--primary-dark); }
.pg-cta svg { width: 16px; height: 16px; }

/* ── Kepala Sekolah ─────────────────────────── */
.pg-principal { padding: 72px 0; }
.pg-principal .container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.pg-principal-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-soft-2);
  flex-shrink: 0;
}
.pg-principal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-principal-eyebrow {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
}
.pg-principal-eyebrow .red { font-weight: 700; }
.pg-principal-body h2 { font-size: 2.2rem; font-weight: 800; margin: 0 0 14px; line-height: 1.15; }
.pg-principal-body > p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 32px; }
.pg-principal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.pg-info-label {
  font-size: 0.82rem; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
}
.pg-info-value { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.pg-info-email {
  font-size: 0.92rem; color: var(--ink-soft);
  word-break: break-all;
}

/* ── Section Guru ───────────────────────────── */
.pg-section { padding: 64px 0; }
.pg-section { background: #fff; }
.pg-section-head { text-align: center; margin-bottom: 36px; }
.pg-section-head h2 { font-size: 1.8rem; font-weight: 800; margin: 0 0 4px; }
.pg-section-head p  { font-size: 1rem; font-weight: 700; margin: 0; }

/* ── Slider wrapper ─────────────────────────── */
.pg-slider-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.pg-slider-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  padding-bottom: 32px;
  margin-bottom: -32px;
}
.pg-slider {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

/* ── Card ───────────────────────────────────── */
.pg-card {
  flex: 0 0 25%;
  padding: 0 8px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}
.pg-card-inner {
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  overflow: visible;
  background: transparent;
  position: relative;
  padding: 8px 8px 56px;
  transition: transform .2s ease;
}
.pg-card:hover .pg-card-inner { transform: translateY(-4px); }
.pg-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-soft-2);
  border-radius: var(--radius-md);
}
.pg-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: var(--radius-md);
  transition: transform .3s ease;
}
.pg-card:hover .pg-card-photo img { transform: scale(1.03); }
.pg-card-body {
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  padding: 12px 14px 14px;
}
.pg-card-name    { font-size: 0.88rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pg-card-jabatan { font-size: 0.76rem; color: var(--primary); margin-top: 4px; line-height: 1.4; font-weight: 500; }

/* ── Nav slider ─────────────────────────────── */
.pg-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
  flex-shrink: 0;
  z-index: 2;
}
.pg-nav-btn:hover:not(:disabled) { background: var(--primary-dark); }
.pg-nav-btn:disabled { background: var(--border); cursor: default; }
.pg-nav-btn svg { width: 20px; height: 20px; }
.pg-nav-btn.pg-prev { margin-right: 12px; }
.pg-nav-btn.pg-next { margin-left: 12px; }

.pg-slider-dots {
  display: flex; gap: 6px; align-items: center;
  justify-content: center; margin-top: 20px;
}
.pg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  padding: 0; transition: all .2s ease;
}
.pg-dot.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* ── Detail Guru ────────────────────────────── */
.pg-detail { padding: 72px 0; }
.pg-detail .container {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.pg-detail-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft-2);
}
.pg-detail-photo img { width: 100%; display: block; object-fit: cover; }
.pg-detail-body h1 { font-size: 2.2rem; font-weight: 800; margin: 12px 0 16px; }
.pg-detail-desc { color: var(--ink-soft); line-height: 1.75; margin: 0 0 32px; }
.pg-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-bottom: 36px;
}
.pg-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 600;
  transition: color .15s ease;
}
.pg-back:hover { color: var(--primary); }
.pg-back svg { width: 16px; height: 16px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 991px) {
  .pg-hero .container { grid-template-columns: 1fr; gap: 32px; }
  .pg-hero-img { max-width: 480px; }
  .pg-hero-body h1 { font-size: 2.2rem; }
  .pg-principal .container { grid-template-columns: 1fr; gap: 32px; }
  .pg-principal-photo { max-width: 320px; aspect-ratio: 1/1; }
  .pg-detail .container { grid-template-columns: 1fr; gap: 32px; }
  .pg-detail-photo { max-width: 360px; }
  .pg-card { flex: 0 0 50%; }
}
@media (max-width: 640px) {
  .pg-hero-body h1 { font-size: 1.7rem; }
  .pg-principal-grid,
  .pg-detail-grid { grid-template-columns: 1fr; }
  .pg-card { flex: 0 0 100%; }
  .pg-nav-btn { width: 36px; height: 36px; }
  .pg-nav-btn.pg-prev { margin-right: 8px; }
  .pg-nav-btn.pg-next { margin-left: 8px; }
}
