/*
Theme Name: Global Vision Consulting
Description: ثيم خاص بشركة جلوبال فيجن للتدريب والاستشارات – أزرق بترولي وأخضر ليموني بخطوط شبكية ورسوم بيانية.
Version: 1.0.1
Author: biz-sky
Requires PHP: 7.4
Text Domain: globalvision-consulting
*/

:root {
	--petrol: #0c3946;
	--petrol-d: #072630;
	--petrol-2: #14566a;
	--lime: #8cc63f;
	--lime-d: #6fa52a;
	--sky: #1f7fbf;
	--paper: #f3f6f5;
	--ink: #17242b;
	--muted: #5a6a72;
	--line: #dce4e5;
	--radius: 6px;
	--shadow: 0 18px 40px rgba(7, 38, 48, .12);
	--grid: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	--grid-light: linear-gradient(rgba(12,57,70,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(12,57,70,.05) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Noto Sans Arabic", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.85;
	color: var(--ink);
	background: #fff;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-2); text-decoration: none; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 { font-family: "Readex Pro", "Noto Sans Arabic", sans-serif; line-height: 1.4; margin: 0 0 .5em; color: var(--petrol-d); font-weight: 600; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; clip-path: none; margin: 0; inset-inline-start: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7em 1.5em; border-radius: var(--radius);
	font-family: "Readex Pro", sans-serif; font-weight: 600; font-size: 15px; line-height: 1.4;
	border: 2px solid transparent; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn-lime { background: var(--lime); color: var(--petrol-d); }
.btn-lime:hover { background: var(--lime-d); color: #fff; }
.btn-line { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line:hover { border-color: var(--lime); color: var(--lime); }
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: "Readex Pro", sans-serif; font-size: 14px; font-weight: 500;
	color: var(--sky); margin-bottom: 10px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--lime); }

/* Top bar */
.topbar { background: var(--petrol-d); color: #b9cdd3; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 18px; padding-block: 6px; flex-wrap: wrap; }
.topbar-note, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: #e4eef0; }
.topbar a:hover { color: var(--lime); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand img { max-height: 58px; width: auto; }
.logo-text { font-family: "Readex Pro", sans-serif; font-weight: 700; color: var(--petrol); font-size: 20px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a { display: block; padding: 8px 11px; color: var(--ink); font-size: 14.5px; font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--petrol-2); border-bottom-color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--petrol); border-radius: 2px; }

/* Hero */
.hero {
	background-color: var(--petrol);
	background-image: var(--grid);
	background-size: 44px 44px;
	color: #d6e4e8;
	position: relative;
	overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset-inline-end: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(140,198,63,.08); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding-block: 70px 40px; position: relative; z-index: 1; }
.hero .kicker { color: var(--lime); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; margin-bottom: 18px; }
.hero-copy p { font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; padding-bottom: 60px; padding-inline-end: 40px; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-main { aspect-ratio: 4 / 3; border: 6px solid #fff; }
.frame-sub { position: absolute; bottom: 0; inset-inline-end: 0; width: 44%; aspect-ratio: 4 / 3; border: 5px solid var(--lime); }
.kpi-card {
	position: absolute; top: 24px; inset-inline-start: -24px;
	background: #fff; color: var(--ink); border-radius: var(--radius); padding: 12px 16px 12px;
	box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 150px;
}
.kpi-card strong { font-family: "Readex Pro", sans-serif; color: var(--petrol); font-size: 20px; line-height: 1.3; }
.kpi-card span { font-size: 13px; color: var(--muted); }
.kpi-chart { width: 120px; height: 48px; stroke-width: 0; margin-bottom: 4px; }
.kpi-chart rect { fill: #cfe7b0; }
.kpi-chart rect:last-of-type { fill: var(--lime); }
.kpi-chart path { stroke: var(--line); stroke-width: 2; }
.kpi-chart .kpi-line { stroke: var(--sky); stroke-width: 2.5; fill: none; }
.facts {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius) var(--radius) 0 0;
	position: relative; z-index: 1; color: var(--ink);
}
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 22px 20px; border-inline-start: 1px solid var(--line); }
.facts li:first-child { border-inline-start: 0; }
.facts svg { width: 34px; height: 34px; color: var(--sky); stroke-width: 1.6; margin-top: 2px; }
.facts strong { display: block; font-family: "Readex Pro", sans-serif; color: var(--petrol-d); font-size: 16px; line-height: 1.4; }
.facts span { font-size: 13.5px; color: var(--muted); }

/* Sections */
.section { padding-block: 80px; }
.section-paper { background-color: var(--paper); background-image: var(--grid-light); background-size: 44px 44px; }
.section-head { margin: 0 0 40px; max-width: 700px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; color: var(--ink); border-inline-start: 1px solid var(--line); background: #fff; transition: background .25s, color .25s; }
.service:first-child { border-inline-start: 0; }
.service .num { font-family: "Readex Pro", sans-serif; font-size: 44px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--line); line-height: 1; position: absolute; top: 22px; inset-inline-end: 22px; }
.service .ico { width: 56px; height: 56px; border-radius: var(--radius); background: var(--paper); color: var(--petrol-2); display: grid; place-items: center; margin-bottom: 20px; }
.service .ico svg { width: 28px; height: 28px; stroke-width: 1.7; }
.service h3 { font-size: 18px; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; flex: 1; }
.service .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--sky); }
.service:hover { background: var(--petrol); color: #d6e4e8; }
.service:hover h3 { color: #fff; }
.service:hover p { color: #b9cdd3; }
.service:hover .ico { background: var(--lime); color: var(--petrol-d); }
.service:hover .more { color: var(--lime); }
.service:hover .num { -webkit-text-stroke-color: rgba(255,255,255,.25); }

/* Training */
.training { display: grid; grid-template-columns: 7fr 5fr; gap: 26px; }
.train-lead { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--petrol); box-shadow: var(--shadow); }
.train-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.train-lead:hover img { transform: scale(1.04); }
.train-lead .body { position: absolute; inset-inline: 0; bottom: 0; padding: 70px 28px 26px; background: linear-gradient(to top, rgba(7,38,48,.95) 30%, rgba(7,38,48,0)); color: #d6e4e8; }
.train-lead h3 { color: #fff; font-size: 24px; }
.train-lead p { margin: 0; font-size: 15px; }
.tag { display: inline-block; background: var(--lime); color: var(--petrol-d); font-size: 13px; font-weight: 600; padding: 2px 12px; border-radius: 3px; margin-bottom: 10px; }
.train-list { display: flex; flex-direction: column; gap: 18px; }
.train-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); flex: 1; align-items: center; transition: border-color .2s, box-shadow .2s; }
.train-item:hover { border-color: var(--lime); box-shadow: var(--shadow); }
.train-item img { width: 140px; height: 110px; object-fit: cover; border-radius: 4px; }
.train-item h3 { font-size: 16px; margin-bottom: 6px; }
.train-item p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 60px; align-items: center; }
.about-img { aspect-ratio: 4 / 3; position: relative; overflow: visible; box-shadow: none; background: none; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 1; }
.about-img::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--lime); border-radius: var(--radius); }
.about-copy h2 { font-size: clamp(26px, 3vw, 34px); }
.about-copy p { color: var(--muted); }
.about-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-links a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 16px; border-radius: var(--radius); color: var(--petrol); font-weight: 500; }
.about-links a svg { color: var(--lime-d); }
.about-links a:hover { border-color: var(--petrol); background: var(--petrol); color: #fff; }

/* Clients */
.section-clients { border-top: 1px solid var(--line); }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.clients figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* Post cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card .thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); border-bottom: 3px solid var(--lime); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.post-card h3 { font-size: 17px; margin-bottom: 8px; }
.post-card h3 a { color: var(--petrol-d); }
.post-card h3 a:hover { color: var(--sky); }
.post-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }

/* CTA */
.cta { background: var(--petrol-d); background-image: var(--grid); background-size: 44px 44px; color: #d6e4e8; padding-block: 56px; border-top: 4px solid var(--lime); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.cta-contacts li { display: inline-flex; align-items: center; gap: 8px; }
.cta-contacts svg { color: var(--lime); }
.cta-contacts a { color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page head */
.page-head { background: var(--petrol); background-image: var(--grid); background-size: 44px 44px; color: #d6e4e8; padding-block: 46px 40px; }
.page-head .kicker { color: var(--lime); }
.page-head h1 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); margin: 0; overflow-wrap: anywhere; }
.crumbs { font-size: 14px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--lime); }
.crumbs span { opacity: .5; }

/* Content layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-block: 50px 70px; align-items: start; }
.entry { min-width: 0; }
.entry-featured { margin-bottom: 24px; }
.entry-featured img { border-radius: var(--radius); }
.entry-content { font-size: 17px; overflow-wrap: break-word; }
.entry-content [style*="font-family"], .entry-content font { font-family: inherit !important; }
.entry-content [style*="font-size"] { font-size: inherit !important; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.1em; line-height: 1.6; }
.entry-content h1 { font-size: 27px; }
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 19px; }
.entry-content h4 { font-size: 17px; }
.entry-content p { margin: 0 0 1em; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: 0 20px 14px 0; }
.entry-content .alignright { float: right; margin: 0 0 14px 20px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content th { font-weight: 700; }
.entry-content blockquote { margin: 1.2em 0; padding: 14px 20px; border-inline-start: 4px solid var(--lime); background: var(--paper); }
.gallery { display: grid; gap: 12px; margin: 20px 0; grid-template-columns: repeat(2, 1fr); }
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); text-align: center; }

/* Sidebar */
.side .sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h3 { font-size: 17px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.box h3::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: 0; width: 40px; height: 2px; background: var(--lime); }
.box-cta { background: var(--petrol); background-image: var(--grid); background-size: 30px 30px; color: #d6e4e8; border: 0; }
.box-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.box-cta p { font-size: 14.5px; }
.box-cta .btn { width: 100%; }
.side-phone { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fff; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-list a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; color: var(--ink); font-size: 14px; line-height: 1.6; }
.side-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.side-list a:hover { color: var(--sky); }
.search-form { display: flex; gap: 6px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 14px; }
.search-submit { padding: 10px 16px; border: 0; border-radius: var(--radius); background: var(--petrol); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.search-submit:hover { background: var(--sky); }

.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.pagination .current { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.empty { text-align: center; max-width: 520px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.empty .search-form { width: 100%; }

/* Footer */
.site-footer { background: #061e26; color: #9fb6bd; font-size: 14.5px; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: inline-block; background: #fff; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-logo img { max-height: 48px; width: auto; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #cfe0e4; }
.site-footer a:hover { color: var(--lime); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list svg { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }

/* Responsive */
@media (max-width: 1080px) {
	.header-actions .btn span { display: none; }
	.header-actions .btn { padding: .7em; }
	.services { grid-template-columns: repeat(2, 1fr); }
	.service:nth-child(3) { border-inline-start: 0; }
	.service:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.header-row { flex-wrap: wrap; gap: 12px; }
	.header-actions { margin-inline-start: auto; }
	.main-nav { order: 3; width: 100%; display: none; margin: 0; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding-bottom: 8px; }
	.main-nav a { border-bottom: 1px solid var(--line); padding: 10px 4px; }
	.hero-grid { grid-template-columns: 1fr; padding-block: 50px 30px; }
	.hero-visual { max-width: 560px; }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.facts li:nth-child(3) { border-inline-start: 0; }
	.facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.training, .about { grid-template-columns: 1fr; }
	.about-img { max-width: 560px; }
	.posts { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.section { padding-block: 56px; }
	.topbar-note { display: none; }
	.topbar .wrap { justify-content: center; }
	.brand img { max-height: 44px; }
	.hero-visual { padding-inline-end: 0; padding-bottom: 40px; }
	.kpi-card { inset-inline-start: 8px; top: 8px; min-width: 0; padding: 8px 12px; }
	.kpi-chart { width: 80px; height: 32px; }
	.facts, .services, .posts, .clients, .footer-grid { grid-template-columns: 1fr; }
	.facts li, .service { border-inline-start: 0 !important; }
	.facts li + li, .service + .service { border-top: 1px solid var(--line); }
	.train-lead { min-height: 340px; }
	.train-item { grid-template-columns: 100px 1fr; }
	.train-item img { width: 100px; height: 84px; }
	.about-img::before { inset: 14px -10px -14px 10px; }
	.gallery-columns-3, .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 14px; }
}
