/* ============================================================
   ALINEA BLOG v2 — CUSTOM STYLES
   All colors/fonts via CSS variables from theme.json
   ============================================================ */

/* --- CSS Variables (mirrors theme.json custom palette) --- */
:root {
  --al-bg:        var(--wp--preset--color--bg,       #f6f4f0);
  --al-bg2:       var(--wp--preset--color--bg-alt,   #edeae4);
  --al-surface:   var(--wp--preset--color--surface,  #ffffff);
  --al-ink:       var(--wp--preset--color--ink,      #111111);
  --al-mid:       var(--wp--preset--color--mid,      #444444);
  --al-muted:     var(--wp--preset--color--muted,    #777777);
  --al-faint:     var(--wp--preset--color--faint,    #aaaaaa);
  --al-border:    var(--wp--preset--color--border,   #ddd8cf);
  --al-accent:    var(--wp--preset--color--accent,   #2c3e6b);
  --al-alight:    var(--wp--preset--color--accent-light, #edf1f8);
  --al-accent-h:  var(--wp--preset--color--accent-hover, #1e2d52);
  --al-serif:     var(--wp--preset--font-family--display, 'Lora', Georgia, serif);
  --al-sans:      var(--wp--preset--font-family--body, 'Inter', system-ui, sans-serif);
  --al-r:         var(--wp--custom--radius,      12px);
  --al-pill:      var(--wp--custom--radius-pill, 50px);
  --al-t:         var(--wp--custom--transition,  0.22s ease);
  --al-shadow-sm: var(--wp--preset--shadow--sm, 0 1px 3px rgba(0,0,0,0.06));
  --al-shadow-md: var(--wp--preset--shadow--md, 0 4px 16px rgba(0,0,0,0.08));
  --al-shadow-lg: var(--wp--preset--shadow--lg, 0 8px 32px rgba(0,0,0,0.12));
  --al-hero-bg1:  var(--wp--preset--color--hero-dark,  #1a2540);
  --al-hero-bg2:  var(--wp--preset--color--hero-mid,   #2c3e6b);
  --al-hero-bg3:  var(--wp--preset--color--hero-light, #3d5499);
  --al-nav-h:     var(--wp--custom--nav-height, 62px);
  --al-content:   720px;
  --al-wide:      1200px;
}

/* --- Reset --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--al-bg); overflow-x: hidden; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--al-surface);
  border-bottom: 1px solid var(--al-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  max-width: var(--al-wide);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--al-nav-h);
}

.site-header .wp-block-site-title a {
  font-family: var(--al-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--al-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header .custom-logo-link img {
  height: 38px;
  width: auto;
  display: block;
}

/* Navigation: use descendant selector to minimize Gutenberg conflicts */
.site-header .wp-block-navigation {
  /* inherit default styles from theme.json */
}

.site-header .wp-block-navigation a {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--al-muted);
  transition: all 0.2s;
  text-decoration: none;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation .current-menu-item a,
.site-header .wp-block-navigation .current_page_item a {
  background: var(--al-alight);
  color: var(--al-accent);
}

/* ============================================================
   CONTENT + SIDEBAR LAYOUT
   ============================================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: var(--al-wide);
  margin: 0 auto;
  padding: 48px 24px 72px;
  align-items: start;
}

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

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.post-card {
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: var(--al-r);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover {
  box-shadow: var(--al-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.post-card .wp-block-post-featured-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

.post-card .wp-block-post-featured-image img,
.post-card .wp-block-post-featured-image a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .wp-block-post-featured-image img,
.post-card:hover .wp-block-post-featured-image a img {
  transform: scale(1.03);
}

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

.post-card .wp-block-post-terms {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}

.post-card .wp-block-post-title { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.post-card .wp-block-post-title a { color: var(--al-ink); text-decoration: none; transition: color 0.2s; }
.post-card .wp-block-post-title a:hover { color: var(--al-accent); }
.post-card .wp-block-post-excerpt { font-size: 0.85rem; color: var(--al-mid); line-height: 1.6; margin-bottom: 12px; }
.post-card .wp-block-post-date { font-size: 0.78rem; color: var(--al-muted); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-sidebar {
  position: sticky;
  top: calc(var(--al-nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: var(--al-r);
  padding: 24px;
}

.sidebar-widget-title {
  font-family: var(--al-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--al-ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--al-border);
  letter-spacing: -0.01em;
}

.sidebar-search .wp-block-search__input {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--al-border);
  border-radius: var(--al-pill);
  font-family: var(--al-sans);
  font-size: 0.84rem;
  background: var(--al-bg);
  color: var(--al-ink);
  outline: none;
  transition: all 0.2s;
}

.sidebar-search .wp-block-search__input:focus {
  border-color: var(--al-accent);
  background: var(--al-surface);
  box-shadow: 0 0 0 3px var(--al-alight);
}

.blog-sidebar .wp-block-categories a,
.blog-sidebar .wp-block-categories li {
  font-size: 0.85rem;
  color: var(--al-mid);
  text-decoration: none;
  transition: color 0.2s;
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
}

.blog-sidebar .wp-block-categories a:hover { color: var(--al-accent); }

.sidebar-cta {
  background: linear-gradient(135deg, var(--al-hero-bg1), var(--al-hero-bg2));
  color: #fff;
  border-color: transparent;
}

.sidebar-cta .sidebar-widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.15);
}

.sidebar-cta p { font-size: 0.84rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  color: var(--al-accent);
  border-radius: var(--al-pill);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: all 0.25s;
}

.cta-btn:hover {
  background: var(--al-alight);
  transform: translateY(-1px);
  box-shadow: var(--al-shadow-md);
  color: var(--al-accent-h);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header {
  max-width: var(--al-wide);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.alinea-reading-time {
  font-size: 0.82rem;
  color: var(--al-muted);
}

.single-featured-image {
  max-width: var(--al-wide);
  margin: 0 auto;
  padding: 0 24px 32px;
}

.single-featured-image .wp-block-post-featured-image img {
  border-radius: var(--al-r);
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

.single-content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: var(--al-wide);
  margin: 0 auto;
  padding: 0 24px 72px;
  align-items: start;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--al-ink);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--al-serif);
  margin-top: 2.4em;
  margin-bottom: 0.6em;
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content a {
  color: var(--al-accent);
  text-decoration: underline;
  text-decoration-color: rgba(44,62,107,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

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

.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: 0.82rem; color: var(--al-muted); text-align: center; margin-top: 8px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-block-query-pagination { margin-top: 40px; gap: 8px; }

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  color: var(--al-mid);
  border: 1px solid var(--al-border);
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
  background: var(--al-alight);
  color: var(--al-accent);
  border-color: var(--al-accent);
}

.wp-block-query-pagination-numbers .page-numbers.current {
  background: var(--al-accent);
  color: #fff;
  border-color: var(--al-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--al-hero-bg1); color: #aaa; font-size: 0.84rem; }

.site-footer .footer-inner {
  max-width: var(--al-wide);
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #222;
}

.site-footer .footer-brand { font-family: var(--al-serif); font-size: 1.1rem; font-weight: 800; color: #fff; }
.site-footer .footer-tagline { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #888; margin-top: 4px; }
.site-footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .footer-links a { color: #ccc; text-decoration: none; font-size: 0.84rem; transition: color 0.2s; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.77rem; color: #888; }
.site-footer .footer-ikapi { display: inline-flex; align-items: center; gap: 6px; background: #222; border-radius: 6px; padding: 5px 10px; font-size: 0.7rem; font-weight: 600; color: #ccc; }

/* ============================================================
   BOOK CATALOG BLOCK
   ============================================================ */

/*
 * Default: block diinsert di dalam container yang sudah ada
 * (misal content-area atau halaman biasa).
 * Tidak pakai max-width sendiri agar tidak konflik dengan
 * container parent dan tidak menyebabkan overflow/space kanan.
 */
.alinea-book-catalog {
  padding-top: 48px;
  padding-bottom: 48px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Kalau diinsert sebagai alignwide/alignfull di template root */
.alinea-book-catalog.alignwide {
  max-width: var(--al-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.alinea-book-catalog.alignfull {
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.book-catalog__header {
  margin-bottom: 32px;
}

.book-catalog__title {
  font-family: var(--al-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--al-ink);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Grid variants */
.book-catalog__grid {
  display: grid;
  gap: 32px;
}

.book-catalog__grid--1 { grid-template-columns: 1fr; }
.book-catalog__grid--2 { grid-template-columns: repeat(2, 1fr); }
.book-catalog__grid--3 { grid-template-columns: repeat(3, 1fr); }
.book-catalog__grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Book card — Cover Only */
.book-card {
  background: var(--al-surface);
  border: 1px solid var(--al-border);
  border-radius: var(--al-r);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  aspect-ratio: 2/3;
  cursor: pointer;
}

.book-card:hover {
  box-shadow: var(--al-shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.book-card__cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--al-bg2);
  width: 100%;
  height: 100%;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.book-card:hover .book-card__cover img {
  transform: scale(1.03);
}

.book-card__cover-link {
  display: block;
}

.book-card__no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--al-hero-bg1), var(--al-hero-bg2));
}

.book-card__no-cover span {
  font-family: var(--al-serif);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* Loading state */
.book-catalog__loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px;
  color: var(--al-muted);
}

.book-catalog__spinner {
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--al-border);
  border-top-color: var(--al-accent);
  border-radius: 50%;
  animation: al-spin 0.7s linear infinite;
}

@keyframes al-spin { to { transform: rotate(360deg); } }

.book-catalog__error,
.book-catalog__empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--al-muted);
  font-size: 0.9rem;
}

.book-catalog__error a { color: var(--al-accent); }

/* Footer CTA */
.book-catalog__footer {
  margin-top: 32px;
  text-align: center;
}

.book-catalog__cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--al-accent);
  color: #ffffff;
  border-radius: var(--al-pill);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all 0.25s;
}

/* Override .entry-content a styling for button */
.entry-content .book-catalog__cta,
.book-catalog__footer .book-catalog__cta {
  color: #ffffff;
  text-decoration: none;
  text-decoration-color: transparent;
}

.book-catalog__cta:hover {
  background: var(--al-accent-h);
  box-shadow: var(--al-shadow-md);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Editor preview wrapper */
.alinea-book-catalog-editor-preview {
  outline: 2px dashed var(--al-border);
  outline-offset: 4px;
  border-radius: var(--al-r);
}

/* ============================================================
   404
   ============================================================ */
.error-404-wrap { text-align: center; padding: 80px 24px; max-width: 520px; margin: 0 auto; }
.error-404-wrap h1 { font-family: var(--al-serif); font-size: 4rem; color: var(--al-accent); margin-bottom: 8px; }
.error-404-wrap p { color: var(--al-muted); margin-bottom: 32px; }
.error-404-wrap .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--al-accent);
  color: #fff;
  border-radius: var(--al-pill);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all 0.25s;
}
.error-404-wrap .btn-home:hover { background: var(--al-accent-h); box-shadow: var(--al-shadow-md); transform: translateY(-1px); }

/* ============================================================
   MODAL
   ============================================================ */
.al-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.al-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.al-modal-box {
  background: var(--al-surface);
  border-radius: 16px;
  width: 100%;
  max-width: min(90vw, 760px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.al-modal-overlay.is-open .al-modal-box {
  transform: translateY(0) scale(1);
}

.al-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--al-bg2);
  color: var(--al-mid);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.al-modal-close:hover {
  background: var(--al-border);
  color: var(--al-ink);
}

.al-modal-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

/* Cover panel */
.al-modal-cover {
  background: var(--al-bg2);
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
}

.al-modal-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--al-shadow-md);
  display: block;
}

.al-modal-no-cover {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--al-hero-bg1), var(--al-hero-bg2));
  border-radius: 8px;
}

.al-modal-no-cover span {
  font-family: var(--al-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

/* Info panel */
.al-modal-info {
  padding: 32px 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.al-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.al-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--al-alight);
  color: var(--al-accent);
}

.al-modal-badge--soon {
  background: #fff3cd;
  color: #856404;
}

.al-modal-title {
  font-family: var(--al-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--al-ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

.al-modal-description {
  font-size: 0.9rem;
  color: var(--al-mid);
  line-height: 1.7;
  margin: 0;
}

.al-modal-meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.al-modal-meta th,
.al-modal-meta td {
  padding: 7px 0;
  border-bottom: 1px solid var(--al-border);
  vertical-align: top;
  text-align: left;
}

.al-modal-meta th {
  color: var(--al-muted);
  font-weight: 600;
  width: 90px;
  white-space: nowrap;
}

.al-modal-meta td {
  color: var(--al-ink);
}

.al-modal-meta tr:last-child th,
.al-modal-meta tr:last-child td {
  border-bottom: none;
}

.al-modal-actions {
  margin-top: 4px;
}

.al-modal-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: #25D366;
  color: #fff;
  border-radius: var(--al-pill);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.al-modal-wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
}

/* Card cursor — clickable */
.book-card {
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-sidebar-wrap,
  .single-content-wrap { grid-template-columns: 1fr 280px; gap: 32px; }
  .book-catalog__grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .content-sidebar-wrap,
  .single-content-wrap { grid-template-columns: 1fr; gap: 40px; padding-left: 16px; padding-right: 16px; }
  .blog-sidebar { position: static; }
  .posts-grid { grid-template-columns: 1fr; }
  .book-catalog__grid { gap: 24px; }
  .single-featured-image img { aspect-ratio: 16/9; }
  .site-footer .footer-top { flex-direction: column; text-align: center; }
  .site-footer .footer-links { justify-content: center; }
  .site-footer .footer-bottom { flex-direction: column; text-align: center; }
  .book-catalog__grid--3,
  .book-catalog__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .post-card .card-body { padding: 16px; }
  .post-card .wp-block-post-title { font-size: 0.95rem; }
  .book-catalog__grid--2,
  .book-catalog__grid--3,
  .book-catalog__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Modal responsive */
@media (max-width: 600px) {
  .al-modal-content { grid-template-columns: 1fr; }
  .al-modal-cover {
    border-radius: 16px 16px 0 0;
    padding: 20px;
    max-height: 220px;
    overflow: hidden;
  }
  .al-modal-cover img { max-height: 180px; width: auto; margin: 0 auto; display: block; }
  .al-modal-info { padding: 20px; }
  .al-modal-title { font-size: 1.1rem; }
}

/* ============================================================
   TEMPLATE: PAGE-HERO
   Minimal approach: only target first block group
   ============================================================ */

/* Reset top margin on first content block (hero) */
.page-template-page-hero .wp-block-post-content > :first-child {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Remove any WordPress default gap between header and hero */
.page-template-page-hero main.wp-block-group {
  --wp--style--block-gap: 0;
  gap: 0;
}

/* Full width for alignfull blocks */
.page-template-page-hero .wp-block-post-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


/* ============================================================
   Hilangkan jeda di bawah header homepage
   ============================================================ */

#wp--skip-link--target {
    margin-top: 0 !important;
}

.alinea-book-catalog {
    margin: 0 0 24px 0  !important;
    padding: 0 0 24px 0 !important;
}

.alinea-book-catalog {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
}

footer.wp-block-template-part {
  margin: 0 0 0 0 !important;
  padding: 0 0 0 0 !important;
}

footer.wp-block-template-part * {
  margin-top: 0 0 0 0 !important;
  margin-bottom: 0 0 0 0 !important;
}

.postform {
    width: 100%;
    max-width: 320px;
    padding: 12px 40px 12px 16px;
    
    font-size: 14px;
    font-weight: 500;
    color: #1a2540;
    
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: #ffffff;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */
.postform:hover {
    border-color: #3d5499;
}

/* Focus */
.postform:focus {
    outline: none;
    border-color: #2c3e6b;
    box-shadow: 0 0 0 3px rgba(44, 62, 107, 0.1);
}

/* Custom arrow */
.postform {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%232c3e6b' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7l4.5 4 4.5-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}