/*
Theme Name: ملتقى التوظيف الهندسي
Theme URI: https://openvps.com/
Author: OpenVPS
Author URI: https://openvps.com/
Description: ثيم عربي وإنجليزي قابل للتخصيص لملتقى التوظيف بنقابة المهندسين الفرعية بالقاهرة.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: e3-employment-forum
*/

:root {
  --e3-green: #176b45;
  --e3-green-dark: #104b34;
  --e3-accent: #b8df76;
  --e3-ink: #17251e;
  --e3-muted: #66756c;
  --e3-paper: #f6f8f4;
  --e3-white: #fff;
  --e3-line: #e2e9e2;
  --e3-radius: 22px;
  --e3-shadow: 0 18px 50px rgba(25, 61, 42, .09);
  --e3-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--e3-paper);
  color: var(--e3-ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
body.lang-en { font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--e3-content), calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute; inset-block-start: -100px; inset-inline-start: 20px;
  z-index: 1000; padding: 10px 16px; background: var(--e3-white); color: var(--e3-ink);
}
.skip-link:focus { inset-block-start: 12px; }
.site-header {
  position: sticky; z-index: 30; inset-block-start: 0;
  background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--e3-line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; font-weight: 800; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-height: 50px; }
.brand-mark {
  display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px;
  background: var(--e3-green); color: #fff; font-size: 18px; letter-spacing: -1px;
}
.brand-copy { display: grid; line-height: 1.35; }
.brand-copy small { color: var(--e3-muted); font-size: 11px; font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #39483f; font-size: 14px; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--e3-green); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-link { font-size: 13px; font-weight: 800; color: var(--e3-green); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--e3-ink); font-size: 25px; cursor: pointer; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 22px; border: 1px solid transparent; border-radius: 12px;
  background: var(--e3-green); color: #fff; font-size: 14px; font-weight: 800;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--e3-green-dark); box-shadow: 0 10px 22px rgba(23, 107, 69, .18); }
.button-light { background: #fff; color: var(--e3-green); }
.button-outline { border-color: var(--e3-line); background: transparent; color: var(--e3-green); }
.hero { position: relative; overflow: hidden; padding: 76px 0 84px; background: linear-gradient(115deg, #f6f8f4 0%, #f1f7ef 56%, #e7f1e5 100%); }
.hero::before, .hero::after { position: absolute; content: ""; border: 1px solid rgba(23, 107, 69, .1); border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; inset-inline-end: -150px; inset-block-start: -245px; }
.hero::after { width: 460px; height: 460px; inset-inline-end: -70px; inset-block-start: -165px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--e3-green); font-size: 13px; font-weight: 800; }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--e3-accent); content: ""; }
.hero h1 { max-width: 650px; margin: 14px 0 18px; font-size: clamp(38px, 5.5vw, 68px); line-height: 1.2; letter-spacing: -2px; }
.hero h1 span { color: var(--e3-green); }
.hero-copy { max-width: 600px; margin: 0; color: var(--e3-muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: #46564b; font-size: 13px; font-weight: 700; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-card { position: relative; min-height: 410px; display: grid; align-content: end; overflow: hidden; padding: 28px; border-radius: 28px; background: linear-gradient(150deg, rgba(14, 57, 39, .15), rgba(14, 57, 39, .94)), radial-gradient(ellipse at 70% 20%, #b7da91, #43825b 50%, #143c2c); background-position: center; background-size: cover; box-shadow: var(--e3-shadow); color: #fff; }
.hero-card::before { position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; content: ""; }
.hero-card-art { position: absolute; inset: 0; overflow: hidden; opacity: .7; }
.hero-card-art::before { position: absolute; width: 240px; height: 300px; inset-inline-start: 18%; inset-block-start: -4%; border: 1px solid rgba(255,255,255,.4); border-radius: 48% 48% 10% 10%; transform: rotate(28deg); content: ""; }
.hero-card-art::after { position: absolute; width: 200px; height: 200px; inset-inline-start: 45%; inset-block-start: 19%; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.05), 0 0 0 50px rgba(255,255,255,.04); content: ""; }
.hero-card-content { position: relative; z-index: 1; }
.hero-card-label { display: inline-block; padding: 5px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; background: rgba(255,255,255,.12); font-size: 12px; }
.hero-card h2 { margin: 12px 0 2px; font-size: 26px; }
.hero-card p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }
.section { padding: 82px 0; }
.section-heading { max-width: 680px; margin: 0 auto 38px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 10px 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; }
.section-heading p { margin: 0; color: var(--e3-muted); }
.stats { position: relative; z-index: 2; margin-top: -32px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 24px; border: 1px solid var(--e3-line); border-radius: 20px; background: #fff; box-shadow: var(--e3-shadow); }
.stat { padding: 9px 18px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--e3-line); }
.stat strong { display: block; color: var(--e3-green); font-size: 34px; line-height: 1.3; }
.stat span { color: var(--e3-muted); font-size: 13px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
.about-visual { position: relative; min-height: 350px; display: grid; place-items: center; overflow: hidden; border-radius: var(--e3-radius); background: linear-gradient(140deg, #e4efe1, #c9e0c6); background-position: center; background-size: cover; }
.about-visual::before { width: 230px; height: 230px; border: 1px solid rgba(23,107,69,.28); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.2), 0 0 0 56px rgba(23,107,69,.07); content: ""; }
.about-emblem { position: absolute; display: grid; width: 104px; height: 104px; place-items: center; border-radius: 32px; background: var(--e3-green); box-shadow: 0 15px 35px rgba(23,107,69,.22); color: #fff; font-size: 32px; font-weight: 900; transform: rotate(-8deg); }
.about-content h2 { margin: 10px 0 15px; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; }
.about-content p { color: var(--e3-muted); }
.check-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check { flex: 0 0 auto; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #e2f0dd; color: var(--e3-green); font-size: 13px; font-weight: 900; }
.event-section { background: #eef4ec; }
.event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.event-card { padding: 30px; border: 1px solid var(--e3-line); border-radius: var(--e3-radius); background: #fff; }
.event-card h3 { margin: 0 0 18px; font-size: 21px; }
.event-detail { display: flex; align-items: flex-start; gap: 13px; padding: 12px 0; }
.event-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: #edf5e9; color: var(--e3-green); font-size: 18px; }
.event-detail strong { display: block; font-size: 14px; }
.event-detail span:last-child { color: var(--e3-muted); font-size: 13px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.countdown-item { padding: 14px 6px; border-radius: 13px; background: #f2f6f0; text-align: center; }
.countdown-item strong { display: block; color: var(--e3-green); font-size: 25px; }
.countdown-item span { color: var(--e3-muted); font-size: 11px; }
.countdown-message { color: var(--e3-green); font-weight: 800; text-align: center; }
.jobs-grid, .partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.job-card { padding: 24px; border: 1px solid var(--e3-line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--e3-shadow); }
.job-card h3 { margin: 10px 0 6px; font-size: 19px; }
.job-company, .job-location { color: var(--e3-muted); font-size: 13px; }
.job-tag { display: inline-flex; padding: 4px 10px; border-radius: 30px; background: #edf5e9; color: var(--e3-green); font-size: 11px; font-weight: 800; }
.job-card p { color: var(--e3-muted); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--e3-green); font-size: 13px; font-weight: 800; }
.partners-grid { grid-template-columns: repeat(4, 1fr); }
.partner-card { min-height: 130px; display: grid; place-items: center; padding: 22px; border: 1px solid var(--e3-line); border-radius: 16px; background: #fff; color: var(--e3-muted); text-align: center; font-weight: 800; }
.partner-card img { max-height: 68px; width: auto; object-fit: contain; }
.empty-note { padding: 20px; border: 1px dashed var(--e3-line); border-radius: 14px; color: var(--e3-muted); text-align: center; }
.cta { overflow: hidden; padding: 58px 0; background: var(--e3-green-dark); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { margin: 0 0 8px; font-size: clamp(25px, 3.5vw, 38px); }
.cta p { max-width: 700px; margin: 0; color: rgba(255,255,255,.75); }
.site-footer { padding: 50px 0 20px; background: #102d21; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 42px; padding-bottom: 36px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.72); }
.footer-title { margin: 0 0 14px; font-size: 15px; }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.6); font-size: 12px; }
.page-content { min-height: 50vh; padding: 60px 0; }
.entry-content { max-width: 850px; margin: 0 auto; }
.entry-content h1, .archive-title { font-size: 38px; }
.entry-content img { border-radius: 16px; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 8px; background: #fff; }
.pagination .current { background: var(--e3-green); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

body.rtl { direction: rtl; }
body.ltr { direction: ltr; }
body.ltr .hero h1 { letter-spacing: -1.5px; }
body.ltr .stat + .stat { border-inline-start: 1px solid var(--e3-line); }

@media (max-width: 920px) {
  .header-inner { min-height: 70px; }
  .main-nav { display: none; position: absolute; inset: 70px 0 auto; padding: 18px 20px 24px; border-bottom: 1px solid var(--e3-line); background: #fff; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav li { padding: 9px 0; border-bottom: 1px solid #eff2ee; }
  .menu-toggle { display: inline-flex; }
  .header-actions > .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 300px; }
  .about-grid { gap: 32px; }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--e3-content), calc(100% - 30px)); }
  .hero { padding: 54px 0 70px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-copy { font-size: 15px; }
  .hero-meta { gap: 12px; }
  .section { padding: 62px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .stat { padding: 13px 8px; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--e3-line); }
  .stat strong { font-size: 28px; }
  .about-grid, .event-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 250px; }
  .event-card { padding: 22px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .brand-copy small { max-width: 175px; }
  .header-actions { gap: 9px; }
}
