/* ===== HERO SPLIT LAYOUT (Kedungrejo Style Teal) ===== */
.hero-split {
  position: relative;
  min-height: 100vh;
  /* Menggunakan foto lapangan sekolah & siswa dengan overlay gradient gelap-teal professional agar teks kontras dan terbaca */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(13, 148, 136, 0.6) 50%, rgba(13, 148, 136, 0.75) 100%), 
              url('../../assets/images/hero/school-building.jpg') center 40%/cover no-repeat;
  color: white;
  padding-top: var(--header-total);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-split__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  padding-bottom: 8rem;
  padding-top: 2rem;
}

.hero-split__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
}

.hero-split__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-split__badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: block;
}

.hero-split__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hero-split__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 450px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-split__actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-split .btn--white {
  background: white;
  color: #0f4c42;
  font-weight: 600;
}

.hero-split .btn--teal {
  background: #0D9488;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
}

.hero-split__visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-split__img:hover {
  transform: scale(1.05);
}

.hero-split__curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-split__curve svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ===== STATS OVERLAP ===== */
.stats-overlap {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 4rem;
}

.stats-overlap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stats-card {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.stats-card__num {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stats-card__label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.stats-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #14B8A6;
}

@media (max-width: 992px) {
  .hero-split__inner {
    padding-bottom: 4rem;
  }
  .stats-overlap__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-split__title {
    font-size: 2.5rem;
  }
}
@media (max-width: 576px) {
  .stats-overlap__grid {
    grid-template-columns: 1fr;
  }
  .hero-split__title {
    font-size: 2.0rem;
    line-height: 1.2;
  }
  .hero-split__subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-split__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  .hero-split__actions .btn {
    width: 100%;
    padding: 12px 20px;
  }
  .hero-split__inner {
    padding-bottom: 5rem;
  }
  .stats-overlap {
    margin-top: -45px;
    padding-bottom: 2rem;
  }
  .sambutan-card__body {
    padding: 85px 20px 24px;
  }
  .sambutan-card__avatar {
    width: 120px;
    height: 120px;
  }
  .sambutan-card__box {
    margin-top: 60px;
  }
  .galeri-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .galeri-item img {
    height: 180px;
  }
}

/* ============================================
   HOME PAGE â€” Layout Baru Split Hero
   Terinspirasi template modern: teks kiri, foto kanan
   ============================================ */

/* ===== HERO SPLIT LAYOUT ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #f8f4ff 0%, #f0e8ff 40%, #e8d5f5 100%);
  display: flex;
  align-items: center;
  padding-top: var(--header-total);
  position: relative;
  overflow: hidden;
}

/* Dekoratif blob background */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(89, 35, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
  position: relative;
  z-index: 1;
}

/* ===== LEFT SIDE â€” TEKS ===== */
.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero__info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(89, 35, 90, 0.08);
  border: 1px solid rgba(89, 35, 90, 0.15);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  width: fit-content;
}

.hero__info-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(61, 139, 55, 0.2);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(61, 139, 55, 0.2);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(61, 139, 55, 0.1);
  }
}

.hero__greeting {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: -var(--space-sm);
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero__title span {
  color: var(--primary);
  display: block;
}

.hero__tagline {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

/* ===== RIGHT SIDE â€” FOTO GRID ===== */
.hero__right {
  position: relative;
}

.hero__photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-200);
}

.hero__photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.hero__photo-item:hover img {
  transform: scale(1.05);
}

/* Floating decoration */
.hero__deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  opacity: 0.12;
  z-index: 0;
}

/* ===== STATS BAR (bawah hero, melengkung) ===== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  position: relative;
  padding: var(--space-3xl) 0;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(160deg, #f8f4ff 0%, #f0e8ff 40%, #e8d5f5 100%);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--space-lg) var(--space-xl);
  position: relative;
}

.stat-item+.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-item__number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item__label {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.stat-item__bar {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
}

/* ===== SAMBUTAN ===== */
.sambutan-card__box {
  max-width: 1000px;
  width: 100%;
  margin: 120px auto 0;
  background: var(--white);
  border: 2px solid #5ce5d5;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.sambutan-card__photo-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 220px;
  height: 220px;
}

.sambutan-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: block;
}

.sambutan-card__body {
  padding: 130px 60px 50px;
  position: relative;
  overflow: hidden;
}

.sambutan-card__quote-icon {
  position: absolute;
  right: 40px;
  bottom: 120px;
  font-size: 120px;
  line-height: 1;
  font-family: serif;
  color: rgba(92, 229, 213, 0.08);
  user-select: none;
  pointer-events: none;
}

.sambutan-card__text {
  font-size: var(--font-size-base);
  color: var(--text-body);
  line-height: 1.8;
}

.sambutan-card__text p,
.sambutan-card__paragraph {
  margin-bottom: var(--space-md);
  color: var(--text-body);
}

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

.sambutan-card__divider {
  border-top: 1px solid var(--gray-100);
  margin: 35px 0 25px;
}

.sambutan-card__footer {
  text-align: left;
}

.sambutan-card__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #064e3b;
  margin: 0 0 4px;
}

.sambutan-card__title {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ===== GALERI GRID ===== */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.galeri-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.galeri-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.galeri-item:hover img {
  transform: scale(1.08);
}

.galeri-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-rgb), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.galeri-item:hover .galeri-item__overlay {
  opacity: 1;
}

.galeri-item--wide {
  grid-column: span 2;
}

.galeri-item--wide img {
  height: 220px;
}

/* ===== CTA PPDB ===== */
.cta-ppdb {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
  text-align: center;
  position: relative;
}

.cta-ppdb h2 {
  font-size: var(--font-size-3xl);
}

/* ===== PURWOREJO HERITAGE ===== */
.purworejo-heritage {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2D0E30 100%);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.purworejo-heritage__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.purworejo-heritage__item {
  text-align: center;
  color: var(--white);
}

.purworejo-heritage__item-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.purworejo-heritage__item-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.purworejo-heritage__item-sub {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.6);
}

.purworejo-heritage__divider {
  width: 1px;
  height: 60px;
  background: rgba(212, 175, 55, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero__inner {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: var(--space-2xl) var(--container-padding);
    gap: var(--space-2xl);
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__photo-grid {
    grid-template-rows: 160px 160px;
  }

  .stats-section::before {
    display: none;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item+.stat-item::before {
    display: none;
  }

  .sambutan-card__box {
    max-width: 100%;
    margin-top: 80px;
    border-radius: 20px;
  }

  .sambutan-card__photo-container {
    width: 150px;
    height: 150px;
  }

  .sambutan-card__body {
    padding: 95px 30px 32px;
  }

  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeri-item--wide {
    grid-column: span 2;
  }

  .galeri-item img,
  .galeri-item--wide img {
    height: 160px;
  }

  .cta-ppdb h2 {
    font-size: var(--font-size-2xl);
  }

  .purworejo-heritage__divider {
    display: none;
  }

  .purworejo-heritage__inner {
    gap: var(--space-xl);
  }
}

/* ===== BERITA TERBARU SPECIFIC STYLES ===== */
#berita-terbaru {
  padding: 60px 0 40px;
}

#berita-terbaru .section__header {
  margin-bottom: 32px;
}

#berita-terbaru .section__header h2 {
  font-size: 1.8rem;
}

#berita-terbaru .section__header p {
  font-size: 0.95rem;
}

#berita-terbaru .card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(13, 148, 136, 0.08);
}

#berita-terbaru .card__image {
  height: 155px; /* Reduced from 200px to make it more proportional */
}

#berita-terbaru .card__body {
  padding: 16px; /* Reduced padding from 24px */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#berita-terbaru .card__title {
  font-size: 1rem; /* Reduced from 1.125rem */
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

#berita-terbaru .card__text {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-muted);
}

#berita-terbaru .card__meta {
  margin-top: auto; /* Push meta info to the bottom */
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}

/* Slider Dots on Desktop/Tablet are hidden */
.berita-slider-dots {
  display: none;
}

@media (max-width: 640px) {
  .berita-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
  }
  
  #beritaGrid {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .berita-slide {
    width: 100% !important;
    flex-shrink: 0;
    padding: 0 12px;
    box-sizing: border-box;
  }
  
  .berita-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }
  
  .berita-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .berita-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
  }
}
