/*
Theme Name: ConcoursEmploisMaroc
Theme URI: https://concoursemploismaroc.online
Author: Concours et Emplois Maroc
Author URI: https://concoursemploismaroc.online
Description: Custom theme for the Moroccan jobs and recruitment portal ConcoursEmploisMaroc.online — concours, offres d'emploi, formation et conseils. Navy/red identity, responsive, SEO-friendly.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.9
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: concoursemploismaroc
Tags: jobs, recruitment, morocco, responsive, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   1. TOKENS & RESET
   ============================================================ */
:root {
  --navy: #092B62;
  --navy-dark: #061B3D;
  --navy-light: #123a7d;
  --red: #E71924;
  --red-dark: #c2131d;
  --green: #087A43;
  --purple: #7C3AED;
  --blue: #2563EB;
  --amber: #D97706;
  --bg: #F5F7FB;
  --white: #FFFFFF;
  --text: #172B4D;
  --muted: #68758A;
  --border: #E3E8F0;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(9, 43, 98, .08);
  --shadow-hover: 0 10px 26px rgba(9, 43, 98, .16);
  --font: 'Inter', 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; color: #fff; }

/* ============================================================
   2. TOP BAR
   ============================================================ */
.topbar { background: var(--navy-dark); color: #C7D2E4; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar .topbar-date { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar .topbar-date svg { width: 14px; height: 14px; fill: #fff; opacity: .8; }
.topbar nav ul { display: flex; align-items: center; gap: 0; }
.topbar nav a { color: #C7D2E4; padding: 8px 10px; display: inline-block; }
.topbar nav a:hover { color: #fff; }
.topbar nav li + li a { border-left: 1px solid rgba(255,255,255,.14); }
.topbar .socials { display: flex; align-items: center; gap: 2px; }
.topbar .socials a { display: inline-flex; padding: 6px; color: #C7D2E4; }
.topbar .socials a:hover { color: #fff; }
.topbar .socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ============================================================
   3. HEADER / NAV
   ============================================================ */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(9,43,98,.10); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding .logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.site-branding .logo-text { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -.3px; }
.site-branding .logo-text .w-navy { color: var(--navy); }
.site-branding .logo-text .w-red { color: var(--red); }
.site-branding .logo-text .w-green { color: var(--green); }
.site-branding .logo-tagline { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .1px; }
.site-branding img.custom-logo { width: auto; max-height: 52px; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a { display: flex; align-items: center; gap: 5px; padding: 10px 12px; font-weight: 600; font-size: 15px; color: var(--text); border-radius: 8px; }
/* v1.0.1: keep top-level nav items on one line on desktop ("Offres d'emploi" wrapped). */
.main-nav > ul > li > a { white-space: nowrap; }
@media (min-width: 861px) {
  .main-nav a { padding: 10px 9px; font-size: 14px; }
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--red); background: #FDF0F1; }
.main-nav .menu-item-has-children > a::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.main-nav li { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-hover); padding: 6px; z-index: 200; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 9px 12px; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header-search-toggle { background: none; border: 0; cursor: pointer; padding: 10px; color: var(--navy); border-radius: 50%; }
.header-search-toggle:hover { background: var(--bg); }
.header-search-toggle svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.btn-candidat { display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff !important; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 8px; white-space: nowrap; border: 0; cursor: pointer; }
.btn-candidat:hover { background: var(--red-dark); color: #fff; }
.btn-candidat svg { width: 15px; height: 15px; fill: currentColor; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.header-search-bar { display: none; background: #fff; border-top: 1px solid var(--border); padding: 12px 0; }
.header-search-bar.open { display: block; }
.header-search-bar form { display: flex; gap: 8px; }
.header-search-bar input[type="search"] { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; font-size: 15px; }
.header-search-bar input[type="search"]:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.header-search-bar button { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 11px 20px; font-weight: 700; cursor: pointer; }

/* ============================================================
   4. HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy) url('assets/hero.jpg') center 30% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 34%, rgba(9,43,98,.18) 62%, rgba(9,43,98,.34) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,43,98,.25), transparent 45%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 620px) 1fr; gap: 24px; padding-top: 64px; padding-bottom: 64px; min-height: 380px; align-items: center; }
.hero h1 { font-size: 46px; font-weight: 800; line-height: 1.12; letter-spacing: -.5px; margin-bottom: 14px; }
.hero h1 .hl { color: var(--red); }
.hero .hero-sub { font-size: 17px; color: #33415C; max-width: 520px; margin-bottom: 24px; }
.hero-search { display: flex; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(9,43,98,.22); padding: 6px; max-width: 560px; }
.hero-search .search-icon { align-self: center; padding: 0 6px 0 12px; color: var(--muted); }
.hero-search .search-icon svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.hero-search input[type="search"] { flex: 1; border: 0; padding: 10px 8px; font-size: 15px; min-width: 0; background: transparent; }
.hero-search input[type="search"]:focus { outline: none; }
.hero-search button { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 11px 26px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.hero-search button:hover { background: var(--red-dark); }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.hero-tags .tags-label { color: var(--red); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.hero-tags .tags-label svg { width: 14px; height: 14px; fill: var(--red); }
.hero-tags a { background: #fff; border: 1px solid var(--border); color: var(--text); padding: 5px 12px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); }
.hero-tags a:hover { border-color: var(--red); color: var(--red); }
.hero-flag { justify-self: end; align-self: start; margin-top: 8px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); transform: rotate(2deg); }
.hero-flag svg { width: 150px; height: auto; display: block; border-radius: 4px; }

/* ---------- 4b. SINGLE POST HERO (v1.0.1) ----------
   Dark banner carrying the post title as the page's single H1.
   (Class names match the live site's Additional CSS hooks.) */
.hero-single { position: relative; overflow: hidden; background: var(--navy-dark) url('assets/hero.jpg') center 30% / cover no-repeat; color: #fff; }
.hero-single::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,27,61,.93) 0%, rgba(9,43,98,.80) 55%, rgba(9,43,98,.55) 100%); }
.hero-single .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero-single .badge { margin-bottom: 10px; }
.hero-single .hero-title { color: #fff; font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; max-width: 860px; }
.hero-single .hero-org { color: #D7E3F4; font-size: 15px; margin: 0 0 12px; }
.hero-single .verified-badge { display: inline-block; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.hero-single-flag { position: absolute; right: 20px; top: 18px; z-index: 2; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.hero-single-flag svg { width: 60px; height: auto; display: block; border-radius: 3px; }
@media (max-width: 860px) {
  .hero-single .hero-title { font-size: 24px; }
  .hero-single-flag { display: none; }
}

/* ============================================================
   5. LAYOUT: LISTINGS + SIDEBAR
   ============================================================ */
.main-wrap { padding: 34px 0 10px; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin: 0; }
.section-head h2::before { content: ""; width: 5px; height: 24px; background: var(--red); border-radius: 3px; }
.section-head .see-all { color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Job / post cards */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.job-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.job-card .card-logo { width: 92px; height: 92px; flex-shrink: 0; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.job-card .card-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-card .card-logo .initial { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--navy); }
.job-card .card-body { flex: 1; min-width: 0; }
.job-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.job-card h3 a { color: var(--text); }
.job-card h3 a:hover { color: var(--red); }
.job-card .card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.job-card .card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-card .card-meta svg { width: 13px; height: 13px; fill: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.badge-concours-publics, .badge-concours-prives { background: var(--purple); }
.badge-emplois { background: var(--green); }
.badge-formation { background: var(--blue); }
.badge-conseils-carriere { background: var(--amber); }
.badge-actualites { background: var(--navy); }
.badge-default { background: var(--navy); }
.job-card .card-excerpt { font-size: 14px; color: var(--muted); margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .card-action { flex-shrink: 0; align-self: center; }
.btn-offer { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff !important; font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 8px; white-space: nowrap; border: 0; cursor: pointer; }
.btn-offer:hover { background: var(--red-dark); color: #fff; }
.no-posts { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* Pagination */
.pagination { margin: 26px 0 8px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-block; min-width: 38px; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; color: var(--text); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   6. SIDEBAR
   ============================================================ */
.site-sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 16px; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.widget-title svg { width: 17px; height: 17px; fill: var(--red); }
.widget-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.newsletter-box { background: var(--navy); color: #fff; border: 0; }
.newsletter-box .widget-title { color: #fff; }
.newsletter-box .widget-title::after { background: rgba(255,255,255,.2); }
.newsletter-box .widget-title svg { fill: #FFD166; }
.newsletter-box p { color: #C7D2E4; font-size: 14px; }
.newsletter-box form { display: flex; gap: 0; }
.newsletter-box input[type="email"] { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 11px 12px; font-size: 14px; }
.newsletter-box input[type="email"]:focus { outline: none; }
.newsletter-box button { background: var(--red); color: #fff; border: 0; border-radius: 0 8px 8px 0; padding: 0 16px; cursor: pointer; }
.newsletter-box button:hover { background: var(--red-dark); }
.newsletter-box button svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.newsletter-note { font-size: 11.5px; color: #93A5C4; margin: 10px 0 0; }
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-item .pop-thumb { width: 76px; height: 58px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--bg); }
.popular-item .pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-item .pop-thumb .initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; font-size: 22px; color: var(--navy); background: #EAF0FA; }
.popular-item h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.popular-item h4 a { color: var(--text); }
.popular-item h4 a:hover { color: var(--red); }
.popular-item .pop-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.ad-slot { border: 2px dashed #CBD5E1; border-radius: var(--radius); background: #F8FAFC; color: var(--muted); text-align: center; font-size: 12.5px; padding: 22px 12px; }
.ad-slot strong { display: block; color: var(--navy); font-size: 13px; margin-bottom: 2px; }

/* ============================================================
   7. FEATURES / PARTNERS / CTA
   ============================================================ */
.features { margin: 34px 0 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.feature { display: flex; gap: 12px; align-items: center; padding: 6px 14px; }
.feature + .feature { border-left: 1px solid var(--border); }
.feature .f-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: #EAF0FA; display: flex; align-items: center; justify-content: center; }
.feature .f-icon svg { width: 22px; height: 22px; fill: var(--navy); }
.feature .f-icon.red svg { fill: var(--red); }
.feature .f-icon.green svg { fill: var(--green); }
.feature h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }
.partners { margin: 30px 0 8px; }
.partners-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.partner-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.partner-card .p-mark { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; }
.partner-card .p-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.cta-banner { margin: 30px 0 40px; background: linear-gradient(100deg, var(--navy-dark) 0%, var(--navy) 55%, #7A0E14 100%); border-radius: 16px; color: #fff; padding: 30px 34px; display: flex; align-items: center; gap: 24px; position: relative; overflow: hidden; }
.cta-banner .cta-icon { font-size: 44px; flex-shrink: 0; }
.cta-banner h2 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.cta-banner p { color: #C7D2E4; margin: 0; font-size: 15px; }
.cta-banner .cta-text { flex: 1; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff !important; font-weight: 700; padding: 13px 24px; border-radius: 10px; white-space: nowrap; border: 0; cursor: pointer; }
.btn-cta:hover { background: var(--red-dark); color: #fff; }
.cta-flag { position: absolute; right: 22px; bottom: -14px; opacity: .9; pointer-events: none; }
.cta-flag svg { width: 110px; height: auto; }

/* ============================================================
   8. SINGLE POST / PAGE
   ============================================================ */
.single-wrap { padding: 30px 0 40px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--navy); }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.article-card .entry-title { font-size: 30px; font-weight: 800; line-height: 1.25; }
.article-card .entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); margin: 12px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-card .entry-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-card .entry-meta svg { width: 14px; height: 14px; fill: var(--muted); }
.article-card .post-thumbnail { margin: 0 0 22px; border-radius: 10px; overflow: hidden; }
.article-card .post-thumbnail img { width: 100%; }
.article-card .entry-content { font-size: 16.5px; }
.article-card .entry-content img { border-radius: 10px; }
.article-card .entry-content a { color: var(--red); text-decoration: underline; }
.article-card .entry-content h2, .article-card .entry-content h3 { margin-top: 1.4em; }
.article-card .entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.article-card .entry-content th, .article-card .entry-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.deadline-box { background: #FFF7E6; border: 1px solid #F5D9A8; border-left: 4px solid var(--amber); border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; font-size: 14.5px; }
.deadline-box strong { color: #92400E; }
.apply-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 8px; padding: 18px; background: var(--bg); border-radius: 10px; }
.btn-apply { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff !important; font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 10px; border: 0; cursor: pointer; }
.btn-apply:hover { background: #066636; color: #fff; }
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.share-row a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); color: var(--navy); }
.share-row a:hover { background: var(--navy); color: #fff; }
.share-row svg { width: 16px; height: 16px; fill: currentColor; }
.similar { margin-top: 34px; }
.similar h2 { font-size: 20px; }
.page-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.page-card .entry-title { font-size: 28px; }
.archive-head { margin-bottom: 20px; }
.archive-head h1 { font-size: 26px; }
.archive-head .archive-description { color: var(--muted); }

/* Comments */
.comments-area { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-top: 24px; }
.comment-list { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.comment-body { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.comment-form input[type="submit"] { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 11px 22px; font-weight: 700; cursor: pointer; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: #C7D2E4; margin-top: 10px; }
.footer-main { padding: 44px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; }
.footer-about .site-branding { margin-bottom: 14px; }
.footer-about .logo-text .w-navy { color: #fff; }
.footer-about .logo-tagline { color: #93A5C4; }
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.footer-socials a:hover { background: var(--red); color: #fff; }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #C7D2E4; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-newsletter p { font-size: 14px; }
.footer-newsletter form { display: flex; }
.footer-newsletter input[type="email"] { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 11px 12px; font-size: 14px; }
.footer-newsletter button { background: var(--red); color: #fff; border: 0; border-radius: 0 8px 8px 0; padding: 0 15px; cursor: pointer; }
.footer-newsletter button svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom a { color: #C7D2E4; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 860px) {
  .topbar .topbar-date { display: none; }
  .topbar .container { justify-content: center; }
  .topbar nav { display: none; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-hover); padding: 10px 20px 16px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 11px 8px; }
  .main-nav .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
  .main-nav li.menu-open > .sub-menu { display: block; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn-candidat span { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; min-height: 0; }
  .hero-flag { display: none; }
  .hero h1 { font-size: 32px; }
  .main-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-card, .page-card { padding: 22px; }
}
@media (max-width: 560px) {
  .topbar .socials { display: none; }
  .hero h1 { font-size: 28px; }
  .hero .hero-sub { font-size: 15px; }
  .hero-search button { padding: 11px 14px; }
  .job-card { flex-direction: column; }
  .job-card .card-logo { width: 72px; height: 72px; }
  .job-card .card-action { align-self: flex-start; }
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--border); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 26px 20px; }
  .cta-flag { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-branding .logo-text { font-size: 19px; }
  .header-search-toggle { display: none; }
}
