/* ==========================================================================
   STYLE SYSTEM - LABORATORIUM GEOSPASIAL ITS
   ========================================================================== */

/* --- 1. Variables & Root Theme Tokens --- */
:root {
  /* Color Palette (Light Mode - Default) */
  --bg-primary: #e3eaee;
  --bg-secondary: #ffffff;
  --bg-tertiary: #0f172a;
  
  --text-main: #162030;
  --text-muted: #475569;
  --text-inverse: #ffffff;
  --text-accent: #ffbd07; /* ITS Yellow */
  
  --primary: #013880; /* ITS Blue */
  --primary-hover: #012a60;
  --primary-light: rgba(1, 56, 128, 0.05);
  --primary-glow: rgba(1, 56, 128, 0.15);
  
  --accent: #0099cc; /* Cyan */
  --accent-light: #e6f7fe;
  
  --border-color: #e2e8f0;
  --border-focus: #013880;
  
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px -2px rgba(1, 56, 128, 0.05), 0 2px 8px -1px rgba(1, 56, 128, 0.03);
  --card-shadow-hover: 0 20px 40px -10px rgba(1, 56, 128, 0.12), 0 8px 16px -8px rgba(1, 56, 128, 0.08);
  
  --navbar-bg: rgba(227, 234, 238, 0.85);
  --navbar-border: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Layout & Spacing */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --container-max: 1280px;
  --header-height: 80px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* --- 2. Global Resets & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.font-mono {
  font-family: var(--font-mono);
}

/* --- 4. Shared Components & Layouts --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.center-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  max-width: 700px;
  color: var(--text-muted);
}

.max-w-600 {
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ITS Yellow Accent Button */
.btn-accent {
  background: var(--text-accent);
  color: var(--text-main);
  border: none;
}
.btn-accent:hover {
  background: #e6aa00;
  box-shadow: 0 4px 14px rgba(255, 189, 7, 0.35);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--text-inverse);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--bg-primary);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 16px 36px;
  font-size: 15px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--primary);
}

.btn-link span {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn-link:hover {
  color: var(--primary-hover);
}

.btn-link:hover span {
  transform: translateX(4px);
}

/* Cards & Interactions */
.card-interactive {
  transition: var(--transition-smooth);
}

.card-interactive:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

/* --- 5. Navbar Layout --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navbar-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 70px;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}
.navbar.scrolled .nav-link {
  color: rgba(255,255,255,.85);
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--text-accent);
}
.navbar.scrolled .nav-link::after {
  background: var(--text-accent);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 38px;
  width: auto;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  width: 100%;
  background: var(--text-accent);
}

.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.btn-mobile-toggle:hover {
  background: var(--primary-light);
}

/* Mobile Dropdown */
.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.mobile-dropdown.open {
  max-height: 450px;
}

.mobile-menu-links {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
}

.mobile-link.active, .mobile-link:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
}

.mobile-contact-link {
  margin-top: 16px;
  background: var(--primary);
  color: var(--text-inverse) !important;
  text-align: center;
  border-left: none;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.mobile-contact-link:hover {
  background: var(--primary-hover);
}

/* --- 6. Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(0, 32, 104, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

.badge-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-desc {
  font-size: 18px;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 560px;
  color: var(--text-muted);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Media Layout */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.media-accent-circle {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.media-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 32, 104, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 2;
  overflow: hidden;
}

.responsive-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* --- 7. Statistics Section --- */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stats-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: var(--transition-smooth);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 32, 104, 0.04);
}

.card-accent-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.stats-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
}

.stats-number {
  font-size: clamp(36px, 4vw, 48px);
  color: var(--primary);
  margin-bottom: 4px;
}

.stats-label {
  font-size: 14px;
  font-weight: 500;
}

/* --- 8. Bento Grid (Innovation Ecosystem) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-large {
  grid-column: span 8;
}

.bento-small {
  grid-column: span 4;
}

.bento-promo {
  grid-column: span 8;
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  justify-content: center;
  padding: 48px;
}

.bento-img-container {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.container-small {
  height: 200px;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-img {
  transform: scale(1.04);
}

.bento-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 32, 104, 0.85) 100%);
  z-index: 1;
}

.bento-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.live-indicator {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: var(--radius-full);
  animation: pulse-green 1.5s infinite;
}

.bento-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* --- D: Arrow Indicator on Bento Cards --- */
.bento-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 3;
}
.bento-card:hover .bento-arrow {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.bento-card-title {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.bento-large .bento-body {
  position: relative;
}

/* In the large bento card, the title has been placed on overlay or text body depending on standard */
.bento-card-desc {
  font-size: 15px;
}

.bento-card-title-small {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 8px;
}

.bento-card-desc-small {
  font-size: 13px;
  line-height: 1.5;
}

/* Bento Promo Content */
.promo-content {
  max-width: 500px;
}

.promo-title {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-inverse);
}

.promo-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 16px;
}

/* --- 9. Research Gallery Section --- */
.research-section {
  background: var(--bg-secondary);
}

.section-title-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 48px;
}

.academic-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary);
  margin-bottom: 24px;
}

.scholarly-quote {
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--primary);
}

.scholarly-quote p {
  font-style: italic;
  font-size: 17px;
  line-height: 1.6;
}

.title-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.academic-divider {
  width: 100px;
  height: 2px;
  background: var(--primary-glow);
  margin-bottom: 16px;
}

.badge-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* --- C: Badge Utility Classes --- */
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-soft-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(0,32,104,0.1);
}
.badge-soft-accent {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(0,153,204,0.15);
}

.research-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  height: 560px;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  height: 100%;
}

.gallery-side {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 32px;
  height: 100%;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.gallery-main:hover .gallery-img, .gallery-card:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  background: linear-gradient(0deg, rgba(0, 32, 104, 0.9) 0%, transparent 100%);
  z-index: 2;
}

.gallery-tag {
  background: var(--accent);
  color: var(--text-inverse);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 32, 104, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 2;
}

.gallery-card:hover .gallery-overlay-hover {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

/* --- 10. Interactive Map Section --- */
.map-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.interactive-map-container {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition-slow);
}

.interactive-map-container:hover .map-bg-img {
  transform: scale(1.015);
}

/* Glassmorphic Map Status Card */
.map-status-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

/* Dynamic network card additions */
.status-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 10px 0;
}

.status-countries-section, .status-concepts-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-sub-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.collaborators-badge-grid, .concepts-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.country-badge, .concept-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.country-badge {
  background: rgba(0, 32, 104, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

.concept-badge {
  background: var(--primary-light);
  border: 1px solid rgba(0, 32, 104, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--primary);
}

.status-icon {
  font-size: 20px;
}

.status-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.status-label {
  color: var(--text-muted);
}

.status-value {
  font-weight: 700;
  color: var(--text-main);
}

.status-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(0, 32, 104, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 4px;
}

.status-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* --- 11. Partners Grid Layout --- */
.partners-section {
  background: var(--bg-secondary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.partner-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
  aspect-ratio: 1 / 1;
}

.partner-card:hover {
  border-color: var(--primary);
}

/* --- E: Colored Icon Boxes on Partner Cards --- */
.partner-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--primary-light);
  color: var(--primary);
  transition: var(--transition-smooth);
}
.partner-card:hover .partner-icon-box {
  background: var(--primary);
  color: var(--text-inverse);
}
.partner-icon-box .material-symbols-outlined {
  font-size: 28px;
}

.partner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.3;
}

/* --- 12. Publications Slider Layout --- */
.publications-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.slider-controls {
  display: flex;
  gap: 12px;
}

.btn-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-control:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publication-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: var(--card-shadow);
}

.publication-card:hover {
  border-color: var(--primary);
}

.pub-details {
  flex-grow: 1;
}

.pub-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pub-doi {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.pub-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.pub-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 13px;
  font-style: italic;
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-pub-action {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-pub-action span {
  font-size: 16px;
}

.btn-pub-action:hover {
  background: var(--primary-light);
  text-decoration: underline;
}

/* --- 13. Team Section Layout --- */
.team-section {
  background: var(--bg-secondary);
}

.team-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.team-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 32px;
}

.team-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-badge span {
  font-size: 18px;
}

.team-hero-media {
  position: relative;
}

.team-media-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg);
  padding: 12px;
  overflow: hidden;
}

.team-group-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.team-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
  margin-top: 12px;
}

/* Team Profile Cards */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.member-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.member-avatar {
  background: var(--bg-secondary);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 28px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  font-size: 80px;
  color: var(--primary-glow);
}

.member-info {
  padding: 20px 24px 28px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-dept {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.member-name {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 6px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-bio {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.member-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  width: 100%;
}

.member-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.member-link span {
  font-size: 14px;
}

.member-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* Fallback/Legacy styling */
.member-scholar {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.member-scholar span {
  font-size: 12px;
}

.member-scholar:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* --- 14. Contact Section --- */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-info-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-info-centered .info-details {
  align-items: center;
  width: 100%;
}

.contact-info-centered .info-item {
  justify-content: center;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
  width: 100%;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  font-size: 24px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.info-text h4 {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.info-text p {
  font-size: 14px;
}

.contact-email-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.contact-email-link:hover {
  border-bottom-color: var(--primary);
}

/* --- 15. Footer Layout (TemanRiset style) --- */
.site-footer {
  background: #013880;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.8rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-footer p { margin: 0; }

/* --- Quick Links (Home page) --- */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 2rem;
}
.quick-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: var(--transition-smooth);
}
.quick-link-card:hover {
  box-shadow: 0 0 0 1px var(--primary), 0 4px 12px rgba(1,56,128,0.1);
  transform: translateY(-2px);
}
.quick-link-card .ql-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
}
.quick-link-card .ql-text { display: flex; flex-direction: column; }
.quick-link-card h3 {
  font-size: 0.92rem;
  margin: 0 0 2px;
  color: var(--primary);
  font-weight: 700;
}
.quick-link-card p {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* --- 16. Extra Dynamic Components --- */
/* Scroll to top button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition-smooth);
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px var(--primary-glow);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text-inverse);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  bottom: 40px;
}

/* --- 17. Animations & Scroll Reveal --- */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 32, 104, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 32, 104, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 32, 104, 0);
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Scroll reveal system classes */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Specific section reveals for hero elements */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero-content *:nth-child(1) { animation-delay: 0.1s; }
.hero-content *:nth-child(2) { animation-delay: 0.2s; }
.hero-content *:nth-child(3) { animation-delay: 0.3s; }
.hero-content *:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- 18. Responsive Media Queries --- */
@media (max-width: 1200px) {
  .team-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-media-wrapper {
    margin: 0 auto;
  }
  
/* Ekosistem Card - Data preview stats row */
.card-stats {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.card-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-stat.online {
  color: #22c55e;
}
.card-stat.sep {
  color: var(--border-color);
  font-weight: 300;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
  display: inline-block;
}

@media (max-width: 768px) {
  .bento-large, .bento-small, .bento-promo {
    grid-column: span 12;
  }
  
  .bento-img-container {
    height: 240px;
  }
  
  .research-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .gallery-main {
    height: 360px;
  }
  
  .gallery-side {
    grid-template-rows: none;
    grid-template-columns: repeat(2, 1fr);
    height: 240px;
    gap: 24px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .btn-mobile-toggle {
    display: flex;
  }
  
  .nav-menu, .btn-nav {
    display: none;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .section-title-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .title-right {
    align-items: flex-start;
  }
  
  .gallery-side {
    grid-template-columns: 1fr;
    height: auto;
    gap: 24px;
  }
  
  .gallery-card {
    height: 200px;
  }
  
  .publication-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  
  .pub-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
@media (max-width: 576px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .map-status-card {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: none;
    border-top: 1px solid var(--border-color);
  }
  
  .interactive-map-container {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  
  .map-bg-img {
    height: 280px;
  }
}

/* --- Satellite Fleet Section --- */
.fleet-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.fleet-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}

.fleet-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fleet-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.fleet-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  margin: 0;
}

.fleet-agency {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
  font-family: var(--font-mono);
}

.fleet-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.fleet-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fleet-detail-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.fleet-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.fleet-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.fleet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.fleet-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid rgba(0, 32, 104, 0.08);
  color: var(--primary);
}

.fleet-btn {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* --- Interactive Filter Buttons --- */
.fleet-filters, .pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.fleet-filters .filter-btn, .pub-filters .filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.fleet-filters .filter-btn:hover, .pub-filters .filter-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.fleet-filters .filter-btn.active, .pub-filters .filter-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

/* --- Alternating Section Backgrounds & Layout Divisions --- */
.projects-section {
  background-color: var(--bg-primary);
}
.research-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.map-section {
  background-color: var(--bg-primary);
}
.fleet-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.partners-section {
  background-color: var(--bg-primary);
}
.publications-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.team-section {
  background-color: var(--bg-primary);
}
.contact-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ── Aksesibilitas & Polish ── */
/* Focus ring yang terlihat untuk navigasi keyboard */
:focus-visible {
  outline: 3px solid var(--accent, #ffbd07);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent, #ffbd07);
  outline-offset: 2px;
}
/* Form fields pakai pola box-shadow sendiri — hindari outline dobel */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}
/* Teks terpilih — sentuhan brand */
::selection {
  background: rgba(1, 56, 128, 0.85);
  color: #fff;
}
/* Hormati preferensi pengguna terhadap animasi */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .badge-dot {
    animation: none !important;
  }
}


/* ==========================================================================
   TEMANBELAJAR THEME OVERRIDE (applied 2026-08-05)
   Signature: gradient header navy + border kuning + Plus Jakarta Sans + dark mode
   ========================================================================== */

/* --- Font: Plus Jakarta Sans --- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Navbar: TemanBelajar signature gradient + border kuning --- */
.navbar {
  height: 76px;
  background: linear-gradient(135deg, #013880 0%, #014a9e 55%, #0157b4 100%);
  border-bottom: 3px solid #ffbd07;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 20px -6px rgba(1, 56, 128, 0.35);
}

.navbar.scrolled {
  height: 66px;
  background: linear-gradient(135deg, #013880 0%, #014a9e 55%, #0157b4 100%);
  border-bottom: 3px solid #ffbd07;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Logo ITS putih (navy bg) */
.nav-logo img.tb-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-logo:hover img.tb-logo {
  opacity: 0.9;
  transform: scale(1.05);
}

.logo-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}
.logo-subtitle {
  color: #ffbd07;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Nav links — putih di atas navy */
.nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 600;
}
.nav-link:hover,
.nav-link.active {
  color: #ffbd07;
}
.nav-link::after {
  background: #ffbd07;
}
.navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

/* Tombol aksi navbar (theme toggle, hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.nav-icon-btn .material-symbols-outlined {
  font-size: 20px;
}
.btn-mobile-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}
.btn-mobile-toggle .material-symbols-outlined {
  font-size: 20px;
}

/* Mobile dropdown */
.mobile-dropdown {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: #013880;
  border-bottom: 3px solid #ffbd07;
  flex-direction: column;
  padding: 8px 0;
  z-index: 999;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}
.mobile-dropdown.open {
  display: flex;
}
.mobile-link {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.mobile-link:hover,
.mobile-link.active {
  color: #ffbd07;
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #ffbd07;
}

/* --- Dark mode (TemanBelajar pattern: [data-theme="dark"] di <html>) --- */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1a2035;
  --bg-tertiary: #0b0e17;
  --text-main: #e8edf5;
  --text-muted: #8892b0;
  --text-inverse: #ffffff;
  --text-accent: #F5A623;
  --primary: #007BC0;
  --primary-hover: #0066a0;
  --primary-light: rgba(0, 123, 192, 0.12);
  --primary-glow: rgba(0, 123, 192, 0.22);
  --accent: #0099cc;
  --accent-light: rgba(0, 153, 204, 0.12);
  --border-color: #2a3150;
  --border-focus: #0099cc;
  --card-bg: #1a2035;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.55), 0 8px 16px -8px rgba(0, 0, 0, 0.4);
  --navbar-bg: #0f172a;
  --navbar-border: #2a3150;
  --glass-bg: rgba(26, 32, 53, 0.8);
  --glass-border: rgba(42, 49, 80, 0.5);
}

/* Hero tetap terang-konsisten di dark (bg-secondary->bg-primary var) */
[data-theme="dark"] .hero-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
[data-theme="dark"] .hero-badge {
  border-color: rgba(0, 153, 204, 0.25);
}
[data-theme="dark"] .quick-link-card {
  background: var(--card-bg);
  border-color: var(--border-color);
}
[data-theme="dark"] .section-title,
[data-theme="dark"] .hero-title {
  color: var(--primary);
}

/* --- Footer: signature border-top kuning --- */
.site-footer {
  background: #013880;
  border-top: 3px solid #ffbd07;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.85rem;
  margin-top: auto;
}
.site-footer p {
  color: rgba(255, 255, 255, 0.75);
}

/* Scrollbar custom (TemanBelajar style) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Responsive navbar: compact di mobile */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .btn-mobile-toggle {
    display: inline-flex !important;
  }
  .navbar {
    height: 68px;
  }
  .mobile-dropdown {
    top: 68px;
  }
  .nav-logo img.tb-logo {
    height: 34px;
  }
}
}
}

/* --- Sticky footer: #footer-container didorong ke dasar layar --- */
#footer-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}
#footer-container > .site-footer {
  margin-top: 0;
}

/* ==========================================================================
   HEADER/FOOTER: samakan dengan gaya TemanRiset di desktop (2026-09-02)
   Hanya menyentuh tampilan; struktur _navbar.html/_footer.html tidak diubah.
   ========================================================================== */
@media (min-width: 769px) {
  .navbar,
  .navbar.scrolled {
    height: 76px;
    background: linear-gradient(135deg, #013880 0%, #014a9e 55%, #0157b4 100%);
    border-bottom: 3px solid #ffbd07;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px -6px rgba(1, 56, 128, 0.35);
  }
  .nav-logo img.tb-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .logo-title {
    color: #ffffff;
  }
  .logo-subtitle {
    color: #ffbd07;
  }
  .nav-link {
    color: rgba(255, 255, 255, 0.88);
  }
  .nav-link:hover,
  .nav-link.active {
    color: #ffbd07;
  }
  .site-footer {
    background: #013880;
    color: rgba(255, 255, 255, 0.85);
  }
}
