/* ==========================================================================
   SIMAPALA Global - Landing Page Styles
   Tema: Kepecintaalaman / Forest Green
   ========================================================================== */

:root {
  --primary: #1b4332;
  --primary-dark: #081c15;
  --primary-light: #2d6a4f;
  --secondary: #95d5b2;
  --accent: #f77f00;
  --accent-2: #d62828;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.15);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; transition: all .25s; }

/* ===== NAVBAR ===== */
.navbar-mapala {
  background: rgba(8, 28, 21, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all .3s;
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.navbar-mapala.scrolled {
  padding: 0.5rem 0;
  background: rgba(8, 28, 21, 0.98);
}
.navbar-mapala .navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.navbar-mapala .navbar-brand img {
  height: 45px;
  width: 45px;
  object-fit: contain;
}
.navbar-mapala .navbar-brand span small {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  opacity: .8;
  letter-spacing: 1px;
}
.navbar-mapala .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
  margin: 0 .25rem;
  border-radius: 8px;
  transition: all .25s;
}
.navbar-mapala .nav-link:hover,
.navbar-mapala .nav-link.active {
  color: white !important;
  background: rgba(255,255,255,.1);
}
.navbar-mapala .btn-login {
  background: var(--accent);
  color: white;
  padding: .55rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
}
.navbar-mapala .btn-login:hover {
  background: #e76f00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(247, 127, 0, .4);
  color: white;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(8,28,21,.85), rgba(27,67,50,.75)),
              url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1920&q=80') center/cover;
  background-attachment: fixed;
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 60px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,.4) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.hero h1 .accent {
  background: linear-gradient(45deg, var(--accent), #ffba08);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  font-size: 1.2rem;
  opacity: .95;
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero .btn-hero {
  padding: .9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  margin: .25rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-hero-primary {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}
.btn-hero-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(247,127,0,.4);
}
.btn-hero-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-hero-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--accent);
}
.hero-stat-item p {
  margin: 0;
  font-size: .9rem;
  opacity: .85;
}

/* ===== SECTION GENERAL ===== */
section { padding: 80px 0; position: relative; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title .badge-section {
  display: inline-block;
  background: rgba(45,106,79,.1);
  color: var(--primary-light);
  padding: .4rem 1.2rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.section-title p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about { background: var(--bg-light); }
.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 450px; }
.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  z-index: -1;
}
.feature-list { list-style: none; padding: 0; margin-top: 2rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.feature-list li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}
.feature-list .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feature-list h5 { margin: 0 0 .25rem; font-weight: 700; }
.feature-list p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ===== DIVISI CARDS ===== */
.divisi-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  position: relative;
  overflow: hidden;
  border: 1px solid #e9ecef;
}
.divisi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.divisi-card:hover::before { transform: scaleX(1); }
.divisi-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.divisi-card .icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}
.divisi-card h4 { font-weight: 700; margin-bottom: .75rem; }
.divisi-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ===== BERITA CARDS ===== */
.berita { background: var(--bg-light); }
.berita-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.berita-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.berita-card .img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.berita-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.berita-card:hover .img-wrap img { transform: scale(1.08); }
.berita-card .category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: white;
  padding: .25rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.berita-card .category-tag.prestasi { background: var(--primary-light); }
.berita-card .category-tag.pengumuman { background: var(--accent-2); }
.berita-card .body {
  padding: 1.5rem;
}
.berita-card .meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: .75rem;
}
.berita-card h5 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: .75rem;
  line-height: 1.35;
  color: var(--text-dark);
}
.berita-card h5 a { color: inherit; }
.berita-card h5 a:hover { color: var(--primary-light); }
.berita-card p {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.read-more {
  color: var(--primary-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.read-more:hover { color: var(--accent); gap: .6rem; }

/* ===== PRESTASI ===== */
.prestasi-card {
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 2rem;
  border-left: 5px solid var(--accent);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.prestasi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.prestasi-card .trophy-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.prestasi-card h5 { font-weight: 700; margin-bottom: .75rem; }
.prestasi-card .date { color: var(--text-muted); font-size: .85rem; }

/* ===== GALERI ===== */
.galeri-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
  cursor: pointer;
}
.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.galeri-item:hover img { transform: scale(1.15); }
.galeri-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,28,21,.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity .3s;
}
.galeri-item:hover .overlay { opacity: 1; }
.galeri-item .overlay h6 { color: white; margin: 0; font-weight: 600; }
.galeri-item .overlay small { color: rgba(255,255,255,.8); }

/* ===== STATS ===== */
.stats-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 60px 0;
}
.stats-item { text-align: center; }
.stats-item .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: .25rem;
}
.stats-item .label { font-size: 1rem; opacity: .9; }

/* ===== KONTAK ===== */
.contact-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 1px solid #e9ecef;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.contact-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 60px 0 0;
}
.footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.footer p, .footer li { font-size: .95rem; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: .6rem; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--accent); }
.footer .social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all .25s;
}
.footer .social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}

/* ===== UTILITIES ===== */
.text-primary-mapala { color: var(--primary-light) !important; }
.bg-primary-mapala { background: var(--primary-light) !important; }
.btn-mapala {
  background: var(--primary-light);
  color: white;
  border: none;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all .25s;
}
.btn-mapala:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,67,50,.3);
}
.btn-accent {
  background: var(--accent);
  color: white;
  border: none;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
}
.btn-accent:hover { background: #e76f00; color: white; }

