/* --- Variabel Warna & Reset Dasar --- */
:root {
  --blue-light: #4e95ff;
  --blue-dark: #0d6efd;
  --text-dark: #343a40;
  --text-light: #f8f9fa;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
}

/* 1. RESET & DASAR */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

header {
  background: #1e1e1e;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 2. WRAPPER (LOGO KIRI - TOGGLE KANAN) */
.header-wrapper {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* 3. STYLE LINK NAVIGASI (Perbaikan untuk Teks Biru) */
header nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

header nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
header nav a.active {
  background-color: white;
  color: var(--text-dark);
  font-weight: 500;
}

/* Navigasi Desktop */
header nav {
  display: flex;
  gap: 25px;
}

/* 4. TOGGLE HAMBURGER */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 25px;
  height: 18px;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}

/* 5. RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* Munculkan hamburger di mobile */
  }

  header nav {
    display: none;
    position: absolute;
    top: 100%; /* Di bawah header */
    left: -5%; /* Kompensasi padding container */
    width: 110%; /* Full lebar layar */
    background: #1e1e1e;
    flex-direction: column;
    padding: 20px 0;
    text-align: center; /* Teks di tengah saat mobile */
    border-top: 1px solid #333;
  }

  header nav.show {
    display: flex;
  }

  header nav a {
    padding: 15px 0; /* Memberi jarak antar menu di mobile */
  }
}

/* ANIMASI TOMBOL X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px);
}

/* --- Kartu Berita Terbaru --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 25px;
}

.post-card-content h4 a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 18px;
}

.post-card-content p {
  font-size: 14px;
  color: #6c757d;
  margin: 10px 0;
}

.post-card-content small {
  color: #adb5bd;
}

/* --- Footer --- */
footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }
}
/* --- Halaman Header (untuk semua halaman internal) --- */
.page-header {
  padding: 60px 20px;
  background: var(--text-dark);
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
}

/* --- Layout Halaman Profil --- */
.profile-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* Membuat sidebar dan konten sejajar di atas */
}

.profile-sidebar {
  flex: 0 0 250px; /* Lebar sidebar tetap 250px */
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 15px;
  position: sticky; /* Membuat sidebar 'mengikuti' saat di-scroll */
  top: 100px; /* Jarak dari atas (setelah header utama) */
}

.profile-sidebar ul {
  list-style: none;
}

.profile-sidebar li a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--text-dark);
  border-radius: 8px;
  font-weight: 500;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.profile-sidebar li a:hover {
  background-color: var(--bg-light);
}

.profile-sidebar li a.active {
  background-color: var(--blue-dark);
  color: white;
}

.profile-content {
  flex: 1; /* Konten utama mengisi sisa ruang */
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.profile-content h2 {
  margin-top: 0;
  font-size: 28px;
  color: var(--text-dark);
  border-bottom: 2px solid var(--blue-dark);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.profile-content h3 {
  font-size: 22px;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 10px;
}

/* --- Responsive untuk Halaman Profil --- */
@media (max-width: 992px) {
  .profile-layout {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
    position: static; /* Hapus 'sticky' di mobile */
  }
}
/* --- Halaman Detail Artikel --- */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.article-meta {
  text-align: center;
  margin-top: -30px; /* Sedikit naik ke atas header */
  margin-bottom: 30px;
  color: var(--text-light);
  opacity: 0.9;
}
.article-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}
.article-content {
  line-height: 1.8;
  font-size: 16px;
}
/* --- Halaman Formulir --- */
.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.form-wrapper h4 {
  margin-top: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
/* --- Halaman Kontak --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  align-items: flex-start;
}
.contact-info h4,
.contact-form-wrapper h4 {
  font-size: 22px;
  margin-bottom: 15px;
}
.contact-info p {
  margin-bottom: 10px;
}
.contact-info iframe {
  margin-top: 20px;
  border-radius: 10px;
}
/* --- Footer Modern --- */
footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.7); /* Warna teks abu-abu terang */
  padding: 60px 0 0 0;
  margin-top: 60px; /* Jarak dari konten terakhir di atasnya */
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

/* Garis bawah dekoratif untuk judul footer */
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--blue-dark);
}

.footer-col p {
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition:
    color 0.3s,
    padding-left 0.3s;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* ================= SECTION ================= */
.page-section {
  padding: 40px 0;
}

.bg-white {
  background: #d32424;
}

.bg-grey {
  background: #000000;
}

/* ================= ABOUT / TENTANG KAMI ================= */
.about-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 40%, #f1f5f9 100%);
}

.about-content {
  max-width: 900px;
  margin: auto;
  text-align: justify;
}

.about-content h2 {
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.5px;
}

.about-content p {
  font-size: 15.5px;
  line-height: 1.9;
  color: #4b5563;
  padding: 0 10px;
  text-align: justify;
}

/* ================= PRODUK SLIDER ================= */
.slider-wrapper {
  overflow-x: auto;
  padding: 10px 5px;
  scroll-behavior: smooth;
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

.slider-track {
  display: flex;
  gap: 22px;
  width: max-content;
}

.post-card {
  min-width: 230px;
  max-width: 230px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.post-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.post-card-content {
  padding: 14px;
}

.post-card h4 {
  font-size: 15px;
  margin: 0 0 6px;
}

.price {
  font-weight: 700;
  margin-bottom: 6px;
}

.cta {
  font-size: 12px;
  color: #6b7280;
}

.post-card:hover .cta {
  color: #111;
}

/* ================= PORTFOLIO (STATIC & FULL COLOR) ================= */

.portfolio-item {
  background: transparent;
  padding: 10px;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* Tidak ada efek hover sama sekali */
.portfolio-item:hover {
  transform: none;
}

/* Logo tampil normal (warna asli) */
.portfolio-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Hover tetap sama (tidak berubah) */
.portfolio-item:hover img {
  filter: none;
  opacity: 1;
  transform: none;
}

/* Nama vendor */
.portfolio-item h4 {
  font-size: 13px;
  margin: 0;
  line-height: 1.3;
  color: #374151;
}

/* Tidak berubah saat hover */
.portfolio-item:hover h4 {
  color: #374151;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-overlay h1 {
    font-size: 30px;
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-overlay h1 {
    font-size: 24px;
  }
}
/* ================= SECTION ================= */
.page-section {
  padding: 60px 0;
  background: #f8fafc;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ================= GRID ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  /* penting biar sama tinggi */
}

/* ================= CARD ================= */
.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;

  display: flex;
  flex-direction: column;
  height: 100%;
  /* biar full tinggi */
}

/* ================= JUDUL ================= */
.card h3 {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

/* ================= TEXT ================= */
.card p {
  margin-bottom: 12px;
  color: #374151;
  line-height: 1.6;
}

/* ================= MAP ================= */
.card iframe {
  margin-top: auto;
  /* dorong ke bawah biar balance */
}

/* ================= FORM ================= */
form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-group {
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

/* TEXTAREA FLEX BIAR SEIMBANG */
textarea {
  flex: 1;
  min-height: 120px;
  resize: none;
}

/* BUTTON */
.btn {
  margin-top: auto;
  /* tombol selalu di bawah */
  width: 100%;
  background: #4f46e5;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

/* ================= ALERT ================= */
.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.success {
  background: #dcfce7;
  color: #166534;
}

.error {
  background: #fee2e2;
  color: #991b1b;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
