/*
Theme Name: GFG Custom Theme
Theme URI: https://yourdomain.com/
Author: Nitin
Description: Lightweight custom WordPress theme with article layout and related sidebar.
Version: 1.0
Text Domain: gfg-custom-theme
*/

/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7f9;
  color: #222;
}

a {
  color: #0b7a3b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================
   Header
========================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
  position: relative;
  z-index: 100;
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.site-title a {
  color: #0b7a3b;
}

.site-nav {
  flex: 1;
}

.primary-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: #222;
  font-size: 15px;
  font-weight: 600;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-search input {
  width: 220px;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.site-search button {
  padding: 9px 12px;
  background: #04aa6d;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* =========================
   Homepage / Archive Layout
========================= */

.main-wrap {
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.content-card,
.sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
}

.content-card article {
  margin-bottom: 22px;
}

.content-card h1 {
  margin-top: 0;
}

.content-card h2 {
  margin-top: 0;
  font-size: 24px;
  line-height: 1.3;
}

.content-card p {
  line-height: 1.65;
}

.sidebar-card {
  margin-bottom: 18px;
}

.sidebar-card h3 {
  margin-top: 0;
  font-size: 18px;
}

.sidebar-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.sidebar-card li {
  margin-bottom: 10px;
}

/* =========================
   Index / Archive Cards
========================= */

.home-intro {
  margin-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 22px;
}

.home-intro h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.home-intro p {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 22px;
}

.post-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-card-image img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.post-card-category {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.post-card-title {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.post-card-title a {
  color: #111;
}

.post-card-title a:hover {
  color: #0b7a3b;
  text-decoration: none;
}

.post-card-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.post-card-excerpt {
  color: #333;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 12px;
}

.read-more-link {
  font-weight: 700;
  font-size: 15px;
}

.archive-sidebar .sidebar-card form,
.sidebar-card .search-form {
  display: flex;
  gap: 6px;
}

.archive-sidebar .sidebar-card input[type="search"],
.sidebar-card .search-field {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.archive-sidebar .sidebar-card input[type="submit"],
.sidebar-card .search-submit {
  padding: 9px 12px;
  background: #04aa6d;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.tag-cloud-wrap a {
  display: inline-block;
  margin: 0 6px 8px 0;
}

.no-posts-found h1 {
  margin-top: 0;
}

/* =========================
   Category / Tag / Archive Intro
========================= */

.archive-intro {
  margin-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 22px;
}

.archive-intro h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.archive-description {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

/* =========================
   Search Page
========================= */

.search-page-form {
  margin-bottom: 28px;
  padding: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.search-page-form form {
  display: flex;
  gap: 8px;
}

.search-page-form input[type="search"],
.search-page-form .search-field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.search-page-form input[type="submit"],
.search-page-form .search-submit {
  padding: 10px 14px;
  background: #04aa6d;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================
   Front Page
========================= */

.homepage-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.homepage-hero {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 44px;
  margin-bottom: 28px;
}

.homepage-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 14px;
}

.homepage-hero p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  color: #444;
  margin: 0 0 24px;
}

.homepage-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.homepage-search input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
}

.homepage-search button {
  padding: 13px 18px;
  background: #04aa6d;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.homepage-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.section-heading p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  background: #f9fafb;
}

.category-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.category-card h3 a {
  color: #111;
}

.category-card h3 a:hover {
  color: #0b7a3b;
  text-decoration: none;
}

.category-card p {
  color: #444;
  line-height: 1.6;
  margin: 0 0 12px;
}

.category-card span {
  color: #666;
  font-size: 14px;
  font-weight: 700;
}

.home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-post-card {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 18px;
}

.home-post-image img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 14px;
}

.home-post-card h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.home-post-card h3 a {
  color: #111;
}

.home-post-card h3 a:hover {
  color: #0b7a3b;
  text-decoration: none;
}

.home-post-card p {
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.homepage-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.homepage-panel h2 {
  font-size: 26px;
  margin: 0 0 16px;
}

.simple-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-link-list li {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}

.simple-link-list li:last-child {
  border-bottom: 0;
}

.simple-link-list a {
  color: #111;
  font-weight: 600;
}

.simple-link-list a:hover {
  color: #0b7a3b;
  text-decoration: none;
}

/* =========================
   Single Article Layout
========================= */

.article-page-shell,
.article-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  padding: 0 24px;
}

.left-topic-sidebar {
  background: #f1f1f1;
  border-right: 1px solid #ddd;
  height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  overflow-y: auto;
  padding: 16px 0;
}

.left-sidebar-box {
  margin-bottom: 24px;
}

.left-sidebar-box h3 {
  font-size: 20px;
  font-weight: 600;
  padding: 0 16px;
  margin: 0 0 10px;
}

.left-sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-sidebar-box li {
  margin: 0;
}

.left-sidebar-box a {
  display: block;
  padding: 8px 16px;
  color: #111;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.left-sidebar-box a:hover {
  background: #ddd;
  text-decoration: none;
}

.left-sidebar-box .active-post a {
  background: #04aa6d;
  color: #fff;
  font-weight: 600;
}

.article-main {
  background: #fff;
  padding: 48px 56px;
  max-width: 880px;
  min-height: 100vh;
}

.breadcrumbs {
  font-size: 14px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.5;
}

.breadcrumbs a {
  color: #0b7a3b;
}

.breadcrumbs span {
  margin: 0 4px;
}

.article-title {
  font-size: 42px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 500;
}

.article-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 32px;
}

.article-featured-image {
  margin-bottom: 32px;
}

.article-featured-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.article-content {
  font-size: 18px;
  line-height: 1.75;
}

.article-content h2 {
  font-size: 30px;
  margin-top: 42px;
  line-height: 1.25;
}

.article-content h3 {
  font-size: 24px;
  margin-top: 32px;
  line-height: 1.3;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}

.article-content th {
  background: #f3f4f6;
}

.article-content blockquote {
  border-left: 4px solid #04aa6d;
  padding: 12px 18px;
  margin: 24px 0;
  background: #f6fffb;
  color: #333;
}

.article-tags {
  margin-top: 36px;
  font-size: 15px;
}

/* =========================
   Mobile Topic Bar
========================= */

.mobile-topic-bar {
  display: none;
}

.mobile-topic-head {
  display: none;
}

.topic-overlay {
  display: none;
}

/* =========================
   Pagination
========================= */

.pagination {
  margin-top: 24px;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
}

.pagination .current {
  background: #04aa6d;
  color: #fff;
  border-color: #04aa6d;
}

/* =========================
   Footer
========================= */

.site-footer {
  background: #111827;
  color: #fff;
  padding: 32px 24px;
  margin-top: 40px;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand strong {
  font-size: 22px;
}

.footer-brand a {
  color: #fff;
}

.footer-brand p {
  color: #d1d5db;
  line-height: 1.6;
  margin: 8px 0 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-links a {
  color: #d1d5db;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy p {
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}

/* =========================
   Mobile
========================= */

@media (max-width: 900px) {

  body {
    background: #fff;
  }

  .site-header {
    padding: 12px 16px;
  }

  .site-header-inner {
    display: block;
  }

  .site-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .site-nav {
    margin-bottom: 10px;
  }

  .primary-menu {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-search {
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .main-wrap {
    display: block;
    padding: 0 16px;
    margin: 20px auto;
  }

  .content-card,
  .sidebar-card {
    padding: 20px;
  }

  .home-intro h1,
  .archive-intro h1 {
    font-size: 30px;
  }

  .post-card {
    display: block;
  }

  .post-card-image img {
    height: auto;
    margin-bottom: 14px;
  }

  .post-card-title {
    font-size: 23px;
  }

  .archive-sidebar {
    margin-top: 20px;
  }

  .search-page-form form {
    display: block;
  }

  .search-page-form input[type="search"],
  .search-page-form .search-field {
    margin-bottom: 8px;
  }

  .search-page-form input[type="submit"],
  .search-page-form .search-submit {
    width: 100%;
  }

  .homepage-wrap {
    padding: 16px;
  }

  .homepage-hero {
    padding: 28px 20px;
  }

  .homepage-hero h1 {
    font-size: 34px;
  }

  .homepage-search {
    display: block;
  }

  .homepage-search input {
    margin-bottom: 8px;
  }

  .homepage-search button {
    width: 100%;
  }

  .category-grid,
  .home-post-grid,
  .homepage-two-column {
    grid-template-columns: 1fr;
  }

  .homepage-section {
    padding: 22px 20px;
  }

  .article-page-shell,
  .article-layout {
    display: block;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .mobile-topic-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 38px;
    background: #1f2230;
    color: #fff;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 90;
    overflow-x: auto;
    white-space: nowrap;
  }

  .mobile-topic-menu-btn {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  .mobile-topic-label,
  .mobile-topic-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }

  .left-topic-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    left: auto !important;
    width: 300px !important;
    height: 100vh !important;
    z-index: 120 !important;
    background: #f1f1f1;
    border-left: 1px solid #ddd;
    border-right: 0;
    border-bottom: 0;
    overflow-y: auto;
    padding: 0 0 16px;
    transition: right 0.25s ease;
  }

  body.topic-menu-open .left-topic-sidebar {
    right: 0 !important;
  }

  .mobile-topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 121;
  }

  .mobile-topic-head button {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  body.topic-menu-open .topic-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 110;
  }

  .article-main {
    padding: 28px 20px;
    max-width: 100%;
    min-height: auto;
    background: #fff;
  }

  .breadcrumbs {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .article-title {
    font-size: 34px;
    line-height: 1.18;
    margin-bottom: 12px;
  }

  .article-meta {
    margin-bottom: 28px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-content h2 {
    font-size: 26px;
    margin-top: 34px;
  }

  .article-content h3 {
    font-size: 22px;
    margin-top: 28px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-footer {
    margin-top: 20px;
    padding: 28px 18px;
  }
}
/* =========================
   Clean Homepage - No Sidebar
========================= */

.home-clean-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px;
}

.home-clean-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 44px;
  margin-bottom: 28px;
}

.home-clean-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #111;
}

.home-clean-hero p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  color: #444;
  margin: 0 0 24px;
}

.home-clean-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.home-clean-search input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
}

.home-clean-search button {
  padding: 13px 18px;
  background: #04aa6d;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.home-topic-section,
.home-article-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 28px;
}

.home-section-head {
  margin-bottom: 24px;
}

.home-section-head h2 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #111;
}

.home-section-head p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 16px;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-topic-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
}

.home-topic-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.home-topic-card h3 a {
  color: #111;
}

.home-topic-card h3 a:hover {
  color: #0b7a3b;
  text-decoration: none;
}

.home-topic-card p {
  color: #444;
  line-height: 1.65;
  margin: 0 0 12px;
}

.home-topic-card span {
  color: #666;
  font-size: 14px;
  font-weight: 700;
}

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-article-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  background: #fff;
}

.home-article-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 14px;
}

.home-article-category {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.home-article-card h2 {
  font-size: 24px;
  line-height: 1.28;
  margin: 0 0 10px;
}

.home-article-card h2 a {
  color: #111;
}

.home-article-card h2 a:hover {
  color: #0b7a3b;
  text-decoration: none;
}

.home-article-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.home-article-card p {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  margin: 0 0 14px;
}

.home-read-more {
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 900px) {
  .home-clean-wrap {
    padding: 18px 16px;
  }

  .home-clean-hero {
    padding: 30px 22px;
  }

  .home-clean-hero h1 {
    font-size: 34px;
  }

  .home-clean-search {
    display: block;
  }

  .home-clean-search input {
    margin-bottom: 8px;
  }

  .home-clean-search button {
    width: 100%;
  }

  .home-topic-section,
  .home-article-section {
    padding: 24px 20px;
  }

  .home-topic-grid,
  .home-article-grid {
    grid-template-columns: 1fr;
  }

  .home-section-head h2 {
    font-size: 28px;
  }
}
/* =========================
   Modern Latest Articles Homepage
========================= */

.latest-home-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px;
}

.latest-home-head {
  margin-bottom: 28px;
}

.latest-home-head h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #111827;
  letter-spacing: -0.04em;
}

.latest-home-head p {
  font-size: 17px;
  line-height: 1.6;
  color: #5b6472;
  margin: 0;
}

.latest-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.latest-article-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.latest-article-card:hover {
  transform: translateY(-3px);
  border-color: #cfd5dd;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.latest-article-image {
  display: block;
  background: #f3f4f6;
}

.latest-article-image img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}

.latest-article-body {
  padding: 22px;
}

.latest-article-category {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #047857;
}

.latest-article-category:hover {
  text-decoration: none;
  color: #065f46;
}

.latest-article-body h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}

.latest-article-body h2 a {
  color: #111827;
}

.latest-article-body h2 a:hover {
  color: #047857;
  text-decoration: none;
}

.latest-article-meta {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 14px;
}

.latest-article-body p {
  color: #374151;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.latest-article-link {
  font-size: 15px;
  font-weight: 800;
  color: #047857;
}

.latest-article-link:hover {
  color: #065f46;
  text-decoration: none;
}

.latest-pagination {
  margin-top: 34px;
}

.latest-empty {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 28px;
}

.latest-empty h2 {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .latest-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .latest-home-wrap {
    padding: 28px 16px;
  }

  .latest-home-head h1 {
    font-size: 34px;
  }

  .latest-home-head p {
    font-size: 16px;
  }

  .latest-article-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .latest-article-image img {
    height: 190px;
  }

  .latest-article-body {
    padding: 20px;
  }

  .latest-article-body h2 {
    font-size: 21px;
  }
}
/* =========================
   Uniform Latest Article Cards
========================= */

.latest-article-grid {
  align-items: stretch;
}

.latest-article-card {
  min-height: 335px;
  display: flex;
  flex-direction: column;
}

.latest-article-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.latest-article-body h2 {
  min-height: 56px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-article-meta {
  min-height: 18px;
}

.latest-article-body p {
  min-height: 78px;
  max-height: 78px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.latest-article-link {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
}

/* If no featured image exists, keep card layout still clean */
.latest-article-card:not(:has(.latest-article-image)) .latest-article-body {
  min-height: 335px;
}

/* Better spacing on desktop */
.latest-home-wrap {
  padding-top: 44px;
}

.latest-home-head {
  margin-bottom: 30px;
}

.latest-home-head h1 {
  font-size: 44px;
  font-weight: 800;
}

/* Mobile */
@media (max-width: 700px) {
  .latest-article-card {
    min-height: auto;
  }

  .latest-article-body h2 {
    min-height: auto;
  }

  .latest-article-body p {
    min-height: auto;
    max-height: none;
    -webkit-line-clamp: unset;
  }

  .latest-article-card:not(:has(.latest-article-image)) .latest-article-body {
    min-height: auto;
  }
}
/* =========================
   Clean Category Page - Same Cards as Homepage
========================= */

.category-clean-wrap {
  max-width: 1180px;
}

.category-clean-description {
  font-size: 17px;
  line-height: 1.6;
  color: #5b6472;
  margin: 0;
}

.category-clean-wrap .breadcrumbs {
  margin-bottom: 14px;
}

.category-clean-wrap .latest-home-head {
  margin-bottom: 30px;
}

.category-clean-wrap .latest-home-head h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.category-clean-wrap .latest-home-head p {
  font-size: 17px;
  line-height: 1.6;
  color: #5b6472;
  margin: 0;
}

@media (max-width: 700px) {
  .category-clean-wrap .latest-home-head h1 {
    font-size: 34px;
  }
}
/* =========================
   Clean Search Page - No Sidebar
========================= */

.search-clean-wrap {
  max-width: 1180px;
}

.search-clean-wrap .latest-home-head {
  margin-bottom: 20px;
}

.search-clean-wrap .latest-home-head h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.search-clean-wrap .latest-home-head p {
  font-size: 17px;
  line-height: 1.6;
  color: #5b6472;
  margin: 0;
}

.search-clean-form {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 28px;
}

.search-clean-form form {
  display: flex;
  gap: 10px;
}

.search-clean-form input[type="search"],
.search-clean-form .search-field {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
}

.search-clean-form input[type="submit"],
.search-clean-form .search-submit {
  padding: 13px 18px;
  background: #04aa6d;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.search-clean-form input[type="submit"]:hover,
.search-clean-form .search-submit:hover {
  background: #038857;
}

@media (max-width: 700px) {
  .search-clean-wrap .latest-home-head h1 {
    font-size: 34px;
  }

  .search-clean-form {
    padding: 18px;
  }

  .search-clean-form form {
    display: block;
  }

  .search-clean-form input[type="search"],
  .search-clean-form .search-field {
    margin-bottom: 8px;
  }

  .search-clean-form input[type="submit"],
  .search-clean-form .search-submit {
    width: 100%;
  }
}
/* Search page without internal search box */
.search-clean-wrap .latest-home-head {
  margin-bottom: 30px;
}
* {
    box-sizing: border-box;
}

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: hidden;
}

.site-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
}

.site-title {
    width: 100%;
    margin-bottom: 12px;
}

.site-title a {
    display: block !important;
    max-width: 100% !important;
    color: #0f7a32;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.site-title-line {
    display: inline;
}

.site-search {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-bottom: 12px;
}

.site-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
}

.site-search button {
    flex-shrink: 0;
    padding: 9px 13px;
    font-size: 14px;
    border: 0;
    border-radius: 5px;
    background: #00a86b;
    color: #ffffff;
    cursor: pointer;
}

.site-nav {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    background: #1f2230;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .site-title a {
        font-size: 24px;
        line-height: 1.18;
    }

    .site-title-line {
        display: block;
    }
}