

/* === 1. KONFIGURASI ROOT & FONT === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Palet Warna Profesional */
  --primary-color: #005A9C; /* Biru korporat yang terpercaya */
  --secondary-color: #0D2235; /* Biru sangat gelap untuk teks & footer */
  --accent-color: #FFC107; /* Aksen kuning/gold untuk tombol & highlight */
  --light-bg-color: #f8f9fa; /* Latar belakang abu-abu sangat terang */
  --text-color: #333333; /* Warna teks utama */
  --border-color: #dee2e6; /* Warna border halus */

  /* Tipografi */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lora', serif;

  /* Properti Lain */
  --border-radius: 8px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition-speed: 0.3s ease;
}

/* === 2. RESET & STYLE DASAR === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Efek scroll halus saat klik anchor link */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === 3. TIPOGRAFI === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* === 4. HEADER & NAVIGASI === */
.main-header {
  background-color: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}
.nav-logo a:hover {
  text-decoration: none;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-speed);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* === 5. HERO SECTION (BAGIAN UTAMA ATAS) === */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  padding: 4rem 0;
  background: linear-gradient(rgba(13, 34, 53, 0.7), rgba(13, 34, 53, 0.7)), url('https://source.unsplash.com/1600x900/?library,book') no-repeat center center/cover;
  color: #fff;
  animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 1rem auto 2rem auto;
}

/* === 6. TOMBOL (BUTTON) === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: #ffca2c;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* === 7. KONTEN & KARTU ARTIKEL === */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background-color: var(--light-bg-color);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Animasi staggered untuk kartu */
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.4s; }

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

/* === 8. FOOTER === */
.main-footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  text-align: center;
}

.main-footer a {
  color: var(--accent-color);
}
.main-footer a:hover {
  color: #fff;
}

/* === 9. ANIMASI === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 10. RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  h1, .hero-content h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .hero-section {
    min-height: 50vh;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}