/*
Theme Name: GeneratePress Child - PPI24
Template: generatepress
Version: 1.0
*/

/* =========================
   RESET & BASE
========================= */
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f9fafb;
}

a {
  transition: all 0.3s ease;
}

/* =========================
   HEADER (TRANSPARENT HERO)
========================= */
.site-header {
  background: transparent;
  position: absolute;
  width: 100%;
  z-index: 999;
}

.main-navigation {
  background: transparent;
}

.main-navigation a {
  color: white;
}

/* LOGO FIX */
.site-logo img {
  height: 60px;
  width: auto;
  max-height: 60px;
  margin-left: 20px;
  margin-top: 10px;
}
.site-branding {
  padding-left: 20px;
  padding-top: 10px;
}

/* =========================
   REMOVE DEFAULT CONTAINER
========================= */
.site-content,
#primary,
.separate-containers .inside-article {
  padding: 0;
  margin: 0;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);

  background: url('/wp-content/uploads/2026/05/hero.jpg') center/cover no-repeat;

  display: flex;
  align-items: center;
}

/* overlay OFF (karena sudah di gambar) */
.hero-overlay {
  width: 100%;
  display: flex;
  align-items: center;
}

/* CONTENT */
.hero-content {
  color: white;
  max-width: 600px;
  margin-left: 80px;
  padding: 0 20px;
}

/* TITLE */
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

/* HIGHLIGHT */
.hero h1 span {
  color: #8BC34A;
}

/* TEXT */
.hero p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* BUTTON */
.hero-btn {
  display: inline-block;
  background: #8BC34A;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.hero-btn:hover {
  background: #7cb342;
}

/* =========================
   DROPDOWN HERO
========================= */
.hero-dropdown {
  position: relative;
  padding-bottom: 10px;
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* penting: nempel langsung */
  left: 0;
  margin-top: 5px; /* kasih jarak halus TANPA bikin gap */
  
  background: white;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.hero-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 10px; /* buffer area */
}

/* =========================
   PPDB SECTION
========================= */
.ppdb-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;

  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.ppdb-card {
  width: 300px;
  border-radius: 16px;
  text-decoration: none;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 30px 20px;
  text-align: center;
}

.ppdb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.ppdb-content h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.ppdb-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.ppdb-btn {
  display: inline-block;
  background: #8BC34A;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
}

.ppdb-btn:hover {
  background: #7cb342;
}

/* =========================
   SECTION UMUM
========================= */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 32px;
}

/* GRID */
.grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  width: 260px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .hero {
    min-height: 100vh;
    padding: 120px 20px 80px;

    background-size: cover;
    background-position: 78% center !important;
  }

  .hero-content {
    margin-left: 0;
    text-align: center;
  }

  .hero-overlay {
    justify-content: center;
  }

  .hero h1 {
    font-size: 32px;
    text-shadow:
      0 2px 8px rgba(0,0,0,0.45),
      0 4px 20px rgba(0,0,0,0.35);
  }
}
/* =========================
   FIX WHITE SPACE (IMPORTANT)
========================= */

/* hilangkan space kanan */
body {
  overflow-x: hidden;
}

/* container full width */
.grid-container,
.site-content,
.content-area,
.inside-article {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* remove wrapper GP */
.separate-containers .inside-article {
  background: transparent;
}

/* header full width */
.site-header .inside-header {
  max-width: 100% !important;
  padding-left: 40px;
  padding-right: 40px;
}

/* hero bener-bener nempel */
.hero {
  margin: 0 !important;
}
/* NAV MENU TEXT PUTIH */
.main-navigation a {
  color: #ffffff !important;
}

.main-navigation a:hover {
  color: #8BC34A !important;
}

/* dropdown menu (biar tetap readable) */
.main-navigation .sub-menu a {
  color: #2e7d32 !important;
}
/* =========================
   MOBILE FIX
========================= */
@media (max-width: 768px) {

  /* HERO MOBILE */
  .hero {
    min-height: 100vh;
    padding: 120px 20px 80px;
    background-position: center;
  }

  .hero-overlay {
    align-items: flex-start;
  }

  .hero-content {
    margin-left: 0;
    padding: 0;
    max-width: 100%;
    text-align: left;
  }

  .hero-logo {
    width: 140px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 24px;
  }

  .hero-btn {
    font-size: 16px;
    padding: 16px 32px;
  }

  /* MOBILE MENU BACKGROUND */
  .main-navigation.toggled {
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
  }

  .main-navigation.toggled .main-nav ul {
    padding: 20px;
  }

  .main-navigation.toggled .main-nav ul li a {
    color: white;
    font-size: 22px;
    padding: 14px 0;
    display: block;
  }

  /* biar menu tidak numpuk */
  .inside-navigation {
    align-items: flex-start;
  }
}
/* =========================
   DESKTOP TITLE OFFSET
========================= */

@media (min-width: 769px){

    body:not(.home) .site-content,
    body:not(.home) .inside-article,
    body:not(.home) .page-header,
    body:not(.home) .entry-header {
        position: relative;
        z-index: 2;
    }

    body:not(.home) .entry-title,
    body:not(.home) .page-title {
        padding-left: 110px;
        margin-top: 10px;
    }

}
/* =========================
   INNER PAGE HEADER CLEANUP
========================= */

@media (min-width: 769px){

    /* kecilkan area header */
    body:not(.home) .site-header {
        min-height: 90px;
    }

    /* kecilkan logo desktop */
    body:not(.home) .site-logo img,
    body:not(.home) .custom-logo {
        max-width: 70px !important;
        height: auto !important;
    }

    /* sembunyikan teks putih logo */
    body:not(.home) .site-branding .main-title,
    body:not(.home) .site-branding .site-description {
        display: none;
    }

    /* beri ruang untuk title */
    body:not(.home) .entry-title,
    body:not(.home) .page-title {
        padding-left: 0;
        margin-left: 110px;
        margin-top: 20px;
    }

}