/*
Theme Name: MPTE Minimal
Theme URI: https://example.com/
Author: ChatGPT
Author URI: https://example.com/
Description: Minimal, modern RTL WordPress theme inspired by the redesigned MPTE homepage layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpte-minimal
Tags: rtl-language-support, custom-logo, custom-menu, one-column, two-columns, responsive-layout, featured-images
*/

:root{
  --bg:#f6f8fc;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --primary:#1e5aa8;
  --primary-2:#163e76;
  --border:rgba(15,23,42,.10);
  --shadow:0 12px 30px rgba(15,23,42,.10);
  --radius:18px;
}

html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}
body{
  margin:0;
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans Arabic","Vazirmatn","IRANYekan","Tahoma",Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
.container{max-width:1180px;margin:0 auto;padding:0 18px}
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;gap:18px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;min-width:240px}
.brand-title{font-weight:800;font-size:1.1rem;white-space:nowrap}
.site-logo img{width:46px;height:46px}
.header-spacer{flex:1}
.top-actions{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:12px;border:1px solid var(--border);
  background:var(--surface); color:var(--text);
  box-shadow:0 6px 18px rgba(15,23,42,.06);
  font-weight:700;
}
.btn-primary{background:var(--primary); color:#fff; border-color:transparent}
.btn-primary:hover{background:var(--primary-2); text-decoration:none}
.nav{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
}
.nav a{
  padding:10px 12px;border-radius:12px;color:var(--text);font-weight:700;
}
.nav a:hover{background:rgba(30,90,168,.08);text-decoration:none}
.nav .current-menu-item > a,
.nav .current_page_item > a{background:rgba(30,90,168,.12)}

.hero{
  padding:26px 0 18px;
}
.hero-card{
  background:linear-gradient(135deg, rgba(30,90,168,.08), rgba(30,90,168,.02));
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.hero-media{position:relative}
.hero-media img{display:block;width:100%}
.hero-content{
  padding:18px 18px 20px;
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
}
.hero-title{font-size:1.25rem;font-weight:900;margin:0}
.hero-sub{color:var(--muted);margin:0}
.hero-cta{margin-inline-start:auto;display:flex;gap:10px;flex-wrap:wrap}

.grid{
  display:grid; gap:16px;
}
.grid-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
@media (max-width:980px){.grid-3{grid-template-columns:1fr}}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 8px 22px rgba(15,23,42,.08);
  overflow:hidden;
}
.card-pad{padding:16px}
.card h3{margin:0 0 8px;font-size:1.05rem}
.meta{color:var(--muted);font-size:.92rem}
.section{padding:12px 0 26px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:0 0 14px}
.section-title h2{margin:0;font-size:1.15rem;font-weight:900}
.pills{display:flex;gap:10px;flex-wrap:wrap}
.pill{
  padding:12px 14px;border-radius:16px;border:1px solid var(--border);
  background:rgba(255,255,255,.85); font-weight:800;
}
.icon-grid{
  display:grid;gap:12px;
  grid-template-columns:repeat(5, minmax(0, 1fr));
}
@media (max-width:980px){.icon-grid{grid-template-columns:repeat(2, minmax(0, 1fr))}}
.icon-card{
  text-align:center;
  padding:16px 12px;
}
.icon{
  width:46px;height:46px;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(30,90,168,.10);
  border:1px solid rgba(30,90,168,.18);
  margin-bottom:10px;
}
.site-footer{
  margin-top:26px;
  background:linear-gradient(180deg, #0b1b35, #070f1f);
  color:#e5e7eb;
}
.footer-inner{padding:26px 0 18px}
.footer-grid{display:grid;gap:16px;grid-template-columns:2fr 1fr 1fr}
@media (max-width:980px){.footer-grid{grid-template-columns:1fr}}
.footer-title{font-weight:900;margin:0 0 10px}
.footer a{color:#c7d2fe}
.footer small{color:rgba(229,231,235,.78)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.10);padding:14px 0}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:12px;top:12px;width:auto;height:auto;padding:10px 12px;background:#fff;border-radius:10px;z-index:1000}

.rtl .hero-cta{margin-inline-start:auto}
