/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #111;
}

/* Navbar */
/* Navbar default transparan */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;   /* awalnya transparan */
  padding: 15px 0;
  z-index: 1000;
  transition: background 0.4s ease, padding 0.4s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  padding: 15px 0;
  z-index: 1000;
  transition: background 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  padding: 10px 0;
}

.navbar .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Logo */

.logo {
  display: flex;         /* WAJIB: Membuat gambar di dalamnya berjajar ke samping */
  align-items: center;   /* Membuat logo sejajar di tengah secara vertikal */
  gap: 15px;             /* Memberi jarak 15px antar kedua logo */
}

/* Atur ukuran spesifik untuk logo UGM (lebih besar) */
.logo .logo-ugm {
  height: 60px; /* Anda bisa ubah ukurannya di sini */
  transition: transform 0.3s ease;
}

/* Atur ukuran spesifik untuk logo kedua */
.logo .logo-madara {
  height: 45px; /* Ukuran logo kedua */
  transition: transform 0.3s ease;
}

/* Efek hover untuk semua gambar di dalam .logo */
.logo img:hover {
  transform: scale(1.1);
}


/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  display: block;
  height: 2px;
  background: #facc15;
  width: 0;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.nav-links a:hover {
  color: #facc15;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger menu default hidden di desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1100;
}

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

/* Animasi jadi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(135deg) translate(5px, -5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-135deg) translate(6px, 6px);
}

/* Navbar saat hamburger aktif */
.navbar.open {
  background: rgba(0,0,0,0.85);
  padding: 12px 0;
  transition: background 0.3s ease-in, padding 0.3s ease-in;
}


/* Mobile nav-links */
@media (max-width: 768px) {
  
  
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.85);
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .nav-links.active {
    max-height: 400px; /* muncul slide down */
  }

  .nav-links li {
    padding: 15px 0;
  }

  .hamburger {
    display: flex;
  }
}



/* Hero Section */
.hero {
  height: 100vh;
  background: url('assets/hero.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
}

.hero-content .date {
  margin-top: 15px;
  font-size: 1.2rem;
}

.hero-content .registration {
  margin-top: 5px;
  font-size: 0.95rem;
  color: #ccc;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #facc15;
  color: #000;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #fbbf24;
}

/* About Section */
.about {
  background: #f9fafb;
  color: #111;
  padding: 80px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* bikin sama rata */
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  justify-items: center;
  gap: 30px; /* kasih jarak antar kolom */
}

.about-image {
  display: flex;
  justify-content: center; /* bikin selalu tengah */
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #222;
  text-align: left;
}

.about-text .intro {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  text-align: left;
}

.about-image img:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ================================== */
/* STYLES BARU UNTUK VISI & MISI      */
/* ================================== */
.vision-mission {
  background: #013557; /* Warna sama dengan section Programs */
  padding: 80px 20px;
  color: #fff;
}

.vision-mission h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 800;
  color: #fff;
}

.vision-mission-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.vision{
  font-size: 2rem;
}

.vision h3, .mission h3 {
  font-size: 1.5rem;
  color: #facc15; /* Warna aksen kuning */
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #facc15;
  display: inline-block;
}

.mission ul {
  list-style: none;
}

.mission li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.mission li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #facc15;
  font-weight: bold;
}

/* ================================== */
/* STYLES BARU UNTUK BENEFIT          */
/* ================================== */
.benefits {
  background: #f9fafb; /* Warna sama dengan section About */
  color: #111;
  padding: 80px 20px;
}

.benefits h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 800;
  color: #222;
}

.benefit-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.benefit-item {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #013557; /* Warna biru gelap agar konsisten */
}

.benefit-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

/* ================================== */
/* STYLE UNTUK TOMBOL READ MORE       */
/* ================================== */
.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #013557; /* Warna biru gelap agar sesuai dengan judul */
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem; /* Samakan dengan font paragraf */
  font-family: Arial, sans-serif; /* Samakan dengan font body */
}

.read-more-btn:hover {
  color: #facc15; /* Warna aksen kuning saat hover */
}

/* Programs Section */
.programs {
  background: #013557;
  color: #111;
  padding: 80px 20px;
  text-align: center;
}

.programs h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 800;
}

.image-program {
  width: 100%;
  height: 150px; /* tambahkan tinggi */
  border-radius: 12px;
  background-size: cover;      /* biar penuh */
  background-position: center; /* biar tengah */
}

/* Gambar untuk Sahara Panel Discussion */
.program-item[data-modal="program1"] .image-program {
  background-image: url('assets/sahara.png'); /* <-- GANTI NAMA FILE GAMBAR */
}

/* Gambar untuk Sejam Ulas Arab */
.program-item[data-modal="program2"] .image-program {
  background-image: url('assets/ulas-arab.png'); /* <-- GANTI NAMA FILE GAMBAR */
}

/* Gambar untuk I-MPACT */
.program-item[data-modal="program3"] .image-program {
  background-image: url('assets/impact.png'); /* <-- GANTI NAMA FILE GAMBAR */
}


.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.text-program {
  justify-items: center;
}

.program-item {
  color: white;
  padding: 25px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-item:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: #111;
  padding: 30px;
  border-radius: 12px;
  max-width: 550px;
  width: 90%;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content p {
  color: #444;
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close:hover {
  color: #e11d48; /* merah */
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/* Guidebook Section */
.guidebook {
  background: #fff;
  color: #111;
  padding: 80px 20px;
  text-align: center;
}

.guidebook h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.guidebook .intro {
  color: #444;
  margin-bottom: 30px;
}

/* FAQ Section */
.faq {
  background: #f3f4f6;
  padding: 80px 20px;
  color: #111;
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 800;
}

/* FAQ Item */
.faq-item {
  max-width: 800px;
  margin: 10px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Pertanyaan (button) */
.faq-question {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  outline: none;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #f9fafb;
}

/* Panah */
.arrow {
  transition: transform 0.3s ease;
}

/* Panah saat aktif (rotate 90 derajat) */
.faq-item.active .arrow {
  transform: rotate(90deg);
}

/* Jawaban (hidden by default, animasi slide) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  border-top: 1px solid #eee;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Kalau aktif terbuka */
.faq-item.active .faq-answer {
  max-height: 200px; /* cukup besar supaya muat teks */
  padding: 15px 20px;
}

/* Contact Section */
.contact {
  background: #fff;
  color: #111;
  padding: 80px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background: #facc15;
  color: #000;
  border: none;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #fbbf24;
}


/* Footer */
.footer {
  background: #0f172a;
  color: #f1f5f9;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header Logo & Title */
.footer-header {
  margin-bottom: 20px;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 15px;
}

.footer-logo {
  height: 65px;
}

.footer-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 10px;
}

/* Info */
.footer-info {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-info a {
  color: #facc15;
  text-decoration: none;
}

/* Social Icons */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials a {
  font-size: 1.5rem;
  color: #f1f5f9;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  color: #facc15;
  transform: scale(1.2);
}


.fade-in-section > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Saat grid terlihat, munculkan semua item di dalamnya */
.fade-in-section.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* EFEK STAGGER (MUNCUL SATU PER SATU) */
/* Memberi jeda animasi untuk setiap item */
.fade-in-section.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-section.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-section.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
/* Tambahkan jika itemnya lebih dari 4 */
.fade-in-section.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.fade-in-section.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================= */
/* RESPONSIVE SETTINGS */
/* ============================= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr; /* stack text & image */
    gap: 30px;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-text .intro {
    text-align: center;
  }

  .about-image img {
    max-width: 80%;
  }

  .program-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Phablet / Tablet kecil (≤768px) */
@media (max-width: 768px) {
  /* Navbar */
  .navbar .container {
    padding: 0 15px;
  }

  .logo img {
    height: 40px;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .date {
    font-size: 1rem;
  }
  .hero-content .registration {
    font-size: 0.85rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* Programs */
  .programs h2 {
    font-size: 1.6rem;
  }

  /* Guidebook / FAQ / Contact heading */
  .guidebook h2,
  .faq h2,
  .contact h2 {
    font-size: 1.6rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  /* Footer */
  .footer-logos {
    gap: 30px;
  }
  .footer-logo {
    height: 50px;
  }
  .footer-header h3 {
    font-size: 1.3rem;
  }
  .footer-info {
    font-size: 0.85rem;
  }
  
  
  .vision-mission {
    padding: 60px 20px; /* Kurangi padding di layar kecil */
    
  }

  .vision-mission-content {
    /* Ubah layout menjadi 1 kolom */
    grid-template-columns: 1fr; 
    gap: 50px; /* Tambah jarak vertikal antar Visi dan Misi */
  }

  .vision, .mission {
    text-align: center; /* Pusatkan teks agar rapi */
  }
  
  .vision{
    font-size: 1.6rem;
  }
  .mission ul {
    text-align: left; /* Khusus untuk daftar misi, tetap rata kiri */
    display: inline-block; /* Agar tetap di dalam container yang terpusat */
  }
}

/* Mobile kecil (≤480px) */
@media (max-width: 480px) {
  /* Navbar */
  .logo img {
    height: 35px;
  }
  .nav-links a {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content .date {
    font-size: 0.9rem;
  }
  .hero-content .registration {
    font-size: 0.75rem;
  }

  /* About */
  .about {
    padding: 60px 15px;
  }
  .about-text h2 {
    font-size: 1.4rem;
  }
  .about-text .intro {
    font-size: 0.9rem;
  }

  /* Programs */
  .programs {
    padding: 60px 15px;
  }
  .programs h2 {
    font-size: 1.4rem;
  }

  /* Modal */
  .modal-content {
    padding: 20px;
    font-size: 0.9rem;
  }

  /* Guidebook / FAQ / Contact */
  .guidebook,
  .faq,
  .contact {
    padding: 60px 15px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
  }
  .footer-logos {
    flex-direction: column;
    gap: 15px;
  }
  .footer-logo {
    height: 45px;
  }
  .footer-header h3 {
    font-size: 1.1rem;
  }
  .footer-socials a {
    font-size: 1.2rem;
  }
}
