/* public.css — Landing page styling */
:root {
  --pub-primary: #1a7a4a;
  --pub-primary-dark: #0f5233;
  --pub-gold: #f0a500;
  --pub-dark: #0f1e2d;
}

* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: #2d3748; line-height: 1.7; overflow-x: hidden; }

.container { max-width: 1180px; }

/* Topbar */
.topbar-info {
  background: var(--pub-dark);
  color: rgba(255,255,255,.7);
  padding: 7px 0;
  font-size: .8rem;
}
.topbar-info a { color: rgba(255,255,255,.7); margin-left: 8px; }

/* Navbar */
.navbar-public { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 12px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--pub-primary); font-size: 1.1rem; }
.navbar-brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.nav-link { font-weight: 600; color: #2d3748 !important; padding: 8px 14px !important; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: var(--pub-primary) !important; background: rgba(26,122,74,.08); }
.btn-login-nav { background: var(--pub-primary); color: #fff; padding: 8px 20px; border-radius: 99px; font-weight: 600; font-size: .88rem; }
.btn-login-nav:hover { background: var(--pub-primary-dark); color: #fff; }

/* Hero */
.hero { position: relative; padding: 90px 0 60px; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--pub-dark), #1a3a26 60%, #0f2218); z-index: -3; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(240,165,0,.15), transparent 50%); z-index: -2; }
.hero-pattern {
  position: absolute; inset: 0; z-index: -1; opacity: .4;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { max-width: 680px; }
.hero-badge { display:inline-flex; align-items:center; gap:6px; background: rgba(255,255,255,.1); color: var(--pub-gold); padding: 6px 16px; border-radius: 99px; font-size: .8rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1.25; margin-bottom: 20px; }
.hero h1 .highlight { color: var(--pub-gold); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary { background: var(--pub-primary); border: none; color: #fff; padding: 13px 28px; border-radius: 10px; font-weight: 700; transition: all .2s; }
.btn-primary:hover { background: var(--pub-primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,122,74,.4); color:#fff; }
.btn-secondary { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 13px 28px; border-radius: 10px; font-weight: 700; transition: all .2s; }
.btn-secondary:hover { background: rgba(255,255,255,.2); color: #fff; }

.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.stat-item { text-align: left; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--pub-gold); }
.stat-label { color: rgba(255,255,255,.6); font-size: .85rem; }

/* Info Strip */
.info-strip { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); margin-top: -36px; position: relative; z-index: 5; border-radius: 16px; max-width: 1180px; margin-left: auto; margin-right: auto; padding: 28px 0; }
.info-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.info-strip-item { text-align: center; padding: 0 12px; border-right: 1px solid #eee; }
.info-strip-item:last-child { border-right: none; }
.info-strip-item .icon { width: 48px; height: 48px; background: rgba(26,122,74,.1); color: var(--pub-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 1.2rem; }
.info-strip-item h4 { font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.info-strip-item p { font-size: .78rem; color: #718096; margin: 0; }

section { padding: 70px 0; }
.bg-light { background: #f7f9fb; }

/* PPDB Banner */
.ppdb-banner {
  background: linear-gradient(135deg, var(--pub-gold), #d68f00);
  border-radius: 16px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(240,165,0,.25);
}
.ppdb-text h2 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.ppdb-text p { color: rgba(255,255,255,.9); margin: 0; font-size: .9rem; }
.btn-ppdb-banner { background: #fff; color: var(--pub-gold); font-weight: 700; padding: 12px 24px; border-radius: 10px; white-space: nowrap; transition: all .2s; }
.btn-ppdb-banner:hover { background: #0f1e2d; color: #fff; }

/* Section Header */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(26,122,74,.1); color: var(--pub-primary); padding: 5px 16px; border-radius: 99px; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }
.section-title { font-size: 2rem; font-weight: 800; color: #1a202c; margin-bottom: 12px; }
.section-title span { color: var(--pub-primary); }
.section-sub { color: #718096; }
.section-divider { width: 60px; height: 4px; background: linear-gradient(to right, var(--pub-primary), var(--pub-gold)); border-radius: 99px; margin: 16px auto 0; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: all .3s; border: none; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.card-img { width: 100%; height: 190px; object-fit: cover; }
.card-img-placeholder { width: 100%; height: 190px; background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 2.5rem; }
.card-body { padding: 22px; }
.card-badge { display: inline-block; background: rgba(26,122,74,.1); color: var(--pub-primary); font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.card-badge.gold { background: rgba(240,165,0,.15); color: #d68f00; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #1a202c; }
.card-text { color: #718096; font-size: .87rem; margin-bottom: 14px; }
.card-date { font-size: .78rem; color: #a0aec0; margin-bottom: 12px; }
.card-link { color: var(--pub-primary); font-weight: 700; font-size: .87rem; }

/* Ekskul */
.ekskul-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ekskul-card { background: #fff; border-radius: 14px; padding: 24px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.05); transition: all .3s; }
.ekskul-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.ekskul-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark)); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.4rem; }
.ekskul-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ekskul-card p { color: #718096; font-size: .84rem; margin-bottom: 14px; }
.ekskul-meta { display: flex; justify-content: center; gap: 12px; font-size: .76rem; color: #a0aec0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); display: flex; align-items: flex-end; padding: 12px; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: .82rem; font-weight: 600; }

/* Map */
.map-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.map-wrapper iframe { width: 100%; height: 380px; border: none; }

/* Footer */
.footer-public { background: var(--pub-dark); color: #fff; padding: 60px 0 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-links a { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--pub-gold); }
.footer-social { width: 36px; height: 36px; background: rgba(255,255,255,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.footer-social:hover { background: var(--pub-primary); }

/* Responsive */
@media (max-width: 991px) {
  .hero h1 { font-size: 2rem; }
  .info-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .info-strip-item { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .ekskul-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .hero { padding: 70px 0 40px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { gap: 24px; justify-content: center; }
  .ekskul-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .ppdb-banner { padding: 20px; }
}
