* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", serif;
}

.container {
  width: 80%;
  margin-inline: auto;
}



@media (max-width: 992px) {
  .container {
    width: 90%;
  }
}

/* Navbar styling */
.navbar {
  position: relative;
  z-index: 1000; /* kasih z-index tinggi juga */
}

.navbar {
  background-color: #fff;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.navbar-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 24px;
  font-weight: bold;
  color: #222;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem; /* Jarak antara logo dan teks */
}

.logo-img {
  height: 40px; /* Atur sesuai ukuran yang pas */
  width: auto;
}

/* Menu */
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  text-decoration: none;
  color: #333;
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease;
}

.navbar-menu a:hover {
  color: #007bff;
}

/* Icon toggle */
.navbar-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hamburger icon */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.menu-toggle {
  display: none; /* default sembunyi */
  font-size: 28px;
  cursor: pointer;
  color: #333;
  z-index: 1001; /* biar di atas semua */
}

/* Tampilkan dan posisikan di kanan atas saat mobile */
@media only screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 30px;
    right: 20px;
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .navbar-menu.active {
    display: flex;
  }
  

  .navbar-menu li {
    width: 100%;
    border-top: 1px solid #eee;
  }

  .navbar-menu a {
    padding: 15px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999; /* Tambahin atau tingkatkan z-index */
  min-width: 200px;
}

.dropdown-content li {
  width: 100%;
  list-style: none;
}

.dropdown-content a {
  padding: 10px 15px;
  color: #333;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #000;
}

/* Tampilkan dropdown saat hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Responsive: Stack on small screens */
@media (max-width: 768px) {
  .navbar-box {
    flex-direction: column;
    gap: 20px;
  }
}

.navbar-box .navbar-menu {
  flex-wrap: wrap;
  justify-content: center;
}
/* navbar */

/* Hero */
.hero-box {
  position: relative;
  z-index: 2000; /* ini bisa nutup dropdown */
}

.hero-box {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(/assets/images/hero.webp);
  width: 100%;
  border-radius: 25px;
  padding: 100px 20px;
  color: white;
}

.hero-box h1 {
  margin-bottom: 20px;
  font-size: 40px;
}
.hero-box p {
  margin-bottom: 30px;
  line-height: 2;
  width: 500px;
  opacity: 75%;
}

.hero-box a {
  text-decoration: none;
  color: white;
  background-color: indigo;
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 18px;
}

.hero-box a:hover {
  background-color: rgb(100, 0, 171);
}

@media (max-width: 575px) {
  .hero-box p {
    width: 100%;
  }
}

@media (max-width: 475px) {
  .hero-box h1 {
    font-size: 30px;
  }

  .hero-box p {
    font-size: 14px;
  }
}
/* Hero */

/* tentang */
.tentang {
  padding: 150px 0;
}

.tentang-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.tentang-box img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.tentang-box h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.tentang-box p {
  line-height: 2;
  text-align: justify;
}

.tentang .info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 50px;
  text-align: center;
}

.tentang .info h2 span {
  color: indigo;
  font-size: 40px;
}

@media (max-width: 768px) {
  .tentang-box {
    grid-template-columns: 1fr;
  }
}

/* tentang */
/* kejuaraan */
.akademik {
  padding-bottom: 100px;
}

.akademik-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.akademik-box .box {
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.akademik-box img {
  width: 100%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.akademik-box .desc {
  padding: 20px;
}

.akademik-box .desc p {
  line-height: 2;
}

@media (max-width: 575px) {
  .akademik-box {
    gap: 40px;
  }
}
/* kejuaraan */

/*  */
.ppdb {
  padding-block: 50px;
}

.ppdb-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
  text-align: center;
}

.ppdb-box img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
}

.ppdb-box h2 {
  margin-bottom: 10px;
}

.ppdb-box p {
  line-height: 2;
  margin-bottom: 20px;
}

.ppdb-box a {
  text-decoration: none;
  color: white;
  background-color: indigo;
  padding: 10px 20px;
  border-radius: 20px;
}

.ppdb-box a:hover {
  background-color: rgb(100, 0, 171);
}

@media (max-width: 768px) {
  .ppdb-box {
    grid-template-columns: 1fr;
  }
}

/* footer */
footer {
  margin-top: 100px;
  padding: 50px 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.footer-box {
  display: flex;
  flex-direction: column; /* bikin isi footer jadi kolom (atas-bawah) */
  align-items: center;
  gap: 40px;
  text-align: center;
}

.footer-box .box {
  max-width: 600px;
  width: 100%;
}

.footer-box h2 {
  margin-bottom: 20px;
}

.footer-box p {
  line-height: 2;
  font-size: 14px;
}

.footer-box .social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-box .social a {
  font-size: 28px;
  text-decoration: none;
  color: white;
}

.footer-box .social a:hover {
  color: indigo;
}

.footer-box .box p i {
  margin-right: 10px;
}

.footer-box .box:last-child p {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  flex-wrap: wrap;
  word-break: break-word;
}

.copyright {
  margin-top: 50px;
  text-align: center;
}

.copyright p {
  font-size: 14px;
}

.copyright p span {
  font-weight: bold;
}
/* footer */


/* Scroll Up */
.scroll-up {
  width: 50px;
  height: 50px;
  background-color: indigo;
  color: white;
  border-radius: 100%;
  display: grid;
  place-items: center;
  position: fixed;
  bottom: 40px;
  right: 40px;
  opacity: 0;
  transition: all 0.7s  ease;
}

.scroll-up.scroll-active {
  opacity: 1;
}


.show {
  display: block; /* atau flex tergantung layout */
}

.scroll-up {
  opacity: 0;
  transition: 0.3s;
}

.scroll-up.scroll-active {
  opacity: 1;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Up */


/* NEWS */
.news-container {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.news-container h2 {
  margin-top: 2rem;
  font-size: 1.8rem;
  color: #333;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.news-card {
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
  transition: 0.3s;
}

.news-card:hover {
  background-color: #f0f0f0;
}

.news-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #222;
}

.news-card p {
  color: #555;
  font-size: 0.95rem;
}

.news-card .date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.4rem;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* NEWS */

/* profil */
.profil {
  background: #f9f9f9;
  padding: 3rem 1rem;
}

.profil-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.profil-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profil-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.profil-card:hover {
  transform: translateY(-4px);
}

.profil-card h2 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #f4a261;
  display: inline-block;
  padding-bottom: 2px;
}

.profil-card a {
  color: #222;
  text-decoration: none;
}

.profil-card p {
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* Responsive tetap satu kolom */
@media (min-width: 768px) {
  .profil-list {
    flex-direction: column;
  }
}

/* profil */

/* History Page */
.history-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.history-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.8;
}

.history-image {
  text-align: center;
  margin-bottom: 30px;
}

.history-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .history-content {
    padding: 20px;
  }
}

/* structure */
.structure {
  padding: 4rem 1rem;
}

.structure-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.structure-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.structure-card {
  background: #ffffff;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  width: 100%;
  max-width: 220px;
}

.structure-card:hover {
  transform: translateY(-5px);
}

.structure-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.structure-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.structure-role {
  font-size: 0.9rem;
  color: #777;
}

/* ========== Media Queries ========== */
@media (max-width: 768px) {
  .structure-card img {
    height: 180px;
  }

  .structure-title {
    font-size: 1.8rem;
  }

  .structure-card {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .structure-list {
    grid-template-columns: repeat(3, 1fr); /* 3 kolom untuk mobile standar */
    gap: 1rem;
  }

  .structure-card img {
    height: 160px;
  }

  .structure-card {
    max-width: 100%;
  }

  .structure-name {
    font-size: 0.95rem;
  }

  .structure-role {
    font-size: 0.85rem;
  }
}

@media (max-width: 375px) {
  .structure-list {
    grid-template-columns: repeat(2, 1fr); /* fallback 2 kolom untuk HP kecil */
  }

  .structure-card img {
    height: 150px;
  }
}


/* symbol */
.symbol-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.symbol-logo img {
  max-width: 400px;
  height: auto;
  border-radius: 12px;
}

.symbol-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f4f4f4;
  border-left: 4px solid #c62828;
  border-radius: 8px;
}

.symbol-item h2 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.symbol-item ol {
  padding-left: 1.5rem;
}

.symbol-item ol li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.event-section {
  padding: 5rem 0;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.event-card {
  display: flex;
  flex-direction: row;
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-image {
  width: 40%;
  object-fit: cover;
}

.event-content {
  padding: 1rem;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.event-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.event-link {
  align-self: start;
  padding: 0.5rem 1rem;
  background-color: #0077cc;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.event-link:hover {
  background-color: #005fa3;
}

@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }
  .event-image,
  .event-content {
    width: 100%;
  }
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.gallery-list .box {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  background-color: #f5f5f5;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-list .box:hover {
  transform: translateY(-5px);
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.materi-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.filter-btn {
  padding: 10px 20px;
  background-color: #eee;
  border: none;
  cursor: pointer;
}
.filter-btn.active {
  background-color: #2e86de;
  color: white;
}
.materi {
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}
.materi-title {
  text-align: center;
  font-size: 2em;
  font-weight: 700;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.filter-btn {
  padding: 8px 20px;
  border: none;
  background-color: #eee;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}
.filter-btn.active {
  background-color: #007bff;
  color: white;
}
.materi-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.materi-box h3 {
  margin: 0;
  font-weight: 600;
}
.materi-box p {
  margin: 10px 0;
}
.materi-box a {
  margin-right: 15px;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}
.materi-box a:hover {
  text-decoration: underline;
}

.profil-box {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profil-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.profil-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.profil-box p {
  margin-bottom: 12px;
  color: #444;
}

.profil-box a.btn-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.profil-box a.btn-link:hover {
  text-decoration: underline;
}

.profil-box {
  display: block;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profil-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.profil-box h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.profil-box p {
  margin: 0;
  color: #333;
}
.structure-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.structure-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  width: 100%;
  max-width: 260px;
}

.structure-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  display: block;
}

@media screen and (max-width: 480px) {
  .structure-list {
    grid-template-columns: 1fr;
  }

  .structure-card {
    max-width: 320px;
    margin: 0 auto;
  }
}

.structure {
  overflow-x: hidden;
}

@media screen and (max-width: 480px) {
  .structure-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .structure-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .structure-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    display: block;
  }
}


@media screen and (max-width: 768px) {
  .structure-card {
    max-width: 100%;
    padding: 1rem;
  }

  .structure-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .structure-list {
    grid-template-columns: 1fr;
  }
}




.symbol-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  transition: 0.3s ease;
}

.symbol-item h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.symbol-item h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ffd31a;
  border-radius: 2px;
  margin-top: 8px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.event-card {
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.event-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.event-info {
  padding: 16px;
}

.event-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.event-description {
  font-size: 14px;
  margin-bottom: 15px;
}

.event-link {
  display: inline-block;
  background-color: #ffd31a;
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-box {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}

.gallery-box:hover {
  transform: translateY(-4px);
}

.gallery-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.gallery-box h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.gallery-box p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
}

.gallery-box a {
  color: #2d2dff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

.gallery-box {
  color: #000; /* teks hitam default */
  text-decoration: none; /* hilangkan garis bawah */
  transition: color 0.3s;
}

.gallery-box:hover {
  color: #1a73e8; /* warna biru saat hover */
}

.gallery-box h2,
.gallery-box p {
  color: #000;
}

.gallery-box:hover h2 {
  color: #1a73e8;
}

.gallery-box {
  color: #000;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.gallery-box:hover {
  transform: scale(1.05); /* Efek pop up */
  color: #1a73e8;
}

.gallery-box {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

section {
  min-height: 100vh; /* Tinggi minimum 1 layar penuh */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

/* Container utama dibuat lebih lebar */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Kontainer grid untuk box atau card */
.gallery-list,
.event-list,
.profil-list,
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Kartu diperluas agar mengisi ruang */
.gallery-card,
.event-card,
.profil-box,
.news-box {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

/* Efek pop-up saat hover */
.gallery-card:hover,
.event-card:hover,
.profil-box:hover,
.news-box:hover {
  transform: scale(1.03);
}

/* Gambar dan teks disesuaikan agar memenuhi area */
.gallery-card img,
.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
}

.text-box h3 {
  margin: 1rem 0 0.5rem;
  color: #000;
}

.text-box p {
  color: #333;
}

@media (max-width: 768px) {
  .gallery-list,
  .event-list,
  .profil-list,
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-list,
  .event-list,
  .profil-list,
  .news-list {
    grid-template-columns: 1fr;
  }
}

.profil-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profil-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.profil-box:hover {
  transform: translateY(-5px);
}

.profil-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.profil-box h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #ffd31a;
  margin-top: 8px;
}

.profil-box p {
  margin-bottom: 15px;
  color: #555;
}

.btn-yellow {
  background-color: #ffd31a;
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-yellow:hover {
  background-color: #e6bd00;
}



    .news-section {
  margin-bottom: 2rem;
}

.news-section h2 {
  margin-top: 2rem;
  margin-bottom: 1rem; /* kurangi jarak bawah antar judul */
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* antar item berita, bisa lebih kecil */
  margin-bottom: 2rem; /* kurangi dari sebelumnya kalau terlalu besar */
}

.news-section {
      min-height: 100vh;
      padding: 4rem 0;
    }

    .news-section h2 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      position: relative;
    }

    .news-section h2::after {
      content: '';
      display: block;
      width: 80px;
      height: 4px;
      background-color: #ffd31a;
      margin-top: 8px;
      border-radius: 2px;
    }

    .news-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
      margin-bottom: 4rem;
    }

    .news-card {
      background-color: #fff;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .news-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .news-card h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: #111;
    }

    .news-card p {
      margin: 0.3rem 0;
      color: #444;
      font-size: 0.95rem;
    }

    @media (max-width: 480px) {
      .news-card {
        padding: 1rem;
      }
    }

.navbar-hidden {
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.6s ease;
  position: fixed;
  width: 100%;
  z-index: 999;
}

.navbar-visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.navbar-show {
  opacity: 1 !important;
  pointer-events: auto;
}

.hero-button:hover {
  background-color: #e6be00;
}


@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .hero-desc { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-desc { font-size: 1rem; }
  .hero-button { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero { padding: 0 1rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 0.95rem; }
}

.hero-button {
  position: relative;
  z-index: 2;
}

.materi-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.materi-list .box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.materi-list .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.materi-list .box h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.materi-btn {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.materi-btn a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: #ffd31a;
  color: #000;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.materi-btn a:hover {
  background-color: #e6be00;
  transform: scale(1.05);
}

.filter-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  border: none;
  background-color: #eee;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #007bff;
  color: white;
}

.hero {
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: #ffff00;
  padding: 0 20px;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

@media (max-width: 575px) {
  .hero p {
    width: 100%;
  }
}

@media (max-width: 475px) {
  .hero h1 {
    font-size: 30px;
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.btn-yellow {
  background-color: #ffd31a;
  padding: 10px 20px;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-yellow:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ---------- RESPONSIVE FOR TABLET & MOBILE ---------- */
.section-highlight {
  padding: 4rem 1rem;
}

.highlight-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.highlight-box .box-img {
  flex: 1 1 40%;
  max-width: 450px;
}

.highlight-box .box-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.highlight-box .box-text {
  flex: 1 1 50%;
}

.highlight-box .box-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.highlight-box .box-text p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.highlight-box .btn-yellow {
  background-color: #ffd31a;
  padding: 10px 20px;
  border-radius: 8px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.highlight-box .btn-yellow:hover {
  background-color: #e6bd00;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .highlight-box {
    flex-direction: column;
    text-align: center;
  }

  .highlight-box .box-img,
  .highlight-box .box-text {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .highlight-box .box-text h2 {
    font-size: 1.5rem;
  }

  .highlight-box .box-text p {
    font-size: 0.95rem;
  }

  .highlight-box .btn-yellow {
    width: 100%;
  }
}


.oprec-section {
  padding: 4rem 1rem;
  background: #fff;
}

.oprec-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.oprec-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #555;
}

.oprec-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.oprec-box h2 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.oprec-box p {
  font-size: 1rem;
  color: #555;
  white-space: pre-line;
}

.oprec-cta {
  text-align: center;
}

.btn-yellow {
  background-color: #ffd31a;
  color: #000;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-yellow:hover {
  background-color: #e6be00;
}

@media screen and (max-width: 768px) {
  .oprec-title {
    font-size: 2rem;
  }

  .oprec-subtitle {
    font-size: 1rem;
  }
}

.oprec-materi {
  margin-top: 2rem;
}
.materi-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.materi-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.oprec-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


.materi-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.materi-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  padding: 20px 25px;
  transition: box-shadow 0.3s;
}

.materi-box:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.materi-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.materi-box p {
  font-size: 15px;
  color: #444;
  margin: 0;
}

.btn-download {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffd31a; /* Warna kuning */
  color: #000000; /* Teks hitam */
  font-weight: 700; /* Huruf tebal */
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
  background-color: #e6be00;
  transform: translateY(-2px);
}


