/* =========================================
   1. FONT OFFLINE (WAJIB DI PALING ATAS)
   ========================================= */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
  /* MODE TERANG (ASLI) */
  --topbar-bg: #94a3b8;
  --header-bg: #475569;
  --accent: #fcd34d; /* Emas (Warna Khas NU) */
  --text-white: #ffffff;
  --body-bg: #f1f5f9;
  --text-main: #334155;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

  /* Footer Colors */
  --footer-bg: #1e293b;
  --footer-text: #cbd5e1;

  /* Navigasi Bawah HP */
  --bottom-nav-bg: #ffffff;
}

/* --- MODE GELAP (NU ELEGANT THEME) --- */
[data-theme="dark"] {
  --body-bg: #051a0f;
  --text-main: #e2e8f0;
  --header-bg: #0b291a;
  --topbar-bg: #021208;
  --glass-bg: rgba(11, 41, 26, 0.9);
  --glass-border: rgba(252, 211, 77, 0.1);
  --footer-bg: #020f06;
  --bottom-nav-bg: #0b291a;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  transition: all 0.4s ease;
  padding-top: 100px;
  padding-bottom: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   3. TOP BAR
   ========================================= */
#top-bar {
  background-color: var(--topbar-bg);
  height: 30px;
  display: flex;
  align-items: center;
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: background-color 0.4s ease;
}

.top-bar-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tb-socials {
  display: flex;
  gap: 15px;
}

.tb-socials a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.tb-socials a:hover {
  color: var(--accent);
}

/* =========================================
   4. HEADER UTAMA (ALIGNMENT FIXED)
   ========================================= */
header {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  color: var(--text-white);
  padding: 0.6rem 0;
  z-index: 1000;
  border-radius: 0 0 100px 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header.scrolled {
  top: 0;
  padding: 0.5rem 0;
  border-radius: 0 0 60px 60px;
  background: var(--header-bg);
  opacity: 0.98;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--text-white);
  line-height: 0;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.logo-text p {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-top: 3px;
  line-height: 1;
  margin-bottom: 0;
}

.desktop-nav .nav-links {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 5px 15px;
  height: 35px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  width: 120px;
}

.search-box button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.partner-logos img {
  height: 35px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s;
  margin: 0;
  display: block;
}

.partner-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

#hamburger-btn,
.hamburger {
  display: none;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  margin-left: 15px;
  z-index: 1001;
}

#scroll-progress {
  position: absolute;
  top: 0; /* Asalnya bottom: 0, sekarang diubah jadi top: 0 agar di atas header */
  left: 0;
  height: 3px; /* Dibuat sedikit lebih tipis (3px) agar terlihat elegan */
  background: var(--accent);
  width: 0%;
  z-index: 2000;
  transition: width 0.1s linear;
  box-shadow: 0 2px 8px rgba(252, 211, 77, 0.6); /* Shadow mengarah ke bawah */
  border-radius: 0; /* Dibuat lurus (tidak melengkung) karena menempel dengan Top Bar */
}

header.scrolled #scroll-progress {
  border-radius: 0;
}

/* =========================================
   5. MOBILE MENU & DROPDOWN
   ========================================= */
.mobile-menu-dropdown {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--header-bg);
  display: flex;
  flex-direction: column;
  padding: 80px 20px 20px;
  transition: right 0.4s ease;
  z-index: 1100;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu-dropdown.active {
  right: 0;
}

.mobile-menu-dropdown a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 600;
}

.btn-login-mobile {
  background: var(--accent);
  color: var(--header-bg) !important;
  text-align: center;
  border-radius: 8px;
  margin-top: 20px;
  border: none !important;
  padding: 12px !important;
}

.mobile-parent {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.mobile-sub-links {
  display: none;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  margin-bottom: 5px;
  border-radius: 5px;
}

.mobile-sub-links.open {
  display: flex !important;
}

.mobile-sub-links a {
  padding-left: 40px !important;
  font-size: 0.9rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
}

/* =========================================
   6. DROPDOWN DESKTOP
   ========================================= */
.dropdown-parent {
  position: relative;
}

.dropdown-parent i {
  font-size: 0.7rem;
  margin-left: 5px;
  transition: transform 0.3s;
}

.dropdown-parent:hover i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background-color: var(--header-bg);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-white);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  padding-left: 25px;
}

.dropdown-menu li a::after {
  display: none;
}

/* =========================================
   7. CONTENT CARDS & LAYOUT
   ========================================= */
.section-gap {
  margin-bottom: 10px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.glass-card:hover {
  transform: translateY(-5px);
}

/* Hero Section */
.hero,
.main-slider,
.hero-slide {
  height: 300px !important;
  min-height: 300px !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 300px;
}

.hero-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 30px;
}

.main-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.slider-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  padding-left: 50px;
  color: white;
  max-width: 600px;
  animation: slideUp 1s ease forwards;
}

.slide-content h4 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content span {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffd700;
  display: block;
  margin-bottom: 10px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Greeting */
.greeting-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* Quick Menu */
.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.qm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 15px;
  border-radius: 15px 0 15px 0;
  color: white;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 1;
}

.qm-item:hover {
  transform: translateY(-7px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.qm-item i {
  font-size: 1.8rem !important;
  margin-bottom: 8px;
}

.qm-item,
.qm-item span,
.qm-item div {
  font-size: 0.65rem !important;
  line-height: 1.2;
  font-weight: 600;
}

.qm-item.red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.qm-item.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qm-item.purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.qm-item.green { background: linear-gradient(135deg, #22c55e, #15803d); }
.qm-item.dark { background: linear-gradient(135deg, #334155, #0f172a); }
.qm-item.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* Layout Utama Kaca & Berita */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 15px;
  align-items: start;
}

.main-content-area {
  min-width: 0;
  width: 100%;
}

.sidebar-area {
  width: 100%;
  max-width: 300px;
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-left: 4px solid #dc2626;
  padding-left: 15px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.news-card.big img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.nc-content { padding: 20px; }

.small-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  align-items: center;
  margin-bottom: 10px;
}

.small-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.sc-info .cat {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.text-red { color: #dc2626; }

/* Sub Grid & Sidebar Content */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vertical-card img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.vc-content { padding: 15px; }

.tag-text {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.vc-content h4 {
  margin: 8px 0;
  font-size: 1rem;
}

.widget {
  padding: 25px;
  margin-bottom: 30px;
}

.widget-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.newsletter-form button {
  padding: 10px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #fff;
}

.fb { background: #1877f2; }
.tw { background: #1da1f2; }
.ig { background: #e1306c; }
.yt { background: #ff0000; }

.trending-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.trending-item img {
  border-radius: 6px;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 60px;
  margin-top: 80px;
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.brand-col h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.brand-col span { color: #8e7171; }

.brand-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  transition: 0.3s;
}

.footer-socials a:hover { background: #a77d7d; }

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #ceb3b3;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: #a98585;
  padding-left: 5px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-cloud a:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================================
   9. BUTTONS, REPOSITORY & TABLES
   ========================================= */
.btn-custom {
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.btn-red { background-color: #dc2626; color: white; }
.btn-blue { background-color: #2563eb; color: white; }
.btn-outline-small {
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-align: center;
  width: fit-content;
}
.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
}

.repo-container { padding: 10px 0; }

.glass-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.glass-header h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  font-size: 1.5rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.custom-table th {
  text-align: left;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 2px solid var(--glass-border);
}

.custom-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  vertical-align: top;
}

.custom-table tr:hover td {
  background-color: rgba(252, 211, 77, 0.1);
}

[data-theme="dark"] .custom-table th { background-color: rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .custom-table td { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.meta-box {
  background: rgba(37, 99, 235, 0.1);
  border-left: 4px solid #2563eb;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: var(--text-main);
}
[data-theme="dark"] .meta-box {
  background: rgba(37, 99, 235, 0.2);
  color: #e2e8f0;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li { border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
[data-theme="dark"] .sidebar-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sidebar-list li a {
  display: flex;
  justify-content: space-between;
  padding: 12px 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
.sidebar-list li a:hover {
  color: #dc2626;
  padding-left: 8px;
}

.badge-count {
  background: #dc2626;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin-top: 20px;
  gap: 5px;
}
.page-item .page-link {
  position: relative;
  display: block;
  padding: 8px 16px;
  line-height: 1.25;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  color: var(--text-main, #333);
}
.page-item .page-link:hover {
  z-index: 2;
  background-color: rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
  color: #dc2626;
}
.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}
.page-item.disabled .page-link {
  color: #a0a0a0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.05);
}

/* =========================================
   10. MOBILE FLOATING & BOTTOM NAV DEFAULT
   ========================================= */
.mobile-bottom-nav,
.mobile-sidebar,
.menu-overlay {
  display: none !important; /* PC/Tablet: Hidden */
}

.center-btn .center-icon {
  width: 50px;
  height: 50px;
  background: var(--header-bg);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -30px;
  border: 4px solid var(--body-bg);
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.floating-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.float-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.float-btn.primary { background: var(--header-bg); color: var(--accent); }
.float-btn.secondary { background: var(--accent); color: var(--header-bg); }
.float-btn.hide { opacity: 0; pointer-events: none; transform: translateY(10px); }
/* =======================================================
   11. RESPONSIVE MOBILE FIXES (HP SAJA - MAX 767px)
   ======================================================= */
/* Merubah dari 991px dan 900px menjadi 767px agar Tablet tetap ikut layout Desktop */

@media (max-width: 767px) {
  .container {
    width: 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Header Adjustments - DIBUAT LEBIH TIPIS */
  header {
    padding: 0; /* Menghapus padding agar tidak tumpuk */
    border-radius: 0 0 25px 25px; /* Lengkungan dikurangi agar tidak memakan tempat */
  }

  header.scrolled {
    padding: 0;
  }
  
  .desktop-nav,
  .search-box,
  .partner-logos,
  .navbar-toggle,
  .navbar-header .btn,
  .navbar-toggler {
    display: none !important;
  }

  #hamburger-btn,
  .hamburger {
    display: flex !important;
    font-size: 1.8rem;
    color: var(--text-white);
    z-index: 1200;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-container {
    justify-content: center;
    position: relative;
    padding-top: 8px; /* Jarak atas diperkecil */
    padding-bottom: 8px; /* Jarak bawah diperkecil */
    min-height: auto;
  }

  .logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .logo-icon {
    font-size: 1.8rem !important; /* Disesuaikan dengan tinggi baru */
  }

  .logo-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .logo-text h1 {
    font-size: 1.2rem !important;
  }

  /* Layout Konten Tumpuk 1 Kolom */
  .content-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .sidebar-area {
    max-width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 20px;
  }

  .hero,
  .main-slider,
  .hero-slide {
    height: 180px !important;
    min-height: 180px !important;
    width: 100%;
  }

  .greeting-card { margin-top: 0; }
  .quick-menu-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .sub-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  
  footer { padding-bottom: 90px; }
  .section-gap { margin-bottom: 30px; }
  .floating-container { bottom: 90px; right: 15px; }

  /* Tampilkan Navigasi Bawah & Sidebar Pop-up Mobile */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  .mb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 0.7rem;
    gap: 5px;
    opacity: 0.6;
    width: 20%;
    transition: color 0.3s ease;
  }

  .mb-item i { font-size: 1.3rem; }
  .mb-item.active, .mb-item:hover { color: var(--accent); opacity: 1; }

  /* Dark Mode Mobile Bottom Nav */
  body.dark-mode .mobile-bottom-nav, body.dark-theme .mobile-bottom-nav, body.dark .mobile-bottom-nav, [data-theme="dark"] .mobile-bottom-nav {
    background-color: #1b262c !important;
    border-top: 1px solid #2c3e50 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }
  body.dark-mode .mb-item, body.dark-theme .mb-item, body.dark .mb-item, [data-theme="dark"] .mb-item { color: #d1d5db !important; }
  body.dark-mode .mb-item:hover, body.dark-mode .mb-item.active, [data-theme="dark"] .mb-item.active { color: #ffffff !important; }

  /* Mobile Sidebar Pop-Up (WAJIB ADA AGAR MENU TIDAK HILANG) */
  .mobile-sidebar {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
  }

  .mobile-sidebar.active {
    bottom: 90px;
    opacity: 1;
    visibility: visible;
  }

  body.dark-mode .mobile-sidebar, [data-theme="dark"] .mobile-sidebar {
    background: #1b262c !important;
    border: 1px solid #2c3e50;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9990;
    display: none;
    backdrop-filter: blur(2px);
  }

  .menu-overlay.active { display: block !important; }

  .sidebar-header {
    padding: 15px 20px;
    background: #1b262c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-menu {
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-y: auto;
    max-height: 50vh;
  }

  .sidebar-menu li { border-bottom: 1px solid #eee; }
  
  .sidebar-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
  }

  .sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #666;
  }

  body.dark-mode .sidebar-link, [data-theme="dark"] .sidebar-link {
    color: #d1d5db !important;
    border-bottom: 1px solid #2c3e50 !important;
  }

  body.dark-mode .sidebar-link i, [data-theme="dark"] .sidebar-link i { color: #9ca3af !important; }
  body.dark-mode #sub-profil, body.dark-mode #sub-berita, body.dark-mode #sub-akademik, [data-theme="dark"] ul[id^="sub-"] {
    background: #151e23 !important;
  }
}