.highlight-text {
  font-size: 16px;
  font-weight: 500;
  background: #fefcbf;
  padding: 12px;
  border-left: 4px solid #f6ad55;
  border-radius: 6px;
  margin-bottom: 16px;
}

.mission-list {
  padding-left: 20px;
  line-height: 1.8;
  font-size: 14.5px;
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadePage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

section.card {
  opacity: 0;
  animation-fill-mode: forwards;
}

.card-zigzag:nth-of-type(odd) {
  animation: slideFromRight 1s ease forwards;
}

.card-zigzag:nth-of-type(even) {
  animation: slideFromLeft 1s ease forwards;
}

body {
  background-color: #fefee9;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  overflow-x: hidden;
  font-size: 14px;
}

h1 {
  font-size: 24px;
  color: #0a3d62;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  color: #3c6382;
  font-weight: 600;
  margin-top: 20px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px 0;
  color: #222;
}

#profile p,
#profile ul {
  text-align: justify;
}

nav {
  
  max-width: 1200px; 
  margin: 0 auto;    
  position: sticky;
  top: 0;
  width: 100%; 
  left: 0;
  z-index: 999;
  background: linear-gradient(to right, #FFFFE0, #e0f7ff);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  box-sizing: border-box; 
}

nav .logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 12px;
  margin: 10px 0 0 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #0a3d62;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  display: block;
}

nav ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0a3d62;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 12px;
    width: 100%;
  }

  section.card {
    margin: 16px 16px;
    padding: 24px;
  }
}

section.card {
  width: 900px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background: #fff;
  padding: 32px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 1 !important;
  position: relative;
  gap: 35px;
  justify-content: space-between; 
}

section.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

section.card img {
  width: 80%;  
  max-width: 400px; 
  height: auto;
  display: block;
  margin: 0 auto; 
}

.headmasters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.headmaster-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 240px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.headmaster-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.headmaster-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.headmaster-card h3 {
  font-size: 18px;
  color: #0a3d62;
  margin: 0 0 6px;
}

.headmaster-card p {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin: 0;
}

.message-section {
  display: flex;
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  max-width: 960px;
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.message-form,
.output-box {
  flex: 1;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-form label {
  font-size: 14px;
  font-weight: 600;
  color: #0a3d62;
}

.message-form input[type="text"],
.message-form input[type="date"],
.message-form textarea {
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.message-form textarea {
  min-height: 120px;
  resize: vertical;
}

.gender-group {
  margin-bottom: 12px;
}

.gender-group label {
  font-weight: 400;
  margin-right: 12px;
}

.message-form button {
  background-color: #0a3d62;
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.message-form button:hover {
  background-color: #073257;
}

.output-box {
  background: #e0f7ff;
  padding: 20px;
  border-radius: 16px;
  font-family: monospace;
  font-size: 13px;
  min-height: 300px;
  white-space: pre-wrap;
  color: #033e6b;
  border: 1px solid #c6eaf5;
  overflow-y: auto;
  box-sizing: border-box;
}

footer {
  max-width: 1200px; /* maksimal lebar nav/footer */
  margin: 0 auto;    /* supaya center horizontal */
  padding: 10px 20px; /* padding biar isi nggak mepet */
  width: 100%;       /* supaya responsive di layar kecil */
  box-sizing: border-box;
  background-color: #0a3d62;
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .message-section {
    flex-direction: column !important;
  }

  .message-form,
  .output-box {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #0a3d62;
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  nav {
    position: sticky;
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 60px;
  }

  nav ul.show {
    display: flex;
  }
}

body {
  min-width: 320px; 
  overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #222;
  margin: 0;
  background-color: #fefee9;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');

h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 28px;
  background-color: #fff9b1; /* warna sticky note */
  color: #333;
  padding: 16px 24px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  max-width: 100%;
}
