/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary: #64748b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --light: #f8fafc;
  --dark: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --text: #1e293b;
  --text-secondary: #64748b;
  --header-bg: #ffffff;
}

/* Dark Mode */
body.dark {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --header-bg: #1e293b;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.3s, color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile container padding */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .article-detail .container {
    padding: 0 20px;
  }
  
  .article-content {
    padding: 1rem;
  }
  
  .article-content h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .article-body {
    padding: 0 0.5rem;
  }
  
  .article-body h2 {
    font-size: 1.25rem;
  }
  
  .article-body h3 {
    font-size: 1.1rem;
  }
  
  .article-body ul,
  .article-body ol {
    padding-left: 1.25rem;
  }
  
  .article-body blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* Header */
/* Header */
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

body.dark .header {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar {
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.02);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

/* Hide close button on desktop */
.nav-close-wrapper {
  display: none;
}

/* Hide mobile sidebar header and divider on desktop */
.nav-sidebar-header,
.nav-sidebar-divider {
  display: none;
}

.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-menu .nav-link:hover {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.08);
}

body.dark .nav-menu .nav-link:hover {
  background: rgba(59, 130, 246, 0.15);
}

.nav-menu .nav-link.active {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.1);
}

body.dark .nav-menu .nav-link.active {
  background: rgba(59, 130, 246, 0.2);
}

.nav-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

body.dark .nav-dropdown-menu {
  background: var(--bg-secondary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu .nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: none;
}

.nav-dropdown-menu .nav-link:hover {
  background: rgba(30, 64, 175, 0.08);
  color: var(--primary);
  padding-left: 1.5rem;
}

body.dark .nav-dropdown-menu .nav-link:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* Nav Actions (Right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  padding: 0.125rem;
  border-radius: 0.25rem;
  overflow: hidden;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.lang-btn.active {
  opacity: 1;
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flag-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

body.dark .lang-switcher {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
}

/* Signin Button */
.btn-signin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-signin:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-signin i {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .btn-signin span {
    display: none;
  }
  
  .btn-signin {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.theme-toggle i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
  color: #1e293b; /* Dark color for sun as requested */
}

.theme-toggle .fa-moon {
  color: #f1f5f9; /* Light color for moon as requested */
  display: none;
}

body.dark .theme-toggle .fa-sun {
  display: none;
}

body.dark .theme-toggle .fa-moon {
  display: block;
}

/* Contact Button (CTA) */
.btn-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px; /* Pill shape for more modern feel */
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
}

.btn-contact:hover::before {
  left: 100%;
}

.btn-contact i {
  font-size: 0.8rem;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
  z-index: 1050;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

body.dark .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hide hamburger toggle when sidebar is open on mobile (we have close button in sidebar header) */
@media (max-width: 768px) {
  .menu-toggle.active {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
  }
}

/* Alert Banner */
.alert-banner {
  padding: 1rem;
  background: #dcfce7;
  border-bottom: 1px solid #86efac;
}

.alert-banner.alert-success {
  background: #dcfce7;
  border-bottom-color: #86efac;
  color: #166534;
}

.alert-banner .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-banner i {
  font-size: 1.5rem;
}

.alert-banner span {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 900px;
  min-height: 600px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.1);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

@keyframes zoomSlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.carousel-slide .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.carousel-slide .hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  animation: slideUp 1s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-size: 3rem; /* Slightly smaller for elegance */
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: -0.02em; /* Tight tracking for modern look */
}

.slide-subtitle {
  font-size: 1.125rem; /* More standard body size, not too huge */
  margin-bottom: 2.5rem;
  opacity: 0.9;
  font-weight: 400; /* Better readability than 300 */
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Slide Buttons */
.slide-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Desktop: buttons horizontal */
@media (min-width: 1025px) {
  .slide-buttons {
    flex-direction: row;
  }
}

.btn-slide {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-width: 240px;
  position: relative;
  overflow: hidden;
}

.btn-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-slide:hover::before {
  left: 100%;
}

.btn-slide-primary {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-slide-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-slide-primary:active {
  color: white;
  transform: translateY(-1px) scale(1);
}

.btn-slide-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-slide-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-slide-secondary:active {
  color: white;
  transform: translateY(-1px) scale(1);
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 2rem;
}

.carousel-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .carousel-nav {
    display: none;
  }
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
  background: white;
  width: 36px;
  border-radius: 6px;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
}

.section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bg-light {
  background: var(--bg-secondary);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card */
.card {
  background: var(--bg);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.card h3 {
  color: var(--text);
}

.card p {
  color: var(--text-secondary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-icon {
  font-size: 3rem;
  color: var(--primary);
  text-align: center;
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card-excerpt {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.card-news {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-news .card-content {
  flex: 1;
}

/* Horizontal card layout for single column news */
.grid-1 .card-news {
  flex-direction: row;
  min-height: 180px;
  overflow: hidden;
  align-items: stretch;
}

.grid-1 .card-news .card-image {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 0.5rem 0 0 0.5rem;
  flex-shrink: 0;
}

.grid-1 .card-news .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.grid-1 .card-news h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.grid-1 .card-news .card-excerpt {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  color: var(--text-secondary);
}

.grid-1 .card-news .card-meta {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.grid-1 .card-news .btn-link {
  margin-top: auto;
  font-weight: 600;
}

@media (max-width: 768px) {
  .grid-1 .card-news {
    flex-direction: column;
    max-height: none;
  }
  
  .grid-1 .card-news .card-image {
    width: 100%;
    min-width: auto;
    height: 180px;
    border-radius: 0.5rem 0.5rem 0 0;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination .btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}

.pagination .btn-arrow {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
}

/* Dark mode pagination */
body.dark .pagination .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

body.dark .pagination .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

body.dark .pagination .btn-primary {
  background: var(--primary);
  color: white;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-link {
  color: var(--primary);
  font-weight: 500;
}

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

.text-center {
  text-align: center;
}

/* Page Header */
.page-header {
  background: var(--light);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--dark);
}

/* Form */
.form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Alert */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
}

/* Article Detail */
.article-detail {
  padding: 3rem 0;
}

.article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 1rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.article-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination .btn {
  padding: 0.5rem 1rem;
}

/* Error Page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-content i {
  font-size: 4rem;
  color: var(--warning);
  margin-bottom: 1rem;
}

.error-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Services Section (Replicated) */
.services-grid {
  margin-top: 3rem;
  gap: 3rem;
}

.service-card {
  text-align: left;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: #f1f5f9; /* slate-100 */
  border-radius: 12px;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 1.75rem;
  color: #1e40af; /* blue-800 */
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.service-card:hover .service-icon i {
  color: white;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Video Section */
.video-section {
  padding-top: 0;
  padding-bottom: 5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.video-wrapper:hover .video-cover {
  opacity: 0.6;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.3);
  background: var(--primary);
  color: white;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.3);
  background: var(--primary);
  color: white;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* FunFact Section */
.funfact-section {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.funfact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.funfact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funfact-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.funfact-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

body.dark .funfact-value {
  color: var(--text);
}

body.dark .funfact-title {
  color: #60a5fa;
}
@media (max-width: 768px) {
  .funfact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Mitra Section */
.mitra-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: white; /* Clean white background for section */
}

/* Wrapper for logos - the "gray background" container */
.mitra-wrapper {
  background: #f8fafc; /* Very light gray (slate-50) */
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-top: 3rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); /* Subtle inset shadow */
}

.mitra-grid {
  display: flex;
  flex-wrap: wrap; /* Keeps wrapping for mobile */
  justify-content: center;
  align-items: center;
  gap: 1.5rem; /* Reduced gap to fit 5 items in one row */
  margin-top: 3rem;
}

.mitra-item {
  width: 180px; /* Increased size */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed individual card background/shadow */
  transition: transform 0.3s ease;
}

.mitra-item:hover {
  transform: scale(1.05); /* Slight zoom instead of lift */
}

.mitra-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Removed grayscale filter */
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.3s ease;
}

.mitra-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Dark mode overrides for mitra */
body.dark .mitra-section {
  background: var(--bg-primary);
}

body.dark .mitra-wrapper {
  background: rgba(255, 255, 255, 0.03);
}

body.dark .mitra-item img {
  filter: grayscale(0%) brightness(1.2); /* Keep colored but slightly brighter for contrast */
}

body.dark .mitra-item img {
  filter: grayscale(0%) brightness(1.2); /* Keep colored but slightly brighter for contrast */
}

body.dark .mitra-item:hover img {
  filter: grayscale(0%) brightness(1.2);
}

/* About Page Styles */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .subsidiaries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subsidiary-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.subsidiary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.subsidiary-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.subsidiary-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.subsidiary-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.subsidiary-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Vision Mission Refinements */
.vision-card, .mission-card {
  padding: 2.5rem;
  height: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.mission-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mission-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary);
  font-size: 0.8rem;
}

/* Dark Mode Overrides for About */
body.dark .subsidiary-card {
  background: var(--bg-secondary);
}

body.dark .subsidiary-card h3 {
  color: var(--text);
}

body.dark .card-icon {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .about-text h2 {
  color: #60a5fa;
}

body.dark .vision-card, body.dark .mission-card {
  background: var(--bg-secondary); /* #1e293b */
  border-color: var(--border);
}

body.dark .vision-card h3, body.dark .mission-card h3 {
  color: white;
}

/* Theme Toggle Utilities */
.show-light {
  display: block;
}

.show-dark {
  display: none;
}

body.dark .show-light {
  display: none;
}

body.dark .show-dark {
  display: block;
}

/* Special filter for logos without white version if needed */
body.dark .filter-white {
  filter: brightness(0) invert(1);
}

/* Utilities */
.mb-5 { margin-bottom: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.gap-4 { gap: 1.5rem !important; }

.text-prima {
  color: #dc2626; /* Red color for PRIMA */
  font-weight: 800;
}

/* Company Values (PRIME) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  padding: 2.5rem 2rem; /* More padding */
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 5px solid #dc2626; /* Red Accent Border */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%; /* Equal height */
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.value-card h3 {
  color: #1E468C; /* Bosowa Blue */
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem; /* Larger Title */
  position: relative;
}

.value-card h3::first-letter {
  color: #dc2626;
  font-size: 1.25em; /* Slightly larger first letter */
  margin-right: 1px;
}

.value-card p {
  color: #334155; /* Darker Slate for better readability */
  font-size: 1rem; /* Increased from 0.95rem */
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 0;
}

body.dark .value-card {
  background: var(--bg-secondary);
  border-color: var(--border);
  border-top-color: #ef4444;
}

body.dark .value-card p {
  color: var(--text-secondary); /* Match Visi Misi brightness */
}

.value-letter {
  display: none; /* Hide big letter as we use first-letter styling now */
}

/* Unit Bisnis Detail Page */
.unit-bisnis-detail {
  padding: 4rem 0;
}

.ub-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ub-layout {
    grid-template-columns: 1fr;
  }
}

.ub-main {
  max-width: 100%;
}

.ub-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1E468C;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ub-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.ub-subtitle strong {
  color: #1E468C;
}

.ub-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.ub-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.ub-sidebar-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E468C;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1E468C;
}

.ub-area h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ub-area ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.ub-area ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

body.dark .ub-title,
body.dark .ub-sidebar-card h3,
body.dark .ub-subtitle strong {
  color: #60a5fa;
}

body.dark .ub-sidebar-card {
  background: var(--bg-secondary);
  border-color: var(--border);
}

.ub-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 500px) {
  .ub-area-grid {
    grid-template-columns: 1fr;
  }
}

.value-card h3 {
  color: #1E468C; /* Bosowa Blue */
  margin-bottom: 0.5rem;
  font-weight: 700; /* font-semibold equivalent */
  font-size: 1.25rem; /* text-xl equivalent */
  position: relative;
}

.value-card h3::first-letter {
  color: #dc2626; /* red-600 */
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
}

body.dark .value-card {
  background: var(--bg-secondary);
}

body.dark .value-card h3 {
  color: white; /* Dark mode override */
}

body.dark .service-icon {
  background-color: rgba(255, 255, 255, 0.05); /* Subtle dark mode bg */
}

/* Page Header Styles */
.page-header {
  background: #f8fafc;
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
}

body.dark .page-header {
  background: var(--bg);
}

body.dark .page-header h1 {
  color: white;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

body.dark .page-subtitle {
  color: var(--text-secondary);
}

body.dark .service-icon i {
  color: #60a5fa; /* Lighter blue for contrast */
}

body.dark .service-card:hover .service-icon {
  background-color: var(--primary);
}

body.dark .service-card:hover .service-icon i {
  color: white;
}

/* Footer */
.footer {
  background: white;
  color: var(--text);
  padding: 0;
  border-top: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
}

body.dark .footer {
  background: var(--bg-secondary);
  border-top-color: var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

body.dark .footer h3 {
  color: var(--text);
}

/* Footer Brand (Left) */
.footer-brand {
  padding-right: 1rem;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

body.dark .footer-logo-light {
  display: none;
}

body.dark .footer-logo-dark {
  display: inline-block;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: justify;
}

/* Footer Contact (Middle) */
.footer-contact {
  padding: 0 1rem;
}

.contact-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.contact-list strong {
  color: var(--text);
  font-weight: 600;
}

.contact-list a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.dark .contact-list a {
  color: #3b82f6;
}

.contact-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

body.dark .contact-list a:hover {
  color: #60a5fa;
}

.footer-social {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s;
}

body.dark .social-links a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

body.dark .social-links a:hover {
  background: var(--primary);
  color: white;
}

/* Footer Location (Right) */
.footer-location {
  padding: 0 1rem;
}

.footer-location h3 {
  margin-bottom: 1rem;
}

.map-container {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

body.dark .map-container {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.map-overlay-info {
  background: white;
  padding: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

body.dark .map-overlay-info {
  background: var(--bg);
  border-top-color: var(--border);
}

.map-overlay-info strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

body.dark .map-overlay-info strong {
  color: var(--text);
}

.map-overlay-info a {
  color: var(--primary);
  text-decoration: none;
}

/* Footer Copyright */
.footer-copyright {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: #fcfcfc;
}

body.dark .footer-copyright {
  background: rgba(0, 0, 0, 0.2);
  border-top-color: var(--border);
}

.copyright-content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
}

body.dark .copyright-content {
  color: var(--text-secondary);
}

/* Previous Footer Overwrites */
/* Since we replaced the structure, we can safely remove or repurpose old classes if they conflict, 
   but listing them here to overwrite defaults */

/* Responsive specific for footer */
@media (max-width: 768px) {
  .footer-top {
    padding: 3rem 0;
    gap: 2rem;
  }

  .footer-brand,
  .footer-contact,
  .footer-location {
    padding: 0;
  }

  .footer-desc {
    text-align: left;
  }

  .contact-list li {
    word-break: break-word;
  }

  .social-links {
    justify-content: flex-start;
  }

  .map-container {
    border-radius: 0.5rem;
  }

  .map-container iframe {
    height: 180px;
  }

  .map-overlay-info {
    font-size: 0.75rem;
  }

  .copyright-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-top {
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .footer h3 {
    font-size: 1rem;
  }

  .footer-logo img {
    height: 35px;
  }

  .footer-desc {
    font-size: 0.85rem;
  }

  .contact-list {
    font-size: 0.85rem;
  }

  .contact-list li {
    margin-bottom: 0.5rem;
  }

  .social-links a {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .map-container iframe {
    height: 150px;
  }

  .map-overlay-info {
    font-size: 0.7rem;
  }

  .copyright-content {
    font-size: 0.75rem;
  }
}

/* Dark mode specific adjustments for mobile */
@media (max-width: 768px) {
  body.dark .footer-top {
    background: transparent;
  }

  body.dark .map-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .btn-contact span {
    display: none;
  }

  .btn-contact {
    padding: 0.6rem;
    border-radius: 0.75rem;
  }

  .btn-contact i {
    font-size: 1rem;
  }

  .slide-buttons {
    flex-direction: column;
  }

  .btn-slide {
    min-width: 200px;
  }

  .nav-menu {
    font-size: 1rem;
  }
  
  .nav-menu {
    gap: 0.25rem;
  }
  
  .nav-menu .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .btn-contact {
    display: none;
  }

  /* Mobile Carousel */
  .hero-carousel {
    min-height: 450px;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .slide-buttons {
    flex-direction: column;
  }

  .btn-slide {
    min-width: 200px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }

  .carousel-dots {
    bottom: 1.5rem;
    gap: 0.5rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-dot.active {
    width: 30px;
  }

  /* Mobile Sidebar Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: none;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
    border-left: 1px solid var(--border);
  }
  
  body.dark .nav-menu {
    background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.active {
    right: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  }
  
  body.dark .nav-menu.active {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }

  /* Mobile Sidebar Header - With gradient and branding */
  .nav-sidebar-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
    transform: none !important;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .sidebar-logo {
    display: flex;
    align-items: center;
  }
  
  .sidebar-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
  }
  
  .sidebar-logo-dark {
    display: none;
  }
  
  body.dark .sidebar-logo-light {
    display: block;
  }
  
  body.dark .sidebar-logo-dark {
    display: none;
  }
  
  /* Close Button - Prominent and accessible */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
  }
  
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }
  
  .nav-close:active {
    transform: scale(0.95);
  }
  
  /* Sidebar Divider */
  .nav-sidebar-divider {
    display: block !important;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
    margin: 0;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Hide sidebar header, divider, and close wrapper on desktop */
  .nav-sidebar-header,
  .nav-sidebar-divider {
    display: flex;
  }
  
  /* Ensure main toggle is visible and above everything when menu is active */
  .menu-toggle {
    position: relative;
    z-index: 1050;
  }

  .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }
  
  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger animation for list items */
  .nav-menu.active li:nth-child(1) { transition-delay: 0s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.15s; }
  .nav-menu.active li:nth-child(5) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(6) { transition-delay: 0.25s; }
  .nav-menu.active li:nth-child(7) { transition-delay: 0.3s; }
  .nav-menu.active li:nth-child(8) { transition-delay: 0.35s; }
  .nav-menu.active li:nth-child(9) { transition-delay: 0.4s; }
  .nav-menu.active li:nth-child(10) { transition-delay: 0.45s; }

  /* Menu items container padding */
  .nav-menu > li:nth-child(3) {
    padding-top: 0.75rem;
  }

  .nav-menu .nav-link {
    display: flex;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    color: var(--text);
    position: relative;
    transition: all 0.2s ease;
  }
  
  .nav-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
  }
  
  .nav-menu .nav-link:hover {
    background: rgba(30, 64, 175, 0.06);
    color: var(--primary);
    padding-left: 1.75rem;
  }
  
  .nav-menu .nav-link:hover::before {
    height: 24px;
  }
  
  body.dark .nav-menu .nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
  }
  
  .nav-arrow {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
  }

  /* Mobile Dropdown */
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(30, 64, 175, 0.03);
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 100%;
    display: none;
    border-radius: 0;
  }
  
  body.dark .nav-dropdown-menu {
    background: rgba(59, 130, 246, 0.05);
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }
  
  .nav-dropdown.active .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu li {
    padding-left: 0;
    opacity: 1;
    transform: none;
  }

  .nav-dropdown-menu .nav-link {
    padding: 0.75rem 1.5rem 0.75rem 2.25rem;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: none;
    color: var(--text-secondary);
  }

  .nav-dropdown-menu .nav-link:hover {
    padding-left: 2.5rem;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.04);
  }
  
  body.dark .nav-dropdown-menu .nav-link:hover {
    background: rgba(59, 130, 246, 0.08);
  }

  /* Update menu toggle active state handled by CSS now */


  .hero-content h1 {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .logo img {
    height: 40px;
  }
}


/* Cabang Public Page */
.cabang-public-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.cabang-public-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.cabang-public-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.cabang-public-card .card-content h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.cabang-public-card .card-content p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cabang-public-card .card-content p i {
  width: 20px;
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Dark mode specific for cabang */
body.dark .cabang-public-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

body.dark .cabang-public-card .card-content h3 {
  color: #60a5fa;
}

body.dark .cabang-public-card .card-content p {
  color: #94a3b8;
}

body.dark .cabang-public-card .card-content p i {
  color: #60a5fa;
}

/* Dark mode specific for news cards */
body.dark .card-news {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

body.dark .card-news .card-content {
  background: transparent;
}

body.dark .card-news h3 {
  color: #f1f5f9;
}

body.dark .card-news .card-excerpt {
  color: #94a3b8;
}

body.dark .card-news .card-meta {
  color: #64748b;
  border-top-color: #334155;
}

body.dark .card-news .badge {
  background: #2563eb;
  color: #ffffff;
}

.cabang-map-embed {
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cabang-map-embed iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

body.dark .btn-link {
  color: #60a5fa;
}

body.dark .btn-link:hover {
  color: #93c5fd;
}


/* Utility */
.mt-4 {
  margin-top: 2rem !important;
}


.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.text-center {
  text-align: center;
}

/* Comments Section */
.comments-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comment-avatar {
  font-size: 2.5rem;
  color: #cbd5e1;
}

.comment-content {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
}

.comment-meta {
  margin-bottom: 0.5rem;
}

.comment-meta strong {
  color: var(--secondary);
  margin-right: 0.5rem;
  display: block;
}

.comment-meta span {
  font-size: 0.85rem;
  color: #64748b;
}

.comment-form-wrapper {
  margin-top: 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.comment-form .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
}

/* Dark Mode Comments */
body.dark .comments-section {
  border-top-color: #334155;
}

body.dark .comment-avatar {
  color: #475569;
}

body.dark .comment-content {
  background: #1e293b;
}

body.dark .comment-meta strong {
  color: #e2e8f0;
}

body.dark .comment-meta span {
  color: #94a3b8;
}

body.dark .comment-form-wrapper {
  background: #1e293b;
  border-color: #334155;
}

body.dark .comment-form .form-group input,
body.dark .comment-form .form-group textarea {
  background: #0f172a;
  border-color: #334155;
  color: white;
}

/* Mobile Sidebar Custom Actions */
.nav-mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  /* Hide top bar items to declutter */
  .nav-actions .lang-switcher,
  .nav-actions .btn-signin {
    display: none;
  }

  /* Show sidebar items */
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  /* Language Switcher */
  .mobile-lang-group {
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem; /* Match visual alignment */
  }

  .mobile-action-label {
    display: none; /* Hide label for cleaner look */
  }

  .mobile-lang-switcher {
    display: flex;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
  }

  .mobile-lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
  }
  
  .mobile-lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .mobile-lang-btn.active {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
  }
  
  .mobile-lang-btn.active img {
    opacity: 1;
  }

  body.dark .mobile-lang-switcher {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

  body.dark .mobile-lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  /* Auth Button - Link Style for Professionalism */
  .mobile-auth-group {
    padding: 0 0.5rem;
  }

  .mobile-btn-auth {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align like menu items */
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-btn-auth i {
      font-size: 1.1rem;
      width: 20px;
      text-align: center;
  }

  .mobile-btn-auth:hover {
      background: rgba(0, 0, 0, 0.03);
      color: var(--text);
  }
  
  /* Signout specific style */
  .mobile-btn-auth.btn-signout {
    color: var(--danger);
  }
  
  .mobile-btn-auth.btn-signout:hover {
    background: rgba(239, 68, 68, 0.08); /* Subtle red bg on hover */
    color: var(--danger);
  }
  
  body.dark .mobile-btn-auth.btn-signout {
    color: #f87171;
  }
  
  body.dark .mobile-btn-auth.btn-signout:hover {
    background: rgba(248, 113, 113, 0.1);
  }
}

/* ============================================
   ARTICLE CONTENT STYLING
   ============================================ */
.article-detail {
  padding: 2rem 0;
}

.article-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-meta i {
  margin-right: 0.35rem;
}

.article-body {
  line-height: 1.8;
  color: var(--text);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.article-body li strong {
  color: var(--primary);
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(30, 64, 175, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

body.dark .article-body blockquote {
  background: rgba(59, 130, 246, 0.1);
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--primary-dark);
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   COMMENTS SECTION - Compact Styling
   ============================================ */
.comments-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comments-header h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar i {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.comment-meta strong {
  font-size: 0.85rem;
  color: var(--text);
}

.comment-meta span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.comment-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}

.no-comments {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
}

/* Comment Pagination - Smaller */
.comments-section .pagination {
  margin-top: 0.75rem;
  gap: 0.3rem;
}

.comments-section .pagination .btn {
  min-width: 32px;
  height: 32px;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
}

.comments-section .pagination .btn-arrow {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
}

/* Comment Form - Compact */
.comment-form-wrapper {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.comment-form-wrapper h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.comment-form-wrapper .text-muted {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.comment-form .form-group {
  margin-bottom: 0.75rem;
}

.comment-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-form textarea {
  min-height: 80px;
  resize: vertical;
}

.comment-form button[type="submit"] {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.alert-success {
  padding: 0.75rem 1rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

body.dark .alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

/* Mobile adjustments for comments */
@media (max-width: 768px) {
  .comments-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  
  .comment-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .comment-item {
    padding: 0.6rem;
  }
  
  .comment-avatar i {
    font-size: 1.25rem;
  }
  
  .comment-meta strong {
    font-size: 0.8rem;
  }
  
  .comment-content p {
    font-size: 0.8rem;
  }
  
  .comments-section .pagination .btn {
    min-width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ============================================
   BRANCH (CABANG) CARDS
   ============================================ */
/* ============================================
   BRANCH (CABANG) CARDS
   ============================================ */
.cabang-public-card {
  display: flex;
  flex-direction: row; /* Horizontal layout */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 250px; /* Fixed height for consistency */
}

.cabang-public-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.cabang-public-card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1; /* Takes remaining space */
  justify-content: center;
}

/* Map/Image Section on the Right */
.cabang-map-embed {
  margin-top: 0;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  padding-bottom: 0;
  height: auto;
  width: 40%; /* Takes 40% width */
  min-width: 300px;
}

.cabang-map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.cabang-public-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cabang-public-card h3::before {
  content: '\f1ad';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 1.1rem;
}

.cabang-public-card p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cabang-public-card p:last-child {
  margin-bottom: 0;
}

.cabang-public-card p i {
  color: var(--primary);
  margin-top: 0.2rem;
  width: 16px;
  text-align: center;
}

/* Grid Layout for Branch Page */
.grid-cabang {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px; /* Slightly wider */
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cabang-public-card {
    flex-direction: column-reverse; /* Map on top, info on bottom on mobile */
    height: auto;
  }
  
  .cabang-map-embed {
    width: 100%;
    height: 200px;
    border-left: none;
    border-bottom: 1px solid var(--border);
  }
  
  .grid-cabang {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ADMIN BRANCH (CABANG) CARDS
   ============================================ */
.cabang-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem;
  width: 100%;
}

.cabang-card {
  display: flex; /* Still flex, but used differently */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative; /* Context for absolute map */
  min-height: 220px;
  width: 100%;
  padding-right: 350px; /* Make space for the map */
}

.cabang-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cabang-info {
  width: 100%; /* Take remaining width */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ... (actions style skipped - keep unchanged) ... */

.cabang-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ... (info-item style skipped - keep unchanged) ... */

.cabang-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cabang-info-item i {
  color: var(--primary);
  margin-top: 0.25rem;
  width: 18px;
  text-align: center;
}

/* Map Section (Right Side - Absolute) */
.cabang-map {
  position: absolute; /* Absolute within card */
  top: 0;
  right: 0;
  bottom: 0;
  width: 350px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
}

.cabang-map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0;
  display: block;
  object-fit: cover;
}

.cabang-map-placeholder {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 350px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .cabang-card {
    flex-direction: column;
    padding-right: 0; /* Remove padding on mobile/tablet */
    height: auto;
  }
  
  .cabang-map,
  .cabang-map-placeholder {
    position: relative; /* Reset to relative flow */
    width: 100%;
    height: 250px; /* Fixed height for mobile map */
    border-left: none;
    border-top: 1px solid var(--border);
    top: auto;
    right: auto;
    bottom: auto;
  }
}
/* ============================================
   MOBILE NAVIGATION FIXES
   ============================================ */
@media (max-width: 900px) {
  /* Fix Overlay to be Fixed viewport */
  .nav-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Fix Mobile Sidebar */
  .nav-menu {
    position: fixed !important; /* Force Fixed */
    top: 0;
    right: -100%; /* Hidden by default */
    width: 280px; /* Or whatever width was intented */
    max-width: 80%;
    height: 100vh; /* Full Viewport Height */
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; /* Scrollable content inside sidebar */
    display: flex; /* Ensure it stays flex */
  }

  /* Ensure header doesn't trap it (if header has overflow hidden or backdrop-filter) */
  header, .header {
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
    background: var(--bg) !important; /* Solid background fallback */
    z-index: 1050 !important; /* High enough */
  }

  /* Fix Mobile Sidebar */
  .nav-menu {
    position: fixed !important; /* Force Fixed */
    top: 0;
    right: -100%; /* Hidden by default */
    width: 280px; 
    max-width: 80%;
    height: 100vh; /* Full Viewport Height */
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem; /* This might be causing issues if box-sizing isn't strict, but * is reset */
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; /* Scroll vertikal OK */
    overflow-x: hidden !important; /* NO SIDE SCROLL */
    display: flex; /* Ensure it stays flex */
  }

  .nav-menu.active {
    right: 0 !important; /* Slide in */
  }

  /* Overlay */
  .nav-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Just below sidebar */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Prevent body scroll when menu open */
  body.menu-open {
    overflow: hidden !important;
  }

  /* ============================================
     SIDEBAR REDESIGN STYLES
     ============================================ */
  
  /* Sidebar Container Styling */
  .nav-menu {
    border-left: 1px solid var(--border);
    background: var(--bg); /* Ensure solid background color */
  }
  
  /* Sidebar Header - The "Wrapped" Box Concept */
  .nav-sidebar-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: var(--primary) !important; /* Blue Box Header */
    padding: 2rem 1.5rem; /* Spacious padding */
    margin-bottom: 1rem;
    color: white;
  }
  
  /* Logo in sidebar */
  .sidebar-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1); /* Ensure logo is white */
  }
  
  /* Close Button */
  .nav-close {
    background: rgba(255, 255, 255, 0.2) !important; /* Transparent white */
    border: none !important;
    color: white !important;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem; /* Rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
  }
  
  /* Hide Navbar Divider */
  .nav-sidebar-divider {
    display: none !important;
  }
  
  /* Navigation Links Wrapper padding */
  .nav-menu {
     padding: 0 !important; /* Let header take full width */
  }
  
  /* Links Styling */
  .nav-menu > li > .nav-link {
    padding: 0.85rem 1.5rem 0.85rem 1rem; /* Extra padding right for arrow safety */
    margin: 0 0.75rem 0.25rem 0.75rem; /* Slightly reduced outer margin */
    border-radius: 0.5rem;
    color: var(--text);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex !important; /* Use Flexbox */
    align-items: center;
    justify-content: space-between; /* Push arrow to far right */
    white-space: normal; /* Allow wrap */
    word-break: break-word; /* Break words if needed */
  }
  
  /* Hover State */
  .nav-menu > li > .nav-link:hover,
  .nav-menu > li > .nav-link:active {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateX(5px);
  }
  
  /* Icon Styling - Hidden/Removed per request, but keeping class just in case */
  .nav-icon {
    display: none !important;
  }

  /* Dropdown Arrow */
  .nav-arrow {
    float: none !important; /* No float */
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; /* Smooth animation */
    transform: rotate(0deg); /* Explicit default state */
    opacity: 0.7; /* Make more visible */
    font-size: 0.85rem;
    margin-left: auto; /* Just in case */
  }
  
  /* Prevent Desktop Hover interfering with Mobile State (Sticky Hover Fix) */
  .nav-dropdown:hover .nav-arrow {
    transform: rotate(0deg) !important;
  }
  
  /* Active state ALWAYS wins */
  .nav-dropdown.active > .nav-link .nav-arrow {
    transform: rotate(180deg) !important;
    color: var(--primary);
    opacity: 1;
  }
  
  /* Dropdown Menu Mobile */
  .nav-dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding-left: 0;
    display: none;
    margin: 0 1rem 0.5rem 1rem;
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
  }
  
  .nav-dropdown-menu .nav-link {
    padding: 0.6rem 1rem 0.6rem 2rem !important; /* Deep indent */
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    border-radius: 0.5rem;
  }
  
  .nav-dropdown-menu .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(0,0,0,0.03) !important;
  }

  /* Mobile Actions Section (Bottom) */
  .nav-mobile-actions {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex !important;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-secondary); /* Contrast background for bottom area */
  }
  
  .mobile-action-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  /* Improved Language Switcher */
  .mobile-lang-switcher {
    display: flex;
    background: var(--bg);
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
  }
  
  .mobile-lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
  }
  
  .mobile-lang-btn img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .mobile-lang-btn.active {
    background: var(--primary); /* Use Primary for active lang */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* Auth Buttons */
  .mobile-btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
  }
  
  .mobile-btn-auth:not(.btn-signout) {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
  }
  
  .btn-signout {
    color: var(--danger);
    font-weight: 500;
  }
}

/* =========================================
   NEWS CARD ALIGNMENT FIX
   ========================================= */
.services-grid, .grid-3 {
    align-items: stretch; /* Ensure grid items same height */
}

/* Vertical card for homepage (grid-3) */
.grid-3 .card-news {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.grid-3 .card-news .card-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important; /* Content fills the card */
}

/* Push the date/meta to the bottom for vertical cards */
.grid-3 .card-news .card-meta {
  margin-top: auto !important; 
  padding-top: 1rem;
}

/* Horizontal card for news page (grid-1) - Image left, content right */
.grid-1 .card-news {
  display: flex !important;
  flex-direction: row !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  overflow: hidden;
  align-items: stretch;
}

.grid-1 .card-news .card-image {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  height: 180px !important;
  object-fit: cover;
  border-radius: 0.5rem 0 0 0.5rem !important;
  flex-shrink: 0;
}

.grid-1 .card-news .card-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: 1rem 1.25rem !important;
  flex: 1 !important;
  min-width: 0;
  overflow: hidden;
}

.grid-1 .card-news h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-1 .card-news .card-excerpt {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.grid-1 .card-news .card-meta {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.grid-1 .card-news .btn-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile: vertical layout for grid-1 news cards */
@media (max-width: 768px) {
  .grid-1 .card-news {
    flex-direction: column !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }
  
  .grid-1 .card-news .card-image {
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
    height: 180px !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
  }
  
  .grid-1 .card-news .card-content {
    padding: 1rem !important;
  }
  
  .grid-1 .card-news h3 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .grid-1 .card-news .card-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* =========================================
   ADMIN MOBILE TABLE FIXES
   ========================================= */
@media (max-width: 768px) {
  /* Berita Tab - Truncate Title */
  #tab-berita .table td:first-child {
    max-width: 15rem;      /* Batasi lebar maksimal */
    white-space: nowrap;   /* Jangan biarkan teks turun baris */
    overflow: hidden;      /* Sembunyikan sisa teks */
    text-overflow: ellipsis; /* Ganti sisa teks dengan ... */
  }

  /* Comments Tab - Truncate News Title (col 2) and Comment (col 3) */
  #tab-comments .table td:nth-child(2),
  #tab-comments .table td:nth-child(3) {
    max-width: 10rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Adjust badge alignment if needed */
  #tab-berita .table td, 
  #tab-comments .table td {
      vertical-align: middle;
  }
}
