/*
Theme Name: BIKAL Modern
Theme URI: https://bikal.or.id/
Author: Codex
Description: Modern classic WordPress theme for Yayasan BIKAL Karya Lestari.
Version: 0.1.0
License: GNU General Public License v2 or later
Text Domain: bikal-modern
*/

:root {
  --forest: #194d39;
  --leaf: #2e7d4f;
  --river: #177c89;
  --sun: #f2b84b;
  --ink: #17211d;
  --muted: #61706a;
  --line: #dfe8e2;
  --paper: #f7faf7;
  --white: #fff;
  --shadow: 0 18px 48px rgba(18, 42, 31, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--river); text-decoration: none; }
a:hover, a:focus { color: var(--forest); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text, .skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(25, 77, 57, .12);
  backdrop-filter: blur(14px);
}
.header-inner, .section-inner, .content-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--forest), var(--river));
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-title {
  margin: 0;
  color: var(--forest);
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.1;
}
.site-description {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .82rem;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--forest);
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}
.primary-menu,
.primary-menu .menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu li { position: relative; }
.primary-menu .sub-menu,
.primary-menu .children {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  display: none;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li:hover > .children,
.primary-menu li:focus-within > .children {
  display: block;
}
.primary-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: rgba(46, 125, 79, .1);
  color: var(--forest);
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: end;
  color: var(--white);
  background-color: var(--forest);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 38, 28, .9), rgba(13, 38, 28, .62), rgba(13, 38, 28, .24));
}
.hero .section-inner {
  position: relative;
  padding: 116px 0 58px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #dff5e7;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--sun);
}
.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: 0;
}
.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #edf8f1;
  font-size: 1.12rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}
.button-primary { background: var(--sun); color: #2f260d; }
.button-secondary { border-color: rgba(255,255,255,.54); color: var(--white); }
.button:hover { text-decoration: none; transform: translateY(-1px); }

.section { padding: 74px 0; }
.section-white { background: var(--white); }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-title h2 {
  margin: 0;
  color: var(--forest);
  font-size: 2rem;
  line-height: 1.1;
}
.section-title p { max-width: 560px; margin: 0; color: var(--muted); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card, .post-card, .content-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(21, 54, 39, .07);
}
.feature-card { padding: 24px; }
.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #e9f4ed;
  color: var(--forest);
  font-weight: 900;
}
.feature-card h3, .post-card h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 1.18rem;
  line-height: 1.25;
}
.feature-card p, .post-card p { margin: 0; color: var(--muted); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post-card { overflow: hidden; }
.post-thumb {
  aspect-ratio: 16 / 10;
  background: #dce8df;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-content { padding: 20px; }
.post-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}
.read-more { display: inline-block; margin-top: 14px; font-weight: 800; }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 54px 0 78px;
}
.content-main, .sidebar {
  min-width: 0;
}
.content-panel {
  padding: 30px;
}
.page-title {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 2.4rem;
  line-height: 1.12;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--forest); line-height: 1.2; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
.entry-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--sun);
  color: var(--forest);
  font-size: 1.1rem;
}
.source-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 28px;
}
.source-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}
.source-list h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.source-list p {
  margin: 0;
  color: var(--muted);
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}
.media-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.media-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.media-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: .86rem;
}
.channel-note {
  padding: 16px 18px;
  border-left: 4px solid var(--sun);
  background: #fffaf0;
  border-radius: 6px;
}
.sidebar .widget {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.widget-title { margin: 0 0 12px; color: var(--forest); font-size: 1rem; }
.search-form {
  display: flex;
  gap: 8px;
}
.search-field {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
.search-submit {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
}

.site-footer {
  background: #102a20;
  color: #d9eadf;
}
.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.footer-title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}
.footer-nav ul {
  columns: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: #d9eadf; }
.site-info {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 16px 0;
  color: #a9c3b4;
  font-size: .9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu .menu,
  .primary-menu ul { display: block; }
  .primary-menu .sub-menu,
  .primary-menu .children {
    position: static;
    display: block;
    min-width: 0;
    margin-left: 12px;
    padding: 0 0 0 8px;
    border: 0;
    box-shadow: none;
  }
  .primary-menu a { padding: 12px; }
  .hero { min-height: 520px; }
  .feature-grid, .post-grid, .content-wrap, .footer-inner {
    grid-template-columns: 1fr;
  }
  .media-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-title {
    display: block;
  }
  .section-title p { margin-top: 10px; }
}

@media (max-width: 560px) {
  .header-inner, .section-inner, .content-wrap, .footer-inner {
    width: min(100% - 24px, 1160px);
  }
  .hero .section-inner { padding: 88px 0 42px; }
  .hero h1 { font-size: 2.45rem; }
  .section { padding: 54px 0; }
  .content-panel { padding: 22px; }
  .page-title { font-size: 2rem; }
  .hero-actions { display: grid; }
  .media-gallery {
    grid-template-columns: 1fr;
  }
}
