/* ============================================================
   PREMIUM GLASSMORPHIC DESIGN SYSTEM
   Modern, fluid, and dynamic UI with micro-animations.
   ============================================================ */

/* ─── CSS Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glow */
body::before {
  content: '';
  position: fixed;
  top: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.1) 0%, transparent 60%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--font-body));
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a:hover { color: var(--hover-color); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Glassmorphic Floating Header ─── */
.header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 1000;
  background: rgba(var(--header-footer-bg-rgb, 10, 10, 10), 0.65);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; gap: 1rem;
}

.logo {
  display: flex; align-items: center; gap: 0.875rem;
  flex-shrink: 0; text-decoration: none;
}
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  font-weight: 800; font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover .logo-icon { transform: scale(1.1) rotate(-5deg); box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.6); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: var(--text-primary); letter-spacing: -0.03em; }
.logo-tagline { font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.02em; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
  padding: 0.5rem 1.25rem; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary); transition: all 0.3s ease;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }

/* Search Form */
.search-form {
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; overflow: hidden; transition: all 0.3s ease;
}
.search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
  background: rgba(0, 0, 0, 0.4);
}
.search-input {
  background: none; border: none; color: var(--text-primary);
  padding: 0.6rem 1rem; font-size: 0.9rem; width: 200px; outline: none;
}
.search-input::placeholder { color: var(--text-secondary); }
.search-btn {
  background: none; border: none; color: var(--text-secondary);
  padding: 0.6rem 1rem; cursor: pointer; transition: color 0.3s ease;
}
.search-btn:hover { color: var(--primary); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Bento Grid Hero (Home) ─── */
.main-wrapper {
  padding-top: 7rem; /* Account for floating header */
  max-width: 1280px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem;
}

.bento-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
  min-height: 500px;
}
.bento-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(var(--primary-rgb), 0.5);
  z-index: 10;
}
.bento-hero-main { grid-column: 1 / 2; grid-row: 1 / 3; }
.bento-hero-sub1 { grid-column: 2 / 3; grid-row: 1 / 2; }
.bento-hero-sub2 { grid-column: 2 / 3; grid-row: 2 / 3; }

.bento-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.bento-item:hover .bento-img { transform: scale(1.05); }

.bento-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1; pointer-events: none;
}

.bento-content {
  position: relative; z-index: 2; padding: 2.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.bento-hero-sub1 .bento-content, .bento-hero-sub2 .bento-content { padding: 1.5rem; }

.badge {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff; width: fit-content; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge.premium {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: none;
}

.bento-title {
  font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bento-hero-sub1 .bento-title, .bento-hero-sub2 .bento-title { font-size: 1.35rem; -webkit-line-clamp: 2; }
.bento-meta { display: flex; align-items: center; gap: 1rem; color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; }

/* ─── Premium Cards Grid ─── */
.section-title {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 1.75rem; font-weight: 800; margin: 3rem 0 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.section-title svg { color: var(--primary); }

.premium-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem; margin-bottom: 4rem;
}

.glass-card {
  background: rgba(var(--card-bg-rgb, 30,30,30), 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex; flex-direction: column;
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--card-bg-rgb, 30,30,30), 0.6);
}
.card-img-wrap {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.glass-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-tag {
  font-size: 0.75rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.card-title {
  font-size: 1.25rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 0.75rem; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-excerpt {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 1.5rem; flex-grow: 1;
}
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem; color: var(--text-secondary);
}

/* ─── Cinematic Article View ─── */
.cinematic-header {
  position: relative; width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
  height: 75vh; min-height: 500px; max-height: 800px;
  display: flex; align-items: flex-end;
  margin-top: -7rem; /* Pull up behind the floating header */
  margin-bottom: 3rem;
}
.cinematic-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.cinematic-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, var(--dark-bg) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.cinematic-content {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem;
  width: 100%; text-align: center;
}
.cinematic-title {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.03em;
}
.cinematic-meta {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.95rem; color: rgba(255,255,255,0.8);
}
.cinematic-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

.article-container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.article-body {
  font-size: 1.15rem; line-height: 1.85; color: var(--text-primary);
}
.article-body p { margin-bottom: 1.5rem; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.article-body h2 { font-size: 1.75rem; margin: 2.5rem 0 1rem; color: #fff; }
.article-body h3 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: #fff; }
.article-body img {
  border-radius: 16px; margin: 2rem 0; width: 100%; height: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.article-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), 0.4); text-underline-offset: 4px; }
.article-body a:hover { color: var(--hover-color); text-decoration-color: var(--hover-color); }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; color: rgba(255, 255, 255, 0.85); }

/* Video Embeds */
.video-section { margin: 3rem 0; }
.video-embed-figure {
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
  background: #000; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-embed-figure figcaption {
  padding: 1rem; text-align: center; font-size: 0.9rem; color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

/* Share & Tags Section */
.article-actions {
  display: flex; flex-direction: column; gap: 2rem;
  margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.tags-container { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.tag-pill {
  padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  background: rgba(var(--primary-rgb), 0.1); color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.2); transition: all 0.2s ease;
}
.tag-pill:hover { background: var(--primary); color: #fff; }

/* ─── Static Pages ─── */
.static-container { max-width: 800px; margin: 4rem auto 6rem; padding: 0 1.5rem; }
.static-title { font-size: 3rem; font-weight: 900; margin-bottom: 2rem; text-align: center; }
.static-card {
  background: rgba(var(--card-bg-rgb, 30,30,30), 0.5);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 3rem; box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}
.static-body { font-size: 1.1rem; line-height: 1.8; color: var(--text-primary); }
.static-body p { margin-bottom: 1.25rem; }
.static-body h2 { font-size: 1.5rem; margin: 2rem 0 1rem; color: #fff; }
.static-body ul { margin-left: 1.5rem; margin-bottom: 1.25rem; }

/* ─── Pagination ─── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 3rem 0;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 0.5rem; border-radius: 12px;
  font-weight: 600; color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.page-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.page-btn.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff; border: none; box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

/* ─── Footer ─── */
.footer {
  background: rgba(var(--header-footer-bg-rgb, 10,10,10), 0.8);
  backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem; margin-top: auto;
}
.footer-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-brand .logo-icon { margin-bottom: 1rem; }
.footer-desc { color: var(--text-secondary); max-width: 320px; font-size: 0.95rem; }
.footer-links h4, .footer-info h4 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.footer-links a { display: block; color: var(--text-secondary); padding: 0.35rem 0; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom {
  max-width: 1280px; margin: 3rem auto 0; padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05); text-align: center; color: var(--text-secondary); font-size: 0.85rem;
}

/* ─── Responsive ─── */
@media(max-width: 1024px) {
  .bento-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .bento-hero-main { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16/9; }
  .bento-hero-sub1 { grid-column: 1; grid-row: 2; aspect-ratio: 16/9; }
  .bento-hero-sub2 { grid-column: 2; grid-row: 2; aspect-ratio: 16/9; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 768px) {
  .header { width: 100%; top: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; }
  .main-wrapper { padding-top: 6rem; }
  .cinematic-header { margin-top: -6rem; height: 60vh; }
  .cinematic-title { font-size: 2.25rem; }
  
  .bento-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .bento-hero-main { grid-column: 1; grid-row: 1; }
  .bento-hero-sub1 { grid-column: 1; grid-row: 2; aspect-ratio: 16/9; }
  .bento-hero-sub2 { grid-column: 1; grid-row: 3; aspect-ratio: 16/9; }

  .search-form { display: none; }
  .menu-toggle { display: flex; }
  
  .nav-menu {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(var(--header-footer-bg-rgb, 20,20,20), 0.95);
    backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem; gap: 1rem;
  }
  .nav-menu.active { display: flex; }
  .nav-link { width: 100%; text-align: center; font-size: 1.1rem; padding: 1rem; }
  
  .premium-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-desc { margin: 0 auto; }
}

/* ─── Animations ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Utility */
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   PER-SITE LAYOUT VARIANTS  (dipilih acak oleh `site:regen` → body class
   + CSS vars dari [layout]). Diletakkan di akhir agar meng-override base.
   ═══════════════════════════════════════════════════════════════════ */

/* — Fonts (semua viewport) — */
body { font-family: var(--font-body); }
h1,h2,h3,h4,h5,h6,
.bento-title,.cinematic-title,.section-title,.card-title,
.logo-name,.footer-links h4,.footer-info h4 { font-family: var(--font-heading); }

/* — Radius scale (var --radius-base) — */
.bento-item,.glass-card,.card-img-wrap,.page-btn,
.badge,.static-card,.video-embed-figure,
.tag-pill { border-radius: var(--radius-base); }
.logo-icon { border-radius: calc(var(--radius-base) + 4px); }

/* — Density scale (var --space-scale) pada gap/padding kunci — */
.premium-grid { gap: calc(2rem * var(--space-scale)); }
.card-body { padding: calc(1.5rem * var(--space-scale)); }
.bento-content { padding: calc(2.5rem * var(--space-scale)); }

/* — Card styles (semua viewport) — */
/* overlay: judul di atas gambar dengan gradient */
.card-overlay .glass-card { position: relative; }
.card-overlay .card-img-wrap { aspect-ratio: 16/10; }
.card-overlay .card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.88));
  color: #fff;
}
.card-overlay .card-title { color: #fff; }
.card-overlay .card-footer,.card-overlay .card-date { color: rgba(255,255,255,0.85); }
.card-overlay .card-excerpt { color: rgba(255,255,255,0.9); -webkit-line-clamp: 1; margin-bottom: 0.4rem; }
.card-overlay .card-tag { color: rgba(255,255,255,0.95); }

/* side: gambar kiri, teks kanan */
.card-side .glass-card { flex-direction: row; }
.card-side .card-img-wrap { aspect-ratio: auto; width: 42%; min-height: 120px; flex-shrink: 0; }
.card-side .card-img-wrap img { height: 100%; }

/* minimal: teks-first dengan aksen — gambar kecil di kiri */
.card-minimal .glass-card { flex-direction: row; border-left: 3px solid var(--primary); }
.card-minimal .card-img-wrap { aspect-ratio: auto; width: 34%; min-height: 110px; flex-shrink: 0; }
.card-minimal .card-img-wrap img { height: 100%; }
.card-minimal .card-body { padding: 1rem 1.2rem; }

/* — Header styles — */
.header-center .nav-container { flex-direction: column; gap: 0.6rem; text-align: center; }
.header-center .nav-menu { justify-content: center; }
.header-split .nav-menu { margin-left: auto; margin-right: auto; }

/* — Struktur multi-kolom: HANYA desktop (≥769px).
     Mobile (<769px) tetap pakai aturan responsif bawaan (1 kolom). — */
@media (min-width: 769px) {
  /* Jumlah kolom grid homepage — dinamis dari CSS var --cols */
  .premium-grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }

  /* HOME: list — 1 kolom (kartu jadi baris penuh) */
  .home-list .premium-grid { grid-template-columns: 1fr; }

  /* HOME: compact — kolom lebih banyak & padat */
  .home-compact .premium-grid {
    grid-template-columns: repeat(calc(var(--cols) + 1), minmax(0, 1fr));
    gap: 0.65rem;
  }
  .home-compact .card-title { font-size: 0.92rem; }

  /* HOME: magazine — kartu pertama jadi sorotan (span 2x2) */
  .home-magazine .premium-grid { grid-auto-flow: dense; }
  .home-magazine .premium-grid .glass-card:first-child { grid-column: span 2; grid-row: span 2; }

  /* HOME: grid (default) — no overrides needed */
}

/* TABLET (769–1024px): batasi grid homepage maks 2 kolom apa pun cols-N /
   home-compact. Mencegah kartu jadi terlalu sempit (cols-3/4) dan kartu
   horizontal side/minimal terhimpit di rentang ini. */
@media (min-width: 769px) and (max-width: 1024px) {
  .premium-grid,
  .home-compact .premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Kartu horizontal (side/minimal) & varian list: 1 kolom penuh di tablet
     supaya gambar + teks tidak terhimpit jadi sempit. */
  .card-side .premium-grid,
  .card-minimal .premium-grid,
  .home-list .premium-grid { grid-template-columns: 1fr; }
}

/* Mobile override — header-center harus kembali ke row di mobile */
@media (max-width: 768px) {
  .header-center .nav-container { flex-direction: row; text-align: left; }

  /* side/minimal cards: single column on mobile */
  .card-side .glass-card,
  .card-minimal .glass-card { flex-direction: column; }
  .card-side .card-img-wrap,
  .card-minimal .card-img-wrap { width: 100%; aspect-ratio: 16/10; min-height: auto; }
}

