/*
Theme Name:  RES Energy Theme
Theme URI:   https://res-energy.com
Author:      R.E.S Renewable Energy
Author URI:  https://res-energy.com
Description: Custom theme for R.E.S Renewable Energy Sources — bilingual (EN/AR), full RTL support, 7 standalone pages.
Version:     1.0.0
Requires at least: 5.8
Tested up to: 6.6
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: res-energy
*/

/* ============================================================
   ASTRA OVERRIDES (if Astra or another theme is parent)
   ============================================================ */
.ast-page-builder-template .site-content,
.ast-no-sidebar .site-content { padding: 0 !important; }
#masthead.site-header, #colophon.site-footer { display: none !important; }
body.page { margin: 0; padding: 0; }
.entry-content { margin: 0 !important; padding: 0 !important; }

/* ============================================================
   RES DESIGN SYSTEM
   ============================================================ */
:root {
  --navy: #00234D;
  --navy-soft: #0B3566;
  --navy-tint: #EEF2F7;
  --orange: #ED5A15;
  --orange-tint: #FDE7DC;
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --grey: #5B6878;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 12px 30px -12px rgba(0,35,77,0.25);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: 'Cairo', sans-serif; text-align: right; }
h1,h2,h3,h4,.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy); margin: 0; line-height: 1.15;
}
html[dir="rtl"] h1, html[dir="rtl"] h2,
html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .brand-name { font-family: 'Mada', sans-serif; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

.res-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); display: inline-block; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  font-family: 'Inter', sans-serif;
}
html[dir="rtl"] .btn { font-family: 'Cairo', sans-serif; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d54d0c; box-shadow: 0 10px 22px -8px rgba(237,90,21,0.55); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-dark-outline:hover { background: var(--navy); color: var(--white); }

.cellgrid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 34px 34px; pointer-events: none;
}
.divider-cells {
  height: 10px; width: 100%;
  background-image: linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 26px);
  background-size: 26px 10px; background-repeat: repeat-x; opacity: .9;
}

/* Header */
.res-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(0,35,77,0.08);
}
.res-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; gap: 18px;
}
.res-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.res-brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-size: 19px; font-weight: 700; white-space: nowrap; }
.res-nav-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.res-nav-links a { font-size: 14.5px; font-weight: 500; color: var(--navy); white-space: nowrap; }
.res-nav-links a:hover, .res-nav-links a.active { color: var(--orange); }
.res-nav-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.res-nav-cta .btn { padding: 11px 22px; font-size: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border-radius: 999px; border: 1.5px solid rgba(0,35,77,0.18);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 13px;
  cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap;
}
html[dir="rtl"] .lang-toggle { font-family: 'Cairo', sans-serif; }
.lang-toggle:hover { border-color: var(--orange); color: var(--orange); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex: none; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 14% 10%, var(--navy-soft) 0%, var(--navy) 55%, #001530 100%);
  padding: 96px 0 86px; color: var(--white);
}
html[dir="rtl"] .hero { background: radial-gradient(120% 140% at 86% 10%, var(--navy-soft) 0%, var(--navy) 55%, #001530 100%); }
.hero .cellgrid { mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); }
.hero-sun {
  position: absolute; top: -120px; right: -100px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(237,90,21,0.55) 0%, rgba(237,90,21,0.18) 45%, transparent 70%);
  filter: blur(2px);
}
html[dir="rtl"] .hero-sun { right: auto; left: -100px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.hero h1 { font-size: 46px; color: var(--white); letter-spacing: -.01em; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 520px; margin: 22px 0 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--white); }
html[dir="rtl"] .hero-stats div b { font-family: 'Mada', sans-serif; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,0.65); }
.hero-visual { position: relative; z-index: 2; }
.panel-art { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); border-radius: 20px; padding: 26px; backdrop-filter: blur(4px); }
.panel-art svg { border-radius: 12px; }

/* Section layout */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--grey); font-size: 16.5px; margin-top: 14px; }
.bg-tint { background: var(--navy-tint); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.about-art { border-radius: var(--radius); overflow: hidden; background: var(--navy); position: relative; min-height: 340px; }
.about-art .cellgrid { opacity: .5; }
.about-illustration { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-copy p { color: var(--grey); font-size: 16px; margin-bottom: 18px; }
.about-points { display: grid; gap: 18px; margin-top: 28px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 8px; flex: none; }
.about-point div b { display: block; color: var(--navy); font-size: 15.5px; margin-bottom: 2px; }
.about-point div span { color: var(--grey); font-size: 15px; }

/* Cards */
.app-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.app-card { background: var(--white); border: 1px solid rgba(0,35,77,0.1); border-radius: var(--radius); padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.app-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.app-card h3 { font-size: 18px; margin-bottom: 10px; }
.app-card p { color: var(--grey); font-size: 14.5px; margin: 0; }

/* Banners */
.app-banner, .project-banner { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); min-height: 190px; margin-bottom: 40px; }
.app-banner .cellgrid, .project-banner .cellgrid { opacity: .5; }
.app-banner svg, .project-banner svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Projects */
.stats-bar { display: flex; justify-content: center; gap: 48px; margin: -12px 0 56px; flex-wrap: wrap; }
.stats-bar div { text-align: center; }
.stats-bar div b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 28px; color: var(--navy); }
html[dir="rtl"] .stats-bar div b { font-family: 'Mada', sans-serif; }
.stats-bar div span { font-size: 13px; color: var(--grey); }
.project-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.project-card { background: var(--white); border: 1px solid rgba(0,35,77,0.1); border-radius: var(--radius); padding: 22px; transition: transform .15s ease, box-shadow .15s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-kw { display: inline-block; background: var(--orange-tint); color: var(--orange); font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; font-family: 'Space Grotesk', sans-serif; }
html[dir="rtl"] .pc-kw { font-family: 'Mada', sans-serif; }
.project-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.pc-loc { font-size: 13px; color: var(--grey); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.step { padding: 0 22px 0 0; position: relative; }
html[dir="rtl"] .step { padding: 0 0 0 22px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 24px; inset-inline-end: -2px; width: calc(100% - 50px); height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 16px); }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 20px; }
html[dir="rtl"] .step-num { font-family: 'Mada', sans-serif; }
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--grey); margin: 0; }

/* Forms */
.card-form { background: var(--white); border: 1px solid rgba(0,35,77,0.1); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #DCE3EC; border-radius: 9px; font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--ink); background: var(--white); transition: border-color .15s ease; }
html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea { font-family: 'Cairo', sans-serif; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.form-note { font-size: 13px; color: var(--grey); margin-top: 6px; }
.form-success { display: none; background: var(--orange-tint); border: 1px solid rgba(237,90,21,0.3); color: #9a3a0c; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-top: 16px; font-weight: 500; }
.form-success.show { display: block; }
.submit-row { display: flex; align-items: center; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.reg-layout { max-width: 760px; margin: 0 auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: flex-start; }
.contact-info-card { background: var(--navy); border-radius: var(--radius); padding: 34px; color: var(--white); position: relative; overflow: hidden; }
.contact-info-card .cellgrid { opacity: .4; }
.contact-info-card h3 { color: var(--white); font-size: 19px; position: relative; z-index: 2; margin-bottom: 18px; }
.contact-info-card ul { position: relative; z-index: 2; }
.contact-info-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.contact-info-card li svg { flex: none; margin-top: 2px; }
.contact-social { display: flex; gap: 10px; margin-top: 8px; position: relative; z-index: 2; }
.contact-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.contact-social a:hover { background: var(--orange); border-color: var(--orange); }

/* Page banner */
.page-banner { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 14% 10%, var(--navy-soft) 0%, var(--navy) 55%, #001530 100%); padding: 54px 0 50px; color: var(--white); }
html[dir="rtl"] .page-banner { background: radial-gradient(120% 140% at 86% 10%, var(--navy-soft) 0%, var(--navy) 55%, #001530 100%); }
.page-banner .cellgrid { mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); }
.breadcrumb { position: relative; z-index: 2; font-size: 13.5px; color: rgba(255,255,255,0.55); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--orange); }
.page-banner h1 { font-size: 36px; color: var(--white); position: relative; z-index: 2; max-width: 640px; }
.page-banner p.lead { color: rgba(255,255,255,0.78); font-size: 16px; margin-top: 12px; max-width: 580px; position: relative; z-index: 2; }
.page-banner .perks { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; position: relative; z-index: 2; }
.page-banner .perks div { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }
.page-banner .perks div::before { content: ""; width: 7px; height: 7px; background: var(--orange); border-radius: 2px; flex: none; }

/* Teaser / CTA */
.teaser-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.teaser-row .section-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.link-arrow:hover { color: #c94c10; }
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
.mini-service-row { display: flex; gap: 18px; flex-wrap: wrap; }
.mini-service { flex: 1 1 220px; background: var(--white); border: 1px solid rgba(0,35,77,0.1); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.mini-service .app-icon { margin-bottom: 0; width: 42px; height: 42px; flex: none; }
.mini-service h4 { font-size: 15px; margin-bottom: 4px; color: var(--navy); }
.mini-service p { font-size: 13.5px; color: var(--grey); margin: 0; }
.cta-strip { background: var(--navy); border-radius: var(--radius); padding: 50px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-strip .cellgrid { opacity: .4; }
.cta-strip h3 { color: var(--white); font-size: 24px; position: relative; z-index: 2; }
.cta-strip p { color: rgba(255,255,255,0.7); margin-top: 8px; font-size: 15px; position: relative; z-index: 2; max-width: 420px; }
.cta-strip .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

/* Footer */
.res-footer { background: var(--navy); color: rgba(255,255,255,0.85); position: relative; overflow: hidden; }
.res-footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14.5px; margin-top: 14px; max-width: 280px; }
.footer-col h5 { color: var(--white); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; font-family: 'Space Grotesk', sans-serif; }
html[dir="rtl"] .footer-col h5 { font-family: 'Mada', sans-serif; letter-spacing: 0; }
.footer-col ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.footer-contact li svg { flex: none; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.res-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.55); flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width:980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2,1fr); }
  .project-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); row-gap: 36px; }
  .step:not(:last-child)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .mini-service-row { flex-direction: column; }
}
@media (max-width:680px) {
  section { padding: 64px 0; }
  .hero { padding: 84px 0 60px; }
  .hero h1 { font-size: 33px; }
  .res-nav-links { display: none; }
  .menu-toggle { display: block; }
  .app-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 28px; }
  .page-banner { padding: 48px 0 44px; }
  .page-banner h1 { font-size: 28px; }
  .cta-strip { padding: 36px 26px; text-align: center; justify-content: center; }
  .cta-strip > div:first-child { width: 100%; }
}

/* ============================================================
   BLOG — archive & single post styles
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border: 1px solid rgba(0,35,77,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-img {
  width: 100%; height: 210px; object-fit: cover; display: block;
}
.blog-card-img-placeholder {
  width: 100%; height: 210px;
  background: radial-gradient(120% 140% at 14% 10%, var(--navy-soft) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.blog-card-img-placeholder .cellgrid { opacity: .4; }
.blog-card-img-placeholder svg { position: relative; z-index: 2; }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.blog-card-category {
  display: inline-block; background: var(--orange-tint); color: var(--orange);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em; width: fit-content;
}
.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; color: var(--navy); line-height: 1.3; margin: 0;
}
html[dir="rtl"] .blog-card-title { font-family: 'Mada', sans-serif; }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--orange); }
.blog-card-excerpt { font-size: 14.5px; color: var(--grey); flex: 1; }
.blog-card-meta {
  font-size: 13px; color: var(--grey);
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px; border-top: 1px solid rgba(0,35,77,0.08); margin-top: auto;
}
.blog-card-meta svg { flex: none; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 600; font-size: 14px; margin-top: 4px;
}
.blog-read-more:hover { color: #c94c10; }

/* Blog no-posts */
.blog-empty {
  text-align: center; padding: 80px 24px; color: var(--grey);
}
.blog-empty h3 { font-size: 22px; margin-bottom: 12px; color: var(--navy); }
.blog-empty p { font-size: 16px; margin-bottom: 24px; }

/* Pagination */
.blog-pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 56px; flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(0,35,77,0.15); color: var(--navy);
  transition: background .15s ease, color .15s ease;
}
.blog-pagination a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.blog-pagination .current { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* Single post */
.post-wrap { max-width: 780px; margin: 0 auto; }
.post-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--grey); margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(0,35,77,0.1);
}
.post-meta-bar svg { flex: none; }
.post-category-badge {
  background: var(--orange-tint); color: var(--orange);
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
}
.post-featured-img {
  width: 100%; max-height: 440px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 36px;
}
.post-content {
  font-size: 17px; line-height: 1.8; color: #2a2a2a;
}
.post-content h2, .post-content h3 { color: var(--navy); margin: 36px 0 16px; }
.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 21px; }
.post-content p { margin-bottom: 22px; }
.post-content ul, .post-content ol { margin: 0 0 22px 24px; }
html[dir="rtl"] .post-content ul, html[dir="rtl"] .post-content ol { margin: 0 24px 22px 0; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--orange); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--orange); padding: 16px 24px;
  background: var(--navy-tint); border-radius: 0 8px 8px 0;
  margin: 24px 0; font-style: italic; color: var(--navy);
}
html[dir="rtl"] .post-content blockquote {
  border-left: none; border-right: 4px solid var(--orange);
  border-radius: 8px 0 0 8px;
}
.post-content img { max-width: 100%; border-radius: 10px; margin: 24px auto; }
.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 600; font-size: 14.5px;
  margin-bottom: 32px; transition: color .15s;
}
.post-back:hover { color: var(--orange); }
html[dir="rtl"] .post-back svg { transform: scaleX(-1); }
.post-share {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(0,35,77,0.1);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.post-share span { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.post-share a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-tint); display: flex; align-items: center; justify-content: center;
}
.post-share a:hover { background: var(--orange); }
.post-share a:hover svg path, .post-share a:hover svg rect,
.post-share a:hover svg line, .post-share a:hover svg circle { stroke: #fff; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-img, .blog-card-img-placeholder { height: 180px; }
}
