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

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: #f8fafc;
  color: #1a1a2e;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Cairo', sans-serif; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f7ff; }
::-webkit-scrollbar-thumb { background: #1a3a6e; border-radius: 3px; }

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --navy: #0a1628;
  --blue: #1a3a6e;
  --accent: #00b4d8;
  --ice: #d4eaf7;
  --light: #f0f7ff;
  --bg: #f8fafc;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --radius: 1rem;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* ── Utility ──────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--dark { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); }
.section--light { background: var(--light); }
.section--bg { background: var(--bg); }

.section__label {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section__title--white { color: var(--white); }

.section__subtitle {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
}

.text-center { text-align: center; }
.mb-14 { margin-bottom: 3.5rem; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: .875rem 2rem;
  border-radius: .75rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: #0096c7;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,180,216,.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
}

.btn--white {
  background: var(--white);
  color: var(--accent);
  font-size: 1.125rem;
  box-shadow: var(--shadow-lg);
}
.btn--white:hover { background: var(--light); }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.navbar__logo span { color: var(--accent); }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar__links a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--accent); }

.navbar__cta {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .875rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  transition: background .2s;
}
.navbar__cta:hover { background: #0096c7; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.navbar__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}

.navbar__mobile {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 0 1.5rem 1rem;
}

.navbar__mobile.open { display: block; }

.navbar__mobile a {
  display: block;
  padding: .75rem 0;
  color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}
.navbar__mobile a:hover { color: var(--accent); }

.navbar__mobile .btn--primary {
  display: flex;
  justify-content: center;
  margin-top: .75rem;
  padding: .75rem;
}

@media (max-width: 768px) {
  .navbar__links, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--navy) 100%);
  padding-top: 4rem;
}

.hero__glow-1, .hero__glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__glow-1 {
  top: 5rem; left: 2.5rem;
  width: 18rem; height: 18rem;
  background: rgba(0,180,216,.12);
}
.hero__glow-2 {
  bottom: 5rem; right: 2.5rem;
  width: 24rem; height: 24rem;
  background: rgba(0,180,216,.06);
}

.hero__circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,180,216,.15);
  border: 1px solid rgba(0,180,216,.25);
  border-radius: 9999px;
  padding: .375rem 1rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero__title-accent {
  background: linear-gradient(to left, var(--accent), #90e0ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  color: rgba(255,255,255,.7);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero__stat-num {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.hero__stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: .25rem;
}

.hero__image-wrap {
  position: relative;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}

.hero__image img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.6), transparent);
  border-radius: var(--radius);
}

.hero__float-card {
  position: absolute;
  bottom: -1rem; right: -1rem;
  background: var(--white);
  border-radius: .75rem;
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid #f3f4f6;
  z-index: 2;
}

.hero__float-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.hero__float-sub { font-size: .75rem; color: var(--muted); }
.hero__float-title { font-weight: 700; color: var(--navy); font-size: .875rem; }

.hero__wave {
  position: absolute;
  bottom: 0; right: 0; left: 0;
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image-wrap { display: none; }
}

/* ── Services ─────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s;
  cursor: default;
}
.service-card:hover { transform: translateY(-4px); }

.service-card__inner {
  padding: 1.5rem;
}

.service-card--1 { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.service-card--2 { background: linear-gradient(135deg, var(--accent), #0077b6); }
.service-card--3 { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.service-card--4 { background: linear-gradient(135deg, #0077b6, var(--accent)); }

.service-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }

.service-card__title {
  color: var(--white);
  font-weight: 900;
  font-size: 1.125rem;
  margin-bottom: .5rem;
}

.service-card__desc {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ── Why Us ───────────────────────────────────────────── */
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.why__list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }

.why__item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.why__item:hover { background: rgba(255,255,255,.09); }

.why__item-icon { font-size: 1.5rem; margin-top: .125rem; flex-shrink: 0; }

.why__item-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .875rem;
  margin-bottom: .25rem;
}

.why__item-desc {
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  line-height: 1.6;
}

.why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.why__stat {
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  text-align: center;
  transition: background .2s;
}
.why__stat:hover { background: rgba(255,255,255,.09); }

.why__stat-num {
  font-family: 'Cairo', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(to left, var(--accent), #90e0ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why__stat-label {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  margin-top: .5rem;
}

@media (max-width: 768px) {
  .why__inner { grid-template-columns: 1fr; }
}

/* ── Articles ─────────────────────────────────────────── */
.articles__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.articles__all {
  font-weight: 700;
  font-size: .875rem;
  color: var(--blue);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color .2s;
}
.articles__all:hover { color: var(--accent); }

.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow);
  transition: all .3s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card__img-wrap {
  position: relative;
  height: 11rem;
  overflow: hidden;
  background: var(--ice);
}

.article-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.article-card:hover .article-card__img-wrap img { transform: scale(1.05); }

.article-card__tag {
  position: absolute;
  top: .75rem; right: .75rem;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 9999px;
}

.tag--tips    { background: var(--ice); color: var(--blue); }
.tag--maint   { background: #ffedd5; color: #c2410c; }
.tag--energy  { background: #dcfce7; color: #15803d; }
.tag--trade   { background: #ede9fe; color: #7c3aed; }

.article-card__body { padding: 1.25rem; }

.article-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.article-card__meta-sep { color: #d1d5db; }

.article-card__title {
  font-weight: 900;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__excerpt {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: 1rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  transition: gap .2s;
}
.article-card__link:hover { gap: .5rem; }

@media (max-width: 1024px) {
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .articles__grid { grid-template-columns: 1fr; }
}

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--accent);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner__text {
  color: rgba(255,255,255,.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ── Contact ──────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact__info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow);
}

.contact__info-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact__info-label { font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.contact__info-val { font-weight: 700; color: var(--navy); }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #f3f4f6;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .375rem;
}

.form-input, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  padding: .75rem 1rem;
  font-family: 'Tajawal', sans-serif;
  font-size: .875rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,.15);
}

.form-textarea { resize: none; }

.form-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  padding: .875rem;
  border: none;
  border-radius: .75rem;
  cursor: pointer;
  transition: background .2s;
}
.form-submit:hover { background: var(--navy); }

.form-success {
  text-align: center;
  padding: 2rem 0;
  display: none;
}
.form-success.visible { display: block; }
.form-success__icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success__title { font-size: 1.25rem; font-weight: 900; color: var(--navy); margin-bottom: .5rem; }
.form-success__text { color: var(--muted); }

@media (max-width: 768px) {
  .contact__inner { grid-template-columns: 1fr; }
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.footer__logo span { color: var(--accent); }

.footer__desc { color: rgba(255,255,255,.35); font-size: .875rem; line-height: 1.6; }

.footer__col-title {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: .875rem;
  margin-bottom: .75rem;
}

.footer__links { display: flex; flex-direction: column; gap: .5rem; }

.footer__links a {
  color: rgba(255,255,255,.4);
  font-size: .875rem;
  transition: color .2s;
}
.footer__links a:hover { color: var(--accent); }

.footer__social { display: flex; gap: .75rem; }

.footer__social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  transition: background .2s;
}
.footer__social a:hover { background: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  text-align: center;
  color: rgba(255,255,255,.25);
  font-size: .75rem;
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Single Post ──────────────────────────────────────── */
.post-hero {
  position: relative;
  height: 22rem;
  background: var(--ice);
  overflow: hidden;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.7) 0%, rgba(10,22,40,.2) 60%, transparent 100%);
}

.post-hero__breadcrumb {
  position: absolute;
  bottom: 1.5rem;
  right: 0; left: 0;
  padding: 0 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
}

.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .current { color: rgba(255,255,255,.9); }

.post-layout {
  max-width: 52rem;
  margin: -3rem auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.post-card__header {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.post-card__meta .sep { color: #d1d5db; }
.post-card__meta .date, .post-card__meta .read-time { font-size: .75rem; color: var(--muted); }

.post-card__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-card__excerpt {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  border-right: 4px solid var(--accent);
  padding-right: 1rem;
}

.post-card__body { padding: 2rem 2.5rem; }

.post-card__body p {
  color: #4b5563;
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.post-card__body h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}

.post-card__body strong { font-weight: 700; color: var(--navy); }

.post-cta {
  margin: 0 2.5rem 2.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  text-align: center;
}

.post-cta__title {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: .5rem;
}

.post-cta__text { color: rgba(255,255,255,.55); font-size: .875rem; margin-bottom: 1.25rem; }

.post-cta .btn--primary { font-size: .875rem; }

/* Related posts */
.related { margin-top: 3.5rem; }

.related__title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .related__grid { grid-template-columns: 1fr; }
  .post-card__header, .post-card__body, .post-cta { padding-left: 1.25rem; padding-right: 1.25rem; }
  .post-cta { margin-left: 1.25rem; margin-right: 1.25rem; }
}

/* ── Archive ──────────────────────────────────────────── */
.archive-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
}

.archive-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: .75rem;
}

.archive-header__sub { color: rgba(255,255,255,.6); }

.archive-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 0;
}

.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.archive-grid {
  padding: 3rem 0 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) { .archive-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .archive-grid { grid-template-columns: 1fr; } }

/* ── Pagination ───────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding-bottom: 4rem;
}

.page-num {
  width: 2.5rem; height: 2.5rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .875rem;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all .2s;
}
.page-num:hover, .page-num.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ── 404 ──────────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found__icon { font-size: 5rem; margin-bottom: 1.5rem; }
.not-found__title { font-size: 2rem; font-weight: 900; color: var(--navy); margin-bottom: .75rem; }
.not-found__text { color: var(--muted); margin-bottom: 2rem; }
