/* Sambutan kepala madrasah — clean institutional */

.sambutan-profil-wrap {
  position: relative;
  padding-block: clamp(40px, 5vw, 56px);
  background: #f3f7f5;
  scroll-margin-top: 96px;
}

.sambutan-profil-wrap--home {
  scroll-margin-top: 0;
  padding-block: clamp(32px, 4vw, 48px);
}

.sambutan-profil-wrap--profil {
  padding-block: clamp(48px, 6vw, 72px);
}

.sambutan-profil-wrap > .container {
  position: relative;
  z-index: 1;
}

/* Stage: 35% foto · 65% konten */
.sambutan-profil-stage {
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 65%);
  gap: 32px;
  align-items: stretch;
}

/* Foto kiri */
.sambutan-profil-visual {
  max-width: 100%;
  display: flex;
}

.sambutan-profil-portrait {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 48px rgba(16, 24, 32, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.sambutan-profil-photo,
.sambutan-profil-photo-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 16%;
  background: #e5ebe8;
}

.sambutan-profil-photo-placeholder {
  display: grid;
  place-items: center;
  color: #166534;
}

.sambutan-profil-identity {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 18, 14, 0.78) 100%);
}

.sambutan-profil-identity strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sambutan-profil-identity span:not(.sambutan-profil-identity-accent) {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.sambutan-profil-identity-accent {
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: #22c55e;
}

/* Kartu konten kanan */
.sambutan-profil-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  padding: 32px 36px;
  border: 1px solid #e5eee9;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 16px 40px rgba(16, 24, 32, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.sambutan-profil-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.sambutan-profil-kicker {
  margin: 0;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sambutan-profil-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.sambutan-profil-title-accent {
  color: #166534;
}

/* Area teks + fade */
.sambutan-profil-body-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.sambutan-profil--home .sambutan-profil-body {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #166534 #edf1ee;
}

.sambutan-profil--home .sambutan-profil-body:focus {
  outline: 2px solid rgba(22, 101, 52, 0.2);
  outline-offset: 4px;
  border-radius: 8px;
}

.sambutan-profil--home .sambutan-profil-body::-webkit-scrollbar {
  width: 5px;
}

.sambutan-profil--home .sambutan-profil-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf1ee;
}

.sambutan-profil--home .sambutan-profil-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #166534;
}

.sambutan-profil--home .sambutan-profil-body::-webkit-scrollbar-thumb:hover {
  background: #14532d;
}

.sambutan-profil-body-fade {
  position: absolute;
  inset: auto 16px 0 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 92%);
}

.sambutan-profil-body {
  max-width: 62ch;
}

.sambutan-profil-body p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

.sambutan-profil-body p:last-child {
  margin-bottom: 0;
}

.sambutan-profil-body h2,
.sambutan-profil-body h3,
.sambutan-profil-body h4 {
  margin: 0 0 8px;
  color: #1e293b;
  line-height: 1.35;
}

.sambutan-profil-body ul,
.sambutan-profil-body ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: #475569;
  font-size: 1rem;
  line-height: 1.85;
}

/* CTA */
.sambutan-profil-cta {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid #e5eee9;
}

.sambutan-profil-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sambutan-profil-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.sambutan-profil-cta-link:hover,
.sambutan-profil-cta-link:focus-visible {
  color: #14532d;
}

.sambutan-profil-cta-link:hover .sambutan-profil-cta-arrow,
.sambutan-profil-cta-link:focus-visible .sambutan-profil-cta-arrow {
  transform: translateX(4px);
}

/* Halaman profil — teks penuh tanpa batas tinggi */
.sambutan-profil--page .sambutan-profil-body {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

/* Responsif */
@media (max-width: 960px) {
  .sambutan-profil-stage {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .sambutan-profil-portrait {
    max-width: 320px;
    margin-inline: auto;
  }

  .sambutan-profil-visual {
    justify-content: center;
  }

  .sambutan-profil-card {
    padding: 28px 24px;
  }
}

@media (max-width: 680px) {
  .sambutan-profil-wrap--home {
    padding-block: 32px;
  }

  .sambutan-profil-card-head h2 {
    font-size: clamp(1.875rem, 7vw, 2.125rem);
  }

  .sambutan-profil-card {
    gap: 16px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .sambutan-profil-portrait {
    max-width: 280px;
    border-radius: 18px;
  }

  .sambutan-profil--home .sambutan-profil-body {
    max-height: 240px;
  }

  .sambutan-profil-cta {
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sambutan-profil--home .sambutan-profil-body {
    scroll-behavior: auto;
  }

  .sambutan-profil-cta-arrow {
    transition: none;
  }
}
