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

:root {
    /* Brand tokens — exact institutional palette */
    --dhmic-navy: #0C4282;
    --dhmic-teal: #1A8297;
    --dhmic-canvas: #F8FAFC;
    --dhmic-light: #F8FAFC;
    --dhmic-ink: #0C4282;
    --dhmic-prose: #334155;
    --dhmic-muted: #334155;
    --dhmic-surface: #FFFFFF;
    --dhmic-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --dhmic-card-shadow-hover: 0 10px 32px rgba(12, 66, 130, 0.12);
    --dhmic-grad: linear-gradient(90deg, #1A8297 0%, #0C4282 100%);
    --dhmic-hero-grad: linear-gradient(145deg, #082a54 0%, #0C4282 45%, #14607a 78%, #1A8297 100%);
    --dhmic-hero-overlay: linear-gradient(105deg, rgba(7, 31, 64, 0.88) 0%, rgba(12, 66, 130, 0.62) 46%, rgba(26, 130, 151, 0.18) 100%);
    --dhmic-hero-overlay-rtl: linear-gradient(255deg, rgba(7, 31, 64, 0.88) 0%, rgba(12, 66, 130, 0.62) 46%, rgba(26, 130, 151, 0.18) 100%);
    --bs-primary: #0C4282;
    --bs-secondary: #1A8297;
    --bs-body-bg: #F8FAFC;
    --bs-link-color: #1A8297;
    --bs-link-hover-color: #0C4282;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

html.culture-switching,
html.culture-switching body {
    cursor: progress;
}

html[lang="ar"] body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

html[lang="en"] body,
html:not([lang="ar"]) body {
    font-family: 'Manrope', sans-serif;
}

/* Arabic body prose: justified, generous leading */
html[lang="ar"] .prose-justify,
html[lang="ar"] .editorial-lead,
html[lang="ar"] .pillar p,
html[lang="ar"] .open-tile p,
html[lang="ar"] .elevated-card p,
html[lang="ar"] .subsidiary-card p,
html[lang="ar"] .news-item p,
html[lang="ar"] .section-subtitle,
html[lang="ar"] .facility-overview-text,
html[lang="ar"] .contact-intro p {
    text-align: justify;
    line-height: 1.8;
    color: var(--dhmic-prose);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--dhmic-canvas);
}

.site-main {
    flex: 1;
}

/* —— Top utility bar —— */
.utility-bar {
    background: var(--dhmic-navy);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(26, 130, 151, 0.35);
}

.utility-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
}

.utility-bar-statement {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.utility-bar-statement i {
    color: var(--dhmic-teal);
    font-size: 0.95rem;
}

.utility-bar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.1rem;
}

.utility-bar-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.utility-bar-link:hover,
.utility-bar-link:focus-visible {
    color: #fff;
}

.utility-bar-link i {
    color: var(--dhmic-teal);
}

.utility-bar-ssl {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.9;
    font-weight: 500;
}

.utility-bar-ssl i {
    color: #34d399;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #25D366;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.28rem 0.75rem;
    border-radius: 6px;
    text-decoration: none !important;
    border: none;
    line-height: 1.3;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #1ebe57;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-whatsapp:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .utility-bar {
        font-size: 0.75rem;
        text-align: center;
    }

    .utility-bar .container {
        justify-content: center;
    }

    .utility-bar-statement {
        justify-content: center;
        width: 100%;
    }

    .utility-bar-actions {
        justify-content: center;
        width: 100%;
    }

    .utility-bar-ssl {
        display: none;
    }
}

/* —— Header —— */
.navbar-dhmic {
    background: var(--dhmic-surface);
    box-shadow: 0 2px 16px rgba(12, 66, 130, 0.07);
    border-bottom: 1px solid rgba(12, 66, 130, 0.06);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.navbar-dhmic .navbar-brand,
.navbar-dhmic .nav-link {
    color: var(--dhmic-navy) !important;
    font-weight: 500;
}

.navbar-dhmic .nav-link {
    padding-inline: 0.85rem;
    position: relative;
}

.navbar-dhmic .nav-link:hover {
    color: var(--dhmic-teal) !important;
}

.navbar-dhmic .nav-link.active {
    color: var(--dhmic-teal) !important;
    border-bottom: none;
}

/* Mobile expanded: soft pill, no full-bleed underline */
@media (max-width: 991.98px) {
    .navbar-dhmic .navbar-nav .nav-link.active {
        background: rgba(35, 142, 155, 0.1);
        border-radius: 8px;
    }
}

/* Desktop: short accent under label */
@media (min-width: 992px) {
    .navbar-dhmic .nav-link.active::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0.15rem;
        width: 60%;
        height: 2px;
        background: var(--dhmic-teal);
        border-radius: 1px;
        transform: translateX(-50%);
    }
}

.navbar-dhmic .navbar-toggler-icon {
    filter: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none !important;
    max-width: min(100%, 260px);
}

.brand-lockup-logo {
    height: 52px;
    width: auto;
    max-width: min(100%, 240px);
    object-fit: contain;
    display: block;
}

.brand-lockup-mark {
    height: 44px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-lockup-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-lockup-primary {
    font-weight: 800;
    font-size: 0.98rem;
    color: var(--dhmic-navy);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

.brand-lockup-secondary {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--dhmic-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .brand-lockup {
        max-width: 300px;
    }

    .brand-lockup-logo {
        height: 58px;
        max-width: 280px;
    }

    .brand-lockup-mark {
        height: 48px;
    }

    .brand-lockup-primary {
        font-size: 1.05rem;
        max-width: 16rem;
    }

    .brand-lockup-secondary {
        font-size: 0.72rem;
    }
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-logo-nav {
    height: 48px;
    max-width: 200px;
}

.brand-logo-footer {
    height: 64px;
    max-width: 220px;
    object-fit: contain;
}

.brand-logo-admin {
    height: 40px;
    width: auto;
    max-width: 48px;
}

/* —— Brand-led hero —— */
.hero-section {
    background: var(--dhmic-hero-grad);
    color: #fff;
    padding: clamp(4.5rem, 12vh, 7.5rem) 0;
    position: relative;
    overflow: hidden;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
}

.hero-section.hero-visual {
    isolation: isolate;
    background-color: #082a54;
    background-image: var(--dhmic-hero-grad);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-media-atmosphere {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

html[dir="rtl"] .hero-media-atmosphere {
    transform: scaleX(-1);
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--dhmic-hero-overlay);
}

html[dir="rtl"] .hero-scrim {
    background: var(--dhmic-hero-overlay-rtl);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(26, 130, 151, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    animation: heroAtmosphere 14s ease-in-out infinite alternate;
}

.hero-section.hero-visual::before {
    background:
        radial-gradient(ellipse 48% 46% at 78% 18%, rgba(125, 211, 232, 0.18) 0%, transparent 62%);
    opacity: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
    pointer-events: none;
}

.hero-section.hero-visual::after {
    opacity: 0.12;
}

@keyframes heroAtmosphere {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.04); }
}

.hero-brand {
    width: 100%;
}

.hero-brand .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
}

.hero-brand.hero-visual .container {
    text-align: start;
    max-width: 1140px;
    margin-inline: auto;
}

.hero-brand.hero-visual .hero-title {
    max-width: 22rem;
}

html[lang="ar"] .hero-brand.hero-visual .hero-title {
    max-width: 28rem;
}

.hero-brand-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(6.5rem, 12vw, 8.25rem);
    aspect-ratio: 1;
    padding: 0.95rem;
    margin: 0 auto 1.75rem;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px rgba(26, 130, 151, 0.55),
        0 16px 40px rgba(0, 0, 0, 0.32);
    animation: heroMarkIn 0.9s ease-out both;
}

.hero-brand.hero-visual .hero-brand-seal {
    margin: 0 0 1.35rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1rem;
    animation: heroRise 0.9s ease-out both;
}

.hero-eyebrow i {
    color: #7dd3e8;
}

.hero-brand-mark {
    width: 100%;
    height: auto;
    aspect-ratio: 412 / 458;
    object-fit: contain;
    display: block;
}

.hero-brand.hero-visual .hero-brand-mark {
    margin: 0;
    width: 100%;
    filter: none;
}

@keyframes heroMarkIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: heroRise 0.9s ease-out 0.15s both;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.94);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 0;
    line-height: 1.65;
    animation: heroRise 0.9s ease-out 0.28s both;
}

html[lang="ar"] .hero-subtitle {
    text-align: justify;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.94);
}

.hero-brand.hero-visual .hero-subtitle {
    margin-inline: 0;
    max-width: 34rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 2rem;
    animation: heroRise 0.9s ease-out 0.4s both;
}

.hero-brand.hero-visual .hero-cta {
    justify-content: flex-start;
}

.hero-section .btn-dhmic-primary {
    background-color: var(--dhmic-teal);
    border-color: var(--dhmic-teal);
    color: #fff;
}

.hero-section .btn-dhmic-primary:hover,
.hero-section .btn-dhmic-primary:focus-visible {
    background-color: #fff;
    border-color: #fff;
    color: var(--dhmic-navy);
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-brand-seal,
    .hero-brand-mark,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-eyebrow,
    .section-title::after,
    .metric-card,
    .elevated-card {
        animation: none !important;
    }
}

/* —— Scroll reveal (corporate enter) ——
   Progressive enhancement: content stays visible unless JS marks .reveal-ready.
   Prevents permanent opacity:0 if dhmic-reveal.js fails to init. */
.reveal-on-scroll.reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll.reveal-ready:not(.is-revealed),
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* —— Sections —— */
.section-padding {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-surface {
    background: var(--dhmic-surface);
}

.section-header {
    margin-bottom: 2.25rem;
}

.section-title {
    color: var(--dhmic-navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 0.55rem;
    background: var(--dhmic-grad);
    border-radius: 2px;
    transform-origin: left center;
    animation: titleRule 0.7s ease-out both;
}

html[dir="rtl"] .section-title::after {
    transform-origin: right center;
}

@keyframes titleRule {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.section-subtitle {
    color: var(--dhmic-muted);
    margin-bottom: 0;
    max-width: 36rem;
}

.section-link {
    color: var(--dhmic-teal);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.section-link:hover {
    color: var(--dhmic-navy);
}

.section-link-arrow::after {
    content: '\2192';
    display: inline-block;
}

html[dir="rtl"] .section-link-arrow::after {
    content: '\2190';
}

/* Back-style links: arrow before label */
.btn.section-link-arrow::before {
    content: '\2190';
    display: inline-block;
    margin-inline-end: 0.35rem;
}

.btn.section-link-arrow::after {
    content: none;
}

html[dir="rtl"] .btn.section-link-arrow::before {
    content: '\2192';
}

/* —— Open content tiles (quieter than cards) —— */
.open-tile {
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
}

.open-tile-rule {
    border-top: 3px solid transparent;
    border-image: var(--dhmic-grad) 1;
    padding-top: 1.25rem;
}

.open-tile h3,
.open-tile h5,
.open-tile .open-tile-title {
    color: var(--dhmic-navy);
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.open-tile p {
    color: var(--dhmic-prose);
    margin-bottom: 0;
    line-height: 1.65;
}

/* Elevated white cards — informational surfaces (subtle hover; not primary affordances) */
.elevated-card {
    height: 100%;
    background: var(--dhmic-surface);
    border: none;
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    padding: 1.5rem 1.4rem;
    transition: box-shadow 0.28s ease;
}

.elevated-card:hover {
    box-shadow: var(--dhmic-card-shadow-hover);
}

.elevated-card .open-tile-title,
.elevated-card h5 {
    color: var(--dhmic-navy);
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.elevated-card p {
    color: var(--dhmic-prose);
    margin-bottom: 0;
    line-height: 1.65;
}

.service-item,
.portfolio-item {
    padding: 1.5rem;
    border-bottom: none;
    height: 100%;
}

.news-item {
    padding: 1.5rem;
    border: none;
    height: 100%;
}

.service-item:last-child,
.portfolio-item:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .service-item,
    .portfolio-item {
        border-bottom: none;
        border-inline-end: none;
        padding: 1.5rem;
    }

    .news-item {
        padding: 1.5rem;
        border-inline-end: none;
    }

    .row > [class*="col-"]:last-child .service-item,
    .row > [class*="col-"]:last-child .portfolio-item,
    .row > [class*="col-"]:nth-child(3n) .portfolio-item,
    .row > [class*="col-"]:nth-child(4n) .service-item {
        border-inline-end: none;
    }
}

.editorial-lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: var(--dhmic-prose);
    max-width: 48rem;
}

.pillar-band {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .pillar-band {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.pillar {
    padding: 1.5rem 1.35rem;
    border-top: none;
    border-image: none;
    background: var(--dhmic-surface);
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--dhmic-card-shadow-hover);
}

.pillar h3 {
    color: var(--dhmic-navy);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.pillar p {
    color: var(--dhmic-prose);
    margin-bottom: 0;
    line-height: 1.65;
}

/* —— Metrics grid —— */
.metrics-section {
    background: var(--dhmic-navy);
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 90% 10%, rgba(26, 130, 151, 0.35) 0%, transparent 55%);
    pointer-events: none;
}

.metrics-section .container {
    position: relative;
    z-index: 1;
}

.metrics-section .section-title {
    color: #fff;
}

.metrics-section .section-title::after {
    background: var(--dhmic-teal);
}

.metrics-section .section-subtitle {
    color: rgba(255, 255, 255, 0.82);
}

.metric-card {
    text-align: center;
    padding: 1.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 100%;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover {
    background: rgba(26, 130, 151, 0.22);
    border-color: rgba(255, 255, 255, 0.18);
}

.metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 10px;
    background: rgba(26, 130, 151, 0.25);
    color: #7dd3e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.metric-value {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.metric-value .metric-accent {
    color: var(--dhmic-teal);
}

.metric-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* —— Subsidiaries directory —— */
.subsidiary-card {
    height: 100%;
    background: var(--dhmic-surface);
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    padding: 1.6rem 1.45rem;
    transition: box-shadow 0.28s ease;
    border-top: 3px solid var(--dhmic-teal);
}

.subsidiary-card--with-media {
    padding: 0;
    overflow: hidden;
}

.facility-logo-plate {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f6f8fb;
    border: 0;
}

button.facility-logo-plate {
    padding: 0;
    appearance: none;
    cursor: pointer;
}

.facility-logo-plate img {
    display: block;
    width: auto;
    height: auto;
    max-width: 86%;
    max-height: 72%;
    object-fit: contain;
    object-position: center;
}

.subsidiary-card--with-media h3,
.subsidiary-card--with-media .subsidiary-meta,
.subsidiary-card--with-media p {
    padding-inline: 1.45rem;
}

.subsidiary-card--with-media h3 {
    padding-top: 1.25rem;
}

.subsidiary-card--with-media p {
    padding-bottom: 1.45rem;
}

.subsidiary-card:hover {
    box-shadow: var(--dhmic-card-shadow-hover);
}

.subsidiary-card .subsidiary-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(26, 130, 151, 0.1);
    color: var(--dhmic-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.subsidiary-card h3 {
    color: var(--dhmic-navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subsidiary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.subsidiary-meta .badge {
    font-weight: 500;
    font-size: 0.72rem;
    background: rgba(12, 66, 130, 0.08);
    color: var(--dhmic-navy);
}

.subsidiary-card p {
    color: var(--dhmic-prose);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.65;
}

/* Interactive cards only where needed */
.card-dhmic {
    border: none;
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    background: var(--dhmic-surface);
    text-align: start;
    cursor: pointer;
}

.card-dhmic:hover {
    transform: translateY(-6px);
    box-shadow: var(--dhmic-card-shadow-hover);
}

.card-dhmic:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 2px;
    box-shadow: var(--dhmic-card-shadow-hover);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(26, 130, 151, 0.1);
    color: var(--dhmic-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.media-reel {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.media-reel-scroll {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-width: 0;
}

.media-reel-scroll:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 3px;
    border-radius: 8px;
}

.media-reel-card {
    width: 18rem;
    flex: 0 0 18rem;
    display: flex;
    flex-direction: column;
    text-align: start;
    scroll-snap-align: start;
}

.media-reel-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem;
    min-height: 7.25rem;
}

.media-reel-card-body h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-reel-nav {
    flex: 0 0 auto;
    align-self: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    border: 1.5px solid rgba(12, 66, 130, 0.28);
    background: var(--dhmic-surface);
    color: var(--dhmic-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.media-reel-nav:hover,
.media-reel-nav:focus-visible {
    background: var(--dhmic-navy);
    border-color: var(--dhmic-navy);
    color: #fff;
}

.media-reel-nav:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 2px;
}

/* —— Portfolio sector filter —— */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(12, 66, 130, 0.12);
    padding-bottom: 0.15rem;
}

.portfolio-filter-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--dhmic-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 0.15rem 0.7rem;
    margin: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    min-height: 44px;
}

.portfolio-filter-tab:hover {
    color: var(--dhmic-navy);
}

.portfolio-filter-tab[aria-selected="true"] {
    color: var(--dhmic-navy);
    border-bottom-color: var(--dhmic-teal);
}

.portfolio-filter-tab:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 2px;
    color: var(--dhmic-navy);
}

/* —— Buttons —— */
.btn-dhmic-primary {
    background-color: var(--dhmic-navy);
    border-color: var(--dhmic-navy);
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-dhmic-primary:hover {
    background-color: var(--dhmic-teal);
    border-color: var(--dhmic-teal);
    color: #fff;
}

.btn-dhmic-primary:focus-visible,
.btn-dhmic-outline:focus-visible,
.btn-dhmic-outline-dark:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 2px;
}

.btn-dhmic-outline {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.55rem;
    border-radius: 6px;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-dhmic-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.btn-dhmic-outline:focus-visible {
    outline-color: #fff;
}

.btn-dhmic-outline-dark {
    border: 2px solid var(--dhmic-navy);
    color: var(--dhmic-navy);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    border-radius: 6px;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-dhmic-outline-dark:hover {
    background: var(--dhmic-teal);
    color: #fff;
    border-color: var(--dhmic-teal);
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.contact-channels .btn-whatsapp {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 0.45rem 0.95rem;
}

.contact-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: #b42318;
}

.contact-form-panel .form-control.is-invalid,
.contact-form-panel .form-control[aria-invalid="true"] {
    border-color: #b42318;
}

.contact-form-panel .form-control.is-invalid:focus,
.contact-form-panel .form-control[aria-invalid="true"]:focus {
    border-color: #b42318;
    box-shadow: 0 0 0 0.2rem rgba(180, 35, 24, 0.15);
}

/* —— Footer —— */
.site-footer {
    background: var(--dhmic-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.75rem;
    margin-top: auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-heading {
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.site-footer .footer-brand-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    max-width: 100%;
}

.site-footer .footer-brand-logo {
    height: 64px;
    width: auto;
    max-width: min(100%, 260px);
    object-fit: contain;
    display: block;
}

.site-footer .footer-brand-mark {
    height: 54px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: brightness(1.08);
}

.site-footer .footer-brand-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    max-width: 22rem;
}

.site-footer .footer-tagline {
    max-width: 22rem;
    line-height: 1.6;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.4rem;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
}

/* —— Page header —— */
.page-header {
    background: var(--dhmic-hero-grad);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 3.75rem) 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 90% 20%, rgba(35, 142, 155, 0.3) 0%, transparent 55%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.page-header .page-header-sub {
    margin: 0.65rem 0 0;
    opacity: 0.88;
    max-width: 36rem;
    font-size: 1.05rem;
    line-height: 1.55;
}

.page-body {
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Legacy about-card kept for admin parity; public pages prefer .pillar */
.about-card {
    background: var(--dhmic-surface);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(14, 61, 125, 0.06);
    height: 100%;
    border-top: 3px solid transparent;
    border-image: var(--dhmic-grad) 1;
}

.about-card h3 {
    color: var(--dhmic-ink);
    font-weight: 600;
}

.contact-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 3.5rem;
        align-items: start;
    }
}

.contact-intro h2 {
    color: var(--dhmic-ink);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-intro p {
    color: var(--dhmic-muted);
    line-height: 1.7;
}

.contact-form-panel {
    background: var(--dhmic-surface);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 2px 20px rgba(14, 61, 125, 0.06);
}

.contact-form-panel .form-control {
    background: #f7fafb;
    border: 1.5px solid rgba(14, 61, 125, 0.28);
    color: var(--dhmic-ink);
    min-height: 2.75rem;
}

.contact-form-panel .form-control:hover {
    border-color: rgba(14, 61, 125, 0.45);
}

.contact-form-panel textarea.form-control {
    min-height: 8rem;
}

.contact-form-card {
    background: var(--dhmic-surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(14, 61, 125, 0.06);
}

.form-control:focus,
.contact-form-panel .form-control:focus {
    border-color: var(--dhmic-teal);
    box-shadow: 0 0 0 0.2rem rgba(35, 142, 155, 0.2);
    background: #fff;
}

.facility-overview {
    text-align: center;
    padding: 1rem 0.5rem 0.25rem;
}

.facility-overview-mark {
    width: 72px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.facility-overview-text {
    color: var(--dhmic-muted);
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.65;
}

/* —— Admin —— */
.admin-layout {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 260px;
    background: var(--dhmic-navy);
    color: #fff;
    flex-shrink: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 0.125rem 0.75rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--dhmic-light);
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(14, 61, 125, 0.06);
    border-left: 4px solid var(--dhmic-teal);
}

html[dir="rtl"] .stat-card {
    border-left: none;
    border-right: 4px solid var(--dhmic-teal);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dhmic-navy);
}

.lang-switcher .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}

.btn-dhmic-lang {
    color: var(--dhmic-navy);
    border: 1px solid rgba(14, 61, 125, 0.35);
    background: transparent;
}

.btn-dhmic-lang:hover {
    color: #fff;
    background: var(--dhmic-navy);
    border-color: var(--dhmic-navy);
}

.btn-dhmic-lang-active {
    color: #fff;
    background: var(--dhmic-navy);
    border: 1px solid var(--dhmic-navy);
}

.btn-dhmic-lang-active:hover {
    color: #fff;
    background: #0a2f61;
    border-color: #0a2f61;
}

.badge-sector {
    background: var(--dhmic-light);
    color: var(--dhmic-teal);
    font-weight: 500;
}

.news-date {
    color: var(--dhmic-muted);
    font-size: 0.875rem;
}

.news-content {
    line-height: 1.75;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    color: var(--dhmic-navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1rem;
    padding-inline-start: 1.5rem;
}

.news-content a {
    color: var(--dhmic-teal);
}

.dhmic-html-editor {
    border-radius: 8px;
    overflow: hidden;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #dc3545;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* —— Login —— */
.login-layout {
    min-height: 100vh;
    display: flex;
    background: var(--dhmic-light);
}

.login-layout-brand {
    flex: 0 0 42%;
    max-width: 560px;
    background: var(--dhmic-hero-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-layout-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
    pointer-events: none;
}

.login-layout-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.login-layout-logo-link {
    display: inline-block;
    margin-bottom: 1.75rem;
}

.login-layout-logo {
    display: block;
    height: auto;
    width: min(100%, 280px);
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.login-layout-brand-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.login-layout-brand-text {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.login-layout-brand-lang {
    margin-top: 1rem;
}

.login-layout-brand .btn-dhmic-lang {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.login-layout-brand .btn-dhmic-lang:hover {
    color: var(--dhmic-navy);
    background: #fff;
    border-color: #fff;
}

.login-layout-brand .btn-dhmic-lang-active {
    color: var(--dhmic-navy);
    background: #fff;
    border-color: #fff;
}

.login-layout-brand .btn-dhmic-lang-active:hover {
    color: var(--dhmic-navy);
    background: #f3f7fa;
    border-color: #f3f7fa;
}

.login-layout-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.login-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    gap: 1rem;
}

.login-layout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--dhmic-navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.login-layout-back-link:hover {
    color: var(--dhmic-teal);
}

html[dir="rtl"] .login-layout-back-link .bi-arrow-left-short {
    transform: scaleX(-1);
}

.login-layout-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
}

.login-layout-body .main-content {
    min-height: auto;
    height: auto;
    padding: 0;
    align-items: stretch;
    align-self: stretch;
}

.login-layout-body .block-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(14, 61, 125, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 28rem;
}

.login-layout-body .manage-layout {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(14, 61, 125, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 52rem;
}

.login-layout-body .title-header-text {
    font-size: 2rem;
    line-height: 2.5rem;
    color: var(--dhmic-navy);
}

.login-layout-body .title-content-text {
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--dhmic-muted);
}

.demo-credentials-hint {
    margin-bottom: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(35, 142, 155, 0.25);
    background: rgba(35, 142, 155, 0.08);
    color: var(--dhmic-navy);
}

.demo-credentials-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-credentials-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.demo-credentials-row:last-child {
    margin-bottom: 0;
}

.demo-credentials-label {
    min-width: 4.5rem;
    font-size: 0.875rem;
    color: var(--dhmic-muted);
}

.demo-credentials-hint code {
    font-size: 0.875rem;
    color: var(--dhmic-navy);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.login-layout-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

.login-lang-switcher .btn {
    min-width: 2.75rem;
    font-weight: 600;
}

/* —— Loading skeletons —— */
.skeleton-block {
    background: linear-gradient(90deg, rgba(14, 61, 125, 0.06) 25%, rgba(14, 61, 125, 0.12) 50%, rgba(14, 61, 125, 0.06) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-line {
    height: 0.9rem;
    margin-bottom: 0.65rem;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-title {
    height: 1.4rem;
    width: 40%;
    margin-bottom: 1.25rem;
}

.skeleton-card {
    height: 7.5rem;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-block {
        animation: none;
    }

    .card-dhmic,
    .btn-whatsapp,
    .elevated-card,
    .metric-card,
    .subsidiary-card {
        transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    }

    .card-dhmic:hover,
    .card-dhmic:focus-visible,
    .btn-whatsapp:hover,
    .btn-whatsapp:focus-visible,
    .elevated-card:hover,
    .metric-card:hover,
    .subsidiary-card:hover {
        transform: none !important;
    }
}

@media (max-width: 991px) {
    .login-layout {
        flex-direction: column;
    }

    .login-layout-brand {
        flex: none;
        max-width: none;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .login-layout-brand-title {
        font-size: 1.35rem;
    }

    .login-layout-brand-text {
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .login-layout-toolbar {
        padding: 1rem 1.25rem;
    }

    .login-layout-body {
        padding: 0.5rem 1.25rem 1.5rem;
    }

    .login-layout-body .block-content,
    .login-layout-body .manage-layout {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .login-layout-footer {
        padding: 0.75rem 1.25rem 1.25rem;
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 0 4.5rem;
    }

    .hero-brand.hero-visual .container {
        text-align: center;
    }

    .hero-brand.hero-visual .hero-brand-seal {
        margin-inline: auto;
    }

    .hero-brand.hero-visual .hero-title,
    .hero-brand.hero-visual .hero-subtitle {
        margin-inline: auto;
        max-width: 36rem;
    }

    .hero-brand.hero-visual .hero-cta {
        justify-content: center;
    }

    .hero-scrim,
    html[dir="rtl"] .hero-scrim {
        background: linear-gradient(180deg, rgba(7, 31, 64, 0.7) 0%, rgba(12, 66, 130, 0.55) 100%);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: fixed;
        z-index: 1030;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    html[dir="rtl"] .admin-sidebar {
        transform: translateX(100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-layout {
        flex-direction: column;
    }
}

.dropdown-menu-dhmic {
    border: 1px solid rgba(12, 66, 130, 0.12);
    box-shadow: 0 8px 24px rgba(12, 66, 130, 0.1);
    border-radius: 10px;
    padding: 0.4rem;
}

.dropdown-menu-dhmic .dropdown-item {
    border-radius: 6px;
    color: var(--dhmic-ink);
    font-weight: 500;
}

.dropdown-menu-dhmic .dropdown-item.active,
.dropdown-menu-dhmic .dropdown-item:active,
.dropdown-menu-dhmic .dropdown-item:hover {
    background: rgba(12, 66, 130, 0.08);
    color: var(--dhmic-navy, #0C4282);
}

.about-section-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .about-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.about-section-card,
.career-card,
.network-site-card,
.hq-card {
    background: var(--dhmic-surface);
    border-radius: 12px;
    padding: 1.5rem 1.45rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--dhmic-teal, #1A8297);
}

.about-section-card h2,
.hq-card h3 {
    color: var(--dhmic-ink);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.about-leadership-card {
    grid-column: 1 / -1;
}

.about-leadership {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.about-leadership-figure {
    margin: 0;
}

.about-leadership-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #e8eef4;
}

.about-leadership-text {
    margin: 0;
    white-space: pre-line;
    line-height: 1.7;
}

@media (min-width: 992px) {
    .about-leadership {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

.network-map {
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 66, 130, 0.08);
    background: #e8eef4;
}

.network-map-compact {
    min-height: 220px;
}

.career-card h2 {
    color: var(--dhmic-ink);
    font-weight: 700;
}

.news-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--dhmic-canvas);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-hero img {
    max-height: 420px;
    object-fit: cover;
}

.news-video-badge {
    position: absolute;
    inset-inline-start: 0.75rem;
    inset-block-end: 0.75rem;
    background: rgba(12, 66, 130, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.facility-card-media {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--dhmic-canvas);
    cursor: pointer;
}

.facility-card-media:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 3px;
}

.facility-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— Subsidiaries portfolio cards —— */
.portfolio-summary {
    color: var(--dhmic-prose);
    font-size: 0.95rem;
    margin: 0;
}

.portfolio-subsidiary-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--dhmic-surface);
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.portfolio-subsidiary-card:hover {
    box-shadow: var(--dhmic-card-shadow-hover);
    transform: translateY(-2px);
}

.portfolio-subsidiary-media {
    cursor: pointer;
}

.portfolio-subsidiary-media:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: -2px;
}

.portfolio-kind-badge {
    position: absolute;
    inset-inline-start: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(12, 66, 130, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}

.portfolio-media-badge {
    position: absolute;
    inset-inline-end: 0.75rem;
    top: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.15rem;
}

.portfolio-subsidiary-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.35rem;
    border-top: 3px solid var(--dhmic-teal);
}

.portfolio-subsidiary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.portfolio-status-badge {
    background: rgba(26, 130, 151, 0.12);
    color: var(--dhmic-teal);
    font-weight: 600;
}

.portfolio-subsidiary-title {
    color: var(--dhmic-navy);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.portfolio-subsidiary-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portfolio-subsidiary-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--dhmic-muted, #5c6b7a);
    font-size: 0.84rem;
    line-height: 1.45;
}

.portfolio-subsidiary-meta .bi {
    color: var(--dhmic-teal);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.portfolio-subsidiary-desc {
    color: var(--dhmic-prose);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-thumb-strip {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.portfolio-thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dhmic-canvas);
    cursor: pointer;
    flex-shrink: 0;
}

.portfolio-thumb:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 2px;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dhmic-navy);
    background: rgba(12, 66, 130, 0.08);
    padding: 0.25rem;
    text-align: center;
    line-height: 1.2;
}

.portfolio-subsidiary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.portfolio-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(12, 66, 130, 0.05);
}

.portfolio-detail-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dhmic-muted, #5c6b7a);
    margin-bottom: 0.15rem;
}

.portfolio-detail-meta dd {
    margin: 0;
    font-weight: 600;
    color: var(--dhmic-navy);
    font-size: 0.92rem;
}

.portfolio-detail-hero {
    border-radius: 10px;
    overflow: hidden;
    background: var(--dhmic-canvas);
}

.portfolio-detail-hero img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

html[lang="ar"] .portfolio-subsidiary-desc,
html[lang="ar"] .portfolio-subsidiary-meta li {
    line-height: 1.75;
}

.media-gallery-tile {
    position: relative;
    display: block;
}

.media-gallery-tile:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 3px;
}

.media-gallery-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    background: rgba(12, 66, 130, 0.28);
    pointer-events: none;
    z-index: 1;
}

.media-hub-tile {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 0;
    padding: 0;
    background: var(--dhmic-surface, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 66, 130, 0.08);
    text-align: start;
    color: inherit;
    min-height: 44px;
}

.media-hub-tile:hover,
.media-hub-tile:focus-visible {
    box-shadow: 0 8px 24px rgba(12, 66, 130, 0.14);
}

.media-hub-tile:focus-visible {
    outline: 2px solid var(--dhmic-teal);
    outline-offset: 3px;
}

.media-hub-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--dhmic-canvas);
}

.media-hub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-hub-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem 1rem;
}

.media-hub-meta strong {
    color: var(--dhmic-ink);
    font-size: 0.95rem;
}

.video-player iframe {
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .facility-card-media,
    .media-hub-tile,
    .news-card-media img {
        transition: none;
    }
}
