/*
Theme Name: KamuHarusTahu
Theme URI: https://kamuharustahu.com
Author: KamuHarusTahu
Description: Modern, futuristic, responsive blog theme with elegant bright design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kamuharustahu
Tags: blog, custom-logo, featured-images, responsive-layout, one-column, two-columns
*/

/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #4F46E5;
  --color-primary-dark: #3730A3;
  --color-secondary: #7C3AED;
  --color-accent: #06B6D4;
  --color-accent-light: #E0F7FA;
  --color-bg: #FAFBFF;
  --color-bg-card: #FFFFFF;
  --color-text: #1E1B4B;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
  --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 50%, #E0F7FA 100%);
  --gradient-card-hover: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  --shadow-sm: 0 1px 3px rgba(79, 70, 229, 0.08), 0 1px 2px rgba(79, 70, 229, 0.06);
  --shadow-md: 0 4px 16px rgba(79, 70, 229, 0.12), 0 2px 6px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 10px 40px rgba(79, 70, 229, 0.15), 0 4px 16px rgba(79, 70, 229, 0.1);
  --shadow-hover: 0 20px 60px rgba(79, 70, 229, 0.2), 0 8px 24px rgba(79, 70, 229, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-secondary); }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== DECORATIVE LINES ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0;
}

/* ===== HEADER ===== */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
  transition: var(--transition);
}

#masthead.scrolled {
  background: rgba(250, 251, 255, 0.95);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.1);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.site-title a {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ===== NAVIGATION ===== */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-navigation ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  letter-spacing: 0.01em;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.08);
}

.nav-search-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--color-primary);
  margin-left: 8px;
}

.nav-search-btn:hover {
  background: rgba(79, 70, 229, 0.15);
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO / FEATURED SECTION ===== */
.hero-section {
  background: var(--gradient-hero);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== FEATURED POST (HERO) ===== */
.featured-post-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 16px 0;
}

.featured-post-hero .post-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  position: relative;
}

.featured-post-hero .post-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-hero:hover .post-image-wrap img {
  transform: scale(1.04);
}

.featured-post-hero .post-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.3;
}

.featured-content .post-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.featured-content .post-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  line-height: 1.2;
}

.featured-content .post-title a {
  color: var(--color-text);
  transition: var(--transition-fast);
}

.featured-content .post-title a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-content .post-excerpt {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

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

.post-meta a { color: var(--color-text-light); }
.post-meta a:hover { color: var(--color-primary); }

.post-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta .meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.read-more-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
  transform: translateX(4px);
}

/* ===== MAIN CONTENT AREA ===== */
#primary {
  padding: 60px 0;
}

.content-area-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-area-inner.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.view-all-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover { color: var(--color-secondary); }

/* ===== ARTICLE CARDS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.posts-grid.single-col {
  grid-template-columns: 1fr;
}

.posts-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== POST CARD ===== */
.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.15);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-image img {
  transform: scale(1.06);
}

.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.post-card-image-placeholder .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}

.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding: 3px 10px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-full);
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--color-text);
}

.post-card-title a {
  color: inherit;
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
}

.post-card-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-card-read-time {
  font-size: 0.75rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== HORIZONTAL POST CARD ===== */
.post-card-horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.post-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.15);
}

.post-card-horizontal .post-card-image {
  aspect-ratio: auto;
  min-height: 140px;
}

.post-card-horizontal .post-card-body {
  padding: 20px 24px;
}

/* ===== SINGLE POST ===== */
.single-post-header {
  padding: 60px 0 40px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.single-post-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.single-post-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.single-post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.single-post-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 5px 14px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.single-post-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.author-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(79, 70, 229, 0.2);
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info .author-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.author-info .author-role {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.post-featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 520px;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ARTICLE CONTENT ===== */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 48px;
  padding-bottom: 60px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
}

.entry-content.full-width {
  max-width: 1200px;
}

.entry-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.entry-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.entry-content h4 { font-size: 1.125rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }

.entry-content p { margin-bottom: 1.5rem; }

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.entry-content a:hover {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(124, 58, 237, 0.04));
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.entry-content blockquote p { margin-bottom: 0; }

.entry-content ul, .entry-content ol {
  list-style: revert;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.entry-content ul li, .entry-content ol li { margin-bottom: 0.5rem; }

.entry-content pre {
  background: #1E1B4B;
  color: #E0E7FF;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.75rem 0;
}

.entry-content code {
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.entry-content pre code { background: none; color: inherit; padding: 0; }

.entry-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1.5rem auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
}

.entry-content table th {
  background: var(--gradient-hero);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
}

.entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.entry-content table tr:last-child td { border-bottom: none; }
.entry-content table tr:hover td { background: var(--gradient-hero); }

/* ===== POST TAGS ===== */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.post-tags .tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-right: 4px;
}

.post-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 5px 14px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.post-tag:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary);
  border-color: rgba(79, 70, 229, 0.2);
}

/* ===== AUTHOR BOX ===== */
.author-box {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.author-box-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

.author-box-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box-content .author-box-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.author-box-content .author-box-bio {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== RELATED POSTS ===== */
.related-posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  transition: var(--transition-fast);
  background: var(--color-bg-card);
}

.pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.06);
}

.pagination .page-numbers.current {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

.pagination .prev, .pagination .next {
  width: auto;
  padding: 0 16px;
  gap: 6px;
}

/* ===== SIDEBAR ===== */
#secondary {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.widget {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.widget-title {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gradient-primary);
  border-radius: 2px;
  display: block;
}

.widget ul { display: flex; flex-direction: column; gap: 8px; }

.widget ul li a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.widget ul li a:hover {
  color: var(--color-primary);
  background: rgba(79, 70, 229, 0.06);
}

.widget ul li a .count {
  font-size: 0.7rem;
  background: var(--color-border-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--color-text-light);
}

/* ===== SEARCH WIDGET ===== */
.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: var(--transition-fast);
}

.search-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-submit {
  padding: 10px 18px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.search-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== RECENT POSTS WIDGET ===== */
.widget-recent-posts .recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-recent-posts .recent-post-item:last-child { border-bottom: none; }

.widget-recent-posts .recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.widget-recent-posts .recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.widget-recent-posts .recent-post-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.widget-recent-posts .recent-post-title a { color: inherit; }
.widget-recent-posts .recent-post-title a:hover { color: var(--color-primary); }

.widget-recent-posts .recent-post-date {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

/* ===== TAGS CLOUD ===== */
.tag-cloud-link {
  display: inline-block;
  font-size: 0.75rem !important;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--color-border-light);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  margin: 3px;
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.tag-cloud-link:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary);
  border-color: rgba(79, 70, 229, 0.2);
}

/* ===== FOOTER ===== */
#colophon {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #1E1B4B 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

#colophon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
}

.footer-brand .footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.footer-widget-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1.5px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 4px;
}

.footer-links a:hover::before { width: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255, 255, 255, 0.4); }
.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.8); }

/* ===== 404 PAGE ===== */
.error-404-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-404-content .error-code {
  font-size: 8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-404-content h1 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.error-404-content p {
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ===== COMMENTS ===== */
.comments-area {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.comments-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-list { display: flex; flex-direction: column; gap: 20px; }

.comment {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.comment-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.comment-content {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(79, 70, 229, 0.06);
  transition: var(--transition-fast);
}

.comment-reply-link:hover {
  background: rgba(79, 70, 229, 0.12);
}

/* Comment Form */
.comment-respond {
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  margin-top: 32px;
}

.comment-reply-title {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.comment-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--color-bg-card);
  color: var(--color-text);
  outline: none;
  transition: var(--transition-fast);
  margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit .submit {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.form-submit .submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap {
  background: var(--gradient-hero);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .separator { color: var(--color-border); }
.breadcrumb .current { color: var(--color-primary); font-weight: 600; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 80px 24px;
}

.no-results .no-results-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ===== ARCHIVE PAGE ===== */
.archive-header {
  padding: 48px 0 40px;
  background: var(--gradient-hero);
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border-light);
}

.archive-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.archive-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.archive-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.archive-description {
  color: var(--color-text-muted);
  max-width: 560px;
  font-size: 1rem;
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress-bar {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(79, 70, 229, 0.1);
  z-index: 999;
}

.reading-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== FLOATING DECORATIONS ===== */
.floating-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-area-inner {
    grid-template-columns: 1fr;
  }

  #secondary {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #secondary .widget { margin-bottom: 0; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .featured-post-hero {
    grid-template-columns: 1fr;
  }

  .featured-post-hero .post-image-wrap { order: -1; }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card-horizontal {
    grid-template-columns: 1fr;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 251, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
  }

  .main-navigation.open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 4px;
  }

  .menu-toggle { display: flex; }

  #secondary {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .comment-form-fields {
    grid-template-columns: 1fr;
  }

  .author-box-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-section { padding: 40px 0 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .site-header-inner { padding: 0 16px; }
  .entry-content { padding: 32px 16px 48px; }
  .single-post-header-inner { padding: 0 16px; }
  .single-post-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== UTILITIES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ===== STATIC PAGES (Tentang, Kontak, Kebijakan, Syarat) ===== */
.page-hero {
  background: var(--gradient-hero);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(79,70,229,.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.page-hero-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.page-content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.page-content-wrap h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-border-light);
}

.page-content-wrap h2:first-child { margin-top: 0; }

.page-content-wrap h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
  color: var(--color-primary);
}

.page-content-wrap p { margin-bottom: 1.4rem; line-height: 1.8; color: #374151; }

.page-content-wrap ul, .page-content-wrap ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.page-content-wrap li { margin-bottom: .5rem; line-height: 1.75; color: #374151; }
.page-content-wrap a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.page-content-wrap a:hover { color: var(--color-secondary); }

/* Contact form */
.contact-form-wrapper {
  background: var(--gradient-hero);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-top: 24px;
}

.kht-contact-form { display: flex; flex-direction: column; gap: 20px; }
.kht-contact-form .form-group { display: flex; flex-direction: column; gap: 7px; }

.kht-contact-form label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: .04em;
}

.kht-contact-form input[type="text"],
.kht-contact-form input[type="email"],
.kht-contact-form textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-family: var(--font-sans);
  background: var(--color-bg-card);
  color: var(--color-text);
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.kht-contact-form input:focus,
.kht-contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.kht-contact-form textarea { min-height: 150px; resize: vertical; }

/* About info cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.about-card .card-icon { font-size: 2rem; margin-bottom: 10px; }
.about-card .card-label { font-size: .875rem; font-weight: 700; color: var(--color-text); }
.about-card .card-value { font-size: .8rem; color: var(--color-text-muted); margin-top: 4px; }

/* Contact info boxes */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.contact-info-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.contact-info-box .ci-icon { font-size: 1.5rem; margin-bottom: 10px; }
.contact-info-box .ci-label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.contact-info-box .ci-value { font-size: .9rem; font-weight: 600; color: var(--color-text); }

@media (max-width: 600px) {
  .contact-form-wrapper { padding: 24px 20px; }
  .page-content-wrap { padding: 36px 16px 56px; }
}
