/* بصمة وعي للتدريب — هوية الموقع */
:root {
    --petrol: #14424e;
    --petrol-2: #16505e;
    --petrol-3: #1d6272;
    --teal: #1f7d8c;
    --amber: #f5b92b;
    --amber-2: #e0a416;
    --gold: #c3a57c;
    --ink: #12303a;
    --muted: #5b7681;
    --bg: #f4f8f9;
    --card: #ffffff;
    --line: #e2ecef;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(20, 66, 78, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.8;
    text-align: right;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.topbar {
    background: var(--petrol);
    color: #cfe6ec;
    font-size: 13px;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #cfe6ec; }
.topbar a:hover { color: var(--amber); }
.topbar .t-links { display: flex; gap: 14px; }

header.main {
    background: #fff;
    box-shadow: 0 2px 14px rgba(20, 66, 78, .07);
    position: sticky;
    top: 0;
    z-index: 50;
}
header.main .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand .b-name { font-weight: 800; font-size: 19px; color: var(--petrol); line-height: 1.3; }
.brand .b-sub { font-size: 11px; color: var(--gold); letter-spacing: .5px; }

nav.menu { display: flex; gap: 4px; flex-wrap: wrap; }
nav.menu a {
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    transition: .2s;
}
nav.menu a:hover, nav.menu a.active { background: var(--petrol); color: #fff; }
.btn {
    display: inline-block;
    background: var(--amber);
    color: var(--petrol);
    font-weight: 800;
    padding: 11px 26px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    transition: .2s;
}
.btn:hover { background: var(--amber-2); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.dark { background: var(--petrol); color: #fff; }
.btn.dark:hover { background: var(--petrol-3); }

.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--petrol); cursor: pointer; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-2) 55%, var(--petrol-3) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 185, 43, .12) 0, transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(31, 125, 140, .35) 0, transparent 40%);
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
    padding: 70px 20px;
}
.hero h1 { font-size: 42px; font-weight: 900; line-height: 1.4; }
.hero h1 span { color: var(--amber); }
.hero p.lead { margin: 18px 0 10px; font-size: 18px; color: #d9e9ee; max-width: 560px; }
.hero .hashtag { color: var(--amber); font-weight: 800; font-size: 20px; margin-bottom: 26px; display: block; }
.hero .h-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .h-art { display: flex; justify-content: center; }
.hero .h-art .logo-wrap {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
    transform: rotate(-2deg);
}
.hero .h-art img { width: 300px; height: 300px; object-fit: contain; }

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.07);
    border-top: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(4px);
}
.hero-stats .stat { text-align: center; padding: 22px 10px; }
.hero-stats b { display: block; font-size: 30px; color: var(--amber); font-weight: 900; }
.hero-stats span { font-size: 14px; color: #d9e9ee; }

/* ===== Sections ===== */
section { padding: 70px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .kicker {
    display: inline-block;
    background: rgba(31,125,140,.1);
    color: var(--teal);
    font-weight: 800;
    font-size: 13px;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.sec-head h2 { font-size: 32px; font-weight: 900; color: var(--petrol); }
.sec-head p { color: var(--muted); max-width: 640px; margin: 10px auto 0; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,66,78,.14); }

.course-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.course-card .c-icon {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(31,125,140,.12), rgba(245,185,43,.15));
    border-radius: 14px;
}
.course-card h3 { font-size: 18px; font-weight: 800; color: var(--petrol); }
.course-card p { font-size: 14px; color: var(--muted); flex: 1; }
.course-card .c-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(245,185,43,.15);
    color: var(--amber-2);
}
.badge.teal { background: rgba(31,125,140,.1); color: var(--teal); }
.more-link { color: var(--teal); font-weight: 800; font-size: 14px; }
.more-link:hover { color: var(--petrol); }

/* Diploma cards */
.diploma-card { display: flex; flex-direction: column; }
.diploma-card .d-top {
    background: linear-gradient(135deg, var(--petrol), var(--petrol-3));
    color: #fff;
    padding: 30px 26px;
    position: relative;
}
.diploma-card .d-top .c-icon { font-size: 34px; margin-bottom: 10px; }
.diploma-card .d-top h3 { font-size: 21px; font-weight: 900; }
.diploma-card .d-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.diploma-card .d-body p { color: var(--muted); font-size: 14.5px; flex: 1; }

/* Trainers */
.trainer-card { text-align: center; padding: 26px 20px; }
.trainer-card .t-photo {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 4px solid rgba(31,125,140,.15);
    background: linear-gradient(135deg, var(--petrol-2), var(--teal));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px; font-weight: 900;
}
.trainer-card .t-photo img { width: 100%; height: 100%; object-fit: cover; }
.trainer-card h3 { font-size: 17px; font-weight: 800; color: var(--petrol); }
.trainer-card p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.names-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.names-cloud span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--petrol-2);
    box-shadow: 0 2px 8px rgba(20,66,78,.05);
}

/* Services */
.service-card { padding: 30px 24px; text-align: center; }
.service-card .s-icon { font-size: 40px; margin-bottom: 12px; }
.service-card h3 { color: var(--petrol); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* About strip */
.about-strip { background: #fff; }
.about-strip .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-strip h2 { font-size: 30px; font-weight: 900; color: var(--petrol); margin-bottom: 16px; }
.about-strip p { color: var(--muted); }
.about-strip .a-points { margin-top: 20px; display: grid; gap: 12px; }
.about-strip .a-points div { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--petrol-2); }
.about-strip .a-points div::before { content: '✔'; color: var(--amber-2); font-weight: 900; }
.about-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }

/* Gallery */
.gallery-card { position: relative; }
.gallery-card img { height: 220px; width: 100%; object-fit: cover; }
.gallery-card .g-title {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(18,48,58,.9));
    color: #fff;
    padding: 30px 16px 12px;
    font-size: 14px;
    font-weight: 700;
}

/* Partners */
.partners-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partners-row .partner {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 28px;
    font-weight: 800;
    color: var(--petrol-2);
    box-shadow: 0 2px 10px rgba(20,66,78,.05);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--petrol) 0%, var(--teal) 100%);
    color: #fff;
    text-align: center;
    border-radius: 24px;
    padding: 54px 30px;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245,185,43,.18) 0, transparent 40%);
}
.cta h2 { font-size: 30px; font-weight: 900; position: relative; }
.cta p { color: #d9e9ee; margin: 10px 0 24px; position: relative; }
.cta .btn { position: relative; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; color: var(--petrol-2); display: block; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg);
    color: var(--ink);
    transition: .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea { min-height: 120px; resize: vertical; }

.alert-success {
    background: #e8f7ef;
    border: 1px solid #b3e6c8;
    color: #14663a;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}
.alert-errors {
    background: #fdeeee;
    border: 1px solid #f3c1c1;
    color: #a12626;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--petrol), var(--petrol-3));
    color: #fff;
    padding: 54px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(245,185,43,.12) 0, transparent 35%);
}
.page-hero h1 { font-size: 34px; font-weight: 900; position: relative; }
.page-hero p { color: #d9e9ee; margin-top: 8px; position: relative; }

/* Filter tabs */
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.tabs a {
    padding: 9px 24px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    font-weight: 800;
    font-size: 14px;
    color: var(--petrol-2);
}
.tabs a.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }

/* Course detail */
.course-hero { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.course-hero .info h1 { color: var(--petrol); font-size: 30px; font-weight: 900; margin-bottom: 14px; }
.course-hero .info .meta-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 26px; }

/* Values pills */
.values-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.values-row span {
    background: linear-gradient(135deg, var(--petrol), var(--petrol-3));
    color: #fff;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 800;
}

.goal-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(20,66,78,.04); }
.goal-item .g-num {
    min-width: 38px; height: 38px;
    background: var(--amber);
    color: var(--petrol);
    font-weight: 900;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* vision cards */
.vision-card { padding: 28px; text-align: center; }
.vision-card .v-icon { font-size: 36px; margin-bottom: 10px; }
.vision-card h3 { color: var(--petrol); font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.vision-card p { color: var(--muted); font-size: 14.5px; }

/* Contact */
.contact-info { display: grid; gap: 16px; }
.contact-info .ci {
    display: flex; gap: 14px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
    font-weight: 700; color: var(--petrol-2);
}
.contact-info .ci .ci-icon { font-size: 24px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--petrol);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: .2s;
}
.socials a:hover { background: var(--amber); color: var(--petrol); transform: translateY(-3px); }

/* Footer */
footer {
    background: var(--petrol);
    color: #b9d4dc;
    margin-top: 40px;
}
footer .f-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 54px 0 34px;
}
footer h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 16px; }
footer a { color: #b9d4dc; display: block; margin-bottom: 9px; font-size: 14px; }
footer a:hover { color: var(--amber); }
footer .f-brand img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; margin-bottom: 12px; }
footer .f-brand p { font-size: 13.5px; max-width: 300px; }
footer .f-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 0;
    font-size: 13px;
    text-align: center;
}
footer .f-bottom span { color: var(--amber); }

/* Responsive */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p.lead { margin-inline: auto; }
    .hero .h-actions { justify-content: center; }
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .about-strip .container { grid-template-columns: 1fr; }
    .course-hero { grid-template-columns: 1fr; }
    footer .f-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    nav.menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0; left: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 20px 18px;
        box-shadow: 0 14px 24px rgba(20,66,78,.12);
    }
    nav.menu.open { display: flex; }
    .nav-toggle { display: block; }
    header.main .header-cta { display: none; }
    .grid.cols-4, .grid.cols-3, .grid.cols-2, .form-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .hero .h-art img { width: 210px; height: 210px; }
    footer .f-grid { grid-template-columns: 1fr; }
}

/* ===== الأنيميشن ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-14px); } }
@keyframes floaty2 { 0%,100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-10px); } }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.1); } 66% { transform: translate(-20px,15px) scale(.95); } }
@keyframes shine { 0% { left: -80%; } 60%,100% { left: 130%; } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* دخول الهيرو */
.hero h1 { animation: fadeUp .8s .1s both; }
.hero p.lead { animation: fadeUp .8s .25s both; }
.hero .hashtag { animation: fadeUp .8s .4s both; }
.hero .h-actions { animation: fadeUp .8s .55s both; }
.hero-stats { animation: fadeUp .9s .7s both; }
.hero .h-art .logo-wrap { animation: floaty 5s ease-in-out infinite; }
.hero .h-photo {
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0,0,0,.3);
    border: 4px solid rgba(255,255,255,.85);
}
.hero .h-photo.p1 { top: 8%; left: 4%; transform: rotate(5deg); animation: floaty2 6s ease-in-out infinite; }
.hero .h-photo.p2 { bottom: 10%; left: 12%; transform: rotate(-6deg); animation: floaty2 7s 1s ease-in-out infinite; }
.hero::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,185,43,.16), transparent 65%);
    top: -100px; left: -100px;
    animation: blob 14s ease-in-out infinite;
    pointer-events: none;
}

/* الظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: .1s; }
.grid > .reveal:nth-child(3) { transition-delay: .2s; }
.grid > .reveal:nth-child(4) { transition-delay: .3s; }
.grid > .reveal:nth-child(5) { transition-delay: .1s; }
.grid > .reveal:nth-child(6) { transition-delay: .2s; }
.grid > .reveal:nth-child(7) { transition-delay: .3s; }
.grid > .reveal:nth-child(8) { transition-delay: .4s; }

/* لمعة زر الـCTA */
.cta .btn { position: relative; overflow: hidden; }
.cta .btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-20deg);
    animation: shine 3.2s ease-in-out infinite;
}

/* صور بطاقات الدورات */
.course-card { padding: 0; }
.course-card .c-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card .c-img { overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--petrol-2), var(--teal)); }
.course-card .c-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.course-card:hover .c-img img { transform: scale(1.07); }
.course-card .c-icon { margin-top: 0; }

/* معرض الصور */
.gallery-card { cursor: zoom-in; }
.gallery-card img { transition: transform .6s ease; }
.gallery-card:hover img { transform: scale(1.08); }

/* ماركي الشركاء */
.marquee { overflow: hidden; position: relative; }
.marquee .m-track { display: flex; gap: 14px; width: max-content; animation: marquee-rtl 26s linear infinite; }
.marquee:hover .m-track { animation-play-state: paused; }

/* لايت بوكس */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(10, 30, 37, .93);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    padding: 30px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.92); transition: transform .3s; }
.lightbox.open img { transform: scale(1); }
.lightbox .lb-close {
    position: absolute; top: 18px; right: 22px;
    background: rgba(255,255,255,.12);
    border: none; color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 22px; cursor: pointer;
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
@media (max-width: 992px) {
    .hero .h-photo { display: none; }
}

/* ===== عنصر الشبكة (نمط الهوية) ===== */
.grid-bg { position: relative; }
.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}
.hero {
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(135deg, var(--petrol) 0%, var(--petrol-2) 55%, var(--petrol-3) 100%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
}

/* ===== التدريب المؤسسي ===== */
.corporate {
    background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-2) 60%, var(--petrol-3) 100%);
    color: #fff;
    overflow: hidden;
}
.corporate .corp-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 46px;
    align-items: center;
    position: relative;
}
.corporate h2 { font-size: 30px; font-weight: 900; margin: 12px 0 14px; }
.corporate p { color: #d9e9ee; }
.corp-media { position: relative; }
.corp-media img {
    border-radius: 22px;
    box-shadow: 0 26px 60px rgba(0,0,0,.35);
    border: 5px solid rgba(255,255,255,.14);
}
.corp-media::after {
    content: '';
    position: absolute;
    inset: -16px 16px 16px -16px;
    border: 2px solid rgba(245,185,43,.4);
    border-radius: 26px;
    z-index: -1;
}
.corp-points { display: grid; gap: 11px; margin-top: 18px; }
.corp-points div { display: flex; gap: 10px; font-weight: 700; color: #eaf4f7; }
.corp-points div::before { content: '✔'; color: var(--amber); font-weight: 900; }

/* ===== صف الدبلوم (صفحة الدبلومات) ===== */
.diploma-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: stretch;
}
.diploma-row .dr-media {
    background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(135deg, var(--petrol), var(--petrol-3));
    background-size: 36px 36px, 36px 36px, 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
}
.diploma-row .dr-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.diploma-row .dr-icon { font-size: 90px; }
.diploma-row .dr-body { padding: 30px 32px; }
.diploma-row .dr-body h2 { color: var(--petrol); font-size: 23px; font-weight: 900; margin-bottom: 10px; }
.diploma-row .dr-body p { color: var(--muted); }

/* ===== بطاقات المدونة ===== */
.post-card { display: flex; flex-direction: column; padding: 0; }
.post-card .c-img { aspect-ratio: 16/9; overflow: hidden; }
.post-card .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .c-img img { transform: scale(1.06); }
.post-card .c-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card h3 { font-size: 16.5px; font-weight: 800; color: var(--petrol); line-height: 1.6; }
.post-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.post-card .p-meta { display: flex; justify-content: space-between; align-items: center; }
.post-card .p-date { font-size: 12px; color: var(--muted); }

.post-body { font-size: 16.5px; color: #33525d; line-height: 2.1; }

/* ترقيم الصفحات */
nav[role="navigation"] { direction: ltr; }
nav[role="navigation"] a, nav[role="navigation"] span[aria-current] > span {
    display: inline-flex;
    min-width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border-radius: 10px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--petrol-2);
}
nav[role="navigation"] span[aria-current] > span { background: var(--petrol); color: #fff; border-color: var(--petrol); }

@media (max-width: 992px) {
    .corporate .corp-grid { grid-template-columns: 1fr; }
    .diploma-row { grid-template-columns: 1fr; }
    .diploma-row .dr-media { min-height: 200px; }
}

/* ===== شبكة البصمة التفاعلية ===== */
#bw-fingerprint {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.hero::before, .hero::after { z-index: 1; pointer-events: none; }
.hero .container { z-index: 2; }
.hero .h-photo { z-index: 2; }
.hero .hero-stats { z-index: 2; }

/* ===== بطاقات الخدمات v2 ===== */
.service-card {
    position: relative;
    padding: 30px 26px 26px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    isolation: isolate;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(150deg, var(--petrol) 0%, var(--petrol-3) 70%, var(--teal) 100%);
    background-size: 34px 34px, 34px 34px, 100% 100%;
    opacity: 0;
    transition: opacity .35s ease;
    z-index: -1;
}
.service-card:hover::before { opacity: 1; }
.service-card .s-num {
    position: absolute;
    top: 6px;
    left: 14px;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    color: rgba(20,66,78,.07);
    transition: color .35s;
}
.service-card:hover .s-num { color: rgba(245,185,43,.25); }
.service-card .s-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin: 0;
    background: linear-gradient(135deg, rgba(31,125,140,.12), rgba(245,185,43,.18));
    border-radius: 16px;
    transition: transform .35s, background .35s;
}
.service-card:hover .s-icon {
    transform: rotate(-8deg) scale(1.08);
    background: var(--amber);
}
.service-card h3 { color: var(--petrol); font-weight: 900; font-size: 18px; transition: color .3s; margin-top: 4px; }
.service-card p { color: var(--muted); font-size: 13.5px; transition: color .3s; }
.service-card .s-features { list-style: none; display: grid; gap: 7px; margin: 4px 0 6px; }
.service-card .s-features li {
    display: flex; gap: 8px; align-items: center;
    font-size: 13px; font-weight: 700; color: var(--petrol-2);
    transition: color .3s;
}
.service-card .s-features li::before {
    content: '✔';
    color: var(--amber-2);
    font-weight: 900;
    font-size: 11px;
    transition: color .3s;
}
.service-card .s-cta {
    margin-top: auto;
    font-weight: 800;
    font-size: 14px;
    color: var(--teal);
    display: flex; align-items: center; gap: 6px;
    transition: color .3s, gap .3s;
}
.service-card:hover h3 { color: #fff; }
.service-card:hover p { color: #cfe6ec; }
.service-card:hover .s-features li { color: #eaf4f7; }
.service-card:hover .s-features li::before { color: var(--amber); }
.service-card:hover .s-cta { color: var(--amber); gap: 12px; }

/* صور بطاقات الدبلومات بالرئيسية */
.diploma-card .d-media {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--petrol-2);
}
.diploma-card .d-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .6s ease;
}
.diploma-card:hover .d-media img { transform: scale(1.06); }
.diploma-card .d-top.has-media { padding: 18px 26px 16px; display: flex; align-items: center; gap: 12px; }
.diploma-card .d-top.has-media .c-icon { font-size: 26px; margin-bottom: 0; }
.diploma-card .d-top.has-media h3 { font-size: 18px; }

/* بطاقات المشاريع القابلة للنقر */
.project-card { display: flex; flex-direction: column; padding: 0; }
.project-card .p-img { aspect-ratio: 21/9; overflow: hidden; }
.project-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .p-img img { transform: scale(1.06); }
.project-card .p-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-card h3 { color: var(--petrol); font-weight: 800; font-size: 18px; }
.project-card p { color: var(--muted); font-size: 14.5px; flex: 1; }

/* بوابة الطالب */
.p-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 12px 8px; }
.p-stat b { display: block; color: var(--petrol); font-size: 19px; font-weight: 900; }
.p-stat span { font-size: 12px; color: var(--muted); }

/* معلومات البرنامج والدفعات */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.info-grid .ig { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: center; }
.info-grid .ig span { display: block; font-size: 12px; color: var(--muted); }
.info-grid .ig b { color: var(--petrol); font-size: 15px; font-weight: 800; }
.batch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.batch-row.finished { opacity: .72; }
@media (max-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== سلايدر الهيرو ===== */
.h-slider { position: relative; min-height: 320px; }
.h-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity .6s ease, transform .6s ease;
    pointer-events: none;
}
.h-slide.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.h-dots { display: flex; gap: 9px; margin-top: 26px; }
.h-dot {
    width: 12px; height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.55);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: .25s;
}
.h-dot.active { background: var(--amber); border-color: var(--amber); width: 30px; }
.logo-wrap { position: relative; }
.h-art-img { display: none; width: 300px; height: 300px; object-fit: contain; }
.h-art-img.active { display: block; }
@media (max-width: 992px) {
    .h-slider { min-height: 380px; }
    .h-dots { justify-content: center; }
}

/* شعارات الشركاء */
.partners-row .partner img, .marquee .partner img { height: 46px; width: auto; display: block; }
.partners-row .partner, .marquee .partner { display: flex; align-items: center; min-height: 62px; }

/* ===== صفحة الفريق v2 ===== */
.team-stats { background: linear-gradient(135deg, var(--petrol), var(--petrol-3)); padding: 0 0 26px; margin-top: -1px; }
.team-stats .ts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team-stats .ts { text-align: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 8px; }
.team-stats b { display: block; font-size: 26px; color: var(--amber); font-weight: 900; }
.team-stats span { font-size: 13px; color: #d9e9ee; }

.member-card { text-align: center; padding: 0 0 20px; }
.member-card .m-photo {
    height: 190px;
    background: linear-gradient(135deg, var(--petrol-2), var(--teal));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.member-card .m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.member-card:hover .m-photo img { transform: scale(1.06); }
.member-card .m-initial { font-size: 52px; color: #fff; font-weight: 900; }
.member-card .m-body { padding: 16px 14px 0; }
.member-card h3 { color: var(--petrol); font-size: 16px; font-weight: 800; }
.m-role {
    display: inline-block;
    margin-top: 6px;
    background: rgba(245,185,43,.15);
    color: var(--amber-2);
    font-size: 12px; font-weight: 800;
    padding: 3px 14px; border-radius: 999px;
}
.member-card::after {
    content: '';
    display: block;
    width: 0; height: 3px;
    background: var(--amber);
    margin: 14px auto 0;
    border-radius: 99px;
    transition: width .35s;
}
.member-card:hover::after { width: 56px; }

.expert-card { display: flex; flex-direction: column; }
.expert-card .e-photo {
    height: 250px;
    background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(135deg, var(--petrol), var(--petrol-3));
    background-size: 34px 34px, 34px 34px, 100% 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.expert-card .e-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.expert-card:hover .e-photo img { transform: scale(1.05); }
.expert-card .e-initial { font-size: 72px; color: rgba(255,255,255,.85); font-weight: 900; }
.expert-card .e-body { padding: 20px 22px 24px; }
.expert-card h3 { color: var(--petrol); font-size: 18px; font-weight: 900; }
.expert-card p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(20,66,78,.04);
    transition: .25s;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,66,78,.1); border-color: rgba(31,125,140,.35); }
.mini-card .mini-av {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--petrol-2), var(--teal));
    color: #fff; font-weight: 900; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex: 0 0 auto;
}
.mini-card .mini-av img { width: 100%; height: 100%; object-fit: cover; }
.mini-card b { display: block; color: var(--petrol); font-size: 14px; font-weight: 800; }
.mini-card span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } .team-stats .ts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }

/* ===== تطوير التصميم v1.2 ===== */

/* 1) البوسترات المربعة تظهر كاملة بلا قص (المشكلة الأساسية) */
.course-card .c-img { aspect-ratio: 1/1; background: #f4f8f9; }
.course-card .c-img img { object-fit: cover; object-position: center; }
.diploma-card .d-media { aspect-ratio: 1/1; }
.diploma-card .d-media img { object-fit: cover; object-position: center; }
.diploma-row .dr-media img { object-fit: contain; padding: 10px; }

/* 2) عناوين الأقسام بخط ذهبي مزدوج */
.sec-head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.sec-head h2::after {
    content: '';
    position: absolute;
    bottom: 0; right: 50%;
    transform: translateX(50%);
    width: 70px; height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--amber), var(--teal));
}
.sec-head h2::before {
    content: '';
    position: absolute;
    bottom: -7px; right: 50%;
    transform: translateX(50%);
    width: 34px; height: 3px;
    border-radius: 99px;
    background: var(--petrol);
    opacity: .25;
}

/* 3) أزرار بسهم يتحرك */
.btn .arr { display: inline-block; transition: transform .25s; margin-inline-start: 6px; }
.btn:hover .arr { transform: translateX(-5px); }

/* 4) زر واتساب عائم */
.wa-float {
    position: fixed;
    bottom: 22px; left: 22px;
    z-index: 90;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float .wa-tip {
    position: absolute;
    right: calc(100% + 10px);
    background: var(--petrol);
    color: #fff;
    font-size: 12.5px; font-weight: 700;
    padding: 6px 14px;
    border-radius: 9px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.wa-float:hover .wa-tip { opacity: 1; }

/* 5) فتات الخبز في أغلفة الصفحات */
.crumbs { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: #b9d4dc; margin-bottom: 10px; position: relative; }
.crumbs a { color: var(--amber); font-weight: 700; }

/* 6) شريط تقدم القراءة (المقالات) */
.read-progress {
    position: fixed;
    top: 0; right: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--amber), var(--teal));
    z-index: 200;
    transition: width .1s linear;
}

/* 7) فوتر مطور */
footer h4 { position: relative; padding-bottom: 10px; }
footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 34px; height: 3px;
    border-radius: 99px;
    background: var(--amber);
}
footer .f-social { display: flex; gap: 9px; margin-top: 14px; }
footer .f-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: .2s;
    margin-bottom: 0;
}
footer .f-social a:hover { background: var(--amber); color: var(--petrol); transform: translateY(-3px); }

/* 8) تحسين بطاقة نموذج التسجيل */
.form-card { border-top: 4px solid var(--amber); }
.form-card h2 { position: relative; }

/* 9) بطاقات أنعم */
.card { border-radius: 18px; }
.card:hover { box-shadow: 0 22px 48px rgba(20,66,78,.16); }
.h-actions .btn::after, .cta .btn::after { content: '←'; margin-inline-start: 8px; display: inline-block; transition: transform .25s; }
.h-actions .btn:hover::after, .cta .btn:hover::after { transform: translateX(-5px); }

/* ===== شعارات الشركاء — صفّان متحركان قابلان للسحب ===== */
.p-marquee { display: grid; gap: 16px; margin-top: 6px; }

.p-lane {
    overflow: hidden;
    cursor: grab;
    /* الشريط يعمل بإحداثيات LTR حتى يبدأ من الحافة اليسرى ولا يخرج خارج الشاشة في RTL */
    direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.p-lane.dragging { cursor: grabbing; }

.p-track {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
    direction: ltr;
}

.p-logo {
    /* مستطيل كبير */
    flex: 0 0 auto;
    width: 210px;
    height: 108px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20, 66, 78, .07);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    user-select: none;
}
.p-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20, 66, 78, .16);
    border-color: var(--amber);
}
.p-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* الشعارات بألوانها الأصلية */
    transition: transform .25s;
    pointer-events: none;
}
.p-logo:hover img { transform: scale(1.06); }
.p-logo span {
    direction: rtl;
    font-weight: 800;
    color: var(--petrol-2);
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
}

.p-hint {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .p-logo { width: 158px; height: 86px; padding: 11px 15px; }
    .p-track { gap: 12px; }
    .p-marquee { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .p-lane { -webkit-mask-image: none; mask-image: none; }
}

/* ===== أقسام وثيقة التأسيس (عن الأكاديمية) ===== */
.official-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.official-row span {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--petrol-2);
}

/* مجالات التدريب */
.fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
}
.field-chip {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 11px 22px;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--petrol);
    transition: .2s;
    position: relative;
    padding-inline-start: 34px;
}
.field-chip::before {
    content: '';
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
}
.field-chip:hover {
    border-color: var(--teal);
    background: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20,66,78,.1);
}

/* منهجية التدريب */
.method-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.method-step {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--teal);
    border-radius: 14px;
    padding: 20px 16px 16px;
    text-align: center;
    min-width: 150px;
    position: relative;
    transition: .2s;
}
.method-step:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(20,66,78,.12); border-top-color: var(--amber); }
.method-step .m-num {
    position: absolute;
    top: -13px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: var(--petrol);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}
.method-step .m-icon { font-size: 30px; margin-bottom: 6px; }
.method-step b { color: var(--petrol); font-size: 14.5px; font-weight: 800; }
.method-arrow { color: var(--amber); font-size: 22px; font-weight: 900; }

/* معايير الجودة */
.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 940px;
    margin: 0 auto;
}
.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--petrol-2);
    line-height: 1.8;
}
.quality-item .q-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
}

@media (max-width: 760px) {
    .quality-grid { grid-template-columns: 1fr; }
    .method-arrow { display: none; }
    .method-step { min-width: 130px; flex: 1 1 40%; }
}

/* شبكة الخدمات — تتكيف مع أي عدد بطاقات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
@media (min-width: 1100px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
