@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Fraunces:ital,wght@0,400;0,600;1,400&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1d408a;
  --secondary: #bb0909;
  --heading: #1b1d1d;
  --foreground: #6a6a6a;
  --bg: #ffffff;
  --bg-alt: #f1f3f9;
  --border: #e7e6e6;
  --meta: #a6a3a3;
  --light: #fffffe;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--foreground);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--secondary);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── HEADER ── */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-alt);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-group img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}
.logo-group span {
  font-weight: 700;
  font-size: 13px;
  color: var(--heading);
  line-height: 1.3;
  max-width: 160px;
}

/* ── HERO BANNER ── */
.hero {
  background: #d1dbdf;
  padding: 56px 1rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 600;
  color: #000;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.3;
}

/* ── LAYOUT ── */
.main-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 56px 1rem 72px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}

/* ── ARTICLE ── */
.article-featured-img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-alt);
}
.article-body {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.article-body p {
  margin-bottom: 1.1rem;
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.8;
}
.article-body p em {
  font-style: italic;
}
blockquote.pull {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--heading);
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 22px;
}
.sidebar-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* search */
.search-form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.search-form input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  outline: none;
}
.search-form button {
  background: #1b1d1d;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
}
.search-form button svg {
  fill: #fff;
}

/* about card */
.about-card {
  text-align: center;
}
.about-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}
.about-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.about-card p {
  font-size: 12.5px;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 14px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.social-links a {
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.social-links a:hover {
  background: var(--primary);
}
.social-links a:hover svg {
  fill: #fff;
}
.social-links svg {
  width: 16px;
  height: 16px;
  fill: var(--heading);
}

/* latest posts */
.post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.post-thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.post-info h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
  margin-bottom: 5px;
}
.post-info h4 a {
  color: var(--heading);
}
.post-info h4 a:hover {
  color: var(--secondary);
}
.post-date {
  font-size: 11px;
  color: var(--meta);
}

/* categories */
.cat-list {
  list-style: none;
}
.cat-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cat-list li:last-child {
  border-bottom: none;
}
.cat-list a {
  color: var(--heading);
  font-weight: 500;
}
.cat-list a:hover {
  color: var(--primary);
}
.cat-list .count {
  color: var(--meta);
  font-size: 12px;
  margin-left: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-wrap {
    grid-template-columns: 1fr;
  }
  .header-inner {
    position: relative;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 20px;
  }
}
