* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

header {
    background-color: #003366;
    padding: 10px 0;
}

/* Styling untuk logo dan nama sekolah */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #003366; /* Warna latar belakang */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px; /* Atur ukuran logo */
    margin-right: 15px; /* Jarak antara logo dan nama sekolah */
}

.school-name {
    font-size: 40px; /* Ukuran font nama sekolah */
    color: white; /* Warna teks */
    font-weight: bold; /* Menebalkan nama sekolah */
    font-family: 'Arial', sans-serif; /* Menggunakan font sans-serif */
}

/* Styling untuk Navbar */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links li a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 0px 0px;
    transition: color 0.3s ease;
}

.nav-links li a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-links li a:hover {
    transform: scale(1.1);
}

.nav-links li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #3498db;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

header .nav-links {
    list-style: none;
    display: flex;
}

header .nav-links li {
    margin-left: 20px;
}

header .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: 700px;
}

.fade {
    animation: fadeEffect 20s infinite;
}

@keyframes fadeEffect {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Tombol navigasi */
.prev, .next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.main-content {
    padding: 50px 20px;
    text-align: center;
}

.main-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 20px;
    color: #555;
}

footer {
    background-color: #001e3a;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .box {
    display: flex;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .image {
    flex: 1;
    text-align: center;
    background-color: #f0f0f0;
  }
  
  .image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .content {
    flex: 2;
    padding: 20px;
  }
  
  .content h1 {
    text-align: center;
    color: #333;
  }
  
  .content p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
  }
  
  /* Animasi Umum */
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes zoomIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes slideInRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Fade-in */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
  }
  
  .fade-in.delay-1 { animation-delay: 0.5s; }
  .fade-in.delay-2 { animation-delay: 1s; }
  .fade-in.delay-3 { animation-delay: 1.5s; }
  .fade-in.delay-4 { animation-delay: 2s; }
  .fade-in.delay-5 { animation-delay: 2.5s; }
  
  /* Zoom-in */
  .zoom-in {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 1s forwards;
    animation-delay: 0.3s;
  }
  
  /* Slide-in from Right */
  .slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s forwards;
    animation-delay: 0.5s;
  }

/* Section Berita */
.news-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
    color: #333;
}

.news-section h2 {
    font-size: 32px;
    color: #003366;
    text-align: center;
    margin-bottom: 40px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.news-text {
    padding: 20px;
}

.news-title {
    font-size: 20px;
    color: #003366;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    text-decoration: none;
    color: #003366;
}

.news-title a:hover {
    text-decoration: underline;
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.news-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #666;
}

.maps {
    flex: 1 1 45rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsif untuk perangkat mobile */
@media (max-width: 768px) {
    header .nav-links {
        flex-direction: column; /* Menyusun navbar secara vertikal */
        align-items: flex-start; /* Menyelaraskan item ke kiri */
    }

    header .nav-links li {
        margin: 10px 0; /* Jarak antar item navbar */
    }

    .slideshow-container {
        height: auto; /* Mengatur tinggi slideshow agar responsif */
    }

    .slide img {
        height: auto; /* Mengatur gambar agar responsif */
    }

    .news-list {
        grid-template-columns: 1fr; /* Menampilkan berita dalam satu kolom */
    }

    .news-item {
        flex-direction: column; /* Menyusun gambar di atas teks pada tampilan mobile */
    }

    .news-image img {
        width: 100%; /* Gambar memenuhi lebar kontainer */
        height: auto; /* Mengatur tinggi gambar agar proporsional */
    }
    .main-content {
        padding: 20px; /* Mengurangi padding untuk tampilan mobile */
    }
    .main-content h1 {
        font-size: 28px; /* Mengurangi ukuran font untuk judul */
    }

    .content p {
        font-size: 16px; /* Mengurangi ukuran font untuk teks */
    }
    footer {
        padding: 5px; /* Mengurangi padding footer */
    }
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .box {
        flex-direction: column; /* Susun vertikal di HP */
        align-items: center;
    }

    .image {
        width: 100%;
        padding: 10px;
    }

    .image img {
        width: 90%;
        height: auto;
        border-radius: 8px;
    }

    .content {
        padding: 15px;
        text-align: center;
    }

    .content p {
        font-size: 16px;
    }

    .content h1 {
        font-size: 22px;
    }
}


/* ====== TENTANG KAMI (Baru) ====== */
.tentang-kami {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tentang-kami .content {
  flex: 1;
  max-width: 50%;
  text-align: justify;
}

.tentang-kami .image {
  flex: 1;
  max-width: 45%;
  position: relative;
  aspect-ratio: 16 / 10; /* proporsi 16:9 */
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tentang-kami .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ukuran teks khusus untuk paragraf di bagian Tentang Kami */
.tentang-kami .content p {
  font-size: 16px;  /* kecilin ukuran teks paragraf */
  line-height: 1.7; /* biar jarak antarbaris tetap enak dibaca */
  color: #444;      /* opsional: bikin warnanya sedikit lebih lembut */
}


/* Responsif untuk HP */
@media (max-width: 768px) {
  .tentang-kami {
    flex-direction: column;
    text-align: center;
  }

  .tentang-kami .content,
  .tentang-kami .image {
    max-width: 100%;
  }

  .tentang-kami .image {
    aspect-ratio: auto;
  }
}


/* ===== TESTIMONI ALUMNI ===== */
.testimoni-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f8f8f8;
}

.testimoni-title {
  font-size: 28px;
  color: #003366;
  font-weight: bold;
  margin-bottom: 40px;
  display: inline-block;
  border: 3px solid #003366;  /* border box */
  padding: 10px 25px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.testimoni-box {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  border: 1px solid #ccc;
  border-left: 6px solid #003366; /* aksen warna kiri */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* ===== TESTIMONI DENGAN FOTO ===== */
.testimoni-box {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  border: 1px solid #ccc;
  border-left: 6px solid #003366;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
}

.testimoni-box:hover {
  transform: translateY(-5px);
}

/* Foto alumni */
.alumni-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #003366;
  flex-shrink: 0;
}

/* Teks testimoni */
.testimoni-text {
  text-align: left;
  flex: 1;
}

.testimoni-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.testimoni-text .alumni-name {
  font-weight: bold;
  color: #003366;
  margin-top: 8px;
}

/* Responsif di HP */
@media (max-width: 768px) {
  .testimoni-box {
    flex-direction: column;
    text-align: center;
  }

  .alumni-photo {
    width: 90px;
    height: 90px;
  }

  .testimoni-text {
    text-align: center;
  }
}


.testimoni-box:hover {
  transform: translateY(-5px);
}

.testimoni-box p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.testimoni-box .alumni-name {
  font-weight: bold;
  color: #003366;
  margin-top: 10px;
}

/* Responsif */
@media (max-width: 768px) {
  .testimoni-title {
    font-size: 22px;
    padding: 8px 20px;
  }

  .testimoni-box {
    padding: 20px;
  }

  .testimoni-box p {
    font-size: 15px;
  }
}