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

/* --- RESET & BASIC --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

body {
    overflow-x: hidden; 
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 999;
}

.flex-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: #1f2937;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.btn-about {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid #ff6b35;
  color: #ff6b35 !important;
  font-weight: 500;
  transition: 0.3s;
}

.btn-about:hover {
  background: #ff6b35;
  color: #ffffff !important;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #1f2937;
  border-radius: 3px;
}

/* --- HERO SLIDER --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  padding-top: 60px;
}

.slide.active { opacity: 1; z-index: 1; }

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 2;
  margin-bottom: 120px;
  width: 100%;
  padding: 0 20px;
}

.badge-alert {
  background: #fff;
  color: #ff6b35;
  padding: 8px 20px;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin: 0.5rem 0 1.5rem 0;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.btn-hero {
  display: inline-block;
  padding: 14px 35px;
  background: #ff6b35;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}
.btn-hero:hover { transform: translateY(-3px); background: #e65100; }

/* --- INFO BAR --- */
.info-bar {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 80px; 
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 10;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid #e5e7eb;
  padding-right: 20px;
  flex: 1; 
  justify-content: center;
}

.info-item:last-child { border: none; }
.info-item i { font-size: 2rem; color: #ff6b35; }

.info-item div { 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
}

.info-item small { font-size: 0.7rem; color: #9ca3af; text-transform: uppercase; font-weight: 700; }
.info-item strong { color: #1f2937; font-size: 1rem; }

.info-action a {
  background: #1f2937;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* --- SECTIONS UMUM --- */
.content-section, .prep-section, .edu-section { padding-block: 5rem; }
.content-section { background: #fff; }
.prep-section { background: #f7f9fc; }

.section-title { font-size: 2rem; color: #111827; margin-bottom: 0.5rem; text-align: center; }
.section-desc { color: #6b7280; text-align: center; max-width: 600px; margin: 0 auto 3rem auto; }

/* =======================================================
   PERBAIKAN TOTAL BAGIAN KARTU (CARD)
   Agar rapi, kotak putih di bawah gambar, bukan menumpuk
========================================================== */
.card__container {
  display: flex;
  flex-wrap: wrap; /* Biarkan kartu turun ke bawah jika layar sempit */
  justify-content: center;
  gap: 1.5rem; /* Jarak antar kartu */
  width: 100%;
}

.card__article {
  background: #ffffff;
  width: 280px; /* Lebar tetap kartu */
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* Bayangan halus */
  overflow: hidden; /* Agar gambar tidak keluar dari radius */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* Susun ke bawah: Gambar lalu Teks */
}

.card__article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card__img {
  width: 100%;
  height: 200px; /* Tinggi gambar tetap agar seragam */
  object-fit: cover; /* Crop gambar agar tidak gepeng */
}

/* Bagian Teks (Sekarang tidak pakai Absolute lagi) */
.card__data {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Isi sisa ruang jika ada */
}

.card__description {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card__title {
  font-size: 1.25rem;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card__button {
  margin-top: auto; /* Dorong tombol ke paling bawah */
  color: #ff6b35;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.card__button:hover {
  color: #e65100;
  text-decoration: underline;
}

/* --- TAS SIAGA & PERSIAPAN --- */
.prep-flex { display: flex; align-items: center; gap: 3rem; }
.prep-image, .prep-content { flex: 1; }
.prep-image img { width: 100%; max-width: 400px; display: block; margin: 0 auto; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.checklist-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
    margin-bottom: 2rem; 
}
.check-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #444; }
.check-item i { color: #ff6b35; font-size: 1.1rem; }
.btn-primary { background: #ff6b35; color: #fff; padding: 12px 25px; border-radius: 10px; font-weight: 500; display: inline-block; }
.btn-primary:hover { background: #e65100; }

/* --- EDUKASI --- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.edu-card { padding: 2rem; border: 1px solid #eee; border-radius: 16px; background: #fff; text-align: center; transition: 0.3s; }
.edu-card:hover { border-color: #ff6b35; transform: translateY(-3px); }
.edu-icon { width: 60px; height: 60px; background: #fff0e6; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 1rem auto; color: #ff6b35; font-size: 1.5rem; }

/* --- FOOTER --- */
.foot-bg { background: #f9fafb; padding-top: 4rem; border-top: 1px solid #eee; }
.footer { width: 90%; max-width: 1200px; margin: 0 auto; padding-bottom: 2rem; }
.row-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.logo-foot { color: #ff6b35; font-weight: 800; font-size: 1.5rem; margin-bottom: 1rem; }
.copyright { text-align: center; color: #999; font-size: 0.8rem; border-top: 1px solid #eee; padding-top: 1.5rem; }
.col-foot ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.col-foot ul a { color: #555; }
.col-foot ul a:hover { color: #ff6b35; }


/* =========================================
   MEDIA QUERIES (RESPONSIVE)
========================================= */

@media (max-width: 1024px) {
    .edu-grid { grid-template-columns: repeat(2, 1fr); }
    .info-bar { width: 95%; padding: 15px 20px; }
}

@media (max-width: 900px) {
    
    /* Navbar HP */
    .hamburger { display: flex; }
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid #eee;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 998;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active { transform: translateY(0); }
    .btn-about { display: none; } 

    /* Hero HP */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content { margin-bottom: 180px; padding: 0 15px; } 
    
    /* Info Bar HP (Rapi) */
    .info-bar {
        width: 95%;
        bottom: 15px;
        padding: 10px 0;
        border-radius: 15px;
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0;
    }
    .info-item {
        flex-direction: column;
        text-align: center;     
        padding: 0 5px;
        border: none;           
        flex: 1;
    }
    .info-item div { text-align: center; align-items: center; } 
    .info-item i { font-size: 1.2rem; margin-bottom: 5px; }
    .info-item small { display: block; font-size: 0.6rem; margin-bottom: 2px; }
    .info-item strong { font-size: 0.7rem; line-height: 1.2; }
    .info-action { display: none; }

    /* Kartu di HP jadi 1 kolom atau flex wrap */
    .card__container {
        gap: 1.5rem;
    }
    .card__article {
        width: 100%;
        max-width: 350px; /* Biar ga kegedean di HP */
    }

    /* Fix Bagian Tas Siaga */
    .prep-flex { flex-direction: column; text-align: center; gap: 2rem; }
    .section-title, .section-desc { text-align: center !important; }
    
    .checklist-grid { 
        grid-template-columns: 1fr;
        text-align: left;
        width: fit-content;
        margin: 0 auto 2rem auto;
    }
    
    .edu-grid { grid-template-columns: 1fr; }
    .row-foot { flex-direction: column; text-align: center; }
}

/* ===============================
   FOOTER LOMBA – FRAMEWORK FEEL
=============================== */

.footer-main {
  background: #1f2937;
  color: #e5e7eb;
  padding-top: 4rem;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

/* Brand */
.footer-brand h2 {
  color: #ff6b35;
  font-size: 1.8rem;
  font-weight: 800;
}
.footer-brand h2 span {
  color: #ffffff;
}
.footer-brand p {
  font-size: 0.95rem;
  margin: 1rem 0;
  line-height: 1.6;
  color: #d1d5db;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ff6b35;
  transition: 0.3s;
}
.footer-social a:hover {
  background: #ff6b35;
  color: #fff;
}

/* Team */
.footer-team h3 {
  margin-bottom: 1.5rem;
  color: #ffffff;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.team-card {
  background: #111827;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #374151;
  transition: 0.3s;
}
.team-card strong {
  display: block;
  color: #ff6b35;
  font-weight: 600;
}
.team-card span {
  font-size: 0.85rem;
  color: #9ca3af;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: #ff6b35;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  background: #111827;
  padding: 1.2rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
