/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Navbar */
.navbar-fixed {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: #000080;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== DROPDOWN SMOOTH ANIMATION ===== */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000080;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 4px;
  min-width: 200px;
  z-index: 999;

  /* Animation setup */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.navbar .dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.navbar .dropdown-menu li a:hover {
  background-color: #4169E1;
}

/* Hover effect for smooth dropdown */
.navbar .dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1rem;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.9rem;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links li a:hover,
.nav-links li a.btn-ppdb:hover {
  background-color: #4169E1;
}

.btn-ppdb {
  background-color: #0d47a1;
  border: 1px solid #fff;
}

.hero {
  background-image: url('images/sekul.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0 2rem;
  max-width: 2200px;
  margin: 0 auto;
  color: white;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: 400px; /* geser ke kanan */
  margin-top: -100px; 
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* sebelumnya 0.4, sekarang lebih gelap */
  z-index: 1;
}



.btn-primary {
  background-color: #000080;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.welcome-box {
  background: white;
  width: 85%;
  max-width: 960px;
  margin: -180px auto 20px; /* ⬅️ jarak lebih rapat ke artikel */
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  padding: 1.2rem 2rem;
  gap: 1.2rem;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
}

.welcome-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.welcome-text h2 {
  color: #000080;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.welcome-text p {
  font-size: 0.9rem;
  color: #333;
}

.data-title {
  color: #000080;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.welcome-data {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ⬅️ Biar vertikal rata tengah */
}

.data-title {
  color: #000080;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center; /* ⬅️ Bisa center atau left */
}
.data-grid {
  display: flex;
  justify-content: space-around; /* jarak sama rata */
  align-items: flex-start; /* sejajarkan bagian atas angka */
  gap: 1rem;
}

.data-item {
  flex: 1;
  text-align: center; /* angka & label di tengah */
}

.data-item .angka {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000080;
  margin-bottom: 0.2rem;
}

.data-item .label {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
}

.welcome-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.welcome-buttons a {
  background-color: #000080;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.data-title {
  color: #000080; /* Warna sama seperti judul selamat datang */
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
/* Perkecil jarak antara welcome dan artikel */

.welcome-text p {
  font-size: 0.9rem;
  color: #333;
}

.welcome-data {
  flex: 1;
  min-width: 300px;
}

.welcome-data h3 {
  color: #000080;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.data-grid {
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.data-item {
  flex: 1;
  padding: 0.3rem 0.5rem;
  text-align: left;
  position: relative;
}

.data-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background-color: #000080;
}

.data-item .angka {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000080;
}

.data-item .label {
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Cara Mendaftar Section */
.cara-daftar {
  background-color: #000080;
  color: white;
  padding: 0.5rem 1rem;
  margin: 20px auto 20px 5%;
  max-width: fit-content;
  border-radius: 6px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
}

.cara-daftar h2 {
  font-size: 0.85rem;
  margin: 0;
}

.cara-daftar p {
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.welcome-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%; /* agar tombol full di bawah, bukan di sebelah kanan data */
}
.welcome-buttons a {
  background-color: #000080;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  line-height: 1.2;
}

.berita-box {
  background: white;
  width: 95%;
  max-width: 1200px; /* Lebih besar dari welcome-box */
  margin: -200px auto 0;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 5;
}


.berita {
  margin-top: -30px;    /* ✅ tambahkan ini */
  padding: 60px 5%;
}

.berita-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 16rem;    /* ✅ Tambahkan ini */
  margin-bottom: 2rem;
}


.berita-header h2 {
  font-size: 1.4rem;
  color: #000080;
}

.berita-header p {
  flex: 1;
  font-size: 0.95rem;
  color: #444;
}

.btn-outline {
  border: 2px solid #000080;
  color: #000080;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  background-color: #ddd;
  padding: 2rem;
  border-radius: 16px;
}

.berita-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.berita-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.berita-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.berita-card h3 {
  font-size: 1rem;
  padding: 0.6rem 1rem 0.2rem;
  color: #000080;
}

.berita-card p {
  font-size: 0.85rem;
  padding: 0 1rem 1rem;
  color: #444;
}
a.berita-card {
  text-decoration: none;
  color: inherit;
  display: block;
}


.pengumuman-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 2rem; /* jarak dari artikel */
}

.pengumuman-header h2 {
  color: #000080;
  font-size: 1.4rem;
}

.pengumuman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  background-color: #ddd;
  padding: 2rem;
  border-radius: 16px;
}

.pengumuman-item {
  background: #f4f4f4;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pengumuman-item h3 {
  font-size: 1rem;
  color: #000080;
  margin-bottom: 0.3rem;
}

.pengumuman-item .tanggal {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.pengumuman-item p {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}

/* Gambar dalam artikel */
.berita-card img,
.pengumuman-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

/* Efek timbul saat hover */
.berita-card:hover img,
.pengumuman-item:hover img {
  transform: scale(1.05); /* memperbesar sedikit */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.berita-card h3,
.pengumuman-item h3 {
  font-size: 1rem;
  padding: 0.5rem 0.5rem 0.2rem;
  color: #000080;
}

/* === EKSTRAKURIKULER SECTION ONLY === */

.ekskul-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.ekskul-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ekskul-header h2 {
  color: #000080;
  font-size: 1.4rem;
}

.ekskul-header p {
  flex: 1;
  font-size: 0.95rem;
  color: #444;
}

.ekskul-slider-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.ekskul-slider {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.ekskul-card {
  flex: 0 0 auto;
  width: 200px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.ekskul-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.ekskul-card p {
  font-size: 0.9rem;
  color: #000080;
  margin: 0;
}

.ekskul-card:hover {
  transform: scale(1.03);
}

a.ekskul-card {
  text-decoration: none;
  color: inherit;
  display: block;
}



/* Bagian Prestasi */
.prestasi-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 3rem auto;
  max-width: 1200px;
}

.prestasi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.prestasi-header h2 {
  color: #000080;
  font-size: 1.4rem;
}

.prestasi-header p {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

.prestasi-slider-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.prestasi-slider {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.prestasi-card {
  flex: 0 0 auto;
  width: 280px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.prestasi-card:hover {
  transform: scale(1.03);
}

.prestasi-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.prestasi-card h3 {
  font-size: 1rem;
  color: #000080;
  margin: 0.4rem 0 0.2rem;
}

.prestasi-card p {
  font-size: 0.85rem;
  color: #555;
  margin: 0.2rem 0;
}

.kategori {
  display: inline-block;
  background-color: #000080;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

/* Scrollbar mirip Ekskul */
.prestasi-slider-wrapper::-webkit-scrollbar {
  height: 8px;
}

.prestasi-slider-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.prestasi-slider-wrapper::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.guru-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.guru-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guru-header h2 {
  color: #000080;
  font-size: 1.4rem;
}

.guru-header p {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

.guru-slider-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.guru-slider {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.guru-card {
  flex: 0 0 auto;
  width: 240px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.guru-card:hover {
  transform: scale(1.03);
}

.guru-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.guru-card h3 {
  font-size: 1rem;
  color: #000080;
  margin-bottom: 0.2rem;
}

.guru-card p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.6rem;
}

/* Ikon kontak */
.kontak-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.kontak-icons a {
  font-size: 1rem;
  color: #000080;
  background: #e0ecf8;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.3s;
}

.kontak-icons a:hover {
  background-color: #000080;
  color: white;
}

/* Scrollbar */
.guru-slider-wrapper::-webkit-scrollbar {
  height: 8px;
}
.guru-slider-wrapper::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
}
.guru-slider-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.fasilitas-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.fasilitas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fasilitas-header h2 {
  color: #000080;
  font-size: 1.4rem;
}

.fasilitas-header p {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
}

.fasilitas-slider-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.fasilitas-slider {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.fasilitas-card {
  flex: 0 0 auto;
  width: 240px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.fasilitas-card:hover {
  transform: scale(1.03);
}

.fasilitas-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.fasilitas-card p {
  font-size: 0.9rem;
  color: #000080;
  font-weight: 500;
  margin: 0;
}

/* scrollbar seperti ekskul */
.fasilitas-slider-wrapper::-webkit-scrollbar {
  height: 8px;
}
.fasilitas-slider-wrapper::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 4px;
}
.fasilitas-slider-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.industri-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 1200px;
  text-align: left; /* ubah dari center jadi left */
}

.industri-section h2 {
  font-size: 1.4rem;
  color: #000080;
  margin-bottom: 1rem;
  text-align: center; /* pastikan judul juga kiri */
}

.industri-slider-wrapper {
  overflow: hidden;
  position: relative;
  padding-left: 1.5rem; /* ✨ Geser kontennya ke kiri */
}

.industri-slider {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
  width: max-content; /* pastikan isi slider bisa panjang */
  justify-content: flex-start; /* ✨ Penting: posisi konten ke kiri */
}

.industri-item {
  flex: 0 0 calc(100% / 3); /* Tetap tampil 3 per slide */
  display: flex;
  align-items: center;
  justify-content: center;
}

.industri-item img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

.footer {
  background-color: #000080; /* Warna biru tua seperti navbar */
  color: white;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;   /* lebar maksimal sama seperti konten lain */
  margin: 0 auto;      /* center */
  padding: 2rem 2rem;  /* jarak kanan kiri */
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-width: 80px;
  margin-bottom: 0.5rem;
}

.footer-column h3 {
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid white;
  font-size: 0.9rem;
}

.footer-column.find-us {
  margin-left: auto; /* dorong ke kanan */
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* heading + ikon rata kanan */
}

.footer-column.find-us h3 {
  margin-bottom: 0.5rem; /* jarak kecil dengan ikon */
}
.footer .social-icons {
  display: flex;
  justify-content: flex-end; /* ikon rata kanan */
  gap: 10px;
}

.footer .social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer .social-icons a:hover {
  color: #ccc; /* warna saat hover */
}

@media (max-width: 768px) {
  .footer-column.find-us {
    margin-left: 0;
    text-align: center;
    align-items: center;
  }
}
