/* ===============================
   Root Variables
================================ */
:root {
  --dppp-primary: #2c3e50;
  --dppp-secondary: #e74c3c;
  --dppp-light: #f8f9fa;
}

/* ===============================
   Base & Layout
================================ */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 2rem;
}

.banner-wrapper,
.section-title,
header {
  margin-bottom: 0;
  padding-bottom: 0;
  margin-top: 0 !important;
}

/* ===============================
   Tanggal Strip Header
================================ */
.tanggal-strip-wrapper {
  background-color: lightblue;
  color: black;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 0;
}

#tanggal-hari-ini {
  font-weight: normal;
  margin-bottom: 0 !important;
  text-align: left;
}

/* ===============================
   Navbar
================================ */
.dppp-navbar {
  background-color: var(--dppp-primary) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.dppp-navbar .nav-link {
  color: white;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.dppp-navbar .nav-link:hover {
  color: #fc6730;
  background-color: rgba(255, 255, 255, 0.1);
}

.dppp-navbar .nav-link.active,
.dppp-navbar .nav-link.dropdown-toggle.active,
.navbar-nav .nav-link.active {
  color: var(--dppp-light) !important;
  background-color: var(--dppp-secondary) !important;
  font-weight: bold;
}

/* ===============================
   Dropdown Menu
================================ */
.dropdown-menu {
  background-color: var(--dppp-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.dropdown-item {
  color: white;
  padding: 8px 16px;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--dppp-secondary);
  color: var(--dppp-light);
}

.dropdown-menu .dropdown-item.active,
.dropdown-submenu > a.active-parent-submenu,
.dropdown-item.active-parent-submenu {
  background-color: var(--dppp-secondary) !important;
  color: var(--dppp-light) !important;
}

/* Tambahkan jarak antar item dropdown (opsional) */
.dropdown-menu .dropdown-item + .dropdown-item {
  margin-top: 2px;
}

/* ===============================
   Dropdown Submenu
================================ */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dropdown-submenu > a::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  margin-left: 5px;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  position: absolute;
  z-index: 1000;
  display: none;
  margin-top: -1px;
  margin-left: 0;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
  display: block;
}

/* ===============================
   Footer
================================ */
footer {
  background-color: #212529;
  color: white;
  padding: 3rem 0 1.5rem;
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

footer a {
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.social-links a,
.social-links a .fab {
  text-decoration: none !important;
  border: none !important;
}

/* ===============================
   Document Viewer
================================ */
.document-viewer-container {
  height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.document-iframe {
  width: 100%;
  flex-grow: 1;
  border: none;
}

.document-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #585858;
  line-height: 1.3;
  text-decoration: none;
}

.document-title:hover {
  text-decoration: underline;
  color: #585858;
}

.pdf-icon {
  width: 80px;
  height: auto;
}

.document-item a {
  text-decoration: none;
  display: block;
  padding: 10px;
}

.document-item a:hover .pdf-icon {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

/* ===============================
   Responsive
================================ */
@media (max-width: 991.98px) {
  .dppp-navbar .navbar-collapse {
    background-color: #1a252f;
    padding: 1rem;
    margin-top: 0.75rem;
    border-radius: 0.375rem;
  }

  .dropdown-submenu > .dropdown-menu {
    position: static;
    float: none;
    display: none;
    margin: 0;
  }

  .dropdown-submenu > .dropdown-menu.show {
    display: block;
  }

  .dropdown-submenu > a.show::after {
    transform: rotate(90deg);
  }

  .dropdown-submenu.drop-left > .dropdown-menu {
    left: auto;
    right: 100%;
  }

  footer {
    padding-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  footer .col-lg-4 {
    margin-bottom: 1.5rem;
  }
}
