* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: "Montserrat", sans-serif;
  height: 100%;
  background-color: #f4f4f4;
}

/* HEADER */
header {
  background-color: #431650;
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
}

.logo span {
  color: white;
  font-weight: bold;
  font-size: 18px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

nav ul li a.active {
  font-weight: bold;
  border-bottom: 3px solid #ffd25d;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
  padding: 10px;
  display: inline-block;
  position: relative;
}

.nav-menu a:hover {
  transform: scale(1.05);
  color: #ffffff;
}

.nav-menu .active {
  color: #ffffff;
  font-weight: 600;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #ffffff;
  list-style: none;
  min-width: 180px;
  border-radius: 5px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  color: #431650;
}

.dropdown-menu li a:hover {
  background-color: #9e9e9e;
  border-radius: 5px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-menu a.active:hover {
  transform: none;
  color: #ffffff;
  cursor: default;
}

.nav-menu li:nth-child(3) a,
.nav-menu li:nth-child(4) a,
.nav-menu li:nth-child(5) a {
  position: relative;
  top: -2px;
}
.hero {
  position: relative;
  height: 100vh;
  background: #431650;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Agar gambar latar tidak keluar area */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Agar gambar menyesuaikan ukuran tanpa distorsi */
  z-index: 0;
  opacity: 0.4; /* Bisa disesuaikan agar tidak terlalu mencolok */
}
.hero-content {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 450px;
}

.hero h1 {
  font-size: 30px;
  font-weight: 400;
}

.hero .departemen {
  font-size: 30px;
  font-weight: 700;
}
.deskripsi-psdm {
  background-color: #f9f5ff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.deskripsi-container {
  max-width: 1200px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.deskripsi-teks {
  flex: 1;
  font-size: 22px;
  font-weight: 500;
  color: #431650;
  line-height: 1.6;
}

.deskripsi-teks .highlight {
  background-color: #ffd25d;
  font-weight: 700;
  padding: 0 5px;
}

.deskripsi-icon {
  flex-shrink: 0;
}

.deskripsi-icon img {
  width: 100px;
  max-width: 100%;
}
.program-kerja {
  background-color: #431650;
  padding: 80px 20px;
  color: #2e0039;
}

.judul-program {
  font-size: 28px;
  text-align: center;
  color: #431650;
  margin-bottom: 40px;
}

.judul-program span {
  background-color: #ffd25d;
  padding: 8px 20px;
  font-weight: bold;
  border-radius: 5px;
}

.kartu-program {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.kartu {
  background: linear-gradient(to right, #fff0e1, #ffe382);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kartu:nth-child(2) {
  background: linear-gradient(to right, #f3e8ff, #e3d3ff);
}

.kartu-kiri {
  flex: 1;
}

.kartu-kiri h3 {
  font-size: 26px;
  color: #431650;
  font-weight: 800;
}

.kartu-kiri .subjudul {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.kartu-kiri .deskripsi {
  font-size: 16px;
  line-height: 1.6;
}

.kartu-kanan img {
  width: 160px;
  height: auto;
}
.psdm-struktur {
  background-color: #f5ecfb;
  padding: 60px 20px;
  text-align: center;
}

.psdm-struktur h2 {
  font-size: 26px;
  color: #440e5d;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
}

.psdm-struktur h2 span {
  display: block;
  font-size: 30px;
  font-weight: 700;
  margin-top: 5px;
}

.struktur-menteri {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.menteri-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  width: 260px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.4s;
  cursor: pointer;
}

.menteri-card:hover {
  transform: translateY(-10px);
}

.menteri-card .img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2;
  overflow: hidden;
  background-color: #eee;
}

.menteri-card .foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.menteri-card .logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  z-index: 1;
}

.menteri-card:hover .logo-overlay {
  opacity: 0.25;
}

.menteri-card .info {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0;
  margin: 0;
}

.menteri-card .jabatan {
  background-color: #e0caf9;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  color: #440e5d;
  margin: 0;
  border-bottom: 2px solid #fff;
}

.menteri-card .nama {
  background-color: #ffd25d;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: bold;
  color: #440e5d;
  margin: 0;
}

.departemen-title {
  font-size: 20px;
  color: #440e5d;
  font-weight: 700;
  margin: 40px 0 20px;
}

.departemen-scroll {
  overflow-x: auto;
  padding-bottom: 20px;

  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.departemen-cards {
  display: flex;
  gap: 30px;
  padding: 10px;
  max-width: 100%;
}

.anggota-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  flex: 0 0 260px;
  width: 260px;
  max-width: 300px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s;
  cursor: pointer;
  overflow: hidden;
}

.anggota-card:hover {
  transform: translateY(-10px);
}

.anggota-card .img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2;
  overflow: hidden;
  background-color: #eee;
}

.anggota-card .foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  position: relative;
}

.anggota-card .logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  z-index: 1;
}

.anggota-card:hover .logo-overlay {
  opacity: 0.25;
}

.anggota-card .info {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0;
  padding: 0;
}

.anggota-card .jabatan {
  background-color: #e0caf9;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  color: #440e5d;
  margin: 0;
  border-bottom: 2px solid #fff;
}

.anggota-card .nama {
  background-color: #ffd25d;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: bold;
  color: #440e5d;
  margin: 0;
}

.departemen-scroll::-webkit-scrollbar {
  display: none;
}

.departemen-scroll::-webkit-scrollbar-thumb {
  background-color: #c8b1e4;
  border-radius: 4px;
}

.departemen-scroll::-webkit-scrollbar-track {
  background-color: #f5ecfb;
}
.footer {
  background-color: #431650;
  color: white;
  padding: 50px 30px 20px;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  font-family: "Poppins", sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 30px;
  gap: 30px;
}

.footer-left h3,
.footer-right h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-center {
  text-align: center;
}

.footer-center img.footer-logo {
  width: 130px;
  margin-bottom: 10px;
}

.footer-center p {
  font-size: 18px;
  font-weight: semibold;
}

.footer-center p strong {
  color: white;
}

.social-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 40px); /* 3 kolom */
  grid-gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.social-icons-grid img {
  width: 40px;
  height: 40px;
}

.footer hr {
  border: none;
  border-top: 2px solid #ddd;
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #ccc;
}
/* Berita Kajian Section */
.berita-kajian {
  background-color: #f5ecfb;
  padding: 40px 20px;
  margin: 0 auto;
}

.berita-header {
  text-align: center;
  margin-bottom: 50px;
}

.berita-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #440e5d;
  margin: 0;
  letter-spacing: 2px;
}

.berita-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.berita-item {
  display: flex;
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #f0f0f0;
}

.berita-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.berita-thumbnail {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.berita-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.berita-content {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.berita-kategori {
  font-size: 11px;
  font-weight: 600;
  color: #ffa726;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  line-height: 1.2;
}

.berita-tanggal {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}

.berita-tanggal.siaran-pers {
  color: #440e5d;
  font-weight: 600;
  background-color: #f3e5f5;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 5px;
  font-size: 10px;
}

.berita-content h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
  .berita-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .berita-item {
    flex-direction: column;
  }

  .berita-thumbnail {
    flex: none;
    width: 100%;
    height: 180px;
  }

  .berita-content {
    padding: 20px;
  }

  .berita-content h3 {
    font-size: 16px;
  }

  .berita-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .berita-kajian {
    padding: 40px 15px;
  }

  .berita-header h2 {
    font-size: 24px;
  }

  .berita-content h3 {
    font-size: 14px;
  }
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  background-color: white;
  border-radius: 15px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.popup-close:hover {
  color: #440e5d;
  background-color: #f0f0f0;
}

.popup-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.popup-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.3;
  padding-right: 50px;
}

.popup-body {
  padding: 30px;
}

.popup-image {
  margin-bottom: 25px;
  text-align: center;
}

.popup-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-text {
  line-height: 1.7;
  color: #333;
}

.popup-text p {
  margin-bottom: 20px;
  font-size: 16px;
  text-align: justify;
}

.popup-text p:last-child {
  margin-bottom: 0;
}

/* Responsive Popup */
@media (max-width: 768px) {
  .popup-overlay {
    padding: 10px;
  }

  .popup-content {
    max-height: 95vh;
    border-radius: 10px;
  }

  .popup-header {
    padding: 20px 20px 15px;
  }

  .popup-header h2 {
    font-size: 20px;
    padding-right: 40px;
  }

  .popup-body {
    padding: 20px;
  }

  .popup-text p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .popup-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .popup-header h2 {
    font-size: 18px;
  }

  .popup-text p {
    font-size: 13px;
  }
}
/* Tombol Toggle Menu untuk Mobile */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1001;
}
/* Tombol Close (X) di Sidebar */
.close-btn {
  display: none;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Media Query untuk Tampilan Mobile */
@media (max-width: 768px) {
  header {
    position: static;
    width: 100%;
    padding: 10px 20px;
  }
  .close-btn {
    display: block;
  }
  .misi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
  }

  .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    background-color: #431650;
    flex-direction: column;
    padding: 60px 20px 20px;
    display: flex;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  nav.open {
    left: 0;
  }

  .nav-menu {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu li {
    width: 100%;
  }

  .dropdown-menu {
    position: relative;
    background-color: #fff;
    box-shadow: none;
    padding-left: 15px;
  }

  .dropdown-menu li a {
    color: #431650;
    padding: 10px 10px;
  }
  .footer {
    padding: 20px 15px 10px;
  }

  .footer-content {
    flex-direction: row; /* biar sejajar */
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
  }

  .footer-left {
    flex: 1;
    min-width: 100px;
    max-width: 30.33%; /* opsional, biar proporsional */
    text-align: left;
    padding: 0;
  }
  .footer-center {
    flex: 1;
    min-width: 100px;
    max-width: 30.33%; /* opsional, biar proporsional */
    text-align: center;
    padding: 0;
  }
  .footer-right {
    flex: 1;
    min-width: 100px;
    max-width: 30.33%; /* opsional, biar proporsional */
    text-align: right;
    padding: 0;
  }

  .footer-left h3,
  .footer-right h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer-left p {
    font-size: 8px;
    line-height: 1.4;
  }
  .footer-right p,
  .footer-center p {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-center img.footer-logo {
    width: 80px;
    margin-bottom: 5px;
  }

  .social-icons-grid {
    grid-template-columns: repeat(3, 26px);
    grid-gap: 6px;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .social-icons-grid img {
    width: 26px;
    height: 26px;
  }

  .footer-bottom {
    font-size: 10px;
    text-align: center;
    padding: 0 10px;
  }
  .hero {
    height: 40vh;
    padding: 30px 15px;
  }

  .hero-logo {
    width: 200px;
  }

  .hero h1 {
    font-size: 16px;
  }

  .hero .departemen {
    font-size: 18px;
  }
  .deskripsi-psdm {
    padding: 30px 10px;
  }

  .deskripsi-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .deskripsi-teks {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }

  .deskripsi-icon img {
    width: 30px;
  }
  .program-kerja {
    padding: 40px 10px;
  }

  .judul-program {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .judul-program span {
    font-size: 14px;
    padding: 6px 14px;
  }

  .kartu-program {
    gap: 20px;
  }

  .kartu {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    max-width: 100%;
  }

  .kartu-kiri h3 {
    font-size: 18px;
  }

  .kartu-kiri .subjudul {
    font-size: 14px;
  }

  .kartu-kiri .deskripsi {
    font-size: 13px;
    line-height: 1.4;
  }

  .kartu-kanan img {
    width: 100px;
  }
  /* Perkecil tampilan struktur PSDM di mobile */
  .psdm-struktur {
    padding: 40px 10px;
  }

  .psdm-struktur h2 {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .psdm-struktur h2 span {
    font-size: 10px;
  }

  .menteri-card {
    width: 200px;
    max-width: 90%;
  }

  .menteri-card .jabatan {
    font-size: 11px;
    padding: 6px 10px;
  }

  .menteri-card .nama {
    font-size: 9px;
    padding: 6px 10px;
  }

  .menteri-card .logo-overlay {
    padding: 10px;
  }
  .departemen-title {
    font-size: 16px;
    margin: 20px 0 10px;
    text-align: center;
  }

  .departemen-scroll {
    padding-bottom: 10px;
  }

  .departemen-cards {
    gap: 16px;
  }

  .anggota-card {
    flex: 0 0 160px;
    width: 160px;
  }

  .anggota-card .jabatan {
    font-size: 10px;
    padding: 6px 8px;
  }

  .anggota-card .nama {
    font-size: 8px;
    padding: 6px 8px;
  }

  .anggota-card .logo-overlay {
    padding: 10px;
  }
}
html,
body {
  overflow-x: hidden;
}
