@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========================================================
   1. RESET & VARIABLE DESAIN TEMA TOSCA
======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-navy: #092e35;       /* Tosca Gelap Dalam (Dark Teal) */
  --primary-blue: #0f4c5c;       /* Tosca Primer */
  --accent-blue: #0d9488;        /* Tosca Cerah (Teal-600) */
  --accent-hover: #042f2e;       /* Tosca Gelap Hover */
  --accent-light: #f0fdfa;       /* Tosca Lembut Background (Teal-50) */
  --accent-border: #ccfbf1;      /* Border Tosca Lembut */
  --bg-page: #f2f7f7;            /* Latar Belakang Halaman */
  --bg-card: #ffffff;
  --text-main: #132a2f;          /* Teks Utama Gelap Beraksen Tosca */
  --text-muted: #537177;         /* Teks Sekunder */
  --border-color: #e0ecee;
  --shadow-sm: 0 1px 3px rgba(13, 148, 136, 0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 76, 92, 0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 76, 92, 0.12), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-blue);
}

img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* ========================================================
   2. CONTAINER & TOP BAR
======================================================== */
#site-wrapper {
  width: 95%;
  max-width: 1180px;
  margin: 20px auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: visible;
}

.top-bar {
  background: #062025;
  color: #99b6bc;
  font-size: 12px;
  padding: 8px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-contact span {
  margin-left: 15px;
}

.top-contact a {
  color: #c7e1e6;
}

/* ========================================================
   3. HEADER BANNER
======================================================== */
#main-header {
  width: 100%;
  background: #092e35;
}

.header-banner img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

/* ========================================================
   4. NAVIGASI MENU UTAMA & DROPDOWN TOSCA
======================================================== */
.main-navbar {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 50%, var(--accent-blue) 100%);
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container-wrapper {
  width: 100%;
}

.menu-toggle-btn {
  display: none;
  width: 100%;
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0 10px;
}

.nav-item {
  position: relative;
  list-style: none;
}

/* Link Menu Induk (Tingkat 1) */
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: #f0fdfa;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.nav-item > a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.arrow-indicator {
  font-size: 10px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.nav-item:hover > a .arrow-indicator {
  transform: rotate(180deg);
}

/* Dropdown Sub-menu */
.nav-list .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 8px;
  margin: 0;
  list-style: none;
  box-shadow: 0 12px 28px rgba(9, 46, 53, 0.16), 0 4px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-blue);
  z-index: 99999 !important;
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.nav-item:hover > .dropdown-menu,
.nav-item.has-dropdown:hover > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.dropdown-menu li,
.dropdown-menu .dropdown-item {
  width: 100%;
  list-style: none;
  margin: 2px 0;
  padding: 0;
  background: transparent !important;
}

.dropdown-menu li a,
.dropdown-menu .dropdown-item a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #132a2f !important;
  text-decoration: none !important;
  background-color: transparent !important;
  border-radius: var(--radius-sm);
  line-height: 1.4 !important;
  text-align: left !important;
  transition: all 0.2s ease-in-out !important;
}

.dropdown-menu li a:hover,
.dropdown-menu .dropdown-item a:hover {
  background-color: var(--accent-light) !important;
  color: var(--accent-blue) !important;
  padding-left: 18px !important;
}

.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid #f2f7f7;
}

/* ========================================================
   5. TICKER / RUNNING TEXT
======================================================== */
.ticker-bar {
  display: flex;
  align-items: center;
  background: #f0fdfa;
  border-bottom: 1px solid var(--accent-border);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-main);
}

.ticker-badge {
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  margin-right: 12px;
  white-space: nowrap;
}

.ticker-track {
  flex-grow: 1;
  overflow: hidden;
}

/* ========================================================
   6. AREA KONTEN & SIDEBAR
======================================================== */
#main-content-layout {
  display: flex;
  padding: 28px;
  gap: 30px;
}

#content-primary {
  flex: 1 1 70%;
  min-width: 0;
}

#sidebar-secondary {
  flex: 1 1 30%;
  min-width: 290px;
}

/* Card Widget */
.box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.title-blok, h2.judul {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-navy);
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 8px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h3.judulberita {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.headinfo {
  font-size: 13.5px;
  color: #425b61;
  margin-bottom: 15px;
}

.sidemenu {
  list-style: none;
}

.sidemenu li {
  border-bottom: 1px dashed var(--border-color);
  padding: 8px 0;
}

.sidemenu li a {
  display: inline-block;
  color: #244148;
  font-weight: 500;
}

.sidemenu li a:hover {
  color: var(--accent-blue);
  padding-left: 5px;
}

/* ========================================================
   7. FORMULIR & TABEL RESPONSIF
======================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: #ffffff;
}

table {
  width: 100% !important;
  border-collapse: collapse;
}

table th, table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.textinput, input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  margin-top: 4px;
  margin-bottom: 14px;
}

.textinput:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.btn, input[type="submit"], input[type="reset"], button {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover, input[type="submit"]:hover {
  background: var(--primary-blue);
}

/* ========================================================
   8. FOOTER WIDGET & FOOTER UTAMA
======================================================== */
#bottom-widget-area {
  background: #f0fdfa;
  padding: 24px 28px;
  border-top: 1px solid var(--accent-border);
}

#main-footer {
  background: #062025;
  color: #92b0b5;
  padding: 30px 24px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 13px;
}

.footer-info h3 {
  color: #f0fdfa;
  font-size: 16px;
  margin-bottom: 6px;
}

.footer-info p {
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
}

/* ========================================================
   9. MEDIA QUERIES (MOBILE & TABLET)
======================================================== */
@media (max-width: 820px) {
  #site-wrapper {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .top-bar {
    border-radius: 0;
    text-align: center;
  }

  .top-bar-inner {
    justify-content: center;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .nav-links-wrapper {
    display: none;
    background: #062025;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .nav-item > a {
    justify-content: space-between;
    padding: 12px 14px;
  }

  /* Sub-menu Mobile Drawer */
  .nav-list .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #0b343b !important;
    border: none;
    border-top: none;
    margin: 4px 0 8px 10px;
    padding: 6px;
    pointer-events: auto;
  }

  .dropdown-menu li a,
  .dropdown-menu .dropdown-item a {
    color: #ccfbf1 !important;
    padding: 10px 14px !important;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu .dropdown-item a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #5eead4 !important;
    padding-left: 14px !important;
  }

  #main-content-layout {
    flex-direction: column;
    padding: 16px;
    gap: 20px;
  }

  #content-primary, #sidebar-secondary {
    flex: 1 1 100%;
    min-width: 100%;
  }

  #main-footer {
    border-radius: 0;
  }
}