/* =========================================
   GLOBAL
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #1c1c1e;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #0e0e0e;
  color: #f5f5f5;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  background: linear-gradient(135deg, #0048ff, #00a2ff);
  color: white;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* =========================================
   LOGO
========================================= */
.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   NAV LINKS
========================================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.dropbtn {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: opacity 0.3s, transform 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.dropbtn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Garis bawah hover */
.nav-links a::after,
.dropbtn::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0%;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.dropbtn:hover::after {
  width: 100%;
}

/* =========================================
   DROPDOWN (PELAPORAN)
========================================= */
.dropdown {
  position: relative;
}

.dropbtn .arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

/* Submenu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 38px;
  left: 0;
  background: white;
  color: #1c1c1e;
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #1c1c1e;
  font-weight: 500;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: #f0f4ff;
}

/* Saat hover tampil di desktop */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
  .dropdown:hover .arrow {
    transform: rotate(180deg);
  }
}

/* =========================================
   NAV ACTIONS
========================================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 25px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.search-box input {
  border: none;
  outline: none;
  padding: 6px 10px;
  font-size: 0.9rem;
  width: 130px;
  color: #1c1c1e;
}

.search-box .search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  color: #0048ff;
  font-size: 1rem;
}

.search-box:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* LOGIN */
.login-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 25px;
  padding: 6px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  background: white;
  color: #0048ff;
}

/* MODE TOGGLE */
.mode-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.mode-toggle:hover {
  transform: rotate(25deg);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
  .navbar-container {
    flex-wrap: wrap;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    background: linear-gradient(135deg, #0048ff, #00a2ff);
    width: 100%;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    display: none;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease-in;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== MOBILE DROPDOWN ===== */
  .dropdown-content {
    position: relative;
    background: #f9f9ff;
    border-radius: 10px;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    display: none;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s ease;
  }

  .dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    max-height: 300px;
    padding: 5px 0;
  }

  .dropdown-content a {
    color: #0048ff;
    padding: 10px 0;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s, color 0.3s;
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .dropdown-content a:hover {
    background: rgba(0, 72, 255, 0.08);
    color: #0036c1;
  }

  .dropbtn {
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  .search-box {
    display: none;
  }
}

/* =========================================
   DARK MODE
========================================= */
body.dark-mode .navbar {
  background: linear-gradient(135deg, #1e1e1e, #3c3c3c);
}

body.dark-mode .dropdown-content {
  background: #2a2a2a;
}

body.dark-mode .dropdown-content a {
  color: #f5f5f5;
}

body.dark-mode .dropdown-content a:hover {
  background: #3c3c3c;
}


/* ============================================================
   🏠 HERO SECTION
============================================================ */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 90px 20px;
  background: #ffffff;
  color: #1c1c1e;
  transition: background 0.4s, color 0.4s;
  min-height: 70vh;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

/* ======== TEKS ======== */
.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0057d9;
  line-height: 1.3;
  margin-bottom: 18px;
  transition: color 0.4s;
}

.hero-content p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.6;
  transition: color 0.4s;
}

/* ======== TOMBOL ======== */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background: #0057d9;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 87, 217, 0.2);
}

.btn.primary:hover {
  background: #0048c1;
}

.btn.outline {
  border: 2px solid #0057d9;
  color: #0057d9;
  background: transparent;
}

.btn.outline:hover {
  background: #0057d9;
  color: #ffffff;
}

/* ======== ILUSTRASI ======== */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration img {
  width: 85%;
  max-width: 340px;
  opacity: 0.9;
  transition: transform 0.4s ease, filter 0.4s;
}

.hero-illustration img:hover {
  transform: scale(1.05);
}

/* ============================================================
   🌙 DARK MODE
============================================================ */
body.dark-mode .hero {
  background: #0f0f11;
  color: #f5f5f5;
}

body.dark-mode .hero-content h1 {
  color: #3399ff;
}

body.dark-mode .hero-content p {
  color: #d3d3d3;
}

body.dark-mode .btn.primary {
  background: #3399ff;
  box-shadow: 0 4px 10px rgba(51, 153, 255, 0.3);
}

body.dark-mode .btn.primary:hover {
  background: #1c7be3;
}

body.dark-mode .btn.outline {
  border-color: #3399ff;
  color: #3399ff;
}

body.dark-mode .btn.outline:hover {
  background: #3399ff;
  color: #fff;
}

body.dark-mode .hero-illustration img {
  filter: brightness(0.8);
}

/* ============================================================
   📱 RESPONSIVE DESIGN
============================================================ */

/* === Tablet === */
@media (max-width: 1024px) {
  .hero {
    padding: 70px 30px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-container {
    gap: 40px;
  }

  .hero-illustration img {
    max-width: 280px;
  }
}

/* === Mobile (768px) === */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-illustration {
    order: -1;
    margin-bottom: 25px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* === Small Mobile (480px) === */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    font-size: 0.9rem;
  }
}


/* ============================================================
   ⚙️ FITUR UTAMA SECTION (DESKTOP + MOBILE + DARK/LIGHT)
============================================================ */

.fitur-section {
  background: #f8f9fb;
  color: #1c1c1e;
  padding: 80px 20px;
  text-align: center;
  transition: background 0.4s, color 0.4s;
}

.fitur-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0057d9;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.fitur-card {
  background: #fff;
  border-radius: 18px;
  padding: 35px 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.fitur-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fitur-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.fitur-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 10px;
}

.fitur-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* ============================================================
   🌙 DARK MODE
============================================================ */
body.dark-mode .fitur-section {
  background: #0f0f11;
  color: #f5f5f5;
}

body.dark-mode .fitur-section h2 {
  color: #4ca8ff;
}

body.dark-mode .fitur-card {
  background: #1b1b1d;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .fitur-card h3 {
  color: #f5f5f5;
}

body.dark-mode .fitur-card p {
  color: #cccccc;
}

/* ============================================================
   📱 RESPONSIVE DESIGN
============================================================ */

/* Tablet */
@media (max-width: 992px) {
  .fitur-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .fitur-section h2 {
    font-size: 1.8rem;
  }

  .fitur-card {
    padding: 30px 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .fitur-grid {
    grid-template-columns: 1fr;
  }

  .fitur-section {
    padding: 60px 15px;
  }

  .fitur-section h2 {
    font-size: 1.6rem;
  }

  .fitur-card {
    padding: 25px 20px;
  }
}


/* ============================================================
   👥 TOKOH PENTING SECTION — Modern, Responsive & Dark/Light
============================================================ */

.tokoh-section {
  background: linear-gradient(180deg, #f9fbff 0%, #f1f4fa 100%);
  color: #1a1a1a;
  padding: 100px 20px;
  text-align: center;
  transition: background 0.4s, color 0.4s;
}

.tokoh-header {
  margin-bottom: 60px;
}

.tokoh-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0047cc;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.tokoh-header p {
  font-size: 1.05rem;
  color: #555;
}

/* ===== GRID LAYOUT ===== */
.tokoh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== CARD ===== */
.tokoh-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 87, 217, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.35s ease;
}

.tokoh-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 87, 217, 0.25);
}

/* ===== IMAGE ===== */
.tokoh-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #dbe6ff, #f1f6ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tokoh-image img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.tokoh-card:hover img {
  transform: scale(1.06);
}

/* ===== INFO ===== */
.tokoh-info {
  padding: 25px 15px 30px;
}

.tokoh-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0057d9;
  margin-bottom: 6px;
}

.tokoh-info p {
  font-size: 0.95rem;
  color: #666;
}

/* ============================================================
   🌙 DARK MODE
============================================================ */
body.dark-mode .tokoh-section {
  background: linear-gradient(180deg, #0e0e11 0%, #18181d 100%);
  color: #f5f5f5;
}

body.dark-mode .tokoh-header h2 {
  color: #4ca8ff;
}

body.dark-mode .tokoh-header p {
  color: #bbbbbb;
}

body.dark-mode .tokoh-card {
  background: rgba(32, 32, 35, 0.8);
  border: 1px solid rgba(76, 168, 255, 0.2);
  box-shadow: 0 8px 25px rgba(76, 168, 255, 0.08);
}

body.dark-mode .tokoh-image {
  background: linear-gradient(135deg, #1a1f29, #0d1118);
}

body.dark-mode .tokoh-info h4 {
  color: #4ca8ff;
}

body.dark-mode .tokoh-info p {
  color: #ccc;
}

/* ============================================================
   📱 RESPONSIVE DESIGN
============================================================ */

/* Tablet */
@media (max-width: 992px) {
  .tokoh-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tokoh-header h2 {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .tokoh-grid {
    grid-template-columns: 1fr;
  }

  .tokoh-header h2 {
    font-size: 1.7rem;
  }

  .tokoh-section {
    padding: 70px 15px;
  }
}


/* ============================================================
   📰 BERITA TERKINI — Horizontal Grid (Desktop + Mobile)
============================================================ */
.berita-terkini {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* ===== HEADER BERITA TERKINI + LINK ===== */
.berita-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.berita-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0057d9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-berita {
  font-size: 0.9rem;
  color: #0057d9;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.link-berita:hover {
  color: #003f9e;
  text-decoration: underline;
}

/* ===== GRID BERITA ===== */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ===== KARTU BERITA ===== */
.berita-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e4e7ec;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 95px;
}

.berita-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 87, 217, 0.15);
}

.berita-img {
  width: 90px;
  height: 100%;
  background: #cfd8e3;
  flex-shrink: 0;
}

.berita-content {
  padding: 10px 14px;
  flex: 1;
  overflow: hidden;
}

.berita-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.berita-content .meta {
  font-size: 0.75rem;
  color: #777;
}

/* ============================================================
   📄 PAGINATION (Tengah + Nomor Halaman)
============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0057d9;
  border: 1px solid #0057d9;
  background: #fff;
  transition: 0.3s ease;
  text-decoration: none;
}

.page-btn:hover {
  background: #0057d9;
  color: #fff;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0057d9;
  border: 1px solid #0057d9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  text-decoration: none;
}

.page-number:hover,
.page-number.active {
  background: #0057d9;
  color: #fff;
}

.dots {
  color: #666;
  font-weight: bold;
}

/* ============================================================
   🌙 DARK MODE
============================================================ */
body.dark-mode .berita-card {
  background: #1b1b1d;
  border-color: #2a2a2a;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .berita-content h3 {
  color: #f5f5f5;
}

body.dark-mode .berita-content .meta {
  color: #b5b5b5;
}

body.dark-mode .berita-img {
  background: #333;
}

body.dark-mode .link-berita {
  color: #4da3ff;
}

body.dark-mode .page-btn,
body.dark-mode .page-number {
  color: #4da3ff;
  border-color: #4da3ff;
  background: #1b1b1d;
}

body.dark-mode .page-btn:hover,
body.dark-mode .page-number:hover,
body.dark-mode .page-number.active {
  background: #4da3ff;
  color: #fff;
}

/* ============================================================
   📱 RESPONSIVE DESIGN
============================================================ */
@media (max-width: 1024px) {
  .berita-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .berita-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .berita-grid {
    grid-template-columns: 1fr;
  }

  .berita-card {
    height: 90px;
  }

  .berita-img {
    width: 80px;
  }

  .pagination {
    flex-direction: column;
    gap: 12px;
  }

  .page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* ===== FOOTER ===== */
.footer {
  background-color: var(--footer-bg, #0057ff);
  color: var(--footer-text, #fff);
  padding: 60px 20px 30px;
  transition: background 0.3s, color 0.3s;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer h3,
.footer h4 {
  font-weight: 700;
  margin-bottom: 16px;
}

.footer p {
  line-height: 1.6;
  color: var(--footer-text-light, rgba(255, 255, 255, 0.85));
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin: 8px 0;
}

.footer ul li a {
  color: var(--footer-text, #fff);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer ul li a:hover {
  opacity: 0.8;
}

/* === SOCIAL ICONS === */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--footer-text, #fff);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #fff;
  color: #0057ff;
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--footer-text-light, rgba(255, 255, 255, 0.8));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ===== LIGHT MODE ===== */
@media (prefers-color-scheme: light) {
  :root {
    --footer-bg: #f8f9fb;
    --footer-text: #1c1c1e;
    --footer-text-light: #555;
  }

  .social-links a {
    background: rgba(0, 87, 255, 0.1);
    color: #0057ff;
  }

  .social-links a:hover {
    background: #0057ff;
    color: #fff;
  }

  .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
  }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --footer-bg: #003aad;
    --footer-text: #ffffff;
    --footer-text-light: #cccccc;
  }

  .social-links a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .social-links a:hover {
    background: #fff;
    color: #003aad;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}
