/* Google Fonts loaded via <link> in HTML head (non-blocking) */

:root {
  --primary-red: #b91c1c;
  --primary-dark: #7f1d1d;
  --primary-light: #ef4444;
  --primary-gradient: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  --secondary-gradient: linear-gradient(135deg, #6a1b9a, #b91c1c);
  --bg-color: #f7f9fc;
  --surface-color: #ffffff;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-hint: #9CA3AF;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-red: 0 10px 15px -3px rgba(185, 28, 28, 0.2), 0 4px 6px -2px rgba(185, 28, 28, 0.1);
  --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.05);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --content-padding: 16px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent
}

html {
  font-size: 16px;
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--surface-color);
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: 72px
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  display: block
}

/* ===== APP CONTAINER ===== */
.app-container {
  width: 100%;
  background: var(--surface-color);
  min-height: 100dvh;
  position: relative
}

/* Header Dual System Global */
.header-mobile { display: flex; }
.header-glass { display: none; }
.mobile-side-menu { display: none; } /* Fallback default */

@media (min-width: 768px) {
  .header-mobile { display: none !important; }
  .header-glass { display: flex !important; }
}

/* ===== MOBILE HEADER STYLES (Migrated for global consistency) ===== */
.header-mobile {
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid #f3f4f6;
  height: 64px;
}
.icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #374151;
  cursor: pointer;
  padding: 4px;
}
.user-avatar-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.btn-masuk-header {
  background-color: var(--primary-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.mobile-side-menu {
  position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
  background: white; z-index: 1000; box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease; display: flex; flex-direction: column;
}
.mobile-side-menu.active { left: 0 !important; }
.menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #f3f4f6; }
.menu-links { list-style: none; padding: 20px; margin: 0; }
.menu-links li { margin-bottom: 16px; }
.menu-links a { text-decoration: none; font-size: 16px; color: #4b5563; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.menu-links i { color: #d32f2f; width: 20px; text-align: center; font-size: 18px; }

/* ===== HEADER GLASS ===== */
.header-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 64px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  justify-content: center; /* Center the inner container */
}

.header-glass-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  height: 100%;
}

.header-glass.scrolled {
  height: 54px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-logo-circle {
  width: 90px;
  height: 90px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: var(--content-padding);
  z-index: 300;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: all 0.3s ease
}

.header-glass.scrolled .navbar-logo-circle {
  width: 65px;
  height: 65px;
  top: 0
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 301
}

/* User Menu */
.user-menu {
  position: relative
}

.user-menu-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all .2s
}

.user-menu-btn:hover {
  border-color: var(--primary-light);
  background: #fef2f2
}

.user-menu-btn i:first-child {
  font-size: 18px;
  color: var(--primary-red)
}

.user-menu-name {
  display: none
}

.points-badge {
  background: var(--primary-gradient);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 3px
}

.points-badge i {
  font-size: 9px;
  color: #FFD700
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .2s;
  z-index: 400
}

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

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background .15s
}

.dropdown-menu a:hover {
  background: #f9fafb
}

.dropdown-menu a i {
  width: 16px;
  color: var(--text-secondary)
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: #8B1A1A;
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.25);
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.btn-primary:hover {
  background: #7B1515;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(139, 26, 26, 0.35)
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-red)
}

.btn-full {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  margin-top: 8px
}

/* ===== HERO BANNER ===== */
.hero-banner {
  height: 200px;
  background-image: url('https://www.kontraktorkubahmasjid.com/wp-content/uploads/2019/04/Masjid-Agung-Sumenep1.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(139, 26, 26, 0.7) 100%);
  z-index: 1
}

.hero-logo-right {
  position: absolute;
  right: 12px;
  top: 20px;
  width: 120px;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
}

/* ===== SEARCH ===== */
.search-section,
.search-wrapper {
  margin-top: -70px;
  /* naik ke perbatasan warna hero dan konten - diperkuat */
  position: relative;
  z-index: 10;
  /* di atas hero */
  padding: 0 24px;
}

.search-bar {
  background: white;
  border-radius: 999px;
  /* pill shape */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  max-width: 800px;
  margin: 0 auto;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2)
}

.search-bar i {
  padding: 0 12px 0 16px;
  color: var(--text-hint);
  flex-shrink: 0
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  min-width: 0
}

.search-bar button {
  background: #8B1A1A;
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  font-family: inherit;
  margin-left: 8px
}

.search-bar button:hover {
  background: #7B1515
}

/* ===== SECTIONS ===== */
.section-wrapper {
  padding: 12px var(--content-padding)
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary)
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-red)
}

/* ===== NEWS CARDS ===== */
.card-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}

.news-card {
  display: flex;
  flex-direction: row;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all .3s;
  cursor: pointer
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #fca5a5
}

.news-card img {
  width: 110px;
  min-width: 110px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0
}

.news-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.news-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap
}

/* ===== MEDIA PARTNER ===== */
.partner-section {
  background: white;
  padding: 48px var(--content-padding);
  border-top: 1px solid var(--border-color)
}

.partner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center
}

.partner-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2
}

.partner-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px
}

.partner-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  margin: 16px 0
}

@media (min-width:1024px) {
  .partner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px
  }

  .partner-text h2 {
    font-size: 40px
  }
}

/* ===== STATISTICS ===== */
.stat-container {
  background: linear-gradient(135deg, #8B1A1A 0%, #560e0e 100%);
  padding: 32px 16px;
  color: white;
  margin-top: 24px
}

.stat-container>h2 {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 24px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center
}

.stat-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12)
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center
}

.stat-suffix {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

/* ===== BOTTOM NAV ===== */
/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 14px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 100
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-hint);
  font-size: 10px;
  font-weight: 500;
  transition: all .2s;
  position: relative;
  padding: 0 12px
}

.nav-item i {
  font-size: 20px;
  transition: transform .2s
}

.nav-item:hover .nav-icon-circle {
  transform: translateY(-2px);
}

.nav-item.active {
  color: var(--primary-red)
}

.nav-item.active .nav-icon-circle {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Base styles for the actual circle container */
.nav-item-fab-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: -15px;
  width: 70px;
}

.nav-fab-btn {
  background-color: var(--primary-red);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.2);
  text-decoration: none;
  border: 4px solid white;
}

.fab-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary-red);
  margin-top: 4px;
}
.nav-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.nav-icon-circle i {
  color: inherit;
  font-size: 20px;
}

.nav-indicator {
  position: absolute;
  top: -10px;
  width: 28px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity .2s
}

.nav-item.active .nav-indicator {
  opacity: 1
}

/* ===== DESKTOP NAV ===== */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-left: auto;
  margin-right: 32px
}

.desktop-nav a {
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  transition: color .2s;
  padding-bottom: 2px
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #8B1A1A
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: white;
  padding: 28px var(--content-padding) 36px;
  text-align: center;
  border-bottom: 1px solid var(--border-color)
}

.page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px var(--content-padding);
  scrollbar-width: none
}

.category-filter::-webkit-scrollbar {
  display: none
}

.cat-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all .2s
}

.cat-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary-red)
}

.cat-chip.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-red)
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all .2s
}

.page-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-red)
}

.page-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-red)
}

/* ===== ARTICLE DETAIL ===== */
.article-hero {
  background: #f3f4f6
}

.article-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover
}

.article-header {
  padding: 20px var(--content-padding) 0;
  background: white
}

.article-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  background: #fef2f2;
  padding: 4px 12px;
  border-radius: var(--radius-full)
}

.article-title {
  font-size: 22px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-primary)
}

.article-meta-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color)
}

.meta-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px
}

.article-body {
  padding: 20px var(--content-padding);
  background: white;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary)
}

.article-body p {
  margin-bottom: 16px
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 16px 0
}

.article-body h2,
.article-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 20px 0 10px;
  color: var(--text-primary)
}

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px var(--content-padding);
  background: white;
  border-top: 1px solid var(--border-color)
}

.article-share span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary)
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: transform .2s
}

.share-btn:hover {
  transform: scale(1.1)
}

.share-btn.twitter {
  background: #1DA1F2
}

.share-btn.whatsapp {
  background: #25D366
}

.share-btn.facebook {
  background: #1877F2
}

/* ===== COMMENT SECTION ===== */
.comment-section {
  padding: 24px 0;
  background: white;
  border-top: 1px solid var(--border-color)
}

.comment-form {
  padding: 0 var(--content-padding) 20px
}

.comment-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.comment-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--text-hint);
  font-size: 36px;
  line-height: 1
}

.comment-input-wrap {
  flex: 1
}

.comment-input-wrap textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 70px;
  outline: none;
  transition: border-color .2s
}

.comment-input-wrap textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1)
}

.btn-comment {
  padding: 8px 18px;
  font-size: 13px;
  margin-top: 8px;
  border-radius: var(--radius-full)
}

.comment-hint {
  font-size: 11px;
  color: var(--text-hint);
  margin-top: 8px;
  padding-left: 48px
}

.comment-hint i {
  color: #f59e0b
}

.comment-login-prompt {
  padding: 16px var(--content-padding);
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  background: #f9fafb;
  border-radius: var(--radius-md);
  margin: 0 var(--content-padding) 16px
}

.comment-login-prompt a {
  color: var(--primary-red);
  font-weight: 600
}

.comment-list {
  padding: 0 var(--content-padding)
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6
}

.comment-item:last-child {
  border-bottom: none
}

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

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap
}

.comment-author strong {
  font-size: 13px;
  color: var(--text-primary)
}

.comment-time {
  font-size: 11px;
  color: var(--text-hint)
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary)
}

/* ===== AUTH PAGES ===== */
.auth-container {
  padding: 40px var(--content-padding);
  display: flex;
  justify-content: center
}

.auth-card {
  width: 100%;
  max-width: 420px
}

.auth-header {
  text-align: center;
  margin-bottom: 28px
}

.auth-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px
}

.auth-header p {
  font-size: 14px;
  color: var(--text-secondary)
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.input-icon-wrap {
  position: relative
}

.input-icon-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-hint);
  font-size: 14px
}

.input-icon-wrap .form-input {
  padding-left: 40px
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary)
}

.auth-footer a {
  color: var(--primary-red);
  font-weight: 600
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 16px
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px
}

.form-input,
.form-textarea {
  width: 100%;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all .2s
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-red);
  background: white;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1)
}

/* ===== PROFILE PAGE ===== */
.profile-avatar {
  font-size: 60px;
  color: var(--text-hint);
  margin-bottom: 12px
}

.loyalty-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center
}

.loyalty-icon {
  font-size: 32px;
  color: #FFD700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3)
}

.loyalty-info {
  text-align: center
}

.loyalty-points {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800
}

.loyalty-label {
  font-size: 12px;
  opacity: 0.9
}

.loyalty-stats {
  display: flex;
  gap: 20px;
  margin-left: auto
}

.loyalty-stat {
  text-align: center
}

.loyalty-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700
}

.loyalty-stat span {
  font-size: 11px;
  opacity: 0.8
}

.loyalty-hint {
  font-size: 12px;
  color: var(--text-hint);
  margin-top: 12px
}

.loyalty-hint i {
  color: var(--primary-red)
}

/* Comment History */
.comment-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.comment-history-item {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-color)
}

.comment-history-article {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px
}

.comment-history-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px
}

.comment-history-time {
  font-size: 11px;
  color: var(--text-hint)
}

/* Menu List */
.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.menu-item {
  background: white;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all .2s
}

.menu-item:hover {
  border-color: var(--primary-light)
}

.menu-item i:first-child {
  margin-right: 10px;
  color: var(--text-secondary)
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  animation: flashIn .3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-lg)
}

.flash-success {
  background: #10b981;
  color: white
}

.flash-error {
  background: #ef4444;
  color: white
}

.flash-close {
  margin-left: auto;
  opacity: 0.7;
  cursor: pointer
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
  }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-hint)
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block
}

.empty-state p {
  font-size: 14px
}

.empty-state.small {
  padding: 24px 16px
}

.empty-state.small i {
  font-size: 28px
}

/* ===== ERROR PAGE ===== */
.error-page {
  text-align: center;
  padding: 60px var(--content-padding)
}

.error-icon {
  font-size: 60px;
  color: var(--text-hint);
  margin-bottom: 16px
}

.error-page h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1
}

.error-page p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px
}

/* ===== SERVICE GRID ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: var(--content-padding);
  margin-top: -24px
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all .3s;
  cursor: pointer
}

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

.service-icon {
  width: 52px;
  height: 52px;
  background: #fef2f2;
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px
}

.service-card.green .service-icon {
  background: #f0fdf4;
  color: #16a34a
}

.service-card.blue .service-icon {
  background: #eff6ff;
  color: #2563eb
}

.service-card.orange .service-icon {
  background: #fff7ed;
  color: #ea580c
}

.service-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3
}

/* ===== COMPLAINT FORM ===== */
.complaint-section {
  padding: 16px var(--content-padding)
}

.complaint-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color)
}

/* ===== UMKM GRID ===== */
.umkm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: var(--content-padding);
  margin-top: -20px
}

.product-card {
  min-width: unset;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: white;
  transition: transform .2s, box-shadow .2s
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover
}

.product-info {
  padding: 10px;
  text-align: center
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.product-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-red);
  margin-top: 4px
}

/* ===== GRID 2 (LOKER & UMKM) ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 8px 0 20px
}

.block-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  display: flex;
  flex-direction: column
}

.block-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light)
}

.block-card .section-header {
  margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 10px
}

.job-item {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid transparent;
  transition: all .2s
}

.job-item:hover {
  background: white;
  border-color: var(--primary-light);
  transform: translateX(4px)
}

.job-item:last-child {
  margin-bottom: 0
}

.job-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
  color: var(--text-primary)
}

.job-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px
}

/* ===== LOWONGAN KERJA PAGE ===== */
.loker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px var(--content-padding)
}

.job-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden
}

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

.job-card.closed {
  opacity: 0.8;
  filter: grayscale(0.4)
}

.job-card.closed:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color)
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px
}

.badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.badge-green {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0
}

.badge-red {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca
}

.job-date {
  font-size: 12px;
  color: var(--text-secondary)
}

.job-card.closed .job-date {
  color: #ef4444
}

.job-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3
}

.job-card-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px
}

.job-card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--radius-md)
}

.job-detail-item {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px
}

.job-detail-item i {
  color: var(--text-hint);
  width: 16px;
  text-align: center
}

.job-detail-item.highlight {
  font-weight: 700;
  color: var(--text-primary)
}

.job-detail-item.highlight i {
  color: #10b981
}

.btn-job {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all .2s;
  border: none;
  font-family: inherit
}

.btn-job-active {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25)
}

.btn-job-active:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35)
}

.btn-job-disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed
}

.umkm-mini-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.umkm-mini-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: all .2s
}

.umkm-mini-item:hover {
  background: #f9fafb;
  transform: translateX(4px)
}

.umkm-mini-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm)
}

.umkm-mini-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px
}

.umkm-mini-price {
  font-size: 13px;
  color: var(--primary-red);
  font-weight: 700
}

/* ===== ADMIN STYLES ===== */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--content-padding);
  border-bottom: 1px solid var(--border-color);
  background: white
}

.admin-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px
}

.admin-header h1 i {
  color: var(--primary-red)
}

.admin-count {
  font-size: 13px;
  color: var(--text-hint);
  font-weight: 600
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px var(--content-padding)
}

.admin-stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .2s
}

.admin-stat-card:hover {
  box-shadow: var(--shadow-md)
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0
}

.admin-stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary)
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-secondary)
}

.admin-section {
  padding: 16px var(--content-padding)
}

.admin-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary)
}

/* Admin Nav Grid */
.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.admin-nav-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.admin-nav-item i {
  font-size: 24px;
  color: var(--primary-red)
}

.admin-nav-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary)
}

.admin-nav-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

/* Admin List */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all .2s
}

.admin-list-item:hover {
  border-color: var(--primary-light)
}

.admin-list-info {
  min-width: 0;
  flex: 1
}

.admin-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.admin-list-title a {
  color: var(--primary-red)
}

.admin-list-meta {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap
}

.admin-list-meta span {
  font-size: 11px;
  color: var(--text-hint);
  display: flex;
  align-items: center;
  gap: 4px
}

.admin-list-meta a {
  color: var(--primary-red)
}

.admin-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0
}

.btn-edit,
.btn-delete {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
  background: white
}

.btn-edit {
  color: #2563eb
}

.btn-edit:hover {
  background: #eff6ff;
  border-color: #2563eb
}

.btn-delete {
  color: #ef4444
}

.btn-delete:hover {
  background: #fef2f2;
  border-color: #ef4444
}

/* Quill Editor Override */
.ql-toolbar.ql-snow {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-color: var(--border-color)
}

.ql-container.ql-snow {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-color: var(--border-color);
  font-family: 'Inter', sans-serif;
  font-size: 15px
}

.ql-editor {
  min-height: 200px
}

/* ===== SPACER ===== */
.spacer-bottom {
  height: 60px
}

/* ===== FOOTER ===== */
.footer-section {
  background: #ffffff !important;
  color: #4b5563 !important;
  padding: 60px var(--content-padding) 120px;
  margin-top: 0;
  border-top: 1px solid #e5e7eb !important;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto
}

.footer-brand {
  margin-bottom: 40px
}

.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  text-decoration: none
}

.footer-logo-icon {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.footer-logo-main {
  height: 45px;
  width: auto;
  object-fit: contain
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 450px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}

.footer-col {
  border-bottom: 1px solid #f3f4f6
}

.footer-heading {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.footer-heading i {
  transition: transform 0.3s;
  font-size: 12px;
  color: #9ca3af
}

.footer-links {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0
}

.footer-links li {
  margin-bottom: 14px
}

.footer-links a {
  color: #6b7280;
  font-size: 14px;
  transition: all 0.2s;
  display: block
}

.footer-links a:hover {
  color: #111827;
  transform: translateX(5px)
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0
}

.footer-social a {
  color: #6b7280;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s
}

.footer-social a:hover {
  color: #111827
}

.footer-social i {
  font-size: 18px;
  width: 24px;
  color: #8B1A1A
}

/* Mobile Accordion Active State */
.footer-col.active .footer-links,
.footer-col.active .footer-social {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 20px;
  margin-top: 4px
}

.footer-col.active .footer-heading i {
  transform: rotate(180deg);
  color: #111827
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center
}

.footer-copyright {
  font-size: 13px;
  color: #9ca3af
}

.footer-policy-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center
}

.footer-policy-links a {
  font-size: 13px;
  color: #9ca3af;
  transition: color 0.2s
}

.footer-policy-links a:hover {
  color: #111827
}

@media (min-width:640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px
  }

  .footer-col {
    border-bottom: none;
    padding-bottom: 0
  }

  .footer-heading {
    cursor: default;
    margin-bottom: 24px;
    padding: 0;
    pointer-events: none
  }

  .footer-heading i {
    display: none
  }

  .footer-list-wrapper {
    display: block !important
  }

  .footer-links,
  .footer-social {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 0
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left
  }
}

@media (min-width:1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 60px
  }

  .footer-section {
    padding: 80px var(--content-padding) 40px
  }

  .footer-brand {
    margin-bottom: 60px
  }
}

/* ============================================= */
/* RESPONSIVE — TABLET (≥ 640px)                */
/* ============================================= */
@media (min-width:640px) {
  :root {
    --content-padding: 24px
  }

  body {
    padding-bottom: 80px
  }

  .hero-banner {
    padding: 48px 40px
  }

  .genai-logo {
    font-size: 56px
  }

  .section-title {
    font-size: 20px
  }

  .card-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
  }

  .news-card {
    flex-direction: column
  }

  .news-card img {
    width: 100%;
    min-width: unset;
    height: 160px
  }

  .news-title {
    font-size: 15px
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
  }

  .stat-item {
    padding: 32px 20px
  }

  .stat-container {
    padding: 60px var(--content-padding)
  }

  .stat-container>h2 {
    font-size: 28px;
    margin-bottom: 40px
  }

  .stat-number {
    font-size: 48px
  }

  .stat-suffix {
    font-size: 36px
  }

  .stat-label {
    font-size: 14px
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
  }

  .umkm-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px
  }

  .page-title {
    font-size: 26px
  }

  .loker-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav-item {
    font-size: 11px;
    padding: 0 16px
  }

  .nav-item i {
    font-size: 22px
  }

  .user-menu-name {
    display: inline
  }

  .admin-stats {
    grid-template-columns: repeat(4, 1fr)
  }

  .admin-nav-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .loyalty-card {
    flex-wrap: nowrap
  }
}

/* ============================================= */
/* RESPONSIVE — DESKTOP (≥ 1024px)              */
/* ============================================= */
@media (min-width:1024px) {
  :root {
    --content-padding: 40px
  }

  body {
    padding-bottom: 0
  }

  .hero-banner {
    padding: 80px 60px
  }

  .genai-logo {
    font-size: 72px
  }

  .card-stack {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
  }

  .news-card img {
    height: 180px
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
  }

  .umkm-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
  }

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

  .bottom-nav {
    display: none
  }

  .desktop-nav {
    display: flex !important
  }

  .hide-on-desktop {
    display: none !important;
  }

  .loker-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .header-glass {
    padding: 16px 40px
  }

  .article-header {
    padding: 28px 40px 0
  }

  .article-body {
    padding: 24px 40px;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto
  }

  .article-hero img {
    max-height: 480px;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-md)
  }

  .article-share {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 40px
  }

  .comment-section {
    max-width: 800px;
    margin: 0 auto
  }

  .complaint-section {
    max-width: 700px;
    margin: 0 auto
  }

  body {
    padding-bottom: 0
  }

  .spacer-bottom {
    height: 100px
  }

  .navbar-logo-circle {
    width: 130px;
    height: 130px
  }

  .hero-logo-right {
    width: 160px;
    right: 32px;
    top: 24px
  }
}

@media (min-width:1280px) {
  .card-stack {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media (min-width:1600px) {
  :root {
    --content-padding: 60px
  }

  .card-stack {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px
  }

  .service-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px
  }

  .umkm-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px
  }

  .hero-banner {
    padding: 100px 100px
  }

  .genai-logo {
    font-size: 84px
  }
}

@media (min-width:2000px) {
  :root {
    --content-padding: 100px
  }

  .card-stack {
    grid-template-columns: repeat(6, 1fr);
    gap: 30px
  }
}
/* Custom Row Style for Service Card */
.service-grid-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.service-card-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px var(--shadow-color);
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
  gap: 15px;
}
.service-card-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--shadow-color);
}
.service-card-row.red { border-left-color: #ef4444; }
.service-card-row.blue { border-left-color: #3b82f6; }
.service-card-row.green { border-left-color: #10b981; }
.service-card-row.orange { border-left-color: #f97316; }

.service-row-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.service-row-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-row-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.service-row-caption {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Override dan Tambahan Desktop untuk Service Card Row */
.service-card-row {
  text-decoration: none !important;
  position: relative;
  z-index: 10;
  display: flex;
}

@media (min-width: 768px) {
  .service-card-row {
    padding: 25px;
    gap: 25px;
  }
  .service-row-img {
    width: 140px;
    height: 140px;
  }
  .service-row-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .service-row-caption {
    font-size: 17px;
  }
}

/* Margin Left Revisi */
.service-card-row {
  margin-left: 15px;
  margin-right: 15px; /* Added right for balance */
}
@media (min-width: 768px) {
  .service-card-row {
    margin-left: 30px;
    margin-right: 30px;
  }
}

/* Clean Premium Card Styles */
.service-card-row.card-1,
.service-card-row.card-2,
.service-card-row.card-3,
.service-card-row.card-4 {
  border-left-color: var(--primary-color) !important;
}

.service-icon-styled {
  color: var(--primary-color) !important;
}

@media (max-width: 1023px) {
  .hide-on-mobile {
    display: none !important;
  }
}
