/* ============================================
   أحمد المحلاوي - موقع GEO
   Visual design only; GEO (Schema, meta, semantics) unchanged.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* Trust & authority */
    --primary: #0a2540;
    --primary-light: #0d3262;
    --primary-dark: #061a2d;
    /* Accent: warm, premium, distinct */
    --accent: #c9a227;
    --accent-hover: #b8921f;
    --accent-soft: rgba(201, 162, 39, 0.12);
    /* Secondary action */
    --secondary: #1e4976;
    --secondary-hover: #2a5a8f;
    /* Neutrals */
    --text: #1a1a1a;
    --text-muted: #4a5568;
    --bg: #fafaf8;
    --bg-card: #ffffff;
    --border: #e8e8e6;
    --border-focus: var(--accent);
    /* Semantic */
    --success-bg: #ecfdf5;
    --success-text: #047857;
    /* Typography */
    --font: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    --shadow-hover: 0 12px 40px rgba(10, 37, 64, 0.14);
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    padding: 0;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle background pattern (non-intrusive, no images) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(10, 37, 64, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Header ---- */
header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 16px rgba(10, 37, 64, 0.2);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.85;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

nav a.active {
    color: #fff;
    background: var(--accent);
}

nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* زر القائمة (همبرغر) — يظهر على الشاشات الصغيرة فقط */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}
header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* على الموبايل: إظهار الهمبرغر وإخفاء القائمة الأفقية وعرضها منسدلة */
@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    header {
        flex-wrap: nowrap;
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 38px;
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary);
        box-shadow: 0 8px 24px rgba(10, 37, 64, 0.25);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    header.nav-open nav {
        max-height: 280px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
        min-height: 44px;
        box-sizing: border-box;
    }
}

/* ---- Main content ---- */
main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.home-main {
    padding: 0 1.5rem 0;
}

/* ---- Hero (Home) - منسق كما في التصميم المرجعي ---- */
.hero-home {
    padding: 3rem 2rem 3.5rem;
    margin: 0 0 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.hero-photo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.12);
}

.hero-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.hero-home h1 {
    color: var(--primary);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.hero-home .hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
    max-width: 48ch;
}

.hero-badge {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    background: var(--accent-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-cta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    justify-content: center;
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border);
}

.hero-cta .button,
.hero-cta .hero-linkedin {
    margin: 0;
}

.hero-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--border);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.hero-linkedin:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(30, 73, 118, 0.06);
}

@media (min-width: 640px) {
    .hero-intro {
        flex-direction: row;
        gap: 3rem;
        margin-bottom: 2rem;
        align-items: center;
        justify-content: center;
    }
    .hero-text {
        text-align: right;
        max-width: 42ch;
    }
    .hero-desc {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 900px) {
    .hero-home {
        padding: 3.5rem 3rem 4rem;
    }
    .hero-intro {
        gap: 4rem;
    }
    .hero-photo {
        width: 200px;
        height: 200px;
    }
}

/* ---- Home sections ---- */
.home-section {
    padding: 3.5rem 0;
}

.home-section-alt {
    background: linear-gradient(180deg, rgba(10, 37, 64, 0.03) 0%, transparent 100%);
    margin: 0 -1.5rem;
    padding: 3.5rem 1.5rem;
    border-radius: 0;
}

.home-section .page-header {
    margin-bottom: 2rem;
}

/* ---- Page headers (inner pages) ---- */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1,
.page-header h2 {
    color: var(--primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* ---- Headings in content ---- */
h1, h2, h3 {
    color: var(--primary);
    font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.5rem; }
h3 { font-size: 1.2rem; margin-top: 1.25rem; }

/* ---- Service cards ---- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 37, 64, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h2,
.service-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.35;
}

.service-card p {
    flex: 1;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
    line-height: 1.6;
    min-height: 0;
}

.service-card .button {
    margin-top: auto;
}

.services-more {
    text-align: center;
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
}

.services-more a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.services-more a:hover {
    color: var(--accent);
}

/* ---- Buttons ---- */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-family: var(--font);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
    box-shadow: 0 2px 10px rgba(30, 73, 118, 0.25);
}

.button:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 73, 118, 0.35);
}

.primary-btn {
    background: var(--accent);
    color: #1a1a1a !important;
    box-shadow: 0 2px 12px rgba(201, 162, 39, 0.35);
}

.primary-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---- CTA box ---- */
.cta-section {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-box {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
    border-radius: var(--radius);
    margin-top: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cta-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.cta-box p {
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.cta-box .button {
    margin-top: 0.5rem;
}

/* ---- Expertise grid (منظومة الخبرات) ---- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* المربع الوحيد في السطر الأخير يكون في المنتصف (عند 3 أعمدة فأكثر) */
@media (min-width: 900px) {
    .expertise-card:last-child:nth-child(3n+1) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 280px;
    }
}

.home-section .expertise-grid {
    margin-bottom: 0;
}

.expertise-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.expertise-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-soft);
}

.expertise-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.expertise-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Certifications ---- */
.certs-list {
    max-width: 640px;
    margin: 0 auto 3rem;
}

.cert-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text);
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item strong {
    color: var(--primary);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 auto;
}

/* المربع الوحيد في السطر الأخير يكون في المنتصف (عند 4 أعمدة فأكثر) */
@media (min-width: 900px) {
    .cert-card:last-child:nth-child(4n+1) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 220px;
    }
}

.cert-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-soft);
}

.cert-code {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.cert-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Partners ---- */
.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.partners-list span {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

.partners-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 1rem 0 0;
}

/* ---- Training links ---- */
.training-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto;
}

.training-link {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.training-link:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px var(--accent-soft);
}

.training-icon {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-left: 0.35rem;
}

/* ---- CTA Banner (full-width) ---- */
.cta-banner {
    background: var(--primary);
    color: #fff;
    margin: 0 -1.5rem 0;
    padding: 3rem 1.5rem;
    text-align: center;
}

.cta-banner-inner {
    max-width: 560px;
    margin: 0 auto;
}

.cta-banner h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

.cta-banner-btn {
    background: var(--accent);
    color: #1a1a1a !important;
}

.cta-banner-btn:hover {
    background: var(--accent-hover);
}

/* ---- Course page ---- */
.course-details {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* البانر الأزرق للدورة — عنوان واضح ومرئي */
.course-banner {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 2.5rem 2rem;
    margin: 0 0 2rem;
}

.course-banner h1 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.course-banner .subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 500;
    margin: 0;
}

.course-details section {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.course-details section:last-of-type {
    padding-bottom: 0;
}

.course-details .cta-section {
    justify-content: flex-start;
    margin-top: 2rem;
    padding: 0 2rem 2rem;
}

.course-details section {
    margin-bottom: 2rem;
}

.course-details .cta-section {
    justify-content: flex-start;
    margin-top: 2rem;
}

/* ---- FAQ / Insights ---- */
.faq-container {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.5rem;
}

.faq-item details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item details:hover {
    border-color: rgba(10, 37, 64, 0.15);
}

.faq-item details[open] {
    border-color: var(--accent);
    box-shadow: 0 2px 16px var(--accent-soft);
}

.faq-item summary {
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    margin-right: auto;
    transition: transform var(--transition);
}

.faq-item details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item summary:hover {
    background: var(--bg);
}

.answer-content {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    line-height: 1.75;
}

.answer-content p {
    margin: 0 0 1rem;
    color: var(--text);
}

.answer-content p:last-of-type {
    margin-bottom: 0;
}

.answer-content p + ul,
.answer-content p + ol {
    margin-top: 0.25rem;
}

.answer-content ul,
.answer-content ol {
    margin: 0.75rem 0 1rem;
    padding-right: 1.75rem;
    padding-left: 0;
}

.answer-content ul {
    list-style: none;
}

.answer-content ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1rem;
    border-right: 3px solid var(--accent-soft);
    margin-bottom: 0.5rem;
    padding-right: 1rem;
}

.answer-content ul li::before {
    content: '';
    position: absolute;
    right: 0.25rem;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.answer-content ol {
    list-style: none;
    counter-reset: faq-num;
}

.answer-content ol li {
    position: relative;
    padding: 0.5rem 0 0.5rem 0.5rem;
    padding-right: 2.5rem;
    margin-bottom: 0.6rem;
    counter-increment: faq-num;
}

.answer-content ol li::before {
    content: counter(faq-num);
    position: absolute;
    right: 0;
    top: 0.35rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 50%;
}

.answer-content li:last-child {
    margin-bottom: 0;
}

.answer-content strong {
    color: var(--primary);
    font-weight: 700;
}

.answer-content a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.answer-content a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---- Contact page ---- */
.contact-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-container.contact-only {
    justify-content: center;
}

.contact-only .contact-info {
    max-width: 420px;
    flex: 0 1 auto;
    text-align: center;
}

.contact-only .contact-photo {
    margin: 0 auto;
    display: block;
}

.contact-only .contact-info ul {
    text-align: center;
}

.contact-only .contact-info li {
    text-align: center;
}

.contact-only .availability-badge {
    text-align: center;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 1.25rem;
    display: block;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

.contact-info a:hover {
    color: var(--accent);
}

.availability-badge {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-top: 2rem;
    font-weight: 500;
}

.contact-form-section {
    flex: 2;
    min-width: 280px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-form-section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-section label {
    font-weight: 600;
    color: var(--primary);
}

.contact-form-section input,
.contact-form-section select,
.contact-form-section textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form-section input:focus,
.contact-form-section select:focus,
.contact-form-section textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form-section button {
    margin-top: 0.5rem;
    cursor: pointer;
}

/* ---- Footer ---- */
/* ---- Skip link (accessibility) ---- */
.skip-link {
    position: absolute;
    top: -3rem;
    right: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- Site footer ---- */
footer {
    position: relative;
    z-index: 1;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
    font-size: 0.95rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ---- Links in body (e.g. course page) ---- */
main a:not(.button) {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

main a:not(.button):hover {
    color: var(--accent);
}

/* ---- Lists ---- */
ul, ol {
    margin: 0.5rem 0 1rem;
    padding-right: 1.5rem;
}

.service-card ul,
.course-details ul {
    padding-right: 1.25rem;
}

/* ========== الموبايل والشفافيات الصغيرة ========== */
@media (max-width: 600px) {
    main {
        padding: 1.5rem 1rem 3rem;
    }

    .home-main {
        padding: 0 1rem;
    }

    .hero-home {
        padding: 2rem 1rem 2.5rem;
    }

    .hero-photo {
        width: 130px;
        height: 130px;
    }

    .hero-cta {
        gap: 0.6rem 1rem;
        padding-top: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .home-section,
    .home-section-alt {
        padding: 2rem 0;
    }

    .home-section-alt {
        margin: 0 -1rem;
        padding: 2rem 1rem;
    }

    .cta-banner {
        margin: 0 -1rem;
        padding: 2rem 1rem;
    }

    .footer-links {
        gap: 0.5rem 1rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* أزرار وأسطح لمس مناسبة للموبايل (≈44px) */
.button,
.primary-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-linkedin {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
