/* =====================================================
   PSB 2026 — Ma'had Ar-Ridha Klaten
   Landing Page Stylesheet
   ===================================================== */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background-color: #F8F7F6;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./assets/dot.svg');
  background-repeat: repeat;
  background-size: 14px 14px;
  /* Menyesuaikan gap (semakin besar px, semakin lebar jaraknya) */
  opacity: 0.05;
  /* Mengatur transparansi */
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  width: 100%;
  /* background-color: #F8F7F6; */
  padding: 40px 0 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.06); */
  /* box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06); */
}

.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  /* background-color: #F8F7F6; */
  overflow: hidden;
  min-height: 600px;
  padding: 110px 0 40px 0;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  min-height: 540px;
}

/* — Left side — */
.hero-left {
  position: relative;
  flex: 0 0 560px;
  display: flex;
  align-items: flex-end;
}

.hero-photo {
  width: 594px;
  height: auto;
  position: absolute;
  top: 49px;
  left: 4px;
  transform: scale(1.7);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(1.7) translateY(0); }
  50% { transform: scale(1.7) translateY(-15px); }
}

/* PSB Logo SVG — exact from Paper design */
.hero-psb-svg {
  position: relative;
  bottom: 0;
  left: 0;
  padding-top: 180px;
  width: 539px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  animation: logoFloat 5s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* — Entrance & Scroll Reveal — */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* — Right side — */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.hero-school-name {
  font-family: 'Geist', sans-serif;
  font-weight: 900;
  font-size: 35px;
  line-height: 1.1;
  color: #3D583D;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero-tagline {
  display: inline-block;
  background-color: #3D583D;
  color: #fff;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 24px;
  width: stretch;
  text-align: center;
}

.hero-tahun {
  color: #3D583D;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.hero-programs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-programs-label {
  font-size: 12px;
  font-weight: 600;
  color: #3D583D;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-programs-list {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-prodi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-prodi-badge {
  font-weight: 700;
  font-size: 18px;
  padding: 4px 16px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  cursor: default;
  transition: transform 0.2s;
}

.hero-prodi-badge:hover {
  transform: translateY(-2px);
}

.mahad-badge {
  background-color: #C7ED5F;
  color: #002543;
  font-size: 16px;
}

.gratis-badge {
  background-color: #1B7C57;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.sma-badge {
  background-color: #639AC0;
  color: #fff;
}

.smp-badge {
  background-color: #069FE3;
  color: #fff;
}

.hero-prodi-sub {
  font-size: 11px;
  color: #3D583D;
  font-weight: 500;
  padding-left: 4px;
}

/* CTA Box */
.hero-cta-box {
  background: radial-gradient(circle at bottom, #36C378 0%, #006236 100%);
  border-radius: 44px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  max-width: 440px;
  border: solid #fff 8px;
  box-shadow: 0 0 0 6px #000, 0 12px 40px 6px rgba(17, 80, 56, 0.35);
}

.cta-shine-icon {
  position: absolute;
  top: 45px;
  right: 138px;
  opacity: 1;
}

.hero-cta-text {
  font-family: 'Geist', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
}

.btn-daftar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #C7ED5F;
  color: #1B3D25;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 24px;
  border-radius: 100px;
  width: fit-content;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-daftar:hover {
  background-color: #d8f06e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Wave divider */
.hero-wave-wrapper {
  position: absolute;
  top: 0;
  z-index: 0;
  margin-top: -35px;
  line-height: 0;
  pointer-events: none;
  width: 100%;
  transform: scale(1.3);
}

.hero-wave-wrapper svg {
  width: 100%;
  height: 100%;
}

/* =====================================================
   PROGRAM UNGGULAN
   ===================================================== */
.program-unggulan {
  /* background: linear-gradient(135deg, #1B5E34 0%, #0D3D1F 100%); */
  background-image: radial-gradient(ellipse 65.38571223142655% 96.47925281795948% at 74.74823934744677% 10.994240793566357% in oklab, oklab(75.9% -0.125 0.143) 0%, oklab(43.8% -0.088 0.056) 100%);
  padding: 64px 0 80px;
  position: relative;
  z-index: 0;
}

.section-title-light {
  text-align: center;
  font-family: 'Geist', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #F7E096;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.program-item {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.2s;
}

.program-item:hover {
  transform: translateX(6px);
}

.program-icon-wrap {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: #fff;
  border: 4px solid #115038;
  outline: 2px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s;
}

.program-item:hover .program-icon-wrap {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.program-label {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: #fff;
}

/* =====================================================
   PRODI SECTION
   ===================================================== */
.prodi-section {
  /* background-color: #F8F7F6; */
  padding: 72px 0 80px;
}

.prodi-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.prodi-card {
  /* background: #fff; */
  border-radius: 16px;
  /* box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); */
  width: 330px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  padding-bottom: 24px;
}

.prodi-card:hover {
  /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); */
  transform: translateY(-4px);
}

/* Card Header */
.prodi-card-header {
  display: flex;
  flex-direction: column;
}

.prodi-title-pill {
  font-family: 'Geist', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.25;
  text-transform: uppercase;
  padding: 4px 32px 4px 16px;
  border-radius: 6px 32px 6px 6px;
  width: fit-content;
}

.mahad-pill {
  background-color: #C7ED5F;
  color: #002543;
  font-size: 24px;
}

.sma-pill {
  background-color: #639AC0;
  color: #fff;
}

.smp-pill {
  background-color: #069FE3;
  color: #fff;
}

.prodi-sub-bar {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 0 0 6px 6px;
}

.mahad-sub {
  background-color: #EDCC5F;
  color: #000;
}

.sma-sub {
  background-color: #636BC0;
  color: #fff;
}

.smp-sub {
  background-color: #EDCC5F;
  color: #000;
}

/* Features */
.prodi-features {
  border-radius: 12px 80px 12px 12px;
  padding: 14px 18px;
  /* margin: 0 16px; */
  height: 140px;
  display: flex;
  align-items: center;
}

.mahad-features {
  background: radial-gradient(ellipse 51% 75% at 50% 11% in oklab,
      oklab(97.8% -0.032 0.056) 0%,
      oklab(89.1% -0.093 0.145) 100%);
}

.sma-features {
  background: radial-gradient(ellipse 51% 75% at 50% 11% in oklab,
      oklab(95.9% -0.012 -0.019) 0%,
      oklab(81.3% -0.043 -0.069) 100%);
}

.smp-features {
  background: radial-gradient(ellipse 51% 75% at 50% 11% in oklab,
      oklab(91.1% -0.038 -0.041) 0%,
      oklab(80.7% -0.062 -0.070) 100%);
}

.prodi-features ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prodi-features li {
  font-size: 16px;
  font-weight: 700;
  color: #002543;
  line-height: 1.4;
}

.prodi-features li::before {
  content: '• ';
}

/* Contact */
.prodi-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* padding: 0 16px; */
}

.btn-wa {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-radius: 12px;
  border: 4px solid;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  background-color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.mahad-wa {
  border-color: #C7ED5F;
}

.sma-wa {
  border-color: #90CAF1;
}

.smp-wa {
  border-color: #7CCCF0;
}

.btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #EAEAEA;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  transition: background-color 0.2s;
}

.btn-detail:hover {
  background-color: #f5f5f5;
}

/* =====================================================
   PERIODE PENDAFTARAN
   ===================================================== */
.periode-section {
  background: radial-gradient(ellipse 213% 87% at 50% 50% in oklab,
      oklab(92.9% -0.046 0.190) 0%,
      oklab(70% 0.144 0.141) 100%);
  padding: 56px 0 64px;
}

.section-title-dark {
  text-align: center;
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.periode-list {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.periode-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 48px;
}

.periode-wave-label {
  font-size: 18px;
  font-weight: 700;
  color: #10834C;
  line-height: 1.2;
}

.periode-wave-label.indent {
  color: #9B5D00;
}

.periode-date {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  line-height: 1.35;
}

.periode-divider {
  width: 1px;
  height: 56px;
  background: rgba(0, 0, 0, 0.15);
  align-self: center;
  flex-shrink: 0;
}

/* =====================================================
   KONTAK SECTION
   ===================================================== */
.kontak-section {
  /* background-color: #F8F7F6; */
  padding: 64px 0 72px;
}

.kontak-inner {
  display: flex;
  gap: 80px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}

.kontak-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kontak-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  border-radius: 24px;
  width: fit-content;
  outline: 1px solid #2CCE90;
}

.online-badge {
  background-color: #EA4335;
  color: #fff;
}

.offline-badge {
  background-color: #4285F4;
  color: #fff;
}

.kontak-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.kontak-title {
  font-family: 'Geist', sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.2;
  color: #000;
}

.kontak-address {
  font-size: 15px;
  line-height: 1.5;
  color: #000;
  max-width: 320px;
  margin-top: 8px;
}

.kontak-gmaps {
  font-size: 12px;
  font-weight: 300;
  color: #555;
  margin-top: 2px;
}

.kontak-phone a {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.kontak-phone a:hover {
  color: #1B7C57;
}

.kontak-note {
  font-size: 15px;
  color: #555;
}

.kontak-sep {
  width: 1px;
  height: 120px;
  background: rgba(0, 0, 0, 0.1);
  align-self: center;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  /* background-color: #fff; */
  /* border-top: 1px solid #EAEAEA; */
  padding: 20px 0 60px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  align-items: center;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  border: solid 1px #446644;
  padding: 0 16px;
  border-radius: 48px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* background-color: #fff; */
  /* border: 1px solid #EAEAEA; */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
  transform: scale(1.1);
  filter: grayscale(1);
}

.social-icon:hover {
  transform: scale(1.1);
  filter: grayscale(0);
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* =====================================================
   ANIMATIONS & TRANSITIONS
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-right {
  animation: fadeInUp 0.6s ease both;
}

.hero-right .hero-cta-box {
  animation: fadeInUp 0.7s 0.15s ease both;
}

.program-item {
  animation: fadeInUp 0.5s ease both;
}

.program-item:nth-child(1) {
  animation-delay: 0.05s;
}

.program-item:nth-child(2) {
  animation-delay: 0.12s;
}

.program-item:nth-child(3) {
  animation-delay: 0.19s;
}

.program-item:nth-child(4) {
  animation-delay: 0.26s;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    min-height: unset;
    gap: 0;
  }

  .hero-left {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .hero-photo {
    width: 500px;
  }

  .hero-psb-logo {
    bottom: 120px;
    left: 0;
  }

  .hero-right {
    width: 100%;
    padding-top: 0;
    padding-bottom: 40px;
    align-items: center;
    text-align: center;
  }

  .hero-programs-list {
    justify-content: center;
  }

  .hero-cta-box {
    align-items: center;
    max-width: 100%;
  }

  .hero-school-name {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
  }

  .hero-photo {
    width: 300px;
  }

  .hero-psb-logo {
    bottom: 90px;
    left: -10px;
  }

  .psb-text {
    font-size: 36px;
  }

  .psb-p,
  .psb-s,
  .psb-b {
    font-size: 52px;
  }

  .psb-year-num {
    font-size: 22px;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .prodi-cards {
    flex-direction: column;
    align-items: center;
  }

  .prodi-card {
    width: 100%;
    max-width: 380px;
  }

  .periode-list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .periode-divider {
    width: 80px;
    height: 1px;
  }

  .periode-item {
    text-align: center;
    padding: 0 24px;
  }

  .kontak-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .kontak-sep {
    display: none;
  }

  .section-title-light,
  .section-title-dark {
    font-size: 26px;
  }

  .hero-cta-text {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .hero-school-name {
    font-size: 22px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .hero-tahun {
    font-size: 15px;
  }

  .hero-photo {
    width: 500px;
    left: 5%;
  }

  .psb-text {
    font-size: 28px;
  }

  .hero-wave-wrapper {
    top: 0;
    margin-top: 17px;
    transform: scale(2);
  }

  .psb-p,
  .psb-s,
  .psb-b {
    font-size: 40px;
  }

  .program-label {
    font-size: 22px;
  }

  .program-icon-wrap {
    width: 68px;
    height: 68px;
  }

  .hero-cta-box {
    padding: 22px 24px;
  }

  .hero-cta-text {
    font-size: 32px;
  }

  .btn-daftar {
    font-size: 13px;
    padding: 10px 18px;
  }

  .kontak-block {
    width: 100%;
    align-items: center;
  }

  .kontak-phone a {
    font-size: 20px;
  }

  .kontak-title {
    font-size: 15px;
  }

  .socials {
    border: none;
  }
}

/* =====================================================
   MODAL IMAGE POPUP
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}

.close:hover {
  color: #C7ED5F;
}

@media (max-width: 768px) {
  .close {
    top: 10px;
    right: 20px;
    font-size: 40px;
  }
}