@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::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0.15rem;
        width: 60%;
        height: 2px;
        background: var(--dhmic-teal);
        border-radius: 1px;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        opacity: 0;
        transition: opacity 220ms ease, transform 220ms ease;
    }

    .navbar-dhmic .nav-link:hover::after,
    .navbar-dhmic .nav-link:focus-visible::after {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }

    .navbar-dhmic .nav-link.active::after {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

.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;
    animation: heroAtmosphereDrift 30s ease-in-out infinite;
    will-change: translate, scale;
}

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);
    background-size: 200% 200%;
    animation: heroScrimShimmer 14s ease-in-out infinite;
}

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); }
}

@keyframes heroAtmosphereDrift {
    0% { translate: -2% 0; scale: 1.02; }
    50% { translate: 2% -1%; scale: 1.06; }
    100% { translate: -2% 0; scale: 1.02; }
}

@keyframes heroScrimShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.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);
    }
}

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

.hero-enter-1,
.hero-enter-2,
.hero-enter-3,
.hero-enter-4,
.hero-enter-5 {
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

.hero-enter-1 { animation-delay: 0ms; }
.hero-enter-2 { animation-delay: 160ms; }
.hero-enter-3 { animation-delay: 320ms; }
.hero-enter-4 { animation-delay: 480ms; }
.hero-enter-5 { animation-delay: 650ms; }

@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-media-atmosphere,
    .hero-scrim,
    .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%;
}

button.service-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

button.service-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 130, 151, 0.28);
    border-radius: 12px;
    outline: none;
}

.service-item-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    color: var(--dhmic-prose);
    line-height: 1.65;
}

.service-item .card-icon i {
    animation: iconFloat 3.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes iconFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .service-item .card-icon i {
        animation: none !important;
    }
}

.service-item.dhmic-hover-lift:hover,
.service-item.dhmic-hover-lift:focus-visible,
.service-item.dhmic-hover-lift:focus-within {
    transform: translateY(-5px) perspective(650px) rotateX(2deg) rotateY(-2deg);
}

html[dir="rtl"] .service-item.dhmic-hover-lift:hover,
html[dir="rtl"] .service-item.dhmic-hover-lift:focus-visible,
html[dir="rtl"] .service-item.dhmic-hover-lift:focus-within {
    transform: translateY(-5px) perspective(650px) rotateX(2deg) rotateY(2deg);
}

.dhmic-hover-card:hover .dhmic-arrow-motion,
.dhmic-hover-card:focus-visible .dhmic-arrow-motion,
.dhmic-hover-card:focus-within .dhmic-arrow-motion {
    filter: drop-shadow(4px 0 12px rgba(26, 130, 151, 0.28));
}

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

.news-item .news-card-media {
    overflow: hidden;
}

.news-item .news-card-media img {
    transition: transform 280ms ease;
    transform: scale(1);
    will-change: transform;
}

.news-item:hover .news-card-media img,
.news-item:focus-within .news-card-media img {
    transform: scale(1.07) translateY(-2px);
}

.news-item .btn-dhmic-primary {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 240ms ease, transform 240ms ease;
}

.news-item:hover .btn-dhmic-primary,
.news-item:focus-within .btn-dhmic-primary {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .news-item .btn-dhmic-primary {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item .news-date {
    opacity: 0;
    transform: translateX(-8px);
}

.news-item.is-revealed .news-date {
    animation: dateFade 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 220ms;
}

@keyframes dateFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.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;
    position: relative;
}

/* â€”â€” About: pillar cards inside the auto-scrolling text reel â€”â€” */
.pillar-reel-card {
    width: 18rem;
    flex: 0 0 18rem;
    scroll-snap-align: start;
}

.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;
    position: relative;
    padding-inline-start: 1.05rem;
}

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

.pillar h3::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    border-radius: 9999px;
    background: var(--dhmic-teal);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar.is-revealed h3::before {
    transform: scaleY(1);
}

.pillar.reveal-on-scroll.reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

/* â€”â€” 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;
    position: relative;
}

.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;
}

.metric-value::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80%;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(26, 130, 151, 1) 0%, rgba(26, 130, 151, 0.05) 100%);
    transform: translateX(-50%) scaleX(0);
    transform-origin: left center;
    opacity: 0;
}

.metric-value.is-counter-animated::after {
    opacity: 1;
    animation: metricUnderlineGrow 400ms ease both;
}

@keyframes metricUnderlineGrow {
    from { transform: translateX(-50%) scaleX(0); }
    to { transform: translateX(-50%) scaleX(1); }
}

.metric-icon i {
    display: inline-block;
    transform-origin: center;
}

.metric-card.reveal-on-scroll.reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: rotateX(20deg) translateY(14px);
    transform-origin: center top;
    transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.metric-card.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
}

.metric-card.is-revealed .metric-icon i {
    animation: iconSpinPop 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes iconSpinPop {
    0% { transform: rotate(-25deg) scale(0.4); }
    55% { transform: rotate(360deg) scale(1.18); }
    100% { transform: rotate(0deg) scale(1); }
}

/* â€”â€” 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:
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
    border-top: 3px solid var(--dhmic-teal);
    position: relative;
    will-change: transform;
    transform-style: preserve-3d;
}

.subsidiary-card:hover,
.subsidiary-card:focus-visible {
    z-index: 4;
    transform: translateY(-16px) scale(1.035) perspective(720px) rotateX(3.5deg) rotateY(-2.5deg);
    box-shadow:
        0 22px 48px rgba(12, 66, 130, 0.22),
        0 8px 18px rgba(26, 130, 151, 0.14);
    outline: none;
    border-top-color: var(--dhmic-navy);
    border-top-width: 4px;
}

html[dir="rtl"] .subsidiary-card:hover,
html[dir="rtl"] .subsidiary-card:focus-visible {
    transform: translateY(-16px) scale(1.035) perspective(720px) rotateX(3.5deg) rotateY(2.5deg);
}

.subsidiary-card:focus-visible {
    box-shadow:
        0 22px 48px rgba(12, 66, 130, 0.22),
        0 8px 18px rgba(26, 130, 151, 0.14),
        0 0 0 3px rgba(26, 130, 151, 0.35);
}

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

.subsidiary-card--with-media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        165deg,
        rgba(26, 130, 151, 0.12) 0%,
        transparent 42%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.subsidiary-card--with-media:hover::before,
.subsidiary-card--with-media:focus-visible::before {
    opacity: 1;
}

.subsidiary-card--with-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(90deg, var(--dhmic-teal) 0%, var(--dhmic-navy) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 3;
}

.subsidiary-card--with-media:hover::after,
.subsidiary-card--with-media:focus-visible::after {
    transform: scaleX(1);
}

.subsidiary-card--with-media .facility-logo-plate {
    transition: background 0.35s ease;
}

.subsidiary-card--with-media:hover .facility-logo-plate,
.subsidiary-card--with-media:focus-visible .facility-logo-plate {
    background: #eef6f8;
}

.subsidiary-card--with-media .facility-logo-plate img {
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.subsidiary-card--with-media:hover .facility-logo-plate img,
.subsidiary-card--with-media:focus-visible .facility-logo-plate img {
    transform: scale(1.18) translateY(-6px);
}

.subsidiary-card--with-media .subsidiary-card-body {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.subsidiary-card--with-media:hover .subsidiary-card-body,
.subsidiary-card--with-media:focus-visible .subsidiary-card-body {
    transform: translateY(-4px);
}

.subsidiary-card--with-media .subsidiary-card-body h3 {
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.subsidiary-card--with-media:hover .subsidiary-card-body h3,
.subsidiary-card--with-media:focus-visible .subsidiary-card-body h3 {
    color: var(--dhmic-teal);
    letter-spacing: 0.01em;
}

.subsidiary-card--with-media .subsidiary-meta .badge {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.subsidiary-card--with-media:hover .subsidiary-meta .badge,
.subsidiary-card--with-media:focus-visible .subsidiary-meta .badge {
    background: rgba(26, 130, 151, 0.16);
    color: var(--dhmic-teal);
    transform: translateY(-1px);
}

.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 inside the auto-carousel reel â€”â€” */
.subsidiary-reel-card {
    width: 18rem;
    flex: 0 0 18rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: auto;
}

.subsidiary-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem 1.2rem 1.2rem;
}

.subsidiary-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--dhmic-ink);
}

.subsidiary-card-body p {
    font-size: 0.875rem;
    color: var(--dhmic-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.subsidiary-card-actions {
    margin-top: 1rem;
}

.subsidiary-show-more {
    display: inline-flex;
    align-items: center;
}

.subsidiary-show-more .dhmic-arrow-motion {
    display: inline-flex;
    transition: transform 0.3s ease-in-out;
}

.subsidiary-card--with-media:hover .subsidiary-show-more .dhmic-arrow-motion,
.subsidiary-card--with-media:focus-within .subsidiary-show-more .dhmic-arrow-motion {
    transform: translateX(4px) translateY(-1px);
}

html[dir="rtl"] .subsidiary-card--with-media:hover .subsidiary-show-more .dhmic-arrow-motion,
html[dir="rtl"] .subsidiary-card--with-media:focus-within .subsidiary-show-more .dhmic-arrow-motion {
    transform: translateX(-4px) translateY(-1px);
}

/* â€”â€” Subsidiary detail page â€”â€” */
.subsidiary-detail-breadcrumb {
    margin-bottom: 1.15rem;
}

.subsidiary-detail-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.subsidiary-detail-logo {
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    overflow: hidden;
}

.subsidiary-detail-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.subsidiary-detail-brand-copy {
    flex: 1 1 16rem;
    min-width: 0;
}

.subsidiary-detail-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.subsidiary-detail-header-badges .badge {
    font-weight: 500;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.subsidiary-detail-header-badges .badge i {
    margin-inline-end: 0.3rem;
}

.subsidiary-detail-carousel {
    border-radius: 14px;
    overflow: hidden;
    background: #f6f8fb;
    box-shadow: var(--dhmic-card-shadow);
}

.subsidiary-detail-carousel-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #eef2f6;
}

.subsidiary-detail-carousel-frame {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.subsidiary-detail-carousel-frame--static {
    cursor: default;
}

.subsidiary-detail-carousel-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f6f8fb;
}

.subsidiary-detail-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 66, 130, 0.88);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(12, 66, 130, 0.28);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.subsidiary-detail-carousel-nav:hover,
.subsidiary-detail-carousel-nav:focus-visible {
    background: var(--dhmic-teal);
    outline: none;
}

.subsidiary-detail-carousel-nav:focus-visible {
    box-shadow: 0 0 0 3px rgba(26, 130, 151, 0.35);
}

.subsidiary-detail-carousel-nav--prev {
    inset-inline-start: 0.75rem;
}

.subsidiary-detail-carousel-nav--next {
    inset-inline-end: 0.75rem;
}

.subsidiary-detail-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0.5rem 0.35rem;
}

.subsidiary-detail-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(12, 66, 130, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.subsidiary-detail-carousel-dot.is-active,
.subsidiary-detail-carousel-dot:hover,
.subsidiary-detail-carousel-dot:focus-visible {
    background: var(--dhmic-teal);
    transform: scale(1.15);
    outline: none;
}

.subsidiary-detail-carousel-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.9rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.subsidiary-detail-carousel-thumb {
    flex: 0 0 4.25rem;
    width: 4.25rem;
    height: 3rem;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.subsidiary-detail-carousel-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subsidiary-detail-carousel-thumb.is-active,
.subsidiary-detail-carousel-thumb:hover,
.subsidiary-detail-carousel-thumb:focus-visible {
    opacity: 1;
    border-color: var(--dhmic-teal);
    outline: none;
}

.subsidiary-detail-description {
    margin-bottom: 0;
    line-height: 1.75;
}

.subsidiary-detail-aside {
    position: sticky;
    top: 1.25rem;
    background: var(--dhmic-surface);
    border-radius: 14px;
    box-shadow: var(--dhmic-card-shadow);
    padding: 1.35rem 1.4rem 1.5rem;
    border-top: 3px solid var(--dhmic-teal);
}

.subsidiary-detail-meta {
    margin-bottom: 1.25rem;
}

.subsidiary-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.subsidiary-detail-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.subsidiary-detail-network-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-inline-start: 0.85rem;
    opacity: 0.9;
}

.subsidiary-detail-snapshot {
    padding: 1.25rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(12, 66, 130, 0.04) 0%, transparent 100%);
}

.subsidiary-snapshot-card {
    height: 100%;
    background: var(--dhmic-surface);
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    padding: 1rem 1.05rem;
    border-top: 3px solid var(--dhmic-teal);
}

.subsidiary-snapshot-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 130, 151, 0.12);
    color: var(--dhmic-teal);
    margin-bottom: 0.55rem;
}

.subsidiary-snapshot-label {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dhmic-muted);
}

.subsidiary-snapshot-value {
    margin: 0.2rem 0 0;
    font-weight: 700;
    color: var(--dhmic-navy);
    font-size: 0.98rem;
    line-height: 1.35;
}

.subsidiary-detail-overview {
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: rgba(12, 66, 130, 0.04);
    border-inline-start: 4px solid var(--dhmic-teal);
}

.subsidiary-detail-media-panel {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    background: rgba(26, 130, 151, 0.06);
}

.subsidiary-detail-media-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.subsidiary-detail-media-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--dhmic-ink);
    font-size: 0.9rem;
}

.subsidiary-detail-media-list .bi {
    color: var(--dhmic-teal);
    margin-top: 0.15rem;
}

.subsidiary-detail-inline-link {
    word-break: break-all;
    color: var(--dhmic-teal);
    text-decoration: none;
}

.subsidiary-detail-inline-link:hover,
.subsidiary-detail-inline-link:focus-visible {
    text-decoration: underline;
}

.subsidiary-detail-contact-prompt {
    font-size: 0.88rem;
    color: var(--dhmic-muted);
    line-height: 1.5;
}

.subsidiary-detail-map {
    margin-bottom: 0;
}

.subsidiary-detail-coords {
    font-size: 0.85rem;
}

.subsidiary-detail-related {
    border-top: 1px solid rgba(12, 66, 130, 0.1);
}

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

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

.subsidiary-related-media {
    aspect-ratio: 16 / 9;
}

.subsidiary-related-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.subsidiary-related-meta {
    font-size: 0.8rem;
    color: var(--dhmic-muted);
}

.subsidiary-related-desc {
    margin: 0;
    color: var(--dhmic-prose);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

@media (max-width: 991.98px) {
    .subsidiary-detail-aside {
        position: static;
    }

    .subsidiary-detail-logo {
        width: 88px;
        height: 88px;
    }

    .subsidiary-detail-network-tag {
        display: block;
        margin-inline-start: 0;
        margin-top: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subsidiary-detail-carousel-nav,
    .subsidiary-detail-carousel-dot,
    .subsidiary-detail-carousel-thumb,
    .subsidiary-related-card {
        transition: none;
    }

    .subsidiary-related-card:hover {
        transform: none;
    }
}

.subsidiary-card-body .subsidiary-meta {
    margin-bottom: 0.5rem;
}

.subsidiary-card--with-media:not(:has(.subsidiary-card-body)) h3,
.subsidiary-card--with-media:not(:has(.subsidiary-card-body)) .subsidiary-meta,
.subsidiary-card--with-media:not(:has(.subsidiary-card-body)) p {
    padding-inline: 1.45rem;
}

.subsidiary-card--with-media:not(:has(.subsidiary-card-body)) h3 {
    padding-top: 1.25rem;
}

.subsidiary-card--with-media:not(:has(.subsidiary-card-body)) p {
    padding-bottom: 1.45rem;
}

/* Hover lift + shadow handled above on .subsidiary-card: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.reveal-on-scroll.reveal-ready:not(.is-revealed) .subsidiary-meta .badge {
    opacity: 0;
    transform: scale(0.2);
}

.subsidiary-card.is-revealed .subsidiary-meta .badge {
    animation: badgePop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 200ms;
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0.2); }
    60% { opacity: 1; transform: scale(1.16); }
    100% { opacity: 1; transform: scale(1); }
}

.subsidiary-card.reveal-on-scroll.reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.subsidiary-card.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.subsidiary-card.reveal-on-scroll.is-revealed:hover,
.subsidiary-card.reveal-on-scroll.is-revealed:focus-visible {
    transform: translateY(-16px) scale(1.035) perspective(720px) rotateX(3.5deg) rotateY(-2.5deg);
}

html[dir="rtl"] .subsidiary-card.reveal-on-scroll.is-revealed:hover,
html[dir="rtl"] .subsidiary-card.reveal-on-scroll.is-revealed:focus-visible {
    transform: translateY(-16px) scale(1.035) perspective(720px) rotateX(3.5deg) rotateY(2.5deg);
}

.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;
    position: relative;
    --dhmic-reel-progress: 0;
}

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

.media-reel-scroll::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.2rem;
    height: 3px;
    border-radius: 9999px;
    background: rgba(26, 130, 151, 0.12);
    pointer-events: none;
}

.media-reel-scroll::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.2rem;
    height: 3px;
    border-radius: 9999px;
    background: var(--dhmic-teal);
    transform: scaleX(var(--dhmic-reel-progress));
    transform-origin: left center;
    transition: transform 80ms linear;
    pointer-events: none;
}

html[dir="rtl"] .media-reel-scroll::after {
    transform-origin: right center;
}

.media-reel-card {
    width: 18rem;
    flex: 0 0 18rem;
    display: flex;
    flex-direction: column;
    text-align: start;
    scroll-snap-align: start;
    transition: transform 280ms ease, box-shadow 280ms ease;
    will-change: transform;
}

.media-reel-card img {
    transition: transform 280ms ease;
    will-change: transform;
}

.media-reel-card:hover,
.media-reel-card:focus-visible {
    transform: translateY(-6px) perspective(700px) rotateY(2deg);
}

html[dir="rtl"] .media-reel-card:hover,
html[dir="rtl"] .media-reel-card:focus-visible {
    transform: translateY(-6px) perspective(700px) rotateY(-2deg);
}

.media-reel-card:hover .facility-logo-plate img,
.media-reel-card:focus-visible .facility-logo-plate img {
    transform: scale(1.08) translateY(-1px);
}

.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;
}

.media-reel-nav:hover i,
.media-reel-nav:focus-visible i {
    animation: navChevronPulse 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navChevronPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(26, 130, 151, 0)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(26, 130, 151, 0.35)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(26, 130, 151, 0)); }
}

/* â€”â€” Auto-carousel progress glow (running state) â€”â€” */
.media-reel-scroll::after {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

/* When the reel is paused (hover/focus), dim the progress bar slightly */
.media-reel-scroll[data-reel-paused="true"]::after {
    opacity: 0.45;
}

/* Animate a soft "autoplay pulse" on the trailing edge of the progress bar */
@keyframes reelAutoplayPing {
    0%   { box-shadow: 0 0 0 0 rgba(26, 130, 151, 0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(26, 130, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 130, 151, 0); }
}

/* Suppress auto-carousel motion if the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .media-reel-scroll[data-reel-paused] {
        /* no-op â€” autoplay is never started for reduced-motion users */
    }
}

/* â€”â€” 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;
    position: relative;
    overflow: hidden;
    z-index: 0;
    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::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    transform: translate(-50%, -50%) scale(0.25);
    opacity: 0;
    pointer-events: none;
}

.btn-dhmic-primary:hover::after,
.btn-dhmic-primary:focus-visible::after {
    animation: btnRipple 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes btnRipple {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
    25% { opacity: 0.35; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(4.1); }
}

.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-header--with-media {
    min-height: clamp(12rem, 28vw, 18rem);
    display: flex;
    align-items: flex-end;
    padding: clamp(2.75rem, 7vw, 4.25rem) 0;
}

.page-header-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-header-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
}

.page-header-scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(105deg, rgba(8, 42, 58, 0.88) 0%, rgba(8, 42, 58, 0.62) 48%, rgba(8, 42, 58, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 42, 58, 0.25) 0%, rgba(8, 42, 58, 0.55) 100%);
    pointer-events: none;
}

html[dir="rtl"] .page-header-scrim {
    background:
        linear-gradient(255deg, rgba(8, 42, 58, 0.88) 0%, rgba(8, 42, 58, 0.62) 48%, rgba(8, 42, 58, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 42, 58, 0.25) 0%, rgba(8, 42, 58, 0.55) 100%);
}

.page-header--with-media::before {
    display: none;
}

.section-visual {
    margin: 0 0 1.75rem;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
}

.section-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.section-visual--hero-inline {
    margin-bottom: 2rem;
}

.section-visual--split {
    margin: 0;
    height: 100%;
    min-height: 16rem;
}

.section-visual--split img {
    height: 100%;
    min-height: 16rem;
    aspect-ratio: auto;
}

.service-item-media {
    margin: -0.25rem -0.25rem 1rem;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--dhmic-surface-muted, #e8eef1);
}

.service-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 280ms ease;
}

.service-item.dhmic-hover-lift:hover .service-item-media img,
.service-item.dhmic-hover-lift:focus-visible .service-item-media img,
.service-item.dhmic-hover-lift:focus-within .service-item-media img {
    transform: scale(1.05);
}

.admin-site-image-card {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .admin-site-image-card {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}

.admin-site-image-preview {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e8eef1;
}

.admin-site-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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;
}

.lang-switcher .btn.lang-spin {
    animation: langSpin 650ms ease both;
    transform-origin: center;
}

@keyframes langSpin {
    0% { transform: perspective(600px) rotateY(0deg); }
    40% { transform: perspective(600px) rotateY(180deg); }
    100% { transform: perspective(600px) rotateY(360deg); }
}

/* Scroll-synced wave divider between white surfaces (progressive enhancement via reveal IO) */
.section-padding.section-surface.reveal-on-scroll {
    position: relative;
}

.section-padding.section-surface.reveal-on-scroll::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    width: 110%;
    height: 120px;
    transform: translateX(-50%);
    background: var(--dhmic-teal);
    clip-path: ellipse(55% 50% at 50% 0%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease;
}

.section-padding.section-surface.reveal-on-scroll.is-revealed::before {
    opacity: 0.06;
}

.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, skeletonPulse 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; }
}

@keyframes skeletonPulse {
    0% { opacity: 0.85; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

@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,
    .subsidiary-card:focus-visible,
    .subsidiary-card.reveal-on-scroll.is-revealed:hover,
    .subsidiary-card.reveal-on-scroll.is-revealed:focus-visible {
        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;
    }
}

/* =====================================================================
   Interaction Upgrade Primitives (Scroll reveal, hover tactility, tabs)
   ===================================================================== */

/* --- Re-usable hover/tactile affordances --- */
.dhmic-hover-lift {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    position: relative;
}

.dhmic-hover-lift::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--dhmic-card-shadow-hover);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.dhmic-hover-lift:hover,
.dhmic-hover-lift:focus-visible,
.dhmic-hover-lift:focus-within {
    transform: translateY(-5px);
}

.dhmic-hover-lift:hover::after,
.dhmic-hover-lift:focus-visible::after,
.dhmic-hover-lift:focus-within::after {
    opacity: 1;
}

.dhmic-hover-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--dhmic-card-shadow);
    background: var(--dhmic-surface);
}

.dhmic-hover-card .dhmic-arrow-motion {
    display: inline-flex;
    transition: transform 0.3s ease-in-out;
    transform: translateX(0) translateY(0) rotate(0deg);
}

.dhmic-hover-card:hover .dhmic-arrow-motion,
.dhmic-hover-card:focus-visible .dhmic-arrow-motion,
.dhmic-hover-card:focus-within .dhmic-arrow-motion {
    transform: translateX(4px) translateY(-1px) rotate(0deg);
}

html[dir="rtl"] .dhmic-hover-card:hover .dhmic-arrow-motion,
html[dir="rtl"] .dhmic-hover-card:focus-visible .dhmic-arrow-motion,
html[dir="rtl"] .dhmic-hover-card:focus-within .dhmic-arrow-motion {
    transform: translateX(-4px) translateY(-1px) rotate(0deg);
}

/* --- CTA buttons (gradient shift + physical click) --- */
.btn-dhmic-cta {
    background-image: none;
    background-color: var(--dhmic-navy);
    color: #fff;
    border-color: transparent;
    transition: transform 180ms ease, box-shadow 250ms ease;
    transform: translateZ(0);
    box-shadow: var(--dhmic-card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.btn-dhmic-cta > * {
    position: relative;
    z-index: 1;
}

.btn-dhmic-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dhmic-grad);
    opacity: 0;
    transform: translateX(-8%);
    transition: opacity 250ms ease, transform 250ms ease;
    z-index: 0;
}

.btn-dhmic-cta:hover,
.btn-dhmic-cta:focus-visible {
    transform: scale(1.02);
    box-shadow: var(--dhmic-card-shadow-hover);
}

.btn-dhmic-cta:hover::before,
.btn-dhmic-cta:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
}

.btn-dhmic-cta:active {
    transform: scale(0.98);
}

/* --- Sticky frosted header dynamics --- */
.dhmic-sticky-header {
    transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}

.dhmic-sticky-header .brand-lockup-logo {
    transition: transform 250ms ease;
    transform-origin: left center;
}

html[dir="rtl"] .dhmic-sticky-header .brand-lockup-logo {
    transform-origin: right center;
}

.dhmic-sticky-header.dhmic-header-scrolled,
.dhmic-glass-header.dhmic-header-scrolled {
    background-color: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 10px 24px rgba(12, 66, 130, 0.12);
    border-bottom: 1px solid rgba(26, 130, 151, 0.18);
    transform: scaleY(0.96);
}

.dhmic-sticky-header.dhmic-header-scrolled .brand-lockup-logo,
.dhmic-glass-header.dhmic-header-scrolled .brand-lockup-logo {
    transform: scale(0.98);
}

/* --- Tabs cross-fade panels (no DOM replace) --- */
.dhmic-tabs-content {
    position: relative;
    overflow: hidden;
}

.dhmic-tab-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
}

.dhmic-tab-panel.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Keyframes (optional use) --- */
@keyframes dhmicFadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dhmicStaggeredEntry {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional keyframe-based variant (keeps transform/opacity only) */
.dhmic-keyframe-reveal {
    opacity: 0;
    transform: translateY(14px);
}

.dhmic-keyframe-reveal.is-revealed {
    animation: dhmicStaggeredEntry 400ms ease both;
    animation-delay: var(--dhmic-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .dhmic-hover-lift:hover,
    .dhmic-hover-lift:focus-visible,
    .dhmic-hover-card:hover .dhmic-arrow-motion,
    .dhmic-hover-card:focus-visible .dhmic-arrow-motion,
    .btn-dhmic-cta:hover,
    .btn-dhmic-cta:focus-visible,
    .btn-dhmic-cta:active,
    .dhmic-tab-panel,
    .dhmic-keyframe-reveal,
    .dhmic-hover-lift::after,
    .btn-dhmic-cta::before {
        transition: none !important;
    }

    .dhmic-tab-panel.is-active {
        opacity: 1 !important;
        pointer-events: auto;
    }
}

/* --- Filter list cross-fade (for in-page tab filtering) --- */
.dhmic-filter-crossfade {
    transition: opacity 220ms ease, transform 220ms ease;
    opacity: 1;
    transform: translateY(0);
}

.dhmic-filter-crossfade.is-fading {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .dhmic-filter-crossfade {
        transition: none !important;
    }
}

/* ================================================================
   TEXT ENTRANCE ANIMATIONS
   Scroll-triggered, staggered reveals for all text content blocks.
   All use .reveal-on-scroll â†’ .is-revealed gate so they only fire
   once the section enters the viewport.
   Reduced-motion: every rule is wrapped in a paired override block.
   ================================================================ */

/* â€”â€” @keyframes â€”â€” */

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

@keyframes textFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes subtitleSlide {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes editorialReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pillarTextIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

/* ----------------------------------------------------------------
   Section title + subtitle â€” animate when the parent section
   enters the viewport (parent carries .reveal-on-scroll).
   ---------------------------------------------------------------- */

/* Title: fade-up, fires as parent is revealed */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .section-title {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .section-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Underline rule: grows after title fades in */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .section-title::after {
    animation: none;
    transform: scaleX(0);
    opacity: 0;
}

.reveal-on-scroll.is-revealed .section-title::after {
    animation: titleUnderlineGrow 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Subtitle: slides in from the inline-start, slightly after title */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .section-subtitle {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

html[dir="rtl"] .reveal-on-scroll.reveal-ready:not(.is-revealed) .section-subtitle {
    transform: translateX(10px);
}

.reveal-on-scroll.is-revealed .section-subtitle {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   Editorial lead paragraph â€” slow, deliberate reveal
   ---------------------------------------------------------------- */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .editorial-lead {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .editorial-lead {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   Pillar card text â€” h3 slides from inline-start, p fades after
   ---------------------------------------------------------------- */
.pillar.reveal-on-scroll.reveal-ready:not(.is-revealed) h3 {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

html[dir="rtl"] .pillar.reveal-on-scroll.reveal-ready:not(.is-revealed) h3 {
    transform: translateX(12px);
}

.pillar.reveal-on-scroll.is-revealed h3 {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar.reveal-on-scroll.reveal-ready:not(.is-revealed) p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.pillar.reveal-on-scroll.is-revealed p {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   Service & News cards â€” title, body text, date stagger up
   as the card itself reveals
   ---------------------------------------------------------------- */

/* Card title */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .open-tile-title {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s 0.12s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .open-tile-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s 0.12s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card body paragraph */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .news-card-body p,
.reveal-on-scroll.reveal-ready:not(.is-revealed) .service-item p.small {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .news-card-body p,
.reveal-on-scroll.is-revealed .service-item p.small {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.45s 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* News date chip */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .news-date {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.05s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s 0.05s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .news-date {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s 0.05s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s 0.05s cubic-bezier(0.22, 1, 0.36, 1);
}

/* CTA buttons inside revealed cards */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .news-card-body .btn,
.reveal-on-scroll.reveal-ready:not(.is-revealed) .service-item .btn {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .news-card-body .btn,
.reveal-on-scroll.is-revealed .service-item .btn {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   Metric label text â€” fades up after the counter animates
   ---------------------------------------------------------------- */
.reveal-on-scroll.reveal-ready:not(.is-revealed) .metric-label {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed .metric-label {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   Subsidiary card body text inside the reel
   ---------------------------------------------------------------- */
.subsidiary-reel-card .subsidiary-card-body h3 {
    opacity: 0;
    transform: translateY(10px);
    animation: cardTextUp 0.45s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subsidiary-reel-card .subsidiary-card-body p {
    opacity: 0;
    transform: translateY(8px);
    animation: cardTextUp 0.45s 0.27s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.subsidiary-reel-card .subsidiary-meta .badge {
    opacity: 0;
    animation: badgePop 0.5s 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ----------------------------------------------------------------
   prefers-reduced-motion â€” strip every text animation
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .section-title,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .section-subtitle,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .editorial-lead,
    .pillar.reveal-on-scroll.reveal-ready:not(.is-revealed) h3,
    .pillar.reveal-on-scroll.reveal-ready:not(.is-revealed) p,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .open-tile-title,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .news-card-body p,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .service-item p.small,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .news-date,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .news-card-body .btn,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .service-item .btn,
    .reveal-on-scroll.reveal-ready:not(.is-revealed) .metric-label {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .subsidiary-reel-card .subsidiary-card-body h3,
    .subsidiary-reel-card .subsidiary-card-body p,
    .subsidiary-reel-card .subsidiary-meta .badge {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ï¿½ï¿½ Sitemap pages: FAQ & contact branches ï¿½ï¿½ */
.faq-item {
    padding: 1rem 1.25rem;
}
.faq-summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::before {
    content: '+';
    display: inline-block;
    margin-inline-end: 0.5rem;
    font-weight: 700;
}
details[open] > .faq-summary::before {
    content: 'ï¿½';
}
.contact-branch-list {
    padding-inline-start: 1.1rem;
}
.contact-branch-list li {
    margin-bottom: 0.35rem;
}

/* —— Ops boards (media calendar / tenders) —— */
.ops-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.ops-item-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(14, 61, 125, 0.1);
}

.ops-item-list time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dhmic-teal, #1a8297);
    white-space: nowrap;
}

.ops-item-list strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dhmic-ink);
}

.ops-item-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--dhmic-muted, #5b6b7c);
}

.ops-board {
    display: grid;
    gap: 1rem;
}

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

.ops-board-card {
    background: var(--dhmic-surface, #fff);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    border-top: 3px solid transparent;
    border-image: var(--dhmic-grad, linear-gradient(90deg, #0c4282, #1a8297)) 1;
    box-shadow: 0 2px 16px rgba(14, 61, 125, 0.06);
}

.ops-board-card h3 {
    font-size: 1.05rem;
    margin: 0.5rem 0 0.4rem;
    color: var(--dhmic-ink);
}

.ops-board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--dhmic-muted, #5b6b7c);
}
