/**
 * Dropdown Produk & Tentang Sevima (disamakan dengan lp-profeeder).
 * Seluruh class berawalan "edn-" agar tidak bentrok dengan main.css / Bootstrap.
 */

.edn-nav-head {
  position: relative;
  z-index: 2100;
  overflow: visible;
}

.edn-nav-head .container-fluid,
.edn-nav-head .row,
.edn-nav-head .col-md-12,
.edn-navbar,
.edn-navbar .navbar-nav {
  overflow: visible;
}

/* navbar tidak jadi positioning context, supaya mega menu center terhadap header */
.edn-navbar {
  position: static;
}

.edn-item--produk {
  position: static !important;
}

.edn-item--tentang {
  position: relative;
}

/* ---------- Wrapper dropdown (Bootstrap .dropdown-menu) ---------- */
.edn-navbar .edn-dropdown {
  font-family: "Inter", sans-serif;
  padding: 0;
  margin-top: 10px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.12);
  float: none;
  z-index: 2101;
  overflow: hidden;
}

.edn-navbar .edn-dropdown::before,
.edn-navbar .edn-dropdown::after {
  display: none;
}

.edn-navbar .edn-dropdown--produk {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  width: min(1200px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  transform: translateX(-50%);
}

.edn-navbar .edn-dropdown--tentang {
  position: absolute;
  top: 100%;
  left: auto;
  right: 0;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 48px));
  width: max-content;
}

.edn-navbar .edn-dropdown.show {
  display: block;
}

/* ---------- Produk ---------- */
.edn-menu {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #fff;
  text-align: left;
}

.edn-menu__control {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.edn-menu__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: #f2f4f8;
}

.edn-menu__tabs::before {
  content: "NAVIGASI";
  margin-bottom: 4px;
  color: #6f7b8f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.edn-menu__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 7px 10px;
  color: #202939;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.edn-menu__tab:hover {
  color: #2f4fa2;
  background: #f7f9fd;
  border-color: #d9e1f1;
}

.edn-menu__tab-icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edn-menu__tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.edn-menu__tab-icon-active {
  display: none !important;
}

#edn-tab-pt:checked ~ .edn-menu__tabs label[for="edn-tab-pt"],
#edn-tab-sekolah:checked ~ .edn-menu__tabs label[for="edn-tab-sekolah"],
#edn-tab-industri:checked ~ .edn-menu__tabs label[for="edn-tab-industri"] {
  color: #2f4fa2;
  background: #fff;
  border-color: #d6e0f2;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

#edn-tab-pt:checked ~ .edn-menu__tabs label[for="edn-tab-pt"] .edn-menu__tab-icon-default,
#edn-tab-sekolah:checked ~ .edn-menu__tabs label[for="edn-tab-sekolah"] .edn-menu__tab-icon-default,
#edn-tab-industri:checked ~ .edn-menu__tabs label[for="edn-tab-industri"] .edn-menu__tab-icon-default {
  display: none;
}

#edn-tab-pt:checked ~ .edn-menu__tabs label[for="edn-tab-pt"] .edn-menu__tab-icon-active,
#edn-tab-sekolah:checked ~ .edn-menu__tabs label[for="edn-tab-sekolah"] .edn-menu__tab-icon-active,
#edn-tab-industri:checked ~ .edn-menu__tabs label[for="edn-tab-industri"] .edn-menu__tab-icon-active {
  display: block !important;
}

/* CTA sidebar (hanya tab Perguruan Tinggi) */
.edn-menu__cta {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

#edn-tab-pt:checked ~ .edn-menu__tabs .edn-menu__cta {
  display: flex;
}

.edn-menu__cta-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  color: #4b5563;
}

.edn-menu__cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-head .edn-navbar ul li a.edn-menu__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600 !important;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-head .edn-navbar ul li a.edn-menu__cta-btn--primary {
  color: #fff !important;
  background: #3954a4;
  border: 1px solid #3954a4;
}

.nav-head .edn-navbar ul li a.edn-menu__cta-btn--primary:hover {
  color: #fff !important;
  background: #2e4490;
  border-color: #2e4490;
}

.nav-head .edn-navbar ul li a.edn-menu__cta-btn--secondary {
  color: #3954a4 !important;
  background: #fff;
  border: 1px solid #3954a4;
}

.nav-head .edn-navbar ul li a.edn-menu__cta-btn--secondary:hover {
  color: #2e4490 !important;
  background: #f0f3fb;
  border-color: #2e4490;
}

/* Panel */
.edn-menu__panels {
  padding: 20px;
  background: #fff;
}

.edn-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

#edn-tab-pt:checked ~ .edn-menu__panels .edn-panel--pt,
#edn-tab-sekolah:checked ~ .edn-menu__panels .edn-panel--sekolah,
#edn-tab-industri:checked ~ .edn-menu__panels .edn-panel--industri {
  display: grid;
}

.edn-panel__title {
  margin: 0 0 12px;
  color: #7b8798;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.edn-panel__title--sub {
  margin-top: 12px;
}

.edn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.edn-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edn-navbar a.edn-card,
.edn-navbar a.edn-side-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.edn-navbar a.edn-card:hover,
.edn-navbar a.edn-side-card:hover {
  background: #f8fafc;
}

.edn-card img,
.edn-side-card img {
  width: 28px;
  height: auto;
  margin: 2px 0 0;
  object-fit: contain;
  flex-shrink: 0;
}

.edn-card p,
.edn-side-card p {
  margin: 0;
  color: #213250;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.edn-card span,
.edn-side-card span {
  display: block;
  margin-top: 1px;
  color: #697586;
  font-size: 11px;
  line-height: 1.45;
}

.edn-panel__side .edn-side-card + .edn-side-card {
  margin-top: 7px;
}

.edn-panel__group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.edn-panel__group .edn-side-card + .edn-side-card {
  margin-top: 0;
}

@media only screen and (min-width: 62rem) {
  .edn-panel__side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
  }

  .edn-panel__side .edn-panel__title,
  .edn-panel__side .edn-panel__group {
    grid-column: 1 / -1;
  }

  .edn-panel__side .edn-side-card + .edn-side-card {
    margin-top: 0;
  }
}

@media only screen and (max-width: 61.99rem) {
  .edn-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .edn-menu__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edn-menu__tabs::before,
  .edn-menu__cta {
    grid-column: 1 / -1;
  }

  .edn-grid,
  .edn-grid--2,
  .edn-panel__group {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Tentang Sevima ---------- */
.edn-about {
  padding: 16px 20px;
  background: #fff;
}

.edn-navbar .edn-about__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edn-navbar .edn-about__list > .edn-about__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 12px 0;
}

.edn-about__item:first-child {
  padding-top: 0 !important;
}

.edn-about__item:last-child {
  padding-bottom: 0 !important;
}

.edn-about__item + .edn-about__item {
  border-top: 1px solid #e8edf4;
}

.edn-about__title {
  margin: 0 0 4px;
  color: #202939;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: capitalize;
}

.edn-navbar .edn-about__item > a {
  display: block;
  padding: 0;
  color: #364152;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.edn-navbar .edn-about__item > a:hover {
  color: #2f4fa2;
}

/* ---------- Mobile / tablet (menu hamburger): pohon <details> ---------- */
.edn-mtree-item {
  list-style: none;
  width: 100%;
}

.edn-mtree {
  font-family: "Inter", sans-serif;
  text-align: left;
}

.edn-mtree__branch {
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e8edf4;
}

.edn-mtree__branch--nested {
  margin-bottom: 4px;
  border-bottom: 0;
}

.edn-mtree__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 0 10px 2px;
  list-style: none;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.edn-mtree__summary::-webkit-details-marker {
  display: none;
}

.edn-mtree__summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.edn-mtree__branch[open] > .edn-mtree__summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.edn-mtree__summary--nested {
  padding: 8px 0 8px 2px;
  color: #697586;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edn-mtree__summary--nested::after {
  width: 6px;
  height: 6px;
  border-width: 1.5px;
}

.edn-mtree__panel {
  margin: 0 0 0 6px;
  padding: 0 0 10px 12px;
  border-left: 1px solid #e8edf4;
}

.edn-mtree__panel--nested {
  margin-left: 4px;
  padding: 0 0 8px 10px;
  border-left-color: #eef2f7;
}

.edn-mtree__list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edn-mtree__item {
  margin: 0;
  padding: 0;
}

.edn-mtree__item + .edn-mtree__item {
  margin-top: 2px;
}

.edn-mtree .edn-mtree__item > a {
  display: block;
  padding: 6px 0;
  color: #364152;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}

.edn-mtree .edn-mtree__item > a:hover,
.edn-mtree .edn-mtree__item > a:focus {
  color: #2f4fa2;
}

.edn-mtree__group-title {
  margin: 12px 0 8px;
  color: #7b8798;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edn-mtree__item > .edn-mtree__group-title {
  margin: 6px 0 0;
}

.edn-mtree__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.edn-mtree__cta-text {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.edn-mtree__cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edn-mtree a.edn-mtree__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.edn-mtree a.edn-mtree__cta-btn--primary {
  color: #fff;
  background: #3954a4;
  border: 1px solid #3954a4;
}

.edn-mtree a.edn-mtree__cta-btn--primary:hover {
  color: #fff;
  background: #2e4490;
  border-color: #2e4490;
}

.edn-mtree a.edn-mtree__cta-btn--secondary {
  color: #3954a4;
  background: #fff;
  border: 1px solid #3954a4;
}

.edn-mtree a.edn-mtree__cta-btn--secondary:hover {
  color: #2e4490;
  background: #f0f3fb;
  border-color: #2e4490;
}

/* Mobile/tablet: header desktop tidak boleh menutupi menu hamburger (.navbar-collapse z-index 999) */
@media only screen and (max-width: 991.98px) {
  .edn-nav-head {
    z-index: auto;
  }
}
