html {
  overflow-y: scroll;
  scrollbar-width: thin;
}

/* Scrollbar Chrome */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #4A90C7;
  border-radius: 10px;
}

* { 
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: white;
}
/* ===================================
   NAVBAR STYLES
   =================================== */

/* NAVBAR DESKTOP */
nav {
  width: 100%;
  background-color:rgb(0, 119, 179);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
}

.left-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.left-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.school-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 5rem;
  list-style: none;
  margin-right: 60px;
}

nav ul a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: 0.3s;
}

nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s;
}

nav ul a:hover::after {
  width: 100%;
}

/* Hamburger Menu Button - Hidden di Desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Animasi Hamburger saat aktif */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   NAVBAR RESPONSIVE
   =================================== */
/* ===================================
   NAVBAR RESPONSIVE
   =================================== */

/* Tablet - 1024px ke bawah */
@media screen and (max-width: 1024px) {
  nav ul {
    gap: 3rem;
    margin-right: 30px;
}
}

/* ===============================
   Mobile - 768px ke bawah
   =============================== */
 @media screen and (max-width: 768px) {
  /* Navbar Mobile */
  nav {
    padding: 1rem 1rem 1rem 0.6rem; /* kiri lebih kecil */
    position: relative;
}

.school-name {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-28px);
}

.left-box img {
    width: 40px;
    height: 40px;
    transform: translateX(-28px);
}

  
    .hamburger {
      position: absolute !important;
      right: 14px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      display: flex !important;
    }
  

    nav ul {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background-color: rgb(0, 119, 179);
      flex-direction: column;
      justify-content: center;
      gap: 2rem;
      margin-right: 0;
      transition: right 0.4s ease;
      box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  }

  nav ul.active {
    right: 0;
}

nav ul a {
    font-size: 20px;
    padding: 10px 20px;
}
}

/* Small Mobile - 480px ke bawah */
@media screen and (max-width: 480px) {
  nav {
      padding: 0.8rem 1rem;
  }

  .school-name {
      font-size: 14px;
      letter-spacing: 0.5px;
      transform: translateX(-28px);
  }

  .left-box img {
      width: 35px;
      height: 35px;
      transform: translateX(-28px);
  }

  nav ul {
      width: 80%;
  }
}
/* ===================================
   FIX KONTEN TIDAK TERTUTUP NAVBAR
   =================================== */
.page-content {
  padding: 30px 20px;
  min-height: calc(100vh - 90px);
}

@media screen and (max-width: 768px) {
  .page-content {
    padding: 25px 15px;
  }
}

@media screen and (max-width: 480px) {
  .page-content {
    padding: 20px 15px;
  }
}


/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* ===== ABOUT ===== */
.about-section {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.about-image {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.about-text {
  font-size: 1.05em;
  color: #555;
  line-height: 1.9;
  text-align: justify;

  /* === FIX MASALAH TEKS PANJANG === */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ===== VALUES ===== */
.values-section {
  margin-top: 150px;
  margin-bottom: 100px;
}

.values-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 50px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.value-card {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  transition: 0.3s;
}

.value-card:hover {
  border-color: #3498db;
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.1);
  transform: translateY(-3px);
}

.value-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.value-desc {
  font-size: 0.95em;
  color: #666;
  line-height: 1.7;
}

/* ===== COMMITMENT ===== */
.commitment-section {
  background: #f8f9fa;
  padding: 60px;
  border-radius: 8px;
  border-left: 5px solid #3498db;
}

.commitment-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 25px;
}

.commitment-section p {
  font-size: 1.05em;
  color: #555;
  line-height: 1.9;
  text-align: justify;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-section {
      grid-template-columns: 1fr;
  }

  .values-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
      flex-direction: column;
      gap: 15px;
  }

  nav ul {
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
  }

  .container {
      padding: 50px 25px;
  }

  .about-image {
      height: 300px;
  }

  .commitment-section {
      padding: 35px 25px;
  }
}

