﻿/* ========== InvestmentOpportunities.css – RTL/LTR Compatible test========== */
:root {
    --navy: #0D1B3E;
    --navy-mid: #152548;
    --navy-light: #1E3260;
    --gold: #C9A227;
    --gold-bright: #E8BC3C;
    --gold-pale: #F7EDD0;
    --white: #FFFFFF;
    --off-white: #F5F6F8;
    --text-dark: #1A1F2E;
    --text-body: #4A5568;
    --text-muted: #8A95A3;
    --border: #E8ECF2;
    --radius: 20px;
    --radius-sm: 12px;
    --moif-blue-dark: #0d1b3e;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

 

/* ========== Breadcrumb ========== */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
}

    .breadcrumb li a {
        color: rgba(255,255,255,0.65);
        transition: color 0.2s;
    }

        .breadcrumb li a:hover {
            color: var(--gold);
        }

    .breadcrumb li.active {
        color: var(--gold);
    }

    .breadcrumb li::after {
        content: '/';
        color: rgba(255,255,255,0.3);
        margin-inline: 0 8px;
    }

    .breadcrumb li:last-child::after {
        display: none;
    }

/* ========== Sections ========== */
.inv-section {
    padding: 72px 0;
}

    .inv-section:nth-child(even) {
        background: var(--white);
    }

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-pale);
    border: 1px solid rgba(201,162,39,0.3);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

    .section-eyebrow .eyebrow-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--gold);
    }

.section-header h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

    .section-header h2 span {
        color: var(--gold);
    }

.section-header .en-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.section-header p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.85;
    max-width: 680px;
    margin: 0 auto;
}

.title-underline {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 3px;
    margin: 16px auto 0;
}

/* ========== Projects Grid (Cards) ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.proj-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .proj-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(13,27,62,0.12);
        border-color: rgba(201,162,39,0.4);
    }

.proj-card-top {
}

.proj-card-body {
    padding: 28px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proj-sector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.proj-sector-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(13,27,62,0.08);
    color: var(--navy);
}

.proj-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.proj-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}

.proj-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 20px;
    overflow-wrap: break-word;
}

    .proj-card-desc p {
        margin-bottom: 12px;
    }

    .proj-card-desc h4,
    .proj-card-desc h5 {
        font-size: 15px;
        font-weight: 700;
        color: var(--navy);
        margin: 16px 0 8px;
        border-inline-end: 3px solid var(--gold);
        padding-inline-end: 12px;
    }

    .proj-card-desc ul,
    .proj-card-desc ol {
        margin: 8px 0 12px 20px;
        padding-inline-start: 0;
        list-style: none;
    }

    .proj-card-desc li {
        margin-bottom: 6px;
        position: relative;
        padding-inline-start: 20px;
    }

        .proj-card-desc li::before {
            content: "•";
            color: var(--gold);
            font-weight: bold;
            position: absolute;
            inset-inline-start: 0;
        }

    .proj-card-desc .sub-opportunity {
        background: var(--off-white);
        border-radius: var(--radius-sm);
        padding: 16px;
        margin: 16px 0;
        border: 1px solid var(--border);
        transition: all 0.2s;
    }

        .proj-card-desc .sub-opportunity:hover {
            border-color: var(--gold);
            background: rgba(201,162,39,0.02);
        }

        .proj-card-desc .sub-opportunity h5 {
            margin-top: 0;
            font-size: 16px;
        }

    .proj-card-desc .meta {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 10px;
    }

        .proj-card-desc .meta i {
            color: var(--gold);
            margin-inline-end: 4px;
        }

    .proj-card-desc .allocation-badge {
        display: inline-block;
        background: var(--gold-pale);
        color: var(--navy);
        font-size: 11px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 20px;
        margin-inline-end: 8px;
        margin-bottom: 8px;
    }

/* Read-more */
.read-more-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .read-more-btn:hover {
        color: var(--gold-bright);
    }

.long-description {
    max-height: 180px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

    .long-description.expanded {
        max-height: none;
    }

    .long-description:not(.expanded)::after {
        content: '';
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: 0;
        height: 40px;
        background: linear-gradient(to bottom, transparent, var(--white));
        pointer-events: none;
    }

/* Meta strip */
.proj-meta-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.proj-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

    .proj-meta-item i {
        font-size: 14px;
        background: rgba(201,162,39,0.1);
        padding: 4px;
        border-radius: 50%;
        color: var(--gold);
    }

.proj-opps-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.proj-opps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .proj-opps-list li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 12.5px;
        color: var(--text-body);
        line-height: 1.5;
    }

        .proj-opps-list li::before {
            content: '';
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--gold-pale);
            flex-shrink: 0;
            margin-top: 1px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.5 5L7 9.5 4.5 7' stroke='%23C9A227' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
        }

/* Card footer */
.proj-card-footer {
    padding: 16px 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alloc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alloc-tag {
    background: var(--off-white);
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 30px;
    transition: background 0.2s;
}

    .alloc-tag:hover {
        background: var(--gold-pale);
        color: var(--gold);
    }

.proj-learn-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    transition: color 0.2s, gap 0.2s;
    white-space: nowrap;
}

.proj-card:hover .proj-learn-btn {
    color: var(--gold);
    gap: 10px;
}

/* ========== Investment Map Section ========== */
.map-section {
    background: var(--off-white);
    padding: 72px 0;
}

.map-card {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .map-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

    .map-card .section-header h2 {
        color: var(--white);
    }

    .map-card .section-header .en-subtitle {
        color: rgba(255,255,255,0.5);
    }

.map-text-block p {
    color: rgba(255,255,255,0.8);
}

    .map-text-block p:last-of-type {
        color: rgba(255,255,255,0.5);
        font-style: italic;
    }

.map-card .map-feature {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

    .map-card .map-feature:hover {
        background: rgba(201,162,39,0.15);
        border-color: var(--gold);
    }

    .map-card .map-feature h4 {
        color: var(--white);
    }

    .map-card .map-feature p {
        color: rgba(255,255,255,0.6);
    }

.map-card .map-feature-icon {
    background: rgb(201 162 39 / 89%);
}

.map-card .map-url-box {
    background: rgba(201,162,39,0.15);
    border-color: rgba(201,162,39,0.4);
    color: var(--gold);
}

    .map-card .map-url-box:hover {
        background: rgba(201,162,39,0.25);
        border-color: var(--gold-bright);
    }

.map-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.map-text-block p {
    font-size: 14.5px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.map-url-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.map-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.map-feature {
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.map-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
}

.map-feature h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.map-feature p {
    font-size: 12px;
    line-height: 1.6;
}

/* ========== Locations & Sectors ========== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.location-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .location-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--gold), var(--gold-bright));
        transform: scaleX(0);
        transition: transform 0.3s;
    }

    .location-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(13,27,62,0.1);
        border-color: rgba(201,162,39,0.3);
    }

        .location-card:hover::before {
            transform: scaleX(1);
        }

.location-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 26px;
}

.location-card:hover .location-icon {
    background: var(--gold-pale);
}

.location-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.loc-type {
    font-size: 11px;
    color: var(--text-muted);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.sector-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 28px 16px 22px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s, background 0.25s;
    min-width: 208px !important;
}

    .sector-card.active,
    .sector-card:hover {
        background: var(--navy);
        border-color: var(--navy);
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(13,27,62,0.18);
    }

.sector-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: background 0.25s;
}

.sector-card.active .sector-icon-wrap,
.sector-card:hover .sector-icon-wrap {
    background: rgba(201,162,39,0.2);
}

.sector-icon-wrap i {
    font-size: 28px;
    color: var(--gold);
}

.sector-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    transition: color 0.25s;
}

.sector-card.active h3, .sector-card:hover h3 {
    color: var(--white);
}

/* Sector Detail Panel */
.sector-detail-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: none;
}

    .sector-detail-panel.visible {
        display: block;
    }

.sdp-header {
    background: var(--navy);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sdp-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(201,162,39,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
    color: var(--gold);
}

.sdp-header-text h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.sdp-header-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.sdp-close {
    margin-inline-start: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .sdp-close:hover {
        background: rgba(255,255,255,0.2);
    }

.sdp-body {
    padding: 32px;
}

    .sdp-body p {
        font-size: 14.5px;
        color: var(--text-body);
        line-height: 1.85;
        margin-bottom: 28px;
    }

.sdp-opps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.sdp-opp-item {
    background: var(--off-white);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

    .sdp-opp-item:hover {
        border-color: var(--gold);
    }

    .sdp-opp-item h4 {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 6px;
    }

    .sdp-opp-item p {
        font-size: 12.5px;
        color: var(--text-body);
        line-height: 1.6;
        margin-bottom: 0;
    }

.sdp-opp-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

/* CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

    .cta-band::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 50%, rgba(201,162,39,0.1) 0%, transparent 60%);
    }

    .cta-band h2 {
        font-size: 24px;
        font-weight: 800;
        color: var(--white);
        margin-bottom: 10px;
        position: relative;
    }

    .cta-band p {
        font-size: 14px;
        color: rgba(255,255,255,0.6);
        margin-bottom: 24px;
        position: relative;
    }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

    .cta-btn:hover {
        background: var(--gold-bright);
        transform: scale(1.03);
    }

/* ========== Mega Cards ========== */
.mega-card .proj-card-top {
    display: none;
}

.mega-card .proj-card-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--off-white);
}

    .mega-card .proj-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.42s ease;
    }

.mega-card:hover .proj-card-image img {
    transform: scale(1.04);
}

.mega-card .proj-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13,27,62,0.04) 0%, rgba(13,27,62,0.48) 100%);
    pointer-events: none;
}

.mega-card .proj-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 2;
}

.mega-card .proj-img-badge {
    position: absolute;
    bottom: 14px;
    inset-inline-start: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(13,27,62,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid rgba(201,162,39,0.35);
}

    .mega-card .proj-img-badge .badge-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--gold);
        flex-shrink: 0;
    }

.mega-card .proj-card-image-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .mega-card .proj-card-image-placeholder::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    }

    .mega-card .proj-card-image-placeholder i {
        font-size: 40px;
        color: rgba(201,162,39,0.4);
    }

.mega-card .proj-card-body {
    padding: 22px 22px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-card .mega-authority-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mega-card .mega-authority-badge {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(13,27,62,0.07);
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mega-card .proj-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 10px;
    line-height: 1.3;
}

.mega-card .mega-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-body);
    flex: 1;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

    .mega-card .mega-desc p {
        margin-bottom: 8px;
    }

    .mega-card .mega-desc h4,
    .mega-card .mega-desc h5 {
        font-size: 14px;
        font-weight: 700;
        color: var(--navy);
        margin: 12px 0 6px;
    }

    .mega-card .mega-desc ul,
    .mega-card .mega-desc ol {
        list-style: none;
        padding-inline-start: 0;
        margin: 6px 0 10px;
    }

    .mega-card .mega-desc li {
        position: relative;
        padding-inline-start: 18px;
        margin-bottom: 4px;
        font-size: 13px;
    }

        .mega-card .mega-desc li::before {
            content: '';
            position: absolute;
            inset-inline-start: 0;
            top: 6px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gold);
        }

.mega-card .mega-opp-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201,162,39,0.10);
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(201,162,39,0.2);
    width: fit-content;
}

.mega-card .proj-card-footer {
    padding: 14px 22px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.mega-card .mega-learn-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 9px;
    border: 1.5px solid var(--navy);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.22s, border-color 0.22s, gap 0.22s;
    white-space: nowrap;
}

    .mega-card .mega-learn-btn:hover {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--navy);
        gap: 11px;
    }

    .mega-card .mega-learn-btn i {
        font-size: 14px;
        transition: inherit;
    }

[dir="rtl"] .mega-card .mega-learn-btn i.ri-arrow-left-line,
[dir="rtl"] .mega-card .mega-learn-btn i.ri-arrow-right-line {
    transform: scaleX(-1);
}

.mega-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

    .mega-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(13,27,62,0.11);
        border-color: rgba(201,162,39,0.4);
    }

/* ========== Project Image ========== */
.proj-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
}

    .proj-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.proj-card:hover .proj-card-image img {
    transform: scale(1.02);
}

.proj-card-image + .proj-card-body {
    padding-top: 20px;
}

/* ========== Dark Services Section ========== */
.services-dark-section {
    background: var(--navy);
    padding: 72px 0;
}

.light-header {
    color: var(--white);
}

    .light-header .section-eyebrow {
        background: rgba(201,162,39,0.15);
        border-color: rgba(201,162,39,0.3);
        color: var(--gold);
    }

    .light-header h2 {
        color: var(--white);
    }

    .light-header .en-subtitle {
        color: rgba(255,255,255,0.6);
    }

.gold-underline {
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

.services-grid-dark {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.service-card-dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    cursor: default;
}

    .service-card-dark:hover {
        background: rgba(201,162,39,0.08);
        border-color: var(--gold);
        transform: translateY(-6px);
    }

.card-icon-dark {
    width: 64px;
    height: 64px;
    background: rgba(201,162,39,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: var(--gold);
}

    .card-icon-dark img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        object-fit: cover;
    }

.service-title-dark {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-desc-dark {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.service-link-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    transition: gap 0.2s;
}

    .service-link-dark:hover {
        gap: 12px;
        color: var(--gold-bright);
    }

/* ========== MEGA PROJECT DETAIL PAGE ========== */

.mega-detail-wrapper {
    padding: 40px 0 80px;
    background: var(--off-white);
}

/* Back navigation */
.back-nav {
    margin-bottom: 28px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
}

    .back-link:hover {
        background: var(--gold-pale);
        border-color: var(--gold);
        color: var(--gold);
        gap: 12px;
    }

/* ── Hero ── */
.mega-detail-hero {
    height: 440px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    position: relative;
    margin-bottom: 28px;
    overflow: hidden;
}

    .mega-detail-hero.no-image {
        background: linear-gradient(135deg, var(--navy), var(--navy-light));
    }

    /* Decorative dot-grid overlay */
    .mega-detail-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle, rgba(201,162,39,0.15) 1px, transparent 1px);
        background-size: 28px 28px;
        z-index: 1;
        pointer-events: none;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,62,0.92) 0%, rgba(13,27,62,0.55) 45%, rgba(13,27,62,0.15) 100%);
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

.hero-content {
    padding: 40px 44px;
    width: 100%;
}

.hero-authority-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(201,162,39,0.90);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

    .hero-authority-badge .badge-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--navy);
        flex-shrink: 0;
    }

.hero-content h1 {
    font-size: clamp(24px, 4.5vw, 42px);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    line-height: 1.2;
    max-width: 800px;
}

/* ── Meta Grid ── */
.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.meta-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px 18px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

    .meta-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--gold), var(--gold-bright));
        transform: scaleX(0);
        transition: transform 0.3s;
    }

    .meta-card:hover {
        transform: translateY(-3px);
        border-color: rgba(201,162,39,0.4);
        box-shadow: 0 8px 24px rgba(13,27,62,0.08);
    }

        .meta-card:hover::after {
            transform: scaleX(1);
        }

    .meta-card.featured {
        background: var(--gold-pale);
        border-color: var(--gold);
    }

        .meta-card.featured::after {
            transform: scaleX(1);
        }

.meta-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
    transition: background 0.2s;
}

.meta-card:hover .meta-icon {
    background: var(--gold-pale);
}

.meta-card.featured .meta-icon {
    background: rgba(201,162,39,0.2);
}

.meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.meta-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

/* ── Opportunities Ribbon ── */
.opp-ribbon {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius-sm);
    padding: 22px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

    .opp-ribbon::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 10% 50%, rgba(201,162,39,0.12) 0%, transparent 55%);
        pointer-events: none;
    }

.opp-ribbon-left {
    position: relative;
}

.opp-count-big {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.opp-count-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.opp-ribbon-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    position: relative;
}

    .opp-ribbon-right i {
        font-size: 18px;
        color: var(--gold);
        opacity: 0.7;
    }

/* ── Content Cards ── */
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

    .content-card:hover {
        box-shadow: 0 8px 32px rgba(13,27,62,0.07);
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--off-white);
}

.card-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.content-card:hover .card-header-icon {
    background: var(--gold-pale);
    border-color: rgba(201,162,39,0.4);
}

.card-header-text h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 3px;
}

.card-header-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.card-body {
    padding: 28px 32px 32px;
}

/* ── Rich HTML Content ── */
.rich-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-body);
}

    .rich-content p {
        margin-bottom: 1rem;
    }

        .rich-content p:last-child {
            margin-bottom: 0;
        }

    .rich-content h4 {
        font-size: 17px;
        font-weight: 700;
        color: var(--navy);
        margin: 24px 0 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .rich-content h4::before {
            content: '';
            width: 4px;
            height: 18px;
            background: linear-gradient(180deg, var(--gold), var(--gold-bright));
            border-radius: 2px;
            flex-shrink: 0;
        }

    .rich-content h5 {
        font-size: 15px;
        font-weight: 700;
        color: var(--navy);
        margin: 18px 0 10px;
        padding-inline-start: 14px;
        border-inline-start: 3px solid var(--gold);
    }

    .rich-content ul,
    .rich-content ol {
        list-style: none;
        padding-inline-start: 0;
        margin: 12px 0 20px;
    }

    .rich-content li {
        position: relative;
        padding-inline-start: 24px;
        margin-bottom: 10px;
        font-size: 14.5px;
        line-height: 1.7;
    }

        .rich-content li::before {
            content: '';
            position: absolute;
            inset-inline-start: 0;
            top: 8px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--gold);
            opacity: 0.8;
        }

    .rich-content strong {
        font-weight: 700;
        color: var(--navy);
    }

    .rich-content a {
        color: var(--gold);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .rich-content a:hover {
            color: var(--gold-bright);
        }

    /* Sub-opportunity cards inside rich content */
    .rich-content .sub-opportunity {
        background: var(--off-white);
        border-radius: var(--radius-sm);
        padding: 20px 22px;
        margin: 18px 0;
        border: 1px solid var(--border);
        border-inline-start: 4px solid var(--gold);
        transition: border-color 0.2s, background 0.2s, transform 0.2s;
    }

        .rich-content .sub-opportunity:hover {
            border-color: var(--gold);
            background: rgba(201,162,39,0.03);
            transform: translateX(-2px);
        }

        .rich-content .sub-opportunity h5 {
            margin-top: 0;
            padding-inline-start: 0;
            border-inline-start: none;
            font-size: 15px;
            color: var(--navy);
            margin-bottom: 8px;
        }

        .rich-content .sub-opportunity p {
            font-size: 13.5px;
            margin-bottom: 0;
            color: var(--text-body);
        }

    /* Meta info row */
    .rich-content .meta {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        font-size: 12.5px;
        color: var(--text-muted);
        margin: 8px 0 12px;
        padding: 10px 14px;
        background: var(--off-white);
        border-radius: 8px;
    }

        .rich-content .meta i {
            color: var(--gold);
            margin-inline-end: 5px;
        }

    /* Allocation badges */
    .rich-content .allocation-badge {
        display: inline-block;
        background: var(--gold-pale);
        color: var(--navy);
        font-size: 11px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 20px;
        margin-inline-end: 8px;
        margin-bottom: 8px;
        border: 1px solid rgba(201,162,39,0.3);
    }

/* ── External Link ── */
.external-link-section {
    text-align: center;
    margin: 8px 0 28px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.2s;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}

    .btn-gold:hover {
        background: var(--gold-bright);
        transform: scale(1.03);
        box-shadow: 0 6px 24px rgba(201,162,39,0.45);
        gap: 14px;
    }

/* ── Allocation Footer ── */
.allocation-footer {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
    margin-top: 8px;
}

.allocation-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .allocation-label i {
        color: var(--gold);
        font-size: 16px;
    }

.allocation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: var(--off-white);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: default;
}

    .chip:hover {
        background: var(--gold-pale);
        border-color: var(--gold);
        color: var(--gold);
    }

/* ── Responsive ── */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .services-grid-dark {
        grid-template-columns: 1fr;
    }

    .service-card-dark {
        padding: 24px 20px;
    }

    .map-card {
        padding: 32px 20px;
    }

    .map-content-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .proj-card-desc {
        font-size: 13px;
    }

        .proj-card-desc .sub-opportunity {
            padding: 12px;
        }

    .mega-card .proj-card-image,
    .mega-card .proj-card-image-placeholder {
        height: 180px;
    }

    .mega-card .proj-card-title {
        font-size: 17px;
    }

    .mega-card .proj-card-footer {
        justify-content: center;
    }

    .mega-card .mega-learn-btn {
        width: 100%;
        justify-content: center;
    }

    .mega-detail-hero {
        height: 300px;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .detail-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-header {
        padding: 18px 20px;
    }

    .card-body {
        padding: 20px;
    }

    .rich-content {
        font-size: 14px;
    }

    .allocation-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .opp-ribbon {
        padding: 18px 20px;
    }

    .sdp-body {
        padding: 20px;
    }

    .cta-band {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .detail-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .mega-detail-hero {
        height: 240px;
    }
}
/* Enhanced external button – matches template’s modern style */
.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(105deg, var(--gold) 0%, var(--gold-bright) 100%);
    color: var(--navy);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
    border: none;
    cursor: pointer;
}

    .btn-external i {
        font-size: 1.1em;
        transition: transform 0.2s ease, margin 0.2s ease;
    }

    /* Directional arrow moves on hover */
    .btn-external:hover i:first-child {
        transform: translateX(4px) translateY(-2px);
    }

[dir="rtl"] .btn-external:hover i:first-child {
    transform: translateX(-4px) translateY(-2px);
}

/* External link icon stays stable but gap increases */
.btn-external:hover {
    gap: 14px;
    background: var(--gold-bright);
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.45);
    transform: scale(1.02);
}
.meta-icon i {
    font-size: 20px;
    color: var(--gold);
}

.meta-card.featured .meta-icon i {
    color: var(--gold-bright);
}