/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Nunito Sans",  sans-serif;
  --nav-font: "Raleway",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #2C367E; /* Background color for the entire website, including individual sections */
  --default-color: rgba(255, 255, 255, 0.8); /* Default color used for the majority of the text content across the entire website */
  --heading-color: #e0e9f2; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #BC2026; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #1b262c; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: rgba(255, 255, 255, 0.8);  /* The default color of the main navmenu links */
  --nav-hover-color: #ffcd2b; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #2C367E; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #2C367E; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: rgba(255, 255, 255, 0.8); /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffcd2b; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #0d1d26;
  --surface-color: #16262f;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}


/* Warna dasar */
:root {
  --biru: #2C367E;
  --emas: linear-gradient(to right, #efab2c, #FFD700, #efab2c, #ffcd2b);
}

/* Header Top Gold */
.header-top {
  background: var(--emas);
  padding: 5px 20px;
}

.header-top p {
  color: #fff;
  font-size: 12px;
  margin: 0;
}

/* Main Header */
.main-header {
  background: var(--biru);
  padding: 15px 20px;
}

/* Navbar */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 45px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #ffcd2b; /* Hover jadi emas */
}

.nav-menu.d-flex {
  align-items: center;
}


/* Dropdown */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #2C367E;
  padding: 10px 0;
  list-style: none;
  display: none;
  min-width: 150px;
}

.dropdown-menu li {
  padding: 5px 20px;
}

.dropdown-menu li a {
  color: #000000;
}

.dropdown-menu li a:hover {
  color: #ffcd2b;
}

.header-logo img {
  max-height: 40px;  /* kecil */
}

.navbar .dropdown-menu {
  background-color: #2C367E !important;
}

.navbar .dropdown-menu a {
  color: #fff !important;
}

.navbar .dropdown-menu a:hover {
  color: #ffcd2b !important;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  }
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
  .logo {
    margin-top: 10px;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 10px;
  padding-bottom: 0px;
  position: relative;
}

.footer-info p {
  font-size: 2px;
  margin: 2px 0;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .logo img {
  max-height: 80px;  /* besar */
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer-columns {
  max-width: 1200px;      /* total parent width */
  margin: 0 auto;        /* center */
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;       /* biar wrap kalau layar kecil */
}

.footer-col {
  flex: 1;               /* bagi rata */
  min-width: 150px;      /* supaya wrap di layar kecil */
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--nav-hover-color);
}


.footer .footer-about .logo img {
  max-height: 80px;
  margin-right: 40px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 40px;
}

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

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 5px;
  padding-bottom: 0px;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

.footer-bottom {
  background: linear-gradient(to right, #efab2c, #FFD700, #efab2c, #ffcd2b); /* gradasi emas */
  padding: 8px 20px;
  margin-top: 26px;
}

.footer-bottom p {
  color: #fff; /* biar teks kontras di gold */
  font-size: 12px;
  margin: 0;
}

/* Hilangkan scroll horizontal di layar besar halaman konten departemen*/
@media (min-width: 992px) {
  html, body {
    overflow-x: hidden;
  }
}

/* Pastikan elemen besar mengikuti lebar layar */
img, table, .container, .row, .col {
  max-width: 100%;
}

/* Kalau ada tabel lebar, biar wrap text */
table {
  table-layout: auto;
  word-wrap: break-word;
}

textarea, input, select {
  max-width: 100%;
}

@media (max-width: 991px) {
  .table-responsive {
    overflow-x: auto;
  }
}

/* ===== BURGER BUTTON ===== */
.burger-menu {
  display: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== SIDEBAR MENU (untuk mobile) ===== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -270px; /* posisi tertutup */
  width: 250px;
  height: 100%;
  background-color: #2C367E;
  color: #fff;
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 20px;
}

.mobile-sidebar.active {
  right: 0; /* muncul */
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.sidebar-logo {
  width: 160px;
  align-items: center;
}

.close-btn {
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* Menu item */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 15px 0;
}

.sidebar-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: color 0.2s;
}

.sidebar-menu a:hover {
  color: #ffcd2b;
}

/* Dropdown di sidebar */
.sidebar-menu .dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 15px;
}

.sidebar-menu .dropdown.active .dropdown-menu {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  /* Sembunyikan menu utama */
  .navbar {
    display: none !important;
  }
}
