@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Franklin:wght@400;500;600;700&family=Source+Serif+4:wght@600;700&display=swap');


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Libre Franklin", sans-serif;
  color: #213845;
  background: #FEFBEA;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 5%;
  background: #002B6A;
  border-bottom: 5px solid lightblue;
}

header img {
  width: 145px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.judulweb {
  color: white;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: white;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: red;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: #e37d2f;
}

/* LAYOUT UMUM */
main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 65px 48px 40px;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  background: #FEFBEA;
  margin-left: auto;
  margin-right: auto;
  background-color: #FEFBEA;
  border-radius: 20px;
  padding: 30px;

}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 1200px;
  margin-bottom: 42px;
  color: #12364f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -1.8px;
  text-align: center;
}

/* HOME */
.home-container {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  background: #FEFBEA;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
  padding: 5px 40px 70px;
  overflow: hidden;
  border-bottom: 1px solid #b8c4c8;
  background: #FEFBEA;
}

.hero::before {
  background: #FEFBEA;
}

.hero::after {
  content: "";
  position: absolute;
  right: 140px;
  bottom: 70px;
  width: 110px;
  height: 110px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(24, 88, 120, 0.24) 2px, transparent 2px);
  background-size: 16px 16px;
}

.hero-text {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 760px;
  padding-left: 18px;
}

.hero-text::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 7px;
  height: 70px;
  background: #c76845;
}

.label-home {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 6px;
  color: #496879;
  border-bottom: 1px solid #c7d1d4;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 70px;
  line-height: 0.98;
  letter-spacing: -3px;
  text-align: left;
}

.hero-text p {
  max-width: 650px;
  margin: 0;
  color: #272b2d;
  font-size: 17px;
  line-height: 1.8;
}

.hero-button {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 3px;
  transition: 0.2s ease;
}

.btn-primary {
  background: #174765;
  border: 1px solid #174765;
  color: #f7f9f8;
}

.btn-primary:hover {
  background: #10384f;
  border-color: #10384f;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #9eacb1;
  color: #174765;
}

.btn-secondary:hover {
  background: #e8eef0;
}

.hero-image {
  position: relative;
  z-index: 2;
  flex: 0 0 360px;
  width: 30px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1b4662;
  box-shadow: 0 18px 40px rgba(18, 54, 79, 0.10);
}

/* garis diagonal seperti desain awal */
.hero-image::before {
  content: "";
  position: absolute;
  left: -70px;
  top: 255px;
  width: 520px;
  height: 1px;
  background: #587a8e;
  transform: rotate(-39deg);
}

/* sudut garis kecil kanan bawah */
.hero-image::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-right: 1px solid #6f8d9e;
  border-bottom: 1px solid #6f8d9e;
}

.hero-image img {
  position: relative;
  z-index: 2;
  width: 235px;
  max-width: 78%;
}

/* STATISTIK HOME */
.statistik-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-bottom: 1px solid #b8c4c8;
}

.stat-box {
  min-height: 145px;
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid #d0d9dc;
}

.stat-box:first-child {
  padding-left: 20px;
}

.stat-box:last-child {
  border-right: 0;
}

.stat-box h2 {
  margin: 0;
  color: #12364f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 48px;
  line-height: 1;
}

.stat-box p {
  margin: 10px 0 0;
  color: #5b6d75;
  font-size: 14px;
}

/* MENU HOME */
.menu-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  padding-top: 70px;
}

.home-card {
  min-height: 175px;
  padding: 26px 0 34px;
  border-top: 1px solid #9eacb1;
  padding-left: 18px;
}

.home-card:nth-child(even) {
  margin-top: 0;
}

.home-card h3 {
  margin-bottom: 12px;
  color: #12364f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
}

.home-card p {
  margin: 0;
  color: #5b6d75;
  line-height: 1.7;
}

.home-card a {
  display: inline-block;
  margin-top: 14px;
  padding-bottom: 2px;
  color: #185878;
  border-bottom: 1px solid #9eb8c4;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-card a:hover {
  color: #12364f;
  border-bottom-color: #e37d2f;
}

/* TABEL */
table {
  width: 100%;
  border-collapse: collapse;
  background: #f9faf8;
  border: 1px solid #aebdc2;
}

th,
td {
  padding: 16px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #d4dddf;
}

th {
  background: #174765;
  color: #f1f5f5;
  text-align: center;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-right: 1px solid #191a1b;
}

td {
  color: #213845;
  font-size: 15px;
  border-right: 1px solid #d4dddf;
}

tr:nth-child(even) td {
  background: #f0f4f4;
}

tr:hover td {
  background: #e8f0f2;
}

td.no {
  width: 60px;
  text-align: center;
  color: #60727b;
}

td.judul {
  text-align: left;
}

td.tanggal {
  width: 180px;
  white-space: nowrap;
  color: #60727b;
}

td.sampul {
  width: 125px;
  text-align: center;
}

td.judul a {
  color: #174765;
  font-weight: 700;
}

.cover-book {
  width: 78px;
  border: 1px solid #aebdc2;
}

/* FORM */
.form-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

form {
  width: 100%;
  max-width: 1200px;
  padding: 32px 30px 40px 30px;
  border-top: 3px solid #185878;
  border-bottom: 1px solid #aebdc2;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #12364f;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="file"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #9fb0b7;
  border-radius: 3px;
  background: #fafbf9;
  color: #213845;
  font-family: "Libre Franklin", sans-serif;
  font-size: 16px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #91b4c4;
  outline-offset: 1px;
  border-color: #185878;
}

button[type="submit"],
input[type="submit"] {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #174765;
  border-radius: 3px;
  background: #174765;
  color: #f7f9f8;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background: #10384f;
}

/* PESAN ERROR */
#pesanError {
  display: none;
  max-width: 860px;
  margin-bottom: 20px;
  padding: 13px 15px;
  background: #f5e8e5;
  border: 1px solid #d5aaa4;
  color: #7d332e;
  font-size: 14px;
  font-weight: 600;
}

/* GALERI */
.galeri-container {
  width: 100%;
  max-width: 980px;

}

.preview-box {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
  padding-left: 50px;
}

.preview-image {
  width: 100%;
  height: 540px;
  display: block;
  object-fit: cover;
}

.thumbnail-box {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding-left: 50px;
}

.thumbnail {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border: 1px solid #c2ced2;
  cursor: pointer;
  opacity: 0.72;
}

.thumbnail:hover,
.thumbnail.active-thumb {
  opacity: 1;
}

.thumbnail.active-thumb {
  border-color: #185878;
}

/* FOOTER */
hr {
  margin: 70px 0 18px;
  border: 0;
  border-top: 1px solid #aebdc2;
}

address {
  max-width: 760px;
  padding-bottom: 8px;
  color: white;
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  padding-left: 0;
}

address a {
  color: white;
  font-weight: 600;
}

/* TOMBOL AKSI */
.aksi {
  text-align: center;
  white-space: nowrap;
}

.btn-edit,
.btn-hapus {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  margin: 2px;
  border-radius: 3px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.btn-edit {
  background: #f4e7c8;
  border: 1px solid #d0b36b;
  color: #715017;
}

.btn-hapus {
  background: #f2ddda;
  border: 1px solid #d39b95;
  color: #8a342e;
}

.btn-edit:hover {
  background: #ead8ae;
}

.btn-hapus:hover {
  background: #e9cbc7;
}

/* TABLET */
@media (max-width: 1050px) {
  header {
    flex-wrap: wrap;
    gap: 10px 24px;
    padding: 10px 30px 8px;
  }

  .judulweb {
    font-size: 21px;
  }

  nav {
    width: 100%;
    margin-left: 0;
    gap: 24px;
    overflow-x: auto;
  }

  main {
    padding: 50px 30px 75px;
  }

  .hero {
    gap: 42px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-image {
    flex-basis: 300px;
    width: 300px;
    height: 450px;
  }

  .menu-home {
    gap: 0 42px;
  }

  .thumbnail-box {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* MOBILE */
@media (max-width: 720px) {
  header {
    position: relative;
    padding: 10px 18px 8px;
  }

  header img {
    width: 105px;
    height: 48px;
  }

  .judulweb {
    font-size: 16px;
    white-space: normal;
  }

  nav {
    gap: 20px;
  }

  nav a {
    min-width: max-content;
    font-size: 13px;
  }

  main {
    padding: 40px 18px 55px;
  }

  h1 {
    margin-bottom: 28px;
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 30px 20px 55px;
  }

  .hero::before {
    background-size: 120px, 300px, 120px, cover;
    background-position: left top, 40px 170px, right top, center;
  }

  .hero::after {
    right: 30px;
    bottom: 30px;
    width: 70px;
    height: 70px;
    background-size: 14px 14px;
  }

  .hero-text {
    padding-left: 0;
  }

  .hero-text::before {
    left: 0;
    top: -18px;
    width: 55px;
    height: 4px;
  }

  .hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .hero-button {
    flex-wrap: wrap;
  }

  .hero-image {
    width: 100%;
    height: 410px;
    margin-top: 42px;
  }

  .statistik-home {
    grid-template-columns: 1fr;
  }

  .stat-box {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid #d0d9dc;
    text-align: center;
  }

  .stat-box:first-child {
    padding-left: 28px;
  }

  .stat-box:last-child {
    border-bottom: 0;
  }

  .menu-home {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 48px;
  }

  .home-card,
  .home-card:nth-child(even) {
    min-height: auto;
    margin-top: 0;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  td.judul {
    min-width: 250px;
    white-space: normal;
  }

  .preview-image {
    height: 340px;
  }

  .thumbnail-box {
    grid-template-columns: repeat(3, 1fr);
  }

  .thumbnail {
    height: 82px;
  }
}

@media (max-width: 430px) {
  header {
    gap: 8px 14px;
  }

  header img {
    width: 92px;
  }

  .judulweb {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-image {
    height: 360px;
  }

  .hero-image img {
    width: 210px;
  }

  .thumbnail-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media print {

  header,
  nav,
  .hero-button,
  .aksi {
    display: none;
  }

  body {
    background: #f5f5f2;
    color: #25333a;
  }

  main,
  .container,
  .home-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* LOGIN */
.login-container {
  width: 100%;
  max-width: 520px;
  margin: 40px auto;
}

.login-header {
  margin-bottom: 32px;
}

.login-header h1 {
  margin-bottom: 12px;
  font-size: 48px;
}

.login-header p {
  margin: 0;
  color: #5b6d75;
  font-size: 16px;
}

.login-container form {
  width: 100%;
  padding: 30px;
  background: #f8fafb;
  border-top: 3px solid #174765;
  border-bottom: 1px solid #b8c4c8;
}

.login-error {
  margin-bottom: 18px;
  padding: 12px 15px;
  background: #f3dddd;
  border: 1px solid #d8a8a4;
  color: #8a342e;
  font-size: 14px;
}

.kembali-home {
  display: inline-block;
  margin-top: 20px;
  color: #185878;
  font-weight: 600;
  text-decoration: none;
}

.kembali-home:hover {
  text-decoration: underline;
}

/* GALERI*/
.galeri-heading {
  margin-bottom: 26px;
}

.galeri-heading h1 {
  margin-bottom: 10px;
}

.galeri-subtitle {
  margin: 0;
  color: #5b6d75;
  font-size: 16px;
}

.galeri-admin-panel {
  max-width: 980px;
  margin-bottom: 36px;
  padding: 24px 0 30px;
  border-top: 3px solid #185878;
  border-bottom: 1px solid #aebdc2;
}

.galeri-admin-panel h2 {
  margin: 0 0 20px;
  color: #12364f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
}

.form-galeri {
  max-width: 760px;
  padding: 0;
  border: 0;
}

.form-galeri small {
  display: block;
  margin-top: 6px;
  color: #64767e;
  font-size: 12px;
}

.pesan-sukses,
.pesan-gagal {
  max-width: 980px;
  margin-bottom: 22px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
}

.pesan-sukses {
  background: #e6f1e5;
  border: 1px solid #abc6a8;
  color: #315c34;
}

.pesan-gagal {
  background: #f5e8e5;
  border: 1px solid #d5aaa4;
  color: #7d332e;
}

.preview-box {
  padding-left: 0;
  border: 1px solid #aebdc2;
}

.preview-caption {
  margin: 0;
  padding: 12px 16px;
  background: #eef2f3;
  color: #304a58;
  font-size: 14px;
  font-weight: 600;
}

.thumbnail-box {
  padding-left: 0;
}

.thumbnail-item {
  min-width: 0;
}

.thumbnail-item .thumbnail {
  display: block;
}

.form-hapus-galeri {
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}

.btn-hapus-galeri {
  width: 100%;
  min-height: 32px;
  border: 1px solid #d39b95;
  border-radius: 3px;
  background: #f2ddda;
  color: #8a342e;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-hapus-galeri:hover {
  background: #e9cbc7;
}

.galeri-kosong {
  max-width: 980px;
  padding: 36px 0;
  border-top: 1px solid #aebdc2;
  border-bottom: 1px solid #aebdc2;
}

.galeri-kosong h2 {
  margin: 0 0 8px;
  color: #12364f;
  font-family: "Source Serif 4", Georgia, serif;
}

.galeri-kosong p {
  margin: 0;
  color: #5b6d75;
}

@media (max-width: 720px) {
  .galeri-admin-panel {
    padding-top: 20px;
  }

  .thumbnail-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 430px) {
  .thumbnail-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PENCARIAN PUBLIKASI */
.pencarian-publikasi {
  width: 100%;
  margin-bottom: 28px;
}

.pencarian-publikasi form {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
}

.pencarian-publikasi label {
  display: block;
  margin-bottom: 8px;
  color: #12364f;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.pencarian-publikasi input[type="text"] {
  width: 100%;
  max-width: 520px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #9fb0b7;
  border-radius: 3px;
  background: #fafbf9;
  color: #213845;
  font-family: "Libre Franklin", sans-serif;
  font-size: 15px;
}

.pencarian-publikasi input[type="text"]:focus {
  outline: 2px solid #91b4c4;
  outline-offset: 1px;
  border-color: #185878;
}

.suggestion-text {
  margin: 10px 0 0;
  color: #5b6d75;
  font-size: 14px;
}

#txtHint {
  color: #185878;
  font-weight: 600;
}

.footer {

  width: 100%;
  background: #002B6A;
  padding: 20px 0;

}


.footer-container {

  width: 100%;

  max-width: none;

  margin: auto;

  padding: 0 80px;

}


.footer-logo {

  display: flex;

  align-items: center;

  gap: 18px;

  margin-bottom: 30px;

}


.footer-logo img {

  width: 70px;

  height: auto;

}


.footer-logo h2 {

  margin: 0;

  color: white;

  font-size: 28px;

  font-style: italic;

  font-weight: 700;

}


.banner-footer {

  width: 300px;

  max-width: 100%;

  border-radius: 25px;

}

/* API BPS INFOGRAFIS HOME */


.api-infografis {
  width: 100%;
  padding: 60px 0;
}


.api-header {
  margin-bottom: 30px;
}


.api-header h2 {
  margin-bottom: 10px;
  color: #12364f;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 36px;
}


.api-header p {
  margin: 0;
  color: #5b6d75;
}



/* GRID INFOGRAFIS */

.infografis-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

}



/* CARD */

.infografis-card {

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #d6e0e5;

}



/* GAMBAR */

.infografis-card img {

  width: 100%;

  height: 220px;

  object-fit: cover;

}



/* ISI */

.infografis-content {

  padding: 18px;

}


.infografis-content h3 {

  margin-bottom: 10px;

  color: #12364f;

  font-size: 18px;

  line-height: 1.4;

}


.infografis-content span {

  color: #6b7d86;

  font-size: 13px;

}


.infografis-content p {

  color: #52656f;

  font-size: 14px;

  line-height: 1.6;

}


.infografis-content a {

  display: inline-block;

  margin-top: 10px;

  color: #002B6A;

  font-weight: 700;

  text-decoration: none;

}


.infografis-content a:hover {

  color: #e37d2f;

}



/* RESPONSIVE */

@media(max-width: 950px) {

  .infografis-grid {

    grid-template-columns: repeat(2, 1fr);

  }

}


@media(max-width: 600px) {

  .infografis-grid {

    grid-template-columns: 1fr;

  }

}

/* DROPDOWN PRODUK NAVBAR */

nav .dropdown {
  position: relative;
  display: flex;
  align-items: center;
}


nav .dropdown>a {
  color: white;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}


/* Kotak dropdown */

nav .dropdown-menu {

  display: none;

  position: absolute;

  top: 48px;

  left: 0;

  width: 230px;

  background: white;

  padding: 8px 0;

  border-radius: 8px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

  z-index: 9999;

}


/* Isi dropdown */

nav .dropdown-menu a {

  display: block;

  width: 100%;

  min-height: auto;

  padding: 12px 20px;

  color: #12364f;

  font-family: "DM Sans", sans-serif;

  font-size: 15px;

  font-weight: 500;

  text-decoration: none;

  white-space: nowrap;

}


/* Hover isi */

nav .dropdown-menu a:hover {

  background: #eef3f5;

  color: #002B6A;

}

nav .dropdown-menu a::after {

  display: none;

}


/* Muncul saat hover */

nav .dropdown:hover .dropdown-menu {

  display: block;

}


.grid-infografis {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-top: 40px;

}



.card-infografis {

  background: white;

  border: 1px solid #ddd;

  padding: 20px;

}



.card-infografis img {

  width: 100%;

  height: 300px;

  object-fit: cover;

}



.card-infografis h3 {

  font-size: 18px;

  margin-top: 15px;

  color: #12364f;

}



.card-infografis p {

  color: #666;

}


.grid-berita {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-top: 40px;

}



.card-berita {

  background: white;

  border: 1px solid #d6e0e5;

  overflow: hidden;

  transition: 0.2s ease;

}



.card-berita:hover {

  transform: translateY(-5px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

}



/* GAMBAR BERITA */

.card-berita img {

  width: 100%;

  height: 230px;

  object-fit: cover;

}



/* KONTEN */

.card-berita h3 {

  padding: 18px 20px 10px;

  margin: 0;

  color: #12364f;

  font-family: "Source Serif 4", Georgia, serif;

  font-size: 20px;

  line-height: 1.4;

}



.card-berita p {

  padding: 0 20px;

  color: #52656f;

  font-size: 14px;

  line-height: 1.7;

}



.card-berita .tanggal-berita {

  color: #777;

  font-size: 13px;

}



/* BUTTON */

.card-berita a {

  display: inline-block;

  margin: 15px 20px 20px;

  color: #002B6A;

  font-family: "DM Sans", sans-serif;

  font-size: 14px;

  font-weight: 700;

  text-decoration: none;

}



.card-berita a:hover {

  color: #e37d2f;

}



/* RESPONSIVE */

@media(max-width:950px) {

  .grid-berita {

    grid-template-columns: repeat(2, 1fr);

  }

}


@media(max-width:600px) {

  .grid-berita {

    grid-template-columns: 1fr;

  }

}



.pagination {

  display: flex;

  justify-content: center;

  gap: 10px;

  margin: 40px 0;

  flex-wrap: wrap;

}



.pagination a {

  padding: 8px 14px;

  border: 1px solid #d6e0e5;

  color: #12364f;

  text-decoration: none;

  background: white;

}



.pagination a:hover,
.pagination .active-page {

  background: #002B6A;

  color: white;

}


.tanggal-infografis {

  color: #6b7c8f;

  margin-top: 10px;

}



.deskripsi-infografis {

  font-size: 15px;

  line-height: 1.7;

  color: #52677a;

  margin-top: 15px;

}



.btn-download {

  display: inline-block;

  margin-top: 20px;

  padding: 10px 18px;

  background: #002B6A;

  color: white;

  text-decoration: none;

  border-radius: 5px;

}



.btn-download:hover {

  background: #003f91;

}

/* ==========================================================
   TAMBAHAN VERSI LARAVEL
   ========================================================== */

/* Tombol logout di navbar berupa form POST (wajib @csrf),
   jadi tampilannya disamakan dengan link navbar lain. */
nav .form-logout {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: inline-flex;
}

nav .form-logout button[type="submit"] {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

nav .form-logout button[type="submit"]:hover {
  background: none;
  color: red;
}

header > a {
  display: inline-flex;
}

/* Tombol hapus publikasi berupa form DELETE */
.form-aksi {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-aksi button.btn-hapus {
  min-height: 36px;
  padding: 0 11px;
  background: #f2ddda;
  border: 1px solid #d39b95;
  color: #8a342e;
  font-size: 13px;
}

.form-aksi button.btn-hapus:hover {
  background: #e9cbc7;
}

/* Pesan error validasi dari server */
.pesan-gagal div + div {
  margin-top: 4px;
}

/* Pesan jika API BPS tidak bisa diakses */
.pesan-api {
  padding: 14px 16px;
  background: #eef2f3;
  border: 1px solid #d6e0e5;
  color: #52656f;
}

.form-card .btn-secondary {
  margin-left: 8px;
  vertical-align: middle;
}

.form-card .cover-book {
  display: block;
  width: 120px;
}

.pagination span {
  padding: 8px 4px;
  color: #52656f;
}

/* Tombol hapus galeri: kalahkan style global button[type="submit"]
   supaya warnanya sesuai .btn-hapus-galeri */
.form-hapus-galeri button.btn-hapus-galeri {
  min-height: 32px;
  padding: 0;
  border: 1px solid #d39b95;
  background: #f2ddda;
  color: #8a342e;
  font-size: 12px;
}

.form-hapus-galeri button.btn-hapus-galeri:hover {
  background: #e9cbc7;
}
