:root {
  --red: #930000;
  --dark: #141827;
  --yellow: #ffd000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #111;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   TOPBAR
========================================= */

.topbar {
  background: linear-gradient(90deg, #890000, #a20000, #810000);
  color: #fff;
}

.topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.top-links {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 14px;
}

.search {
  width: 290px;
  background: #fff;
  border-radius: 50px;
  display: flex;
  overflow: hidden;
}

.search input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: 10px 15px;
}

.search button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 24px;
  padding: 0 15px;
}

/* =========================================
   HEADER / NAVBAR
========================================= */

.header {
  background: #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .07);
  position: relative;
  z-index: 1000;
}

.header-inner {
  min-height: 108px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 5px double #ffd39c;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font: 800 38px/1 "Plus Jakarta Sans";
  color: #8d0808;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 5px;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 800;
}

.header nav > a,
.header nav .umbara-profile-trigger {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #111;
}

.header nav > a:hover,
.header nav .umbara-profile-trigger:hover {
  color: var(--red);
}

/* =========================================
   DROPDOWN PROFIL
========================================= */

.umbara-profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.umbara-profile-trigger {
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.umbara-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 245px;
  padding: 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .18);
  z-index: 99999;
}

.umbara-profile-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.umbara-profile-menu:hover .umbara-profile-dropdown,
.umbara-profile-menu:focus-within .umbara-profile-dropdown {
  display: block;
}

.header nav .umbara-profile-dropdown a {
  display: block;
  width: 100%;
  padding: 11px 13px;
  margin: 0;
  color: #222;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  border-radius: 7px;
}

.header nav .umbara-profile-dropdown a:hover {
  background: #f7eeee;
  color: var(--red);
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================
   HERO
========================================= */

.hero-slider {
  height: 540px;
  position: relative;
  overflow: hidden;
  background: #333;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide.fallback {
  background: linear-gradient(135deg, #26333b, #687477);
}

.slide-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-bottom: 20px;
}

.eyebrow {
  font: 800 49px/1 "Plus Jakarta Sans";
  margin-bottom: 5px;
}

.slide h1 {
  font: 800 54px/1.05 "Plus Jakarta Sans";
  max-width: 760px;
  margin: 0;
  color: #fff;
  white-space: normal;
}

.slide p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
  margin: 18px 0 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 190px;
  padding: 15px 20px;
  background: linear-gradient(#b60000, #850000);
  border: 1px solid #db2d2d;
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 37px;
  cursor: pointer;
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  opacity: .75;
  padding: 0;
  cursor: pointer;
}

.slider-dots button.active {
  background: #f10000;
  opacity: 1;
}

/* =========================================
   QUICK ACCESS
========================================= */

.quick {
  background: linear-gradient(90deg, #770000, #a30000, #690000);
  color: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid > a {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  position: relative;
}

.quick-grid > a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 23px;
  bottom: 23px;
  width: 1px;
  background: rgba(255, 255, 255, .4);
}

.quick-grid b {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  display: grid;
  place-items: center;
  font-size: 23px;
}

.quick-grid strong {
  display: block;
  font-size: 14px;
}

.quick-grid small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}

.quick-grid > a:first-child small {
  color: #ffd000;
  font-weight: 800;
}

/* =========================================
   AKADEMIK
========================================= */

.next-section {
  text-align: center;
  padding: 45px 0 70px;
}

.next-section span {
  color: #a00000;
  font-weight: 800;
}

.next-section h2 {
  font: 800 38px "Plus Jakarta Sans";
  margin: 4px 0;
}

.next-section p {
  color: #69707c;
}

/* =========================================
   RESPONSIVE TABLET / MOBILE
   Menu utama tetap tampil seperti desktop
========================================= */

@media (max-width: 900px) {

  .topbar-inner {
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .top-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .search {
    width: 100%;
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0 12px;
    flex-direction: column;
    align-items: center;
  }

  /* Hamburger tidak digunakan */
  .mobile-menu-btn {
    display: none !important;
  }

  .brand {
    justify-content: center;
  }

  .brand strong {
    font-size: 30px;
  }

  /* Navbar selalu terlihat di HP/tablet */
  .header nav,
  .header nav.mobile-open {
    display: flex !important;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 14px;
    margin-top: 15px;
    padding: 13px 0 0;
    border-top: 1px solid #eee;
    background: #fff;
  }

  .header nav > a,
  .header nav .umbara-profile-trigger {
    display: inline-flex;
    width: auto;
    padding: 7px 3px;
    font-size: 11px;
    white-space: nowrap;
  }

  .umbara-profile-menu {
    position: relative;
    display: inline-flex;
    width: auto;
  }

  /* Dropdown Profil tetap bekerja */
  .umbara-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    padding: 8px;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    background: #fff;
    z-index: 99999;
  }

  .umbara-profile-menu:hover .umbara-profile-dropdown,
  .umbara-profile-menu:focus-within .umbara-profile-dropdown {
    display: block;
  }

  .header nav .umbara-profile-dropdown a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero-slider {
    height: 500px;
  }

  .slide h1 {
    font-size: 43px;
  }

  .eyebrow {
    font-size: 38px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {

  .container {
    width: calc(100% - 24px);
  }

  .top-links {
    font-size: 10px;
    gap: 8px 12px;
  }

  .header-inner {
    padding: 12px 0 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand strong {
    font-size: 26px;
  }

  .brand small {
    font-size: 9px;
  }

  .logo {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .header nav,
  .header nav.mobile-open {
    gap: 2px 10px;
    margin-top: 12px;
    padding-top: 10px;
  }

  .header nav > a,
  .header nav .umbara-profile-trigger {
    padding: 6px 2px;
    font-size: 10px;
  }

  .umbara-profile-dropdown {
    width: 215px;
  }

  .hero-slider {
    height: 520px;
  }

  .slide h1 {
    font-size: 35px;
  }

  .slide p {
    font-size: 15px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid > a::after {
    display: none;
  }
}