/*
Theme Name: مناخك بالعربي - Manakh Theme
Theme URI: https://menakak.org
Author: Manakh Team
Author URI: https://menakak.org
Description: قالب ووردبريس احترافي وحديث لمنصة مناخك بالعربي لنشر وتبسيط المعرفة والمصطلحات والفرص المناخية باللغة العربية مع دعم RTL كامل وتصميم متجاوب 100%.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manakh
Tags: arabic, rtl, climate, education, clean, modern, responsive-layout, custom-menu, featured-images
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --background: #fbfcfa;
  --foreground: #14231c;
  --primary: #176743;
  --primary-dark: #0d3f2a;
  --primary-light: #208b5b;
  --sage: #eaf3e9;
  --sage-light: #f4f8f4;
  --line: #dfe7e1;
  --muted: #66716a;
  --orange: #ed8d35;
  --orange-hover: #d97822;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font-sans: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --transition: all 0.25s ease;
  --shadow-sm: 0 2px 8px rgba(20, 35, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(23, 103, 67, 0.08);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--line);
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  transition: var(--transition);
}

p {
  color: #48534d;
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.3;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 20px;
}

/* Buttons */
.login,
.primary,
.orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.login,
.primary {
  background: var(--primary);
  color: #ffffff !important;
}

.login:hover,
.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.orange {
  background: var(--orange);
  color: #ffffff !important;
}

.orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* Icons styling */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  height: 76px;
  background: #ffffff;
  border-bottom: 1px solid #e8eee9;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nav-wrap {
  max-width: 1240px;
  height: 100%;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  line-height: 1;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: #e4f1e6;
  color: var(--primary);
}

.logo strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-light);
}

.nav-wrap nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-wrap nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-wrap nav ul li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-wrap nav ul li a,
.nav-wrap nav button {
  font-size: 15px;
  font-weight: 600;
  padding: 24px 4px 20px;
  border-bottom: 2px solid transparent;
  color: #3b4b42;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition);
}

.nav-wrap nav ul li.current-menu-item a,
.nav-wrap nav ul li.current_page_item a,
.nav-wrap nav ul li a:hover,
.nav-wrap nav button.active,
.nav-wrap nav button:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #55635b;
}

.language:hover {
  color: var(--primary);
}

.icon-btn {
  background: #f5f7f5;
  border-radius: 50%;
  padding: 10px;
  display: grid;
  place-items: center;
  color: #55635b;
  width: 40px;
  height: 40px;
}

.icon-btn:hover {
  background: var(--sage);
  color: var(--primary);
}

.menu {
  display: none;
  padding: 8px;
  color: var(--foreground);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.home-hero {
  min-height: 400px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.home-hero>div {
  max-width: 720px;
  padding: 60px 20px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: #e4f3e7;
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  letter-spacing: 0.5px;
}

.home-hero h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin: 14px 0;
  color: #ffffff;
}

.home-hero h1 span {
  color: #b8dfb5;
}

.home-hero p:not(.eyebrow) {
  font-size: 19px;
  color: #ffffff;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero {
  min-height: 270px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero>div {
  max-width: 650px;
  padding: 34px;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 10px;
}

.hero p {
  font-size: 17px;
  margin: 0 auto 18px;
  color: #3b4c42;
  line-height: 1.6;
}

/* ==========================================================================
   Search Panel
   ========================================================================== */
.search-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(28, 91, 59, 0.08);
  margin: -58px auto 42px;
  position: relative;
  max-width: 900px;
  z-index: 10;
}

.searchbar,
.input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #89948d;
  background: #ffffff;
}

.searchbar input,
.input input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--foreground);
  font-size: 15px;
}

.searchbar input::placeholder,
.input input::placeholder {
  color: #89948d;
}

.checks {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  padding-top: 15px;
  font-size: 13px;
  font-weight: 500;
  color: #4a574f;
}

.checks span,
.checks a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4a574f;
  transition: var(--transition);
  cursor: pointer;
}

.checks span:hover,
.checks a:hover {
  color: var(--primary);
}

.checks svg {
  color: var(--primary);
}

/* ==========================================================================
   Section Titles & Topics
   ========================================================================== */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 18px;
}

.section-title h2 {
  font-size: 23px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
}

.section-title h2 svg {
  color: var(--primary);
}

.section-title span,
.section-title a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-title span:hover,
.section-title a:hover {
  color: var(--primary-dark);
}

.topic-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.topic-row button,
.topic-row a,
.feature,
.article-card,
.contact-info,
.contact-grid form,
.help,
.stats,
.vision-grid>div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-row button,
.topic-row a {
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.topic-row button:hover,
.topic-row a:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.topic-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--primary);
  transition: var(--transition);
}

.topic-row button:hover .topic-icon,
.topic-row a:hover .topic-icon {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Home Features Grid & CTA
   ========================================================================== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.feature {
  padding: 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature.highlight {
  background: #eff7ee;
  border-color: #c9e2c6;
}

.feature h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--primary-dark);
  font-size: 18px;
  margin: 0 0 10px;
}

.feature p {
  font-size: 15px;
  margin: 0 0 16px;
  color: #4a5a51;
}

.feature button,
.feature a,
.article-card button,
.article-card .read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  text-decoration: none;
}

.feature button:hover,
.feature a:hover,
.article-card button:hover,
.article-card .read-more:hover {
  color: var(--primary-dark);
  gap: 9px;
}

.cta {
  margin-top: 36px;
  padding: 28px 34px;
  border-radius: 18px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d4e7d1;
}

.cta h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 22px;
}

.cta p {
  margin: 6px 0 0;
  color: #3b4e43;
}

/* ==========================================================================
   Glossary & Knowledge Hub
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
}

.stats b {
  padding: 20px;
  text-align: center;
  color: var(--primary);
  font-size: 23px;
  font-weight: 800;
  border-left: 1px solid var(--line);
}

.stats b:last-child {
  border-left: 0;
}

.stats small {
  display: block;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.filter {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  height: max-content;
}

.filter h3 {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--primary-dark);
}

.filter-group {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.filter-group strong {
  margin-bottom: 4px;
  color: var(--foreground);
  font-weight: 700;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #4a5a51;
}

.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolbar .input {
  flex: 1;
  min-width: 230px;
}

.toolbar select,
.toolbar button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5a51;
  font-weight: 500;
  cursor: pointer;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.article-art {
  border-radius: 10px;
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--primary);
  overflow: hidden;
}

.article-art svg {
  width: 56px;
  height: 56px;
}

.art-0 {
  background: #dcebe0;
}

.art-1 {
  background: #f1e5cb;
}

.art-2 {
  background: #d8e7e0;
}

.article-card h2,
.article-card h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  color: var(--primary-dark);
}

.article-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  background: #e6f2e6;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.meta .read-more {
  margin-right: auto;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-intro img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.about-intro h2,
.vision-grid h2 {
  color: var(--primary-dark);
  font-size: 26px;
  margin-top: 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.values div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.values svg {
  color: var(--primary);
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
}

.values strong {
  font-size: 14px;
  color: var(--foreground);
}

.values small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.vision-grid>div {
  padding: 28px;
  background: var(--sage);
  border-color: #d4e7d1;
}

.vision-grid h2 {
  margin-top: 0;
  font-size: 22px;
}

.vision-grid p {
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px;
  margin-bottom: 24px;
}

.info {
  text-align: center;
  padding: 10px 14px;
  border-left: 1px solid var(--line);
}

.info:last-child {
  border-left: 0;
}

.info svg {
  color: var(--primary);
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}

.info h3 {
  font-size: 15px;
  margin: 4px 0 4px;
  color: var(--foreground);
}

.info p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.contact-grid form,
.help {
  padding: 28px;
}

.contact-grid h2 {
  margin-top: 0;
  color: var(--primary-dark);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 22px;
}

.contact-grid label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0;
  color: #3b4c42;
}

.contact-grid input,
.contact-grid select,
.contact-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 6px;
  background: #ffffff;
  outline-color: var(--primary);
  font-size: 14px;
  color: var(--foreground);
}

.contact-grid input:focus,
.contact-grid select:focus,
.contact-grid textarea:focus {
  border-color: var(--primary);
}

.contact-grid textarea {
  resize: vertical;
}

.help {
  background: #f5f9f4;
}

.help h2 {
  margin-top: 0;
  font-size: 20px;
  color: var(--primary-dark);
}

.help button,
.help a {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #3b4c42;
  text-decoration: none;
  transition: var(--transition);
}

.help button:hover,
.help a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(-3px);
}

.help button svg,
.help a svg {
  color: var(--primary);
}

/* ==========================================================================
   WordPress Single Post & General Page Styles
   ========================================================================== */
.post-header {
  margin-bottom: 24px;
}

.post-header h1 {
  font-size: 36px;
  margin: 10px 0;
  color: var(--primary-dark);
}

.post-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.entry-content {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  line-height: 1.8;
  font-size: 16px;
}

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

.entry-content h2,
.entry-content h3 {
  color: var(--primary-dark);
  margin: 1.5em 0 0.8em;
}

.entry-content ul,
.entry-content ol {
  padding-right: 24px;
  margin-bottom: 1.5em;
}

.entry-content blockquote {
  border-right: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--sage);
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #0e3d2a;
  color: #ffffff;
  padding: 48px 20px 24px;
  margin-top: 50px;
}

.footer-grid {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid .logo {
  color: #ffffff;
}

.footer-grid .logo svg {
  color: #ffffff;
  fill: #226749;
}

.footer-grid .logo strong {
  color: #ffffff;
}

.footer-grid .logo span {
  color: #b8dfb5;
}

.footer-grid p {
  color: #d4e1d7;
  max-width: 300px;
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-grid h4 {
  margin: 0 0 14px;
  color: #d7eed9;
  font-size: 16px;
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid ul li a,
.footer-grid button {
  display: block;
  color: #c5d6ca;
  font-size: 14px;
  padding: 3px 0;
  transition: var(--transition);
  text-decoration: none;
}

.footer-grid ul li a:hover,
.footer-grid button:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.social {
  display: flex;
  gap: 14px;
}

.social a,
.social span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: var(--transition);
}

.social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.social svg {
  width: 18px;
  height: 18px;
}

.copyright {
  max-width: 1160px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 36px auto 0;
  padding-top: 20px;
  text-align: center;
  color: #bdd0c3;
  font-size: 13px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .topic-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .filter {
    order: 2;
  }

  .results {
    order: 1;
  }

  .home-grid,
  .about-intro,
  .vision-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 800px) {
  .header {
    height: 64px;
  }

  .nav-wrap {
    padding: 0 14px;
    justify-content: space-between;
  }

  .nav-wrap nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--line);
  }

  .nav-wrap nav.open {
    display: flex;
  }

  .nav-wrap nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-wrap nav ul li a,
  .nav-wrap nav button {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #f2f5f3;
  }

  .head-actions {
    gap: 8px;
  }

  .language {
    display: none;
  }

  .login {
    padding: 8px 14px;
    font-size: 13px;
  }

  .menu {
    display: block;
  }

  .home-hero h1 {
    font-size: 46px;
  }

  .home-hero {
    min-height: 420px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats b:nth-child(2) {
    border-left: 0;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .info:nth-child(2) {
    border-left: 0;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .article-card {
    grid-template-columns: 110px 1fr;
  }

  .article-art {
    min-height: 110px;
  }

  .article-card h2,
  .article-card h3 {
    font-size: 17px;
  }

  .meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .meta .read-more {
    width: 100%;
    text-align: right;
  }

  .checks {
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
    padding-bottom: 6px;
  }

  .search-panel {
    margin-top: -35px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 14px;
  }

  .topic-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .topic-row button,
  .topic-row a {
    font-size: 13px;
    padding: 14px 6px;
  }

  .topic-icon {
    width: 44px;
    height: 44px;
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .home-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .contact-info {
    padding: 10px;
  }

  .info {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid>div:first-child {
    grid-column: auto;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-art {
    height: 120px;
  }
}