/* ============================================================
   Balipoker333 - Main Stylesheet
   Elegant Brown Theme | Dark & Light Mode
   ============================================================ */

/* ---- Google Fonts already loaded in header ---- */

/* ============================================================
   1. CSS Variables
   ============================================================ */
:root {
  /* Brown Palette */
  --brown-50:  #fdf6f0;
  --brown-100: #f5e6d3;
  --brown-200: #e8c9a0;
  --brown-300: #d4a06a;
  --brown-400: #c07d3f;
  --brown-500: #a86227;
  --brown-600: #8b4e1e;
  --brown-700: #6e3a14;
  --brown-800: #4d280d;
  --brown-900: #2e1608;

  --gold:      #d4a017;
  --gold-light:#f0c040;

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-body:    'Lato', sans-serif;

  /* Sizing */
  --radius:     8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.15);
  --shadow-md: 0 6px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.35);

  --max-w: 1200px;
  --header-h: 72px;

  --transition: .25s ease;
}

/* ---- Dark Theme (default) ---- */
[data-theme="dark"] {
  --bg:        #1a0e06;
  --bg-2:      #241509;
  --bg-card:   #2e1c0c;
  --bg-card-h: #3a2410;
  --border:    rgba(212,160,23,.18);
  --text:      #e8d5b8;
  --text-muted:#a08060;
  --text-head: #f5e6d3;
  --link:      var(--brown-300);
  --link-h:    var(--gold-light);
  --header-bg: rgba(26,14,6,.92);
  --footer-bg: #130b04;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg:        #fdf6f0;
  --bg-2:      #f5e6d3;
  --bg-card:   #fff;
  --bg-card-h: #fff8f0;
  --border:    rgba(139,78,30,.18);
  --text:      #3a2010;
  --text-muted:#7a5030;
  --text-head: #2e1608;
  --link:      var(--brown-600);
  --link-h:    var(--brown-800);
  --header-bg: rgba(253,246,240,.95);
  --footer-bg: #2e1608;
}

/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--link-h); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-head);
  line-height: 1.3;
  font-weight: 700;
}

ul { list-style: none; }

/* ============================================================
   3. Layout Utilities
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.mt-1  { margin-top:  .5rem; }
.mt-2  { margin-top:  1rem;  }
.mt-3  { margin-top:  2rem;  }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-main {
  background: linear-gradient(135deg, var(--gold) 0%, var(--brown-500) 100%);
  color: #fff;
  letter-spacing: .05em;
  box-shadow: 0 4px 16px rgba(212,160,23,.35);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: .85rem;
}
.btn-main:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--brown-400) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(212,160,23,.5);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brown-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brown-500);
  color: #fff;
  transform: translateY(-1px);
}

.btn-danger {
  background: #8b1a1a;
  color: #fff;
}
.btn-danger:hover { background: #a02020; color: #fff; }

.btn-sm { padding: .35rem .85rem; font-size: .82rem; }

/* ============================================================
   5. Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Push header actions ke kanan */
.header-actions {
  margin-left: auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: .04em;
}
.logo-badge {
  background: linear-gradient(135deg, var(--gold), var(--brown-500));
  color: #fff;
  font-size: .7rem;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: .1em;
}

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: .25rem;
}
.main-nav a {
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  padding: .45rem .8rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: .03em;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(212,160,23,.1);
}
/* Tombol MAIN SEKARANG di dalam nav - desktop hidden, mobile visible */
.nav-main-btn { display: none; }
.nav-main-btn a {
  display: block;
  margin: .75rem 1.5rem;
  padding: .75rem 1rem !important;
  background: linear-gradient(135deg, var(--gold) 0%, var(--brown-500) 100%);
  color: #fff !important;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(212,160,23,.35);
}
.nav-main-btn a:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--brown-400) 100%) !important;
  color: #fff !important;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: auto; /* ← tambahkan ini */
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .3rem .7rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: border-color var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   6. Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26,14,6,.9) 0%, rgba(46,22,8,.7) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 80px 0;
}

[data-theme="light"] .hero {
  background:
    linear-gradient(135deg, rgba(139,78,30,.85) 0%, rgba(93,50,15,.7) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,23,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(212,160,23,.2);
  border: 1px solid rgba(212,160,23,.4);
  color: var(--gold-light);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   7. Section Titles
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: .5rem;
}
.section-title .underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brown-400));
  margin: .75rem auto 1rem;
  border-radius: 3px;
}
.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   8. Cards
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  background: var(--bg-card-h);
  border-color: rgba(212,160,23,.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }

.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--gold), var(--brown-500));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.card-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  line-height: 1.4;
}
.card h3 a { color: var(--text-head); }
.card h3 a:hover { color: var(--gold); }

.card p {
  font-size: .9rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-footer a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
}
.card-footer a:hover { color: var(--gold-light); }

/* ============================================================
   9. Section Wrappers
   ============================================================ */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-2);
}

.view-all-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   10. Post / Article Page
   ============================================================ */
.post-header {
  padding: 60px 0 40px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.post-header .breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.post-header .breadcrumb a { color: var(--text-muted); }
.post-header .breadcrumb a:hover { color: var(--gold); }
.post-header .breadcrumb span { margin: 0 .4rem; }

.post-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  max-width: 800px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.post-meta strong { color: var(--text); }

.post-featured-image {
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 48px 0 80px;
}

.post-content {
  min-width: 0;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.85;
}
.article-body h2 {
  font-size: 1.55rem;
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 .5rem;
}
.article-body p  { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; }
.article-body img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  background: rgba(212,160,23,.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: .6rem 1rem;
  text-align: left;
}
.article-body th {
  background: var(--bg-2);
  font-family: var(--font-display);
}

/* Share box */
.share-box {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.share-box h4 {
  font-size: .95rem;
  margin-bottom: .75rem;
}
.share-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.share-links a {
  padding: .4rem .9rem;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  transition: all var(--transition);
}
.share-fb  { background: #1877f2; color: #fff; }
.share-tw  { background: #1da1f2; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-links a:hover { opacity: .85; color: #fff; transform: translateY(-2px); }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.sidebar-widget ul li {
  border-bottom: 1px solid var(--border);
  padding: .55rem 0;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar-widget ul li a::before {
  content: '›';
  color: var(--gold);
  font-size: 1.1rem;
}
.sidebar-widget ul li a:hover { color: var(--gold); }

/* ============================================================
   11. Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-2);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.gallery-item:hover { border-color: var(--gold); transform: scale(1.02); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,14,6,.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay p {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: .7;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   12. Breadcrumb & Listing
   ============================================================ */
.page-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  margin-bottom: .4rem;
}
.page-hero p {
  color: var(--text-muted);
}

/* ============================================================
   13. Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0 1rem;
}
.pagination ul {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
}
.pagination li a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,160,23,.08);
}
.pagination li.active a {
  background: linear-gradient(135deg, var(--gold), var(--brown-500));
  border-color: transparent;
  color: #fff;
}
.pagination li.dots span {
  border-color: transparent;
  background: none;
}

/* ============================================================
   14. Alert Messages
   ============================================================ */
.alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .92rem;
  font-weight: 600;
}
.alert-success { background: #0d3320; border: 1px solid #1a6640; color: #5af090; }
.alert-error   { background: #330d0d; border: 1px solid #661a1a; color: #f07070; }
.alert-info    { background: #0d1f33; border: 1px solid #1a4066; color: #70b0f0; }

[data-theme="light"] .alert-success { background: #d1f7e2; border-color: #4caf80; color: #1a6640; }
[data-theme="light"] .alert-error   { background: #fde4e4; border-color: #c05050; color: #801010; }
[data-theme="light"] .alert-info    { background: #ddeeff; border-color: #4090d0; color: #103060; }

/* ============================================================
   15. Footer
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: .75rem;
  max-width: 280px;
}
.footer-links h4 {
  font-size: .95rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.footer-links ul li {
  margin-bottom: .5rem;
}
.footer-links ul li a {
  font-size: .88rem;
  color: var(--text-muted);
}
.footer-links ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p {
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-bottom .disclaimer {
  margin-top: .3rem;
  font-size: .76rem;
  opacity: .6;
}

/* ============================================================
   16. Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--brown-500));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   17. Stats Strip
   ============================================================ */
.stats-strip {
  background: linear-gradient(135deg, var(--brown-800), var(--brown-700));
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: .2rem;
}
.stat-item p {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}

/* ============================================================
   18. CTA Section
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--brown-800) 0%, var(--brown-700) 50%, var(--brown-800) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,23,.12) 0%, transparent 70%);
}
.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: .75rem;
  position: relative;
}
.cta-section p {
  color: rgba(255,255,255,.75);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

/* ============================================================
   19. No Content
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.logo img{
    height:90px;
    width:auto;
}

/* ============================================================
   20. Responsive
   ============================================================ */
@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Nav mobile - dropdown dari atas */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a:last-child { border-bottom: none; }
  .nav-main-btn { display: block; }
  .header-actions .btn-main { display: none; }
  /* Header inner */
  .header-inner {
    gap: .75rem;
  }

  /* Sembunyikan tombol MAIN SEKARANG di header mobile */
  .header-actions .btn-main {
    display: none;
  }

  /* Hamburger tampil */
  .hamburger { display: flex; }

  /* Theme toggle lebih kecil */
  .theme-toggle {
    padding: .25rem .5rem;
    font-size: .9rem;
  }

  /* Logo lebih kecil */
  .logo-text { font-size: 1.15rem; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Hero */
  .hero { min-height: 380px; padding: 60px 0; }

  /* Post layout */
  .post-layout {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Admin form */
  .adm-form-grid { grid-template-columns: 1fr; }
  .adm-sidebar { transform: translateX(-100%); }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-main { margin-left: 0; }
  .adm-content { padding: 1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero h1 { font-size: 1.6rem; }
  .section-title h2 { font-size: 1.5rem; }

  /* Card gambar lebih pendek di mobile */
  .card-image { aspect-ratio: 16/10; }

  /* Pagination lebih kecil */
  .pagination li a,
  .pagination li span {
    min-width: 34px;
    height: 34px;
    font-size: .8rem;
  }

  /* Share box */
  .share-links { flex-direction: column; }
  .share-links a { text-align: center; }
}

.logo img{
    height:90px;
    width:auto;
}
