/*
Theme Name: Jatimnewsyale
Theme URI: https://example.com/jatimnewsyale
Author: Jatimnewsyale
Description: A clean, editorial Yale WordPress news theme.
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: jatimnewsyale
Tags: education, blog, news, custom-menu, featured-images, threaded-comments
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #2073e0;
  --accent: #6babff;
  --dark: #00357b;
  --navy: #1c539b;
  --white: #ffffff;
  --light-bg: #f5f9ff;
  --text: #000b1a;
  --muted: #35557f;
  --border: #c6daf5;
  --facebook: #1877f2;
  --twitter: #000000;
  --pinterest: #e60023;
  --instagram: #c13584;

  /* Font: 1 font web (Playfair Display untuk judul) + font sistem untuk body.
     Lebih sedikit unduhan = lebih cepat (lihat perbandingan dgn upithemes). */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
body { font-family: var(--font-body); color: var(--text); background: var(--white); }
a { text-decoration: none; color: var(--red); }
a:hover { color: var(--red); opacity: 0.8; }
img { display: block; max-width: 100%; object-fit: cover; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb-wrap {
  background: var(--light-bg);
  padding: 10px 40px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb-wrap a { color: var(--red); }
.breadcrumb-wrap span.sep { margin: 0 6px; color: var(--muted); }
.breadcrumb-wrap span.current { color: var(--muted); }

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: 28px; padding: 10px 0; }
.nav-logo .logo-shield {
  width: 34px; height: 34px;
  background: var(--red); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; font-weight: 800;
}
.nav-logo .brand { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.1; color: var(--text); }
.nav-logo .brand span { display: block; font-size: 9px; font-family: var(--font-body); font-weight: 400; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

/* WordPress nav menu */
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links li { position: relative; }
.nav-links li a {
  display: block; padding: 14px 16px;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text); transition: color 0.2s;
}
.nav-links li a:hover { color: var(--red); }
/* Dropdown */
.nav-links li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  min-width: 200px; z-index: 999; list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.nav-links li:hover > ul { display: block; }
.nav-links li ul li a {
  padding: 10px 16px; font-size: 13px; text-transform: none;
  border-bottom: 1px solid var(--border);
}
.nav-links li ul li:last-child a { border-bottom: none; }

/* Search button in navbar */
.nav-search { position: relative; margin-left: auto; display: flex; align-items: center; }
.nav-search-btn {
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.nav-search-btn:hover { color: var(--red); }
.nav-search-box {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  width: 300px; z-index: 999; padding: 10px;
}
.nav-search-box.open { display: block; }
.nav-search-box form { display: flex; gap: 0; }
.nav-search-box input[type="search"] {
  flex: 1; border: 1px solid var(--border); border-right: none;
  padding: 9px 14px; font-size: 13px; outline: none;
  font-family: var(--font-body); color: var(--text);
}
.nav-search-box input[type="search"]::placeholder { color: var(--muted); }
.nav-search-box button[type="submit"] {
  background: var(--red); color: white; border: none;
  padding: 9px 14px; cursor: pointer; display: flex; align-items: center;
  transition: opacity 0.2s;
}
.nav-search-box button[type="submit"]:hover { opacity: 0.85; }

/* ===================== HERO ===================== */
.hero {
  position: relative; height: 520px;
  background-color: var(--dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 40px 0; overflow: hidden;
}
/* Gambar hero sebagai <img> asli yang menutupi section (lapisan paling bawah) */
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0; display: block; border: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,43,100,0.55) 0%, rgba(0,35,80,0.75) 100%);
}
.hero > *:not(.hero-bg) { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; background: var(--red);
  color: white; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 3px 8px; border-radius: 2px; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 58px; font-weight: 800; line-height: 1.1;
  color: var(--white); max-width: 520px;
}
.hero-title span { color: var(--white); font-style: italic; }
.hero-cards {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0; border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 36px;
}
.hero-card { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,0.15); }
.hero-card:last-child { border-right: none; }
.hero-card-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.hero-card-cat span { background: var(--red); color: white; padding: 1px 6px; border-radius: 2px; }
.hero-card-title {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.4;
}
.hero-card-title::before { content: "→ "; color: rgba(255,255,255,0.5); }
.hero-card a { color: var(--white); }
.hero-title a { color: var(--white); }

/* ===================== FEATURES (Kategori 1 — 3 col) ===================== */
.features { background: #f0f6ff; padding: 56px 0; }
.features-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.features-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--red); margin-bottom: 28px; border-bottom: 2px solid var(--red);
  display: inline-block; padding-bottom: 4px;
}
.features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
.feature-card { position: relative; }
.feature-img-wrap { position: relative; margin-bottom: 18px; }
.feature-img-wrap img { border-radius: 4px; height: 200px; width: 100%; object-fit: cover; }
.feature-img-wrap .no-thumb { border-radius: 4px; height: 200px; background: var(--light-bg); }
.feature-cat-label {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 2px;
}
.feature-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card h3 a { color: var(--text); }
.feature-card h3 a:hover { color: var(--red); }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.feature-card .read-more { color: var(--red); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.feature-card .read-more::after { content: " →"; }

/* ===================== NEWS SECTION (Kategori 2) ===================== */
.news-section { background: var(--light-bg); padding: 56px 40px; }
.news-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.section-header p { font-size: 14px; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.news-card { position: relative; border-radius: 8px; overflow: hidden; }
.news-card.featured { }
.news-card img { height: 320px; width: 100%; object-fit: cover; display: block; }
.news-card.featured img { height: 320px; }
.news-card .no-thumb { height: 320px; background: var(--border); }
.news-card.featured .no-thumb { height: 320px; }
.news-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px 18px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); color: white; }
.news-meta { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.news-card.featured .news-meta { color: rgba(255,255,255,0.75); }
.news-meta span { background: var(--red); color: white; padding: 1px 6px; border-radius: 2px; margin-right: 6px; font-size: 9px; }
.news-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.news-card h3 a { color: white; }
.news-card.featured h3 a { color: white; }
.news-card p { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.6; }
.news-card.featured p { color: rgba(255,255,255,0.75); }

/* ===================== CONNECT ===================== */
.connect-section { background: var(--white); padding: 36px 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.connect-inner { display: flex; align-items: center; gap: 40px; }
.connect-text h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.connect-text p { font-size: 13px; color: var(--muted); }
.social-buttons { display: flex; gap: 12px; margin-left: auto; }
.social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 4px;
  font-size: 12px; font-weight: 600; color: white; cursor: pointer;
  transition: opacity 0.2s;
}
.social-btn:hover { opacity: 0.88; color: white; }
.social-btn.fb { background: var(--facebook); }
.social-btn.tw { background: var(--twitter); }
.social-btn.pt { background: var(--pinterest); }
.social-btn.ig { background: var(--instagram); }
.social-btn .s-label { font-size: 10px; font-weight: 400; opacity: 0.8; }

/* ===================== RESEARCH (Kategori 3) ===================== */
.research-section { background: linear-gradient(165deg, #164786 0%, #03295a 100%); color: white; padding: 56px 40px; }
.research-inner { max-width: 1100px; margin: 0 auto; }
.research-section .section-header h2 { color: white; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.research-featured img { border-radius: 4px; height: 300px; width: 100%; object-fit: cover; object-position: center; margin-bottom: 18px; display: block; }
.research-featured .no-thumb { border-radius: 4px; height: 260px; background: rgba(255,255,255,0.08); margin-bottom: 18px; }
.research-featured .cat-tag { background: var(--red); color: white; font-size: 9px; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: inline-block; }
.research-featured h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.research-featured h3 a { color: white; }
.research-featured p { font-size: 13px; color: rgba(255,255,255,0.88); line-height: 1.6; }
.research-list { display: flex; flex-direction: column; gap: 0; }
.research-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.research-item:last-child { border-bottom: none; }
.research-item img { width: 90px; height: 68px; border-radius: 3px; flex-shrink: 0; object-fit: cover; }
.research-item .no-thumb { width: 90px; height: 68px; border-radius: 3px; flex-shrink: 0; background: rgba(255,255,255,0.08); }
.research-item-body { flex: 1; }
.research-item-body .cat-tag { background: var(--red); color: white; font-size: 8px; padding: 1px 6px; border-radius: 2px; text-transform: uppercase; margin-bottom: 6px; display: inline-block; }
.research-item-body h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.4; color: white; }
.research-item-body h3 a { color: white; }
.research-item-body .mini-date { font-size: 10px; color: rgba(255,255,255,0.72); margin-top: 4px; }

/* ===================== MINI NEWS (Kategori 4) ===================== */
.mini-news { background: linear-gradient(165deg, #03295a 0%, #001f47 100%); padding: 0 40px 36px; }
.mini-news-inner { max-width: 1100px; margin: 0 auto; }
.mini-news-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: white; border-bottom: 2px solid rgba(255,255,255,0.5);
  display: inline-block; padding-bottom: 4px; margin-bottom: 20px;
}
.mini-news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.mini-news-item { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 16px; }
.mini-news-item .cat-tag { background: white; color: var(--red); font-size: 8px; padding: 1px 5px; border-radius: 2px; text-transform: uppercase; margin-bottom: 6px; display: inline-block; }
.mini-news-item h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.4; color: white; }
.mini-news-item h3 a { color: white; }
.mini-news-item h3 a::before { content: "→ "; color: rgba(255,255,255,0.5); }
.mini-date { font-size: 10px; color: rgba(255,255,255,0.72); margin-top: 6px; }

/* ===================== MORE NEWS (Kategori 5) ===================== */
.more-news { background: var(--light-bg); padding: 56px 40px; }
.more-news-inner { max-width: 1100px; margin: 0 auto; }
.more-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.more-news-card { position: relative; border-radius: 8px; overflow: hidden; }
.more-news-card-img { position: relative; width: 100%; }
.more-news-card-img img { height: 320px; width: 100%; object-fit: cover; display: block; }
.more-news-card img { height: 320px; width: 100%; object-fit: cover; display: block; }
.more-news-card .no-thumb { height: 320px; background: var(--border); }
.more-news-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 18px 18px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); color: white; }
.more-news-card .cat-tag { background: var(--red); color: white; font-size: 8px; padding: 1px 6px; border-radius: 2px; text-transform: uppercase; margin-bottom: 6px; display: inline-block; }
.more-news-card .meta { font-size: 10px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }
.more-news-card h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.more-news-card h3 a { color: white; }
.more-news-card h3 a:hover { color: rgba(255,255,255,0.8); }
.more-news-card p { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ===================== ALL POSTS + SIDEBAR ===================== */
.all-posts-section { background: var(--white); padding: 56px 0; }
.all-posts-section .section-header h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: 28px; }
.all-posts-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.all-posts-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

/* Post List */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-item { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.post-item:first-child { padding-top: 0; }
.post-item img {
  width: 220px; min-width: 220px; height: 150px; border-radius: 4px; flex-shrink: 0; object-fit: cover;
}
.post-item .no-thumb {
  width: 220px; height: 150px; border-radius: 4px; flex-shrink: 0;
  background: var(--light-bg);
}
.post-item-body { flex: 1; }
.post-item-body .post-cat { background: var(--red); color: white; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; border-radius: 2px; display: inline-block; margin-bottom: 6px; }
.post-item-body h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.post-item-body h3 a { color: var(--text); }
.post-item-body h3 a:hover { color: var(--red); }
.post-item-body .post-excerpt { font-size: 12px; color: var(--muted); line-height: 1.6; }
.post-show-more { margin-top: 28px; text-align: center; }
.btn-outline {
  display: inline-block; border: 1px solid #ccc; padding: 12px 36px;
  border-radius: 4px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; color: var(--text);
}
.btn-outline:hover { background: var(--red); color: white; border-color: var(--red); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar-widget-title {
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}

/* Search */
.sidebar-search { display: flex; gap: 0; }
.sidebar-search input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-right: none; border-radius: 4px 0 0 4px;
  font-size: 13px; font-family: var(--font-body); outline: none;
}
.sidebar-search button {
  background: var(--red); color: white; border: none;
  padding: 10px 16px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px;
}

/* Recent Posts */
.recent-post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-post-item:last-child { border-bottom: none; }
.recent-thumb { width: 60px; min-width: 60px; height: 50px; border-radius: 3px; flex-shrink: 0; overflow: hidden; }
.recent-thumb img { width: 60px; height: 50px; object-fit: cover; }
.recent-thumb.no-thumb { background: var(--light-bg); }
.recent-post-body h5 { font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.recent-post-body h5 a { color: var(--text); }
.recent-post-body h5 a:hover { color: var(--red); }
.recent-post-body .rp-date { font-size: 10px; color: var(--muted); }

/* Categories */
.cat-list { list-style: none; }
.cat-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { font-size: 13px; color: var(--red); transition: color 0.2s; }
.cat-list li a:hover { opacity: 0.8; }
.cat-count { background: var(--light-bg); color: var(--muted); font-size: 11px; padding: 2px 7px; border-radius: 10px; }

/* Archive */
.archive-list { list-style: none; }
.archive-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.archive-list li:last-child { border-bottom: none; }
.archive-list li a { font-size: 13px; color: var(--red); transition: color 0.2s; }

/* Navigation Menu di sidebar */
.nav-menu-list { list-style: none; }
.nav-menu-list li a {
  display: block; padding: 9px 0;
  font-size: 13px; font-weight: 600; color: var(--red);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-menu-list li:last-child a { border-bottom: none; }
.nav-menu-list li a:hover { padding-left: 6px; }

/* ===================== FOOTER ===================== */
footer { background: linear-gradient(180deg, #062c5e 0%, #001838 100%); color: white; padding: 56px 0 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 56px; margin-bottom: 40px; align-items: start; }

/* Col 1 – Brand (left aligned like Image 1) */
.footer-col-brand { text-align: left; }
.footer-nav-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 14px; }
.footer-nav-logo .logo-shield { background: var(--red); width: 46px !important; height: 46px !important; font-size: 22px !important; border-radius: 8px !important; }
.footer-nav-logo .brand { color: white !important; font-size: 24px !important; font-weight: 700; }
.footer-nav-logo:hover { opacity: 0.85; }
.footer-tagline { font-size: 16px; color: rgba(255,255,255,0.82); line-height: 1.6; margin-top: 6px; margin-bottom: 20px; font-style: italic; }

/* Social icons row — hidden */
.footer-socials { display: none; }

/* Shared column heading — teal underline like Image 1 */
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: white;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block; width: 100%;
}

/* Col 2 – About links */
.footer-about-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-about-list li a { font-size: 13px; color: rgba(255,255,255,0.82); transition: color 0.2s; }
.footer-about-list li a:hover { color: white; }

/* Col 3 – Categories */
.footer-cat-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-cat-list li a { font-size: 13px; color: rgba(255,255,255,0.82); transition: color 0.2s; }
.footer-cat-list li a:hover { color: white; }
.footer-cat-count { font-size: 11px; color: rgba(255,255,255,0.62); margin-left: 4px; }

/* Col 4 – Recent Posts (text only, no thumb) */
.footer-recent-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.footer-recent-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-recent-list li:last-child { border-bottom: none; }
.footer-recent-list li a { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.45; display: block; transition: color 0.2s; }
.footer-recent-list li a:hover { color: white; }
.footer-recent-date { font-size: 10px; color: rgba(255,255,255,0.62); display: block; margin-top: 3px; }

/* Bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; margin-top: 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.62); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.hero-title { animation: fadeUp 0.7s ease both; }
.hero-cards { animation: fadeUp 0.8s 0.2s ease both; }

.nav-toggle { display: none; }

/* ===================== TABLET (max 1024px) ===================== */
@media (max-width: 1024px) {
  .navbar { padding: 0 20px; }
  .hero { padding: 24px 20px 0; height: auto; min-height: 420px; }
  .hero-title { font-size: 40px; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .hero-card:last-child { display: none; }

  .features { padding: 40px 0; }
  .features-inner { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .news-section { padding: 40px 20px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: span 2; }

  .connect-section { padding: 24px 20px; }
  .connect-inner { flex-wrap: wrap; gap: 20px; }
  .social-buttons { margin-left: 0; flex-wrap: wrap; }

  .research-section { padding: 40px 20px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-featured img { height: 200px; }

  .mini-news { padding: 0 20px 28px; }
  .mini-news-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .more-news { padding: 40px 20px; }
  .more-news-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .all-posts-section { padding: 40px 20px; }
  .all-posts-layout { grid-template-columns: 1fr 280px; gap: 28px; }

  footer { padding: 36px 20px 20px; }
}

/* ===================== SMARTPHONE (max 768px) ===================== */
@media (max-width: 768px) {

  /* --- NAVBAR --- */
  .navbar { padding: 0 16px; flex-wrap: wrap; position: relative; }
  .nav-logo { padding: 12px 0; margin-right: auto; }

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

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links li ul { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .nav-links li ul li a { font-size: 12px; }

  /* --- BREADCRUMB --- */
  .breadcrumb-wrap { padding: 8px 16px; font-size: 11px; }

  /* --- HERO --- */
  .hero { padding: 20px 16px 0; min-height: 360px; }
  .hero-title { font-size: 28px; max-width: 100%; }
  .hero-cards { grid-template-columns: 1fr; border-top: none; margin-top: 20px; }
  .hero-card { border-right: none; border-top: 1px solid rgba(255,255,255,0.15); padding: 14px 0; }
  .hero-card:last-child { display: none; }

  /* --- KATEGORI 1 --- */
  .features { padding: 32px 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; }

  /* --- KATEGORI 2 --- */
  .news-section { padding: 32px 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .section-header h2 { font-size: 24px; }

  /* --- CONNECT --- */
  .connect-section { padding: 20px 16px; }
  .connect-inner { flex-direction: column; gap: 16px; }
  .connect-text h3 { font-size: 18px; }
  .social-buttons { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .social-btn { justify-content: center; }

  /* --- KATEGORI 3 --- */
  .research-section { padding: 32px 16px; }
  .research-grid { grid-template-columns: 1fr; }
  .research-featured img { height: 180px; }
  .research-featured .no-thumb { height: 180px; }
  .research-featured h3 { font-size: 20px; }

  /* --- KATEGORI 4 --- */
  .mini-news { padding: 0 16px 24px; }
  .mini-news-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* --- KATEGORI 5 --- */
  .more-news { padding: 32px 16px; }
  .more-news-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* --- ALL POSTS + SIDEBAR --- */
  .all-posts-section { padding: 32px 16px; }
  .all-posts-layout { grid-template-columns: 1fr; gap: 36px; }
  /* sidebar pindah ke bawah konten */
  .sidebar { order: 2; }
  .post-list { order: 1; }

  .post-item { flex-direction: column; gap: 12px; }
  .post-item img { width: 100%; height: 180px; }
  .post-item .no-thumb { width: 100%; height: 180px; }

  /* --- FOOTER --- */
  footer { padding: 28px 16px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-col-brand { grid-column: 1 / -1; }

  /* --- HALAMAN SINGLE / PAGE / ARCHIVE --- */
  /* override inline grid dari single.php, page.php, archive.php */
  div[style*="grid-template-columns:1fr 340px"],
  div[style*="grid-template-columns: 1fr 340px"] {
    display: block !important;
    padding: 24px 16px !important;
  }
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3,1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 24px 16px !important;
  }
  /* sidebar di single/page/archive juga ke bawah */
  div[style*="grid-template-columns:1fr 340px"] > aside,
  div[style*="grid-template-columns: 1fr 340px"] > aside {
    margin-top: 36px;
  }
}

/* ===================== IMAGE WRAPPERS — FIX UKURAN ===================== */
/* Semua wrapper gambar: overflow hidden + height fix agar gambar tidak meluber */

.news-card-img { position: relative; width: 100%; }
.news-card-img img { width: 100%; height: 320px; object-fit: cover; display: block; }
.news-card.featured .news-card-img img { height: 320px; }

.research-img-wrap { overflow: hidden; border-radius: 4px; margin-bottom: 18px; width: 100%; }
.research-img-wrap img { width: 100%; height: 300px; object-fit: cover; object-position: center; display: block; }

.research-item-img { overflow: hidden; width: 90px; min-width: 90px; height: 68px; border-radius: 3px; flex-shrink: 0; }
.research-item-img img { width: 90px; height: 68px; object-fit: cover; display: block; }

.post-item-thumb { display: block; overflow: hidden; width: 220px; min-width: 220px; height: 150px; border-radius: 4px; flex-shrink: 0; }
.post-item-thumb img { width: 220px; height: 150px; object-fit: cover; display: block; }


/* ===================== ARCHIVE / SEARCH / CATEGORY / TAG CARDS ===================== */
/* Gambar di card archive, search, category, tag */
.arc-card-img { display: block; height: 180px; overflow: hidden; }
.arc-card-img img  { width: 100%; height: 180px; object-fit: cover; display: block; }
.arc-card-img .no-thumb { width: 100%; height: 180px; background: var(--light-bg); display: block; }

/* Gambar utama single post */
.single-feature-img { width: 100%; height: 400px; object-fit: cover; border-radius: 4px; display: block; }
.single-feature-img.no-thumb { background: var(--light-bg); }

/* ===================== TOUCH TARGETS (a11y) ===================== */
/* Perbesar area klik link kecil supaya mudah ditekan di mobile (target >=24px). */
.footer-about-list li a, .footer-cat-list li a { display: inline-block; padding: 7px 0; }
.footer-recent-list li a { padding: 4px 0; }
.hero-card-title a, .news-card h3 a, .more-news-card h3 a, .mini-news-item h3 a, .research-item-body h3 a { display: inline-block; padding: 3px 0; }
.footer-about-list, .footer-cat-list { gap: 4px; }
/* ===================== ISI ARTIKEL (single / page) ===================== */
/* Jarak antar paragraf (mengatasi reset * { margin:0 }) + backlink jelas & sesuai warna tema. */
.post-content p { margin-bottom: 1.15em; }
.post-content p:last-child { margin-bottom: 0; }
.post-content a {
  color: var(--red) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.post-content a:hover { opacity: 0.8; }
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-heading); line-height: 1.25;
  margin: 1.4em 0 0.5em; color: var(--text);
}
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 21px; }
.post-content h4 { font-size: 18px; }
.post-content ul, .post-content ol { margin: 0 0 1.15em 1.4em; }
.post-content li { margin-bottom: 0.5em; }
.post-content blockquote {
  border-left: 4px solid var(--red); background: var(--light-bg);
  padding: 14px 18px; margin: 0 0 1.15em; font-style: italic; color: var(--muted);
}
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 6px 0 1.15em; }
.post-content figure { margin: 0 0 1.15em; }
.post-content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }