/* ============================================================
   BACAKILAT.COM — GLOBAL STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #eff6ff;
  --secondary:      #10b981;
  --secondary-dark: #059669;
  --accent:         #f59e0b;
  --danger:         #ef4444;

  /* Neutral */
  --text:         #0f172a;
  --text-mid:     #334155;
  --text-light:   #64748b;
  --text-xlight:  #94a3b8;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-md: 0 8px 32px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.15), 0 8px 24px rgba(15,23,42,.08);

  /* Layout */
  --max-width: 1160px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header height */
  --header-h: 68px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
h4 { font-size: 1rem;    font-weight: 600; }

p { color: var(--text-mid); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-mid);
}

strong { color: var(--text); font-weight: 700; }
em { font-style: italic; }

blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 28px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-outline, .btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.42);
}

.btn-secondary {
  background: rgba(37,99,235,.08);
  color: var(--primary);
  border: 2px solid rgba(37,99,235,.2);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.btn-large:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37,99,235,.45);
}

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(15,23,42,.06);
  transition: box-shadow var(--transition);
}

#main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 3px 12px rgba(37,99,235,.3);
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-menu-toggle:hover { background: var(--bg-alt); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f7ff 0%, #ffffff 50%, #f0fdf4 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(124,58,237,.1));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  animation: fadeInDown 0.5s ease;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease 0.4s both;
  width: fit-content;
}

.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.latest-articles {
  padding: 80px 0;
  background: var(--bg);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.2);
}
.article-card:hover::before { transform: scaleX(1); }

.card-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-card h3 a {
  color: var(--text);
  transition: color var(--transition);
}
.article-card h3 a:hover { color: var(--primary); }

.article-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-xlight);
}

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

/* ============================================================
   PARTNER SECTION
   ============================================================ */
.partner-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}

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

.partner-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}

.partner-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.partner-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  transition: gap var(--transition);
}
.partner-link:hover { gap: 10px; }

.partner-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
}

.partner-cta {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.partner-cta p { margin-bottom: 16px; font-size: 1rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter .container { position: relative; z-index: 1; }

.newsletter h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.newsletter p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 32px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.newsletter-form .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.newsletter-form .btn-primary:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

.footer-col p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-icon { font-size: 1.6rem; }
.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: #64748b;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #f1f5f9; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}
.footer-partner a {
  color: #60a5fa;
  font-weight: 600;
}
.footer-partner a:hover { color: #93c5fd; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-mid); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page { padding: 40px 0 80px; }

.article-full {
  max-width: 780px;
  margin: 0 auto;
}

.article-header { margin-bottom: 28px; }

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.article-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.article-featured-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.image-caption {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 8px;
  background: var(--bg-alt);
  font-style: italic;
}

/* Article body typography */
.article-body h2 {
  font-size: 1.5rem;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}
.article-body h3 { font-size: 1.15rem; margin: 24px 0 10px; }

.article-body p { font-size: 0.97rem; line-height: 1.8; color: var(--text-mid); }

.article-body ul, .article-body ol {
  margin: 16px 0 20px 20px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li {
  font-size: 0.97rem;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.7;
}

.feature-list { list-style: none !important; margin-left: 0 !important; }
.feature-list li {
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  margin-bottom: 10px !important;
}

.step-list { list-style: none !important; margin-left: 0 !important; counter-reset: step; }
.step-list li {
  counter-increment: step;
  padding: 12px 16px 12px 52px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 10px !important;
  position: relative;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table of contents */
.table-of-contents {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0;
}
.table-of-contents h3 { margin-bottom: 14px; font-size: 1rem; }
.table-of-contents ol { list-style: decimal; margin-left: 20px; margin-bottom: 0; }
.table-of-contents li { font-size: 0.9rem; margin-bottom: 6px; }
.table-of-contents a { color: var(--primary); font-weight: 500; }

/* Highlight / CTA boxes */
.highlight-box {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  border: 1px solid var(--border);
}
.partner-highlight {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: rgba(37,99,235,.2);
  position: relative;
}
.highlight-badge {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 12px;
}

.cta-box {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary-light), #f5f3ff);
  border: 2px solid rgba(37,99,235,.2);
  border-radius: var(--radius-xl);
  margin: 32px 0;
}
.cta-box p { margin-bottom: 16px; font-size: 0.95rem; }
.cta-note {
  margin-top: 10px !important;
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
}

.info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box h3 { color: var(--secondary-dark); margin-bottom: 10px; font-size: 1rem; }

/* Testimonial */
.testimonial-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.testimonial-box cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  font-style: normal;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}
.comparison-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-mid);
}
.comparison-table tr:nth-child(even) td { background: var(--bg-alt); }
.comparison-table tr:hover td { background: var(--primary-light); }
.comparison-table .excellent { color: var(--secondary-dark); font-weight: 700; }

/* Share buttons */
.share-section {
  margin: 48px 0 40px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
}
.share-section h3 { margin-bottom: 16px; font-size: 1rem; }
.share-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all var(--transition);
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0a66c2; }

/* Related articles */
.related-articles { margin-top: 40px; }
.related-articles h3 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.related-card {
  display: block;
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.related-card:hover {
  background: var(--primary-light);
  border-color: rgba(37,99,235,.2);
  transform: translateY(-3px);
}
.related-card h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.related-card span { font-size: 0.78rem; color: var(--text-light); }

/* Inline link */
.inline-link {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(37,99,235,.3);
  transition: border-color var(--transition);
}
.inline-link:hover { border-color: var(--primary); }

/* ============================================================
   ARTICLE LIST PAGE
   ============================================================ */
.articles-page { padding: 56px 0 80px; }
.page-title-section { margin-bottom: 48px; }
.page-title-section h1 { margin-bottom: 10px; }
.page-title-section p { font-size: 1.05rem; }

.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 7px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.article-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ============================================================
   RECOMMENDATION PAGE
   ============================================================ */
.recommendation-page { padding: 48px 0 80px; }

.page-header {
  margin-bottom: 48px;
}
.page-header h1 { margin-bottom: 16px; }
.update-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--secondary-dark);
  font-weight: 600;
  margin-top: 8px;
}

/* Featured recommendation */
.featured-recommendation {
  position: relative;
  margin-bottom: 56px;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 999px 999px 0 0;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
}

.featured-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 2px solid rgba(37,99,235,.25);
  border-radius: 0 var(--radius-xl) var(--radius-xl) var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.featured-card h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: var(--text);
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; }
.rating-text { color: var(--text-light); font-size: 0.85rem; }

.platform-desc { font-size: 1rem; line-height: 1.75; margin-bottom: 24px; }

.key-features { margin-bottom: 24px; }
.key-features h3 { font-size: 1rem; margin-bottom: 12px; }
.key-features ul { display: flex; flex-direction: column; gap: 8px; }
.key-features li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 10px 14px;
  background: rgba(255,255,255,.7);
  border-radius: var(--radius);
  border-left: 3px solid var(--secondary);
}

.platform-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
.platform-stats .stat { text-align: center; }
.platform-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.platform-stats .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-buttons { text-align: center; margin-bottom: 28px; }
.link-note {
  margin-top: 8px !important;
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
}

.additional-info {
  padding: 20px 24px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37,99,235,.12);
}
.additional-info h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--text); }
.additional-info ul { display: flex; flex-direction: column; gap: 7px; }
.additional-info li {
  font-size: 0.875rem;
  color: var(--text-mid);
}

/* Other recommendations grid */
.other-recommendations { margin-bottom: 48px; }
.other-recommendations h2 { margin-bottom: 24px; }

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.rec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(37,99,235,.2);
}
.rec-card h3 { font-size: 1rem; margin-bottom: 8px; }
.rec-card p { font-size: 0.875rem; margin-bottom: 16px; }

.disclaimer-section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.disclaimer-section h3 { font-size: 1rem; margin-bottom: 12px; }
.disclaimer-section p { font-size: 0.84rem; color: var(--text-light); }

/* ============================================================
   STATIC PAGES (Tentang, Kontak, Privasi)
   ============================================================ */
.static-page { padding: 60px 0 80px; }
.static-page .content-wrapper { max-width: 760px; margin: 0 auto; }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
}

.team-values { margin: 48px 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.value-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon { font-size: 2rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.875rem; margin: 0; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-info-card h3 { margin-bottom: 20px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--text); margin: 0; }
.contact-item a { color: var(--primary); font-weight: 500; }

/* Privacy page */
.privacy-content h2 { margin-top: 40px; font-size: 1.3rem; }
.privacy-content p, .privacy-content li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.privacy-content ul { list-style: disc; margin: 12px 0 16px 20px; }
.privacy-content li { margin-bottom: 6px; }
.privacy-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* ============================================================
   HERO MINI (sub-page hero)
   ============================================================ */
.hero-mini {
  padding: 52px 0 44px;
  background: linear-gradient(160deg, #f0f7ff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 48px;
}
.hero-mini h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.hero-mini p { font-size: 1.05rem; max-width: 600px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.animate-pulse { animation: pulse 2.5s ease-in-out infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  #main-nav ul { display: none; flex-direction: column; gap: 0; }
  #main-nav.mobile-open ul {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .mobile-menu-toggle { display: block; }
  .hero { padding: 56px 0 40px; }
  .hero-stats { gap: 24px; padding: 20px 24px; }
  .hero-cta { gap: 10px; }
  .partner-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .platform-stats { gap: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .article-featured-image img { height: 220px; }
}
