﻿/* ============================================================
   MINISTER CV PAGE - Enhanced Design
   Supports: RTL (Arabic), LTR (English), Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Cairo:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --moif-blue-dark: #0d1b3e;
    --moif-blue: #1a3a6b;
    --moif-blue-mid: #2558a8;
    --moif-gold: #c9a84c;
    --moif-gold-light: #e8c97a;
    --moif-white: #ffffff;
    --moif-bg: #f4f6fb;
    --moif-surface: #ffffff;
    --moif-border: #e2e8f0;
    --moif-text: #1e3a5f;
    --moif-text-muted: #5a7399;
    --shadow-sm: 0 2px 8px rgba(13,27,62,.07);
    --shadow-md: 0 8px 32px rgba(13,27,62,.12);
    --shadow-lg: 0 20px 60px rgba(13,27,62,.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    /* Font assignment – overridden for Arabic */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

/* Arabic overrides */
html[lang="ar"],
html[dir="rtl"] {
    --font-display: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--moif-text);
    background: var(--moif-bg);
}

html[dir="rtl"] body {
    font-family: var(--font-ar);
}

 

/* ── Services Area ─────────────────────────────────────────── */
.services-area {
    background: var(--moif-bg);
    padding: 60px 0 80px;
}

/* ── Main Card ─────────────────────────────────────────────── */
.services-content-wrapper {
    background: var(--moif-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

    /* Decorative top strip */
    .services-content-wrapper::before {
        content: '';
        display: block;
        height: 5px;
/*        background: linear-gradient(90deg, var(--moif-blue-dark), var(--moif-blue-mid), var(--moif-gold), var(--moif-gold-light));
*/    }

/* ── Sections ──────────────────────────────────────────────── */
.service-content-section {
    padding: 48px 52px;
}

.section-divider {
    border-top: 1px solid var(--moif-border);
    margin: 0;
    background: linear-gradient(180deg, #fafbfd 0%, var(--moif-surface) 40px);
}

/* ── Section Header ────────────────────────────────────────── */
.section-title-header {
    margin-bottom: 36px;
    position: relative;
}

    .section-title-header h3,
    .service-title-fixed {
        font-family: var(--font-display);
        font-size: clamp(1.3rem, 3vw, 1.9rem);
        font-weight: 700;
        color: var(--moif-blue-dark);
        margin: 0;
        padding-bottom: 14px;
        position: relative;
        display: inline-block;
    }

html[dir="rtl"] .section-title-header h3,
html[dir="rtl"] .service-title-fixed {
    font-family: var(--font-ar);
}

/* Gold underline */
.section-title-header h3::after,
.service-title-fixed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--moif-gold), var(--moif-gold-light), transparent);
    border-radius: 2px;
}

html[dir="rtl"] .section-title-header h3::after,
html[dir="rtl"] .service-title-fixed::after {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, var(--moif-gold), var(--moif-gold-light), transparent);
}

/* ── Hero Image + Text Row ─────────────────────────────────── */
.service-header-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr; /* ✅ 2/3 text, 1/3 image */
    gap: 40px;
    align-items: center;
}
 
.service-rounded-image-side {
    max-width: 100%; /* take full column width */
    min-height: 260px;
    height: 100%;
}


 
/* ── Minister Image ────────────────────────────────────────── */
.service-rounded-image-side {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue-mid) 100%);
    box-shadow: var(--shadow-md);
    min-height: 320px;
}

    /* Decorative corner accent */
    .service-rounded-image-side::before {
        content: '';
        position: absolute;
        top: -2px;
        right: -2px;
        width: 80px;
        height: 80px;
        border-top: 4px solid var(--moif-gold);
        border-right: 4px solid var(--moif-gold);
        border-radius: 0 var(--radius-lg) 0 0;
        z-index: 2;
        pointer-events: none;
    }

html[dir="rtl"] .service-rounded-image-side::before {
    right: auto;
    left: -2px;
    border-right: none;
    border-left: 4px solid var(--moif-gold);
    border-radius: var(--radius-lg) 0 0 0;
}

.service-rounded-image-side::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 80px;
    height: 80px;
    border-bottom: 4px solid var(--moif-gold);
    border-left: 4px solid var(--moif-gold);
    border-radius: 0 0 0 var(--radius-lg);
    z-index: 2;
    pointer-events: none;
}

html[dir="rtl"] .service-rounded-image-side::after {
    left: auto;
    right: -2px;
    border-left: none;
    border-right: 4px solid var(--moif-gold);
    border-radius: 0 0 var(--radius-lg) 0;
}

.service-rounded-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.service-rounded-image-side:hover img {
    transform: scale(1.03);
}

.service-rounded-image-side.no-image img {
    display: none;
}

.image-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue-mid) 100%);
}

.service-rounded-image-side.no-image .image-fallback {
    display: flex;
}

.image-fallback i {
    font-size: 90px;
    color: var(--moif-gold);
    opacity: .5;
}

/* ── Text Beside Image ─────────────────────────────────────── */
.service-content-wrapper-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

/* Quote-style decorative left bar for first paragraph */
.service-content-beside-image {
    position: relative;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f5ff 0%, #fafbff 100%);
    border-radius: var(--radius-md);
    border-inline-start: 4px solid var(--moif-gold);
}

html[dir="rtl"] .service-content-beside-image {
    border-inline-start: 4px solid var(--moif-gold);
}

.service-content-beside-image::before {
    content: '"';
    position: absolute;
    top: -10px;
    inset-inline-start: 20px;
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--moif-gold);
    opacity: .2;
    line-height: 1;
}

.first-paragraph {
    font-family: var(--font-body);
    color: var(--moif-text);
    line-height: 2;
    margin: 0;
    font-size: clamp(.9rem, 1.8vw, 1rem);
    font-weight: 400;
}
 
html[dir="rtl"] .first-paragraph {
    font-family: var(--font-ar);
    font-size: clamp(.9rem, 1.8vw, 1rem); /* same as LTR */
    line-height: 2.3; /* better readability for Arabic */
    letter-spacing: 0.2px;
}
 
/* ── Text Content Below ────────────────────────────────────── */
.service-text-content {
    margin-top: 28px;
}

    .service-text-content p {
        font-family: var(--font-body);
        color: var(--moif-text);
        line-height: 2;
        margin-bottom: 22px;
        font-size: clamp(.9rem, 1.8vw, 1rem);
        position: relative;
    }

html[dir="rtl"] .service-text-content p {
    font-family: var(--font-ar);
    font-size: clamp(.9rem, 1.8vw, 1rem); /* same */
    line-height: 2; /* same */
}

.service-text-content p:last-child {
    margin-bottom: 0;
}

/* Experience paragraphs get subtle numbered indicator */
.section-divider .service-text-content p {
    padding-inline-start: 20px;
    position: relative;
}

    .section-divider .service-text-content p::before {
        content: '';
        position: absolute;
        inset-inline-start: 0;
        top: 12px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--moif-gold);
    }

/* ── Text Alignment ────────────────────────────────────────── */
html[dir="rtl"] .section-title-header h3,
html[dir="rtl"] .service-title-fixed,
html[dir="rtl"] .first-paragraph,
html[dir="rtl"] .service-text-content p,
html[dir="rtl"] .service-text-content ul,
html[dir="rtl"] .service-text-content li {
    text-align: right;
}

html[dir="ltr"] .section-title-header h3,
html[dir="ltr"] .service-title-fixed,
html[dir="ltr"] .first-paragraph,
html[dir="ltr"] .service-text-content p,
html[dir="ltr"] .service-text-content ul,
html[dir="ltr"] .service-text-content li {
    text-align: left;
}

/* ── Lists ─────────────────────────────────────────────────── */
.service-text-content ul {
    margin: 12px 0 20px;
    padding-inline-start: 24px;
    list-style: none;
}

.service-text-content li {
    font-family: var(--font-body);
    color: var(--moif-text);
    line-height: 1.8;
    margin-bottom: 10px;
    padding-inline-start: 12px;
    position: relative;
}

html[dir="rtl"] .service-text-content li {
    font-family: var(--font-ar);
}

.service-text-content li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: .6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--moif-gold);
}

/* ── Item Blocks (expertise etc.) ──────────────────────────── */
.responsibility-item,
.objective-item,
.program-item,
.challenge-item,
.vision-item,
.expertise-item {
    background: #f8faff;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 16px;
    border-inline-start: 3px solid var(--moif-blue-mid);
    transition: box-shadow .2s, transform .2s;
}

    .responsibility-item:hover,
    .expertise-item:hover {
        box-shadow: var(--shadow-sm);
        transform: translateX(3px);
    }

html[dir="rtl"] .responsibility-item:hover,
html[dir="rtl"] .expertise-item:hover {
    transform: translateX(-3px);
}

.responsibility-item:last-child,
.objective-item:last-child,
.program-item:last-child,
.challenge-item:last-child,
.vision-item:last-child,
.expertise-item:last-child {
    margin-bottom: 0;
}

/* ── Attachments ───────────────────────────────────────────── */
.attachments-section {
    padding: 0 52px 52px;
}

.attachments-card {
    background: var(--moif-surface);
    border: 1px solid var(--moif-border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--moif-border);
}

    .attachments-header i {
        font-size: 20px;
        color: var(--moif-gold);
    }

    .attachments-header h3 {
        font-family: var(--font-display);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--moif-blue-dark);
        margin: 0 !important;
    }

html[dir="rtl"] .attachments-header h3 {
    font-family: var(--font-ar);
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8faff;
    border: 1px solid var(--moif-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

    .attachment-item:last-child {
        margin-bottom: 0;
    }

    .attachment-item:hover {
        box-shadow: var(--shadow-sm);
    }

.attachment-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.attachment-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid var(--moif-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .attachment-icon i {
        font-size: 18px;
        color: #e53e3e;
    }

.attachment-details h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--moif-blue-dark);
    margin: 0 0 4px !important;
}

.attachment-details span {
    font-size: .8rem;
    color: var(--moif-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.download-btn {
    background: var(--moif-blue-dark) !important;
    color: #fff;
    border: none;
    padding: 9px 18px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: .3px;
    transition: background .2s, transform .15s;
}

    .download-btn:hover {
        background: var(--moif-blue-mid) !important;
        transform: translateY(-1px);
        color: #fff;
    }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-content-section {
    animation: fadeSlideUp .55s ease both;
}

.section-divider:nth-of-type(2) {
    animation-delay: .1s;
}

.section-divider:nth-of-type(3) {
    animation-delay: .2s;
}

/* ── Responsive ────────────────────────────────────────────── */

/* Large tablets */
@media (max-width: 1100px) {
    .service-content-section {
        padding: 40px 40px;
    }

    .attachments-section {
        padding: 0 40px 40px;
    }

    .service-header-with-image {
        grid-template-columns: 1fr 300px;
        gap: 32px;
    }

    html[dir="rtl"] .service-header-with-image {
        grid-template-columns: 300px 1fr;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .service-content-section {
        padding: 36px 32px;
    }

    .attachments-section {
        padding: 0 32px 36px;
    }

    @media (max-width: 900px) {

        .service-header-with-image,
        html[dir="rtl"] .service-header-with-image {
            display: flex;
            flex-direction: column;
        }

        /* IMAGE FIRST */
        .service-rounded-image-side {
            order: -1;
        }

        /* spacing */
        .service-rounded-image-side {
            margin-bottom: 20px;
        }
    }
    

    
}

/* Phablets */
@media (max-width: 680px) {
    .services-area {
        padding: 40px 0 60px;
    }

    .service-content-section {
        padding: 28px 22px;
    }

    .attachments-section {
        padding: 0 22px 28px;
    }

    .section-title-header h3,
    .service-title-fixed {
        font-size: clamp(1.1rem, 5vw, 1.4rem);
    }

    .service-rounded-image-side {
        min-height: 220px;
        max-height: 260px;
    }

    .service-content-beside-image {
        padding: 18px 20px;
    }

        .service-content-beside-image::before {
            font-size: 3rem;
        }

    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .download-btn {
        align-self: flex-end;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .services-content-wrapper::before {
        height: 4px;
    }

    .service-content-section {
        padding: 22px 16px;
    }

    .attachments-section {
        padding: 0 16px 22px;
    }

    .service-content-beside-image {
        padding: 16px;
    }

    .section-divider .service-text-content p {
        padding-inline-start: 14px;
    }

    .page-title-content h2 {
        font-size: 1.3rem;
    }
}

/* ── Accessibility: reduce motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .service-content-section {
        animation: none;
    }

    .service-rounded-image-side img {
        transition: none;
    }

    .download-btn {
        transition: none;
    }
}
/* ═══════════════════════════════════════
   PAGE TITLE HEADER (Styled Version)
   ═══════════════════════════════════════ */

.page-title-area {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #0d1b3e 0%, #0b1733 100%);
    overflow: hidden;
}

    /* GOLD SUBLINE */
    .page-title-area::after {
        content: "";
        display: block;
        width: 80%;
        height: 2px;
        margin: 30px auto 0;
        background: linear-gradient( 90deg, transparent, var(--moif-gold), var(--moif-gold-light), transparent );
    }

/* TITLE */
.page-title-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

/* Arabic font */
html[dir="rtl"] .page-title-content h2 {
    font-family: var(--font-ar);
}

 
 