* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(
        to bottom,
        #000814 0%,
        #001025 50%,
        #003C8B 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
  margin: 0;
}

/* ===== HEADER STYLES ===== */
header {
  background-color: rgba(0, 8, 20, 0.8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 6px;
  position: sticky;
  top: 0%;
  z-index: 1000;
  height: 64px;
  backdrop-filter: blur(5px);
}

header img {
  position: absolute;
  left: 10px;
}

header .logo {
  position: absolute;
  left: 80px;
  font-size: 20px;
  font-weight: bold;
}

header nav {
  display: flex;
  gap: 40px;
}

header nav a {
  color: white;
  text-decoration: none;
}

header nav a:hover {
  color: #22d3ee;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 40px 20px;
  min-height: calc(100vh - 155px);
} 

.page-title {
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-subtitle {
  color: #cbd5e1;
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ===== JUDUL SECTION ===== */
.judul {
  background-color: #001025; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 8px;
}

/* Judul utama (ketika .page-title berada di dalam .judul) */
.judul .page-title {
  margin: 0;
}

.judul .page-title h1 {
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: 0.2px;
}

.judul .page-subtitle,
.judul p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  padding: 0 12px;
  line-height: 1.6;
}

/* Jika .page-title digunakan terpisah di area lain, pertahankan gaya ringannya */
.page-title h1 {
  font-size: 2rem;
}

/* ===== FILTER BUTTONS ===== */
.filter-btns {
  text-align: center;
  background-color: #0f172a;
  padding: 20px 0;
}

.filter-btns a {
  display: inline-block;
  background-color: transparent;
  border: 1.5px solid #38bdf8;
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  margin: 5px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.filter-btns a:hover {
  background-color: #38bdf8;
  color: #0f172a;
}

.filter-btns a.active {
  background-color: #38bdf8;
  color: #0f172a;
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
}

/* ===== DEPARTMENT CARDS ===== */
.dept-card {
  background: #1e293b;
  border-radius: 15px;
  border: 3px solid #38bdf8;
  overflow: hidden;
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 30px;
}

.dept-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
  border-color: #7dd3fc;
}

.dept-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-card-body {
  padding: 20px;
  text-align: center;
}

.dept-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.dept-card-btn {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dept-card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
}

/* ===== GENERAL CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 40px;
  background-color: #0f172a;
}

.card {
  background-color: #1e293b;
  border: 3px solid #38bdf8;
  border-radius: 12px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
  height: 345px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
  border-color: #7dd3fc;
}

.card img {
  border-radius: 10px;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.card h3 {
  margin-top: 15px;
  font-size: 18px;
  color: white;
}

.card:hover h3 {
  color: #38bdf8;
}

.card .jabatan {
  color: #38bdf8;
  font-size: 14px;
  margin: 5px 0;
}

.card .posisi {
  color: #e2e8f0;
  font-size: 13px;
}

.card .sosmed a {
  color: white;
  margin: 5px;
  font-size: 20px;
  transition: 0.3s;
  text-decoration: none;
}

.card .sosmed a:hover {
  color: #38bdf8;
}

/* ===== PROGRAM CARDS ===== */
.proker-card {
  background: #1e293b;
  border: 3px solid #38bdf8;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.3);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proker-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
  border-color: #7dd3fc;
}

.proker-card-body {
  padding: 30px 20px;
  text-align: center;
}

.proker-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proker-penanggung-jawab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.proker-penanggung-jawab i {
  font-size: 1.1rem;
  color: #38bdf8;
}

.proker-detail-btn {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.proker-detail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
}

.back-btn {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(23, 100, 133, 0.6);
}

/* ===== MODAL STYLES ===== */
.modal-content {
  background-color: #1e293b;
  border-radius: 15px;
  border: 3px solid #38bdf8;
  padding: 0; /* remove default gaps so header can span full width */
  overflow: hidden;
  box-sizing: border-box;
}

.modal-header {
  background-color: #38bdf8;
  color: #0f172a;
  padding: 18px 22px;
  margin: 0; /* ensure header touches modal edges */
  width: 100%;
  box-sizing: border-box;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 3px solid rgba(0,0,0,0.06);
}

.modal-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #0f172a;
}

.modal-body {
  padding: 25px;
  background-color: #1e293b;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.detail-item {
  margin-bottom: 20px;
}

.detail-label {
  font-weight: bold;
  color: white;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label i {
  color: #38bdf8;
}

.detail-value {
  color: #cbd5e1;
  line-height: 1.6;
  padding-left: 28px;
}

/* ===== FOOTER STYLES ===== */
footer {
  width: 100%;
  bottom: 0;
  background: #001025;
  color: #fff;
  padding: 50px 0 20px;
  border-top-left-radius: 0px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-main {
  width: 85%;
  margin: auto;
  max-width: 1200px;
}

.footer-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 35px;
  margin-bottom: 25px;
}

/* Column Footer */
.footer-col {
  flex: 1;
}

/* Column 1: Logo & Deskripsi */
.footer-left {
  flex: 1.6;
  padding-right: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.footerImg {
  width: 45px;
  height: 45px;
}

.footer-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: #ddd;
  text-align: justify;
}

/* Column 2: Office */
.footer-office h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-office .office-name {
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.5;
}

.footer-office .office-address {
  margin: 0 0 12px 0;
  line-height: 1.6;
  font-size: 13px;
  color: #ddd;
}

.footer-office p {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 13px;
  color: #ddd;
}

.footer-office p strong {
  color: #fff;
  font-weight: 600;
  margin-right: 5px;
}

.footer-phone {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-phone:hover {
  color: #fff;
}

.footer-email {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: #fff;
}

/* Column 3: Links */
.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 0px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #b8b8d8;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  font-size: 13px;
  line-height: 1.6;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Column 4: Social Media */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-right h3 {
  font-size: 1.2rem;
  margin-bottom: 0px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-top: 0;
}

.footer-right .social-link {
  color: #1a1a2e;
  background: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-right .social-link i {
  font-size: 1.1rem;
}

.footer-right .social-link span {
  font-size: 13px;
  font-weight: 600;
}

.footer-right .social-link:hover {
  transform: translateY(-3px);
  background: #f5f5f5;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

/* Copyright */
.footer-container {
  text-align: center;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 251, 251, 0.623);
}   

.footer-container p {
  margin: 0;
  color: #bbb;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
/* Medium screens */
@media (max-width: 1024px) {
  header {
    padding: 6px 12px;
    height: 56px;
  }
  header img {
    left: 8px;
    width: 52px;
    height: 52px;
  }
  header .logo {
    left: 72px;
    font-size: 18px;
  }
  .footer-main {
    width: 90%;
  }
}

/* Small screens */
@media (max-width: 768px) {
  header {
    padding: 8px 12px;
    height: 56px;
  }

  /* shrink logo and adjust position */
  header img {
    left: 8px;
    width: 44px;
    height: 44px;
  }
  header .logo {
    left: 60px;
    font-size: 16px;
  }

  /* keep nav centered but allow wrap */
  header nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: static;
    transform: none;
    margin: 0 auto;
    font-size: 0.95rem;
    flex-wrap: wrap;
    padding-top: 6px;
  }

  header nav a {
    padding: 6px 8px;
  }

  .page-title h1 {
    font-size: 1.6rem;
  }

  .proker-card-body {
    padding: 18px 12px;
  }

  .dept-card-body {
    padding: 12px;
  }

  .card {
    height: auto;
  }

  /* Footer: stack columns and center */
  .footer-banner {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .footer-left,
  .footer-office,
  .footer-links,
  .footer-right {
    width: 100%;
    max-width: 520px;
  }
  .footer-right .social-link {
    min-width: 120px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  header img {
    width: 40px;
    height: 40px;
  }
  header .logo {
    left: 56px;
    font-size: 14px;
  }
  header nav {
    gap: 10px;
    font-size: 0.85rem;
  }
  .judul {
    padding: 24px 12px;
  }
  .judul .page-title h1 {
    font-size: 1.4rem;
  }
  footer {
    padding: 30px 12px 16px;
  }
  .footer-banner {
    gap: 18px;
  }
  .footerImg {
    width: 40px;
    height: 40px;
  }
  .footer-right .social-link {
    min-width: 110px;
    padding: 8px 12px;
  }
}