/*!
 * Copyright (c) 2026 Digital Line Center. All rights reserved.
 * Layout, navigation, forms, cards and footer for the DLC site.
 * Loaded after dlc-tokens.css. Colours come from the tokens only.
 */

html { scroll-behavior: smooth; }
body.dlc-body { color: var(--dlc-text); background: var(--dlc-white); -webkit-font-smoothing: antialiased; }
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5,
html[lang="ar"] p, html[lang="ar"] a, html[lang="ar"] li, html[lang="ar"] label, html[lang="ar"] input,
html[lang="ar"] button, html[lang="ar"] textarea, html[lang="ar"] select, html[lang="ar"] div {
    font-family: 'Cairo', 'Open Sans', Tahoma, sans-serif;
}
h1, h2, h3, h4 { color: var(--dlc-heading); }
img { max-width: 100%; }

.dlc-skip { position: absolute; left: 0; top: 0; transform: translateY(-120%); z-index: 3000; background: var(--dlc-gold-strong); color: #fff; padding: .75rem 1rem; }
.dlc-skip:focus { transform: none; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dlc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

/* ---------- header / navigation ---------- */
.dlc-header { position: relative; z-index: 50; }
.dlc-home .dlc-header { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(29,29,32,.82), rgba(29,29,32,0)); }
/* Header row lowered ~0.5cm (desktop) via extra top padding only; logo, menu and language button keep their size and spacing. */
.dlc-nav { padding: 1.1rem 0 .6rem; }
.dlc-nav .navbar-nav { align-items: center; }
.dlc-nav .nav-link { color: #fff !important; padding: .6rem .9rem; font-size: .95rem; position: relative; }
.dlc-nav .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--dlc-champagne); transform: scaleX(0); transition: transform .3s var(--dlc-ease); }
.dlc-nav .nav-item:hover > .nav-link::after, .dlc-nav .nav-item.active > .nav-link::after, .dlc-nav .nav-link:focus::after { transform: scaleX(1); }
.dlc-nav .dropdown-toggle::after { display: none; }
.dlc-nav .dropdown-menu { background: var(--dlc-charcoal) !important; border: 1px solid rgba(230,201,135,.3) !important; border-radius: 0; padding: .35rem 0; min-width: 14rem; }
.dlc-nav .dropdown-item { color: #fff !important; padding: .5rem 1rem !important; font-size: .9rem !important; }
.dlc-nav .dropdown-item:hover, .dlc-nav .dropdown-item:focus, .dlc-nav .dropdown-item.active { background: rgba(230,201,135,.15) !important; color: var(--dlc-champagne) !important; }
.dlc-nav__lang { margin-inline-start: .5rem; }
.dlc-lang-switch { border: 1px solid var(--dlc-champagne); border-radius: 2px; padding: .35rem .8rem !important; }
.dlc-lang-switch::after { display: none !important; }
.dlc-lang-switch:hover { background: var(--dlc-champagne); color: var(--dlc-charcoal) !important; }
/* Gold-and-silver wordmark has ~25% less transparent padding than the old white file, so the box is scaled to ~80%
   (visible artwork width = 0.879 x box vs 0.705 x box) and the margins re-balance the visible edges. */
.dlc-logo--header { width: clamp(88px, 10.4vw, 120px); margin-inline-start: clamp(10px, 1.24vw, 14.3px); margin-inline-end: 2.3rem; }
/* Header logo wordmark: the official PNG carries its DIGITAL LINE CENTER line in very dark grey (bottom 18% of the image, separated from
   the monogram by a transparent gap), which is unreadable on the dark header. The monogram stays the untouched PNG; only that band is
   overlaid (blend mode "lighten", so the <img> pixels are never clipped or altered) with a champagne/silver gradient clipped by the PNG's own alpha (same lettering, position and scale).
   Where CSS masks are unsupported the plain original logo is shown. .3125rem = Bootstrap's .navbar-brand vertical padding. */
@supports (((-webkit-mask-image: none) or (mask-image: none)) and (mix-blend-mode: lighten)) {
    .dlc-logo--header { position: relative; }
    .dlc-logo--header::after {
        content: ""; position: absolute; top: .3125rem; left: 0; right: 0; aspect-ratio: 960 / 450; pointer-events: none;
        background: linear-gradient(90deg, #E6C987 0%, #F6E7BE 30%, #D9DBDE 55%, #EBD398 80%, #E6C987 100%);
        -webkit-mask: url("../brand/dlc-wordmark-goldsilver-960.png") center / 100% 100% no-repeat;
        mask: url("../brand/dlc-wordmark-goldsilver-960.png") center / 100% 100% no-repeat;
        clip-path: inset(82% 0 0 0); mix-blend-mode: lighten;
    }
}
.dlc-toggler { border: 1px solid rgba(255,255,255,.5); padding: .5rem .6rem; }
.dlc-toggler__bar { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }
/* Desktop: the menu follows the logo (left in English, right in Arabic) instead of being pushed to the far end. */
.dlc-nav .navbar-nav { margin-inline-start: 0; }
@media (min-width: 992px) {
    .dlc-nav { padding-top: 1.8rem; }
    .dlc-nav .dropdown:hover > .dropdown-menu { display: block; }
    /* Logo -> menu gap (previously 2.3rem): +~13px at 992px, +~15px at 1440px, +~22px on wide screens. Applied to the logo only,
       so the spacing between individual menu items is untouched. */
    .dlc-logo--header { margin-inline-end: clamp(3.1rem, 3.6vw, 3.7rem); }
    /* The list fills the bar and the language item takes the free space on its start side: it goes to the far end
       of the header (right in LTR, left in RTL) while the menu stays next to the logo. */
    .dlc-nav .navbar-nav { flex: 1 1 auto; }
    .dlc-nav__lang { margin-inline-start: auto; }
}
@media (max-width: 991px) {
    .dlc-home .dlc-header { background: var(--dlc-charcoal); }
    .dlc-nav .navbar-collapse { background: var(--dlc-charcoal); padding: .5rem 0 1rem; }
    .dlc-nav .nav-link { padding: .75rem 1rem; }
    .dlc-nav .dropdown-menu { position: static; border: 0 !important; background: transparent !important; padding-inline-start: 1rem; }
    .dlc-nav .dropdown-menu.show { display: block; }
    .dlc-nav__lang { margin: .5rem 1rem 0; }
}

/* ---------- hero & page heads ---------- */
.dlc-hero { min-height: 32rem; padding-top: 9rem; padding-bottom: 5rem; display: flex; align-items: center; }
.dlc-hero__eyebrow { letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--dlc-gold-strong); font-weight: 700; margin-bottom: .75rem; }
html[lang="ar"] .dlc-hero__eyebrow { letter-spacing: 0; }
.dlc-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.15; }
.dlc-hero h1 span { display: block; }
/* English only: the whole copy group (eyebrow, title, paragraph, CTAs) sits ~4.4rem lower than the template default (2rem earlier + ~2.4rem = ~1cm more).
   Content is centred in the padded box, so +2.4rem top / -2.4rem bottom moves it down 2.4rem without changing the hero height.
   Arabic keeps its approved composition. */
@media (min-width: 768px) {
    html[lang="en"] .dlc-hero { padding-top: 13.4rem; padding-bottom: .6rem; }
}
/* Arabic only (>=768px; phones use the full pale backing and stay untouched): the copy group sat too high in the diagonal overlay.
   Same technique as English: top +2.8rem / bottom -2.8rem (9rem/5rem -> 11.8rem/2.2rem) lowers the group ~45px while the padding total,
   and therefore the hero height, stays exactly as it was. Video, overlay, typography and buttons are not touched. */
@media (min-width: 768px) {
    html[lang="ar"] .dlc-hero { padding-top: 11.8rem; padding-bottom: 2.2rem; }
}
.dlc-btn { display: inline-block; padding: .65rem 1.6rem; border: 1px solid var(--dlc-gold-strong); text-decoration: none; border-radius: 0; transition: background .3s, color .3s, transform .3s var(--dlc-ease); cursor: pointer; font-weight: 600; margin: .25rem .25rem .25rem 0; }
.dlc-btn:hover { transform: translateY(-2px); text-decoration: none; }
.dlc-btn--solid { background: var(--dlc-gold-strong); color: #fff; }
.dlc-btn--solid:hover, .dlc-btn--solid:focus { background: var(--dlc-gold-hover); color: #fff; }
.dlc-btn--ghost { background: transparent; color: var(--dlc-gold-strong); }
.dlc-btn--ghost:hover, .dlc-btn--ghost:focus { background: var(--dlc-gold-strong); color: #fff; }
.dlc-pagehead { padding: 3.5rem 0 2.5rem; }
.dlc-pagehead .fables-page-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }

/* ---------- sections ---------- */
.dlc-section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.dlc-section--alt { background: var(--dlc-offwhite); }
.dlc-section__title { text-align: center; color: var(--dlc-gold-strong); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.dlc-section__lead { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.dlc-rule { width: 4rem; height: 3px; background: var(--dlc-metal); margin: .75rem auto 1.5rem; border: 0; }

/* service cards */
.dlc-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.dlc-service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dlc-border); padding: 2rem 1.5rem 1.5rem; text-align: center; text-decoration: none !important; transition: transform .35s var(--dlc-ease), box-shadow .35s, border-color .35s; position: relative; overflow: hidden; }
.dlc-service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--dlc-metal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--dlc-ease); }
.dlc-service-card:hover, .dlc-service-card:focus { transform: translateY(-6px); box-shadow: var(--dlc-shadow); border-color: var(--dlc-gold); }
.dlc-service-card:hover::before, .dlc-service-card:focus::before { transform: scaleX(1); }
.dlc-service-card [class*="fables-icon"] { color: var(--dlc-gold-strong); font-size: 3rem; display: block; margin-bottom: .5rem; }
.dlc-service-card h3 { font-size: 1.1rem; color: var(--dlc-charcoal); font-weight: 700; margin: .5rem 0; }
.dlc-service-card p { color: var(--dlc-gray); font-size: .92rem; flex: 1; }
.dlc-service-card__more { color: var(--dlc-gold-strong); font-weight: 600; font-size: .9rem; }

/* stats */
.dlc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; text-align: center; margin-top: 2.5rem; }
.dlc-stat__n { display: inline-block; min-width: 6rem; font-size: 2.4rem; font-weight: 700; color: var(--dlc-charcoal); border: 1px solid var(--dlc-gold); padding: .25rem 1.2rem; margin-bottom: .75rem; }
.dlc-stat__l { font-size: .85rem; color: var(--dlc-gray); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .dlc-stat__l { letter-spacing: 0; text-transform: none; }

/* why choose us */
.dlc-why { background: var(--dlc-offwhite); }
.dlc-accordion .card { border: 1px solid var(--dlc-border); border-radius: 0; margin-bottom: .5rem; }
.dlc-accordion .btn-link { color: var(--dlc-charcoal); font-weight: 600; text-decoration: none; width: 100%; text-align: start; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.dlc-accordion .btn-link::after { content: "+"; color: var(--dlc-gold-strong); font-size: 1.4rem; line-height: 1; }
.dlc-accordion .btn-link:not(.collapsed)::after { content: "\2212"; }
.dlc-accordion .card-body { color: var(--dlc-gray); font-size: .95rem; padding-top: 0; }
.dlc-why__img { width: 100%; height: 100%; object-fit: cover; min-height: 18rem; }

/* ---- Why choose us refinements: everything below is scoped to .dlc-why (reveal uses the existing .dlc-reveal utility) ---- */
.dlc-why .dlc-section__title { position: relative; margin-bottom: 1.4rem; padding-bottom: .95rem; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: .06em; }
html[lang="ar"] .dlc-why .dlc-section__title { letter-spacing: 0; }
.dlc-why .dlc-section__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 3.5rem; height: 3px; border-radius: 2px; background: var(--dlc-metal); }
.dlc-why .dlc-accordion .card { border-radius: 0; margin-bottom: .6rem; overflow: hidden; background: #fff; }
.dlc-why .dlc-accordion .card:hover { border-color: rgba(184,134,43,.55); }
.dlc-why .dlc-accordion .btn-link { gap: 1rem; padding: 1rem 1.15rem; border-radius: 0; border-inline-start: 3px solid transparent; text-decoration: none; box-shadow: none; transition: color .3s, background-color .3s, border-color .3s; }
.dlc-why .dlc-accordion .btn-link:hover { background: var(--dlc-offwhite); }
.dlc-why .dlc-accordion .btn-link:focus-visible { outline: 2px solid var(--dlc-gold); outline-offset: -2px; }
.dlc-why .dlc-accordion .btn-link:not(.collapsed) { color: var(--dlc-gold-strong); background: var(--dlc-offwhite); border-inline-start-color: var(--dlc-gold); }
/* plus -> minus: two drawn bars; the vertical one collapses when the item is open (no text glyph, no layout change) */
.dlc-why .dlc-accordion .btn-link::after,
.dlc-why .dlc-accordion .btn-link:not(.collapsed)::after { content: ""; flex: 0 0 auto; width: .95rem; height: .95rem; font-size: 0; color: var(--dlc-gold-strong);
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: background-size .3s var(--dlc-ease); }
.dlc-why .dlc-accordion .btn-link:not(.collapsed)::after { background-size: 100% 2px, 2px 0; }
.dlc-why .dlc-accordion .card-header + div { background: var(--dlc-offwhite); }
.dlc-why .dlc-accordion .card-body { padding: .15rem 1.15rem 1.15rem calc(1.15rem + 3px); line-height: 1.7; }
html[dir="rtl"] .dlc-why .dlc-accordion .card-body { padding: .15rem calc(1.15rem + 3px) 1.15rem 1.15rem; }
.dlc-why .dlc-accordion .collapsing { transition-duration: .4s; transition-timing-function: var(--dlc-ease); }
.dlc-why__media { height: 100%; min-height: 18rem; margin: 0; overflow: hidden; border: 1px solid var(--dlc-border); border-radius: 0; background: var(--dlc-offwhite); box-shadow: 0 18px 40px rgba(29,29,32,.14); }
.dlc-why__media .dlc-why__img { display: block; object-position: 50% 55%; transition: transform 1.1s var(--dlc-ease); }
@media (hover: hover) { .dlc-why__media:hover .dlc-why__img { transform: scale(1.025); } }
/* gentle stagger for the six items (only while the reveal is active) */
.dlc-js .dlc-why .dlc-accordion .card.dlc-reveal:nth-child(2) { transition-delay: .06s; }
.dlc-js .dlc-why .dlc-accordion .card.dlc-reveal:nth-child(3) { transition-delay: .12s; }
.dlc-js .dlc-why .dlc-accordion .card.dlc-reveal:nth-child(4) { transition-delay: .18s; }
.dlc-js .dlc-why .dlc-accordion .card.dlc-reveal:nth-child(5) { transition-delay: .24s; }
.dlc-js .dlc-why .dlc-accordion .card.dlc-reveal:nth-child(6) { transition-delay: .3s; }
.dlc-js .dlc-why__media.dlc-reveal { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
    .dlc-why .dlc-accordion .btn-link, .dlc-why .dlc-accordion .btn-link::after, .dlc-why__media .dlc-why__img, .dlc-why .dlc-accordion .collapsing { transition: none; }
    .dlc-why__media:hover .dlc-why__img { transform: none; }
}

/* ---------- forms ---------- */
.dlc-form label { font-weight: 600; color: var(--dlc-charcoal); margin-bottom: .35rem; }
.dlc-form .form-control { border-radius: 0; border: 1px solid #c9ccd1; padding: .75rem 1rem; height: auto; }
.dlc-form .form-control:focus { border-color: var(--dlc-gold); box-shadow: 0 0 0 3px rgba(184,134,43,.25); }
.dlc-form .is-invalid { border-color: #b3261e; }
.dlc-field-error { color: #b3261e; font-size: .85rem; display: block; margin-top: .25rem; }
.dlc-alert { padding: .9rem 1.1rem; margin-bottom: 1.25rem; border: 1px solid; }
.dlc-alert--ok { background: #e8f5ec; color: #14532d; border-color: #86c79a; }
.dlc-alert--err { background: #fdecea; color: #7a1a14; border-color: #e6a29d; }
.dlc-req { color: #b3261e; }
.dlc-radio { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-weight: 400 !important; }
.dlc-radio input { width: 1.1rem; height: 1.1rem; accent-color: var(--dlc-gold-strong); }
.dlc-box { background: #fff; border: 1px solid var(--dlc-border); padding: 2rem; box-shadow: var(--dlc-shadow); }
.dlc-box--dashed { background: var(--dlc-offwhite); border: 2px dashed var(--dlc-gold); box-shadow: none; }

/* contact info */
.dlc-contact-card { text-align: center; }
.dlc-contact-card__icon { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--dlc-gold-strong); color: #fff; font-size: 1.6rem; margin-bottom: 1rem; }
.dlc-contact-card h3 { font-size: 1rem; color: var(--dlc-gold-strong); font-weight: 700; margin-bottom: .5rem; }
.dlc-contact-card p, .dlc-contact-card a { font-size: .95rem; color: var(--dlc-gray); margin-bottom: .25rem; display: block; }

/* Phone number = tel: link + separate copy button (dlc_phone() in layout.php). The number stays the primary element; the icon is discreet. */
.dlc-phone { position: relative; display: inline-flex; align-items: center; gap: .15rem; min-height: 2rem; }
.dlc-phone--block { display: flex; justify-content: center; margin-bottom: .1rem; }
.dlc-phone .dlc-phone__num { display: inline-block; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dlc-phone__num:hover, .dlc-phone__num:focus-visible { color: var(--dlc-gold-strong); }
.dlc-phone__num:focus-visible, .dlc-phone__copy:focus-visible { outline: 2px solid var(--dlc-gold); outline-offset: 2px; border-radius: 4px; }
.dlc-phone__copy { display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .6; font-size: .8rem; line-height: 1; cursor: pointer; transition: opacity .25s, color .25s, background .25s; }
.dlc-phone__copy:hover, .dlc-phone__copy:focus-visible { opacity: 1; color: var(--dlc-gold-strong); background: rgba(184,134,43,.12); }
.dlc-phone__copy.is-done { opacity: 1; color: var(--dlc-gold-strong); }
.dlc-footer .dlc-phone__num:hover, .dlc-footer .dlc-phone__num:focus-visible, .dlc-footer .dlc-phone__copy:hover, .dlc-footer .dlc-phone__copy:focus-visible, .dlc-footer .dlc-phone__copy.is-done { color: var(--dlc-champagne); }
/* brief confirmation bubble above the icon; text is set by dlc-main.js only after a real copy result */
.dlc-phone__msg { position: absolute; bottom: calc(100% - .2rem); inset-inline-end: 0; z-index: 5; padding: .2rem .6rem; border: 1px solid rgba(230,201,135,.45); border-radius: .4rem; background: var(--dlc-charcoal); color: var(--dlc-champagne); font-size: .8rem; line-height: 1.4; white-space: nowrap; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .25s, transform .25s var(--dlc-ease); }
.dlc-phone__msg:empty { display: none; }
.dlc-phone__msg.is-on { opacity: 1; transform: none; }
.dlc-phone__msg.is-fail { color: #f3c1bd; border-color: rgba(243,193,189,.6); }
@media (max-width: 767px) {
    /* touch: 44px targets (rows grow instead of overlapping neighbouring targets) */
    .dlc-phone { min-height: 2.75rem; }
    .dlc-phone .dlc-phone__num { padding: .6rem .25rem; }
    .dlc-phone__copy { width: 2.75rem; height: 2.75rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .dlc-phone__copy, .dlc-phone__msg { transition: none; } }
.dlc-social { display: flex; justify-content: center; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.dlc-social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--dlc-gold); border-radius: 50%; color: var(--dlc-charcoal); transition: background .3s, color .3s; }
.dlc-social a:hover { background: var(--dlc-gold-strong); color: #fff; }
.dlc-band { background: linear-gradient(160deg, var(--dlc-charcoal), var(--dlc-charcoal-soft)); color: #fff; text-align: center; padding: 3.5rem 0; }
.dlc-band h2, .dlc-band h3 { color: #fff; }
.dlc-band p { color: var(--dlc-silver-light); max-width: 42rem; margin: 1rem auto 1.5rem; }

/* ---------- gallery ---------- */
/* The gallery grid, filters and lightbox caption live in dlc-gallery.css (loaded by dlc_gallery()); the lightbox shell stays here. */
html.dlc-lb-open { overflow: hidden; }
.dlc-lightbox { position: fixed; inset: 0; background: rgba(12,12,14,.94); z-index: 4000; display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem 3rem; }
.dlc-lightbox.is-open { display: flex; animation: dlc-lb-in .3s ease; }
@keyframes dlc-lb-in { from { opacity: 0; } to { opacity: 1; } }
.dlc-lightbox img { max-width: 100%; max-height: calc(100vh - 6.5rem); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.dlc-lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid var(--dlc-champagne); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.dlc-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--dlc-champagne); background: rgba(29,29,32,.7); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.dlc-lightbox__nav--prev { left: 1rem; }
.dlc-lightbox__nav--next { right: 1rem; }
.dlc-lightbox__close:hover, .dlc-lightbox__nav:hover, .dlc-lightbox__close:focus-visible, .dlc-lightbox__nav:focus-visible { background: var(--dlc-gold-strong); }
.dlc-lightbox__count { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; color: var(--dlc-silver-light); font-size: .9rem; }
html[dir="rtl"] .dlc-lightbox__nav--prev { left: auto; right: 1rem; }
html[dir="rtl"] .dlc-lightbox__nav--next { right: auto; left: 1rem; }
html[dir="rtl"] .dlc-lightbox__nav i { transform: scaleX(-1); }
@media (max-width: 575px) { .dlc-lightbox { padding: 3.5rem .5rem 3rem; } .dlc-lightbox__nav { width: 2.5rem; height: 2.5rem; } }
@media (prefers-reduced-motion: reduce) {
    .dlc-lightbox.is-open { animation: none; }
}

/* ---------- course / subject cards ---------- */
.dlc-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.dlc-chip { border: 1px solid var(--dlc-gold); background: #fff; color: var(--dlc-charcoal); padding: .5rem 1.1rem; cursor: pointer; font-weight: 600; transition: background .25s, color .25s; }
.dlc-chip:hover { background: var(--dlc-offwhite); }
.dlc-chip[aria-pressed="true"] { background: var(--dlc-gold-strong); color: #fff; }
.dlc-course-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.dlc-course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dlc-border); overflow: hidden; transition: transform .35s var(--dlc-ease), box-shadow .35s, border-color .35s; text-decoration: none !important; color: inherit; }
.dlc-course-card:hover, .dlc-course-card:focus { transform: translateY(-5px); box-shadow: var(--dlc-shadow); border-color: var(--dlc-gold); }
.dlc-course-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--dlc-offwhite); }
.dlc-course-card__body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.dlc-course-card__cat { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dlc-gold-strong); font-weight: 700; }
html[lang="ar"] .dlc-course-card__cat { letter-spacing: 0; text-transform: none; }
.dlc-course-card h3 { font-size: 1.05rem; font-weight: 700; margin: .35rem 0 .5rem; color: var(--dlc-charcoal); }
.dlc-course-card__meta { font-size: .85rem; color: var(--dlc-gray); flex: 1; }
.dlc-course-card__cta { margin-top: .9rem; color: var(--dlc-gold-strong); font-weight: 600; }
.dlc-course-card[hidden] { display: none; }

.dlc-subject-group { margin-bottom: 2rem; }
.dlc-subject-group h2 { font-size: 1.25rem; color: var(--dlc-charcoal); border-inline-start: 4px solid var(--dlc-gold); padding-inline-start: .75rem; margin-bottom: 1rem; }
.dlc-subjects { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.dlc-subject { display: block; background: #fff; border: 1px solid var(--dlc-border); padding: .8rem 1rem; color: var(--dlc-charcoal); text-decoration: none !important; transition: border-color .25s, background .25s, transform .25s var(--dlc-ease); }
.dlc-subject:hover, .dlc-subject:focus { border-color: var(--dlc-gold); background: var(--dlc-offwhite); transform: translateY(-2px); }
.dlc-subject[hidden], .dlc-subject-group[hidden] { display: none; }
.dlc-search { max-width: 28rem; margin: 0 auto 2rem; display: flex; gap: .5rem; }
.dlc-search input { flex: 1; }
.dlc-quote { background: var(--dlc-offwhite); border-inline-start: 5px solid var(--dlc-gold); padding: 1.25rem 1.5rem; font-weight: 700; color: var(--dlc-charcoal); }

/* course details */
.dlc-detail { max-width: 52rem; margin: 0 auto; }
.dlc-detail__hero { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin-bottom: 1.5rem; }
.dlc-detail h2 { font-size: 1.2rem; color: var(--dlc-charcoal); border-bottom: 2px solid var(--dlc-gold); display: inline-block; padding-bottom: .25rem; margin: 1.75rem 0 .75rem; }
.dlc-detail ul, .dlc-detail ol { padding-inline-start: 1.4rem; }
.dlc-detail li { margin-bottom: .35rem; }
.dlc-detail li ul { margin-top: .35rem; font-size: .92rem; }
.dlc-info { background: var(--dlc-offwhite); border-inline-start: 5px solid var(--dlc-gold); padding: 1rem 1.25rem; margin-top: 2rem; }
.dlc-info p { margin: 0 0 .4rem; }
.dlc-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.dlc-actions .dlc-btn { flex: 1 1 12rem; text-align: center; margin: 0; }
.dlc-btn--dark { background: var(--dlc-gray); border-color: var(--dlc-gray); color: #fff; }
.dlc-btn--dark:hover { background: var(--dlc-charcoal); color: #fff; }
.dlc-review { border: 1px solid var(--dlc-border); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.dlc-review__stars { color: var(--dlc-gold); }

/* ---------- footer ---------- */
.dlc-footer .fables-footer-image { background: linear-gradient(170deg, var(--dlc-charcoal) 0%, var(--dlc-charcoal-soft) 100%) !important; background-image: none; }
.dlc-footer .fables-footer-image::after, .dlc-footer .fables-footer-image::before { background: transparent !important; }
.dlc-footer h2 { color: #fff; }
.dlc-footer a { color: var(--dlc-silver-light); }
.dlc-footer a:hover { color: var(--dlc-champagne); }
.dlc-footer__contact, .dlc-footer__links { list-style: none; padding: 0; margin: 0; }
.dlc-footer__contact li, .dlc-footer__links li { padding: .35rem 0; color: var(--dlc-silver-light); font-size: .95rem; }
.dlc-footer__contact [class*="fables-icon"] { margin-inline-end: .5rem; }
.dlc-newsletter { display: flex; gap: .5rem; max-width: 30rem; margin: 0 auto; }
.dlc-newsletter .form-control { border-radius: 0; flex: 1; }
.dlc-newsletter .dlc-btn { margin: 0; }
/* Newsletter is its own full-width row (col-12 in layout.php), centred with text-align + the form's auto margins, so it is direction-independent
   (the old Bootstrap offset-* classes are margin-LEFT and broke RTL). The info columns sit in a second row below it.
   Only the navbar-brand 1rem right margin on the footer logo is cancelled so the logo is truly centred; its size is untouched. */
.dlc-footer #newsletter .dlc-logo--footer { margin-left: 0; margin-right: 0; }
.dlc-copyright { background: #121214 !important; text-align: center; padding: 1.25rem 0; font-size: .9rem; color: var(--dlc-silver); }
.dlc-copyright .fables-footer-social-links { justify-content: center; margin-bottom: .5rem; }
.dlc-copyright .fables-footer-social-links a { color: var(--dlc-champagne); font-size: 1.4rem; padding: 0 .6rem; }
/* Floating WhatsApp control: charcoal disc, gold ring, white official glyph. Same link, position and size as before. */
.dlc-whatsapp { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1000; width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 2px solid var(--dlc-gold); background: radial-gradient(circle at 30% 25%, var(--dlc-charcoal-soft) 0%, var(--dlc-charcoal) 70%); color: #fff !important; display: grid; place-items: center; font-size: 1.9rem; text-decoration: none !important; box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(230,201,135,.25); transition: transform .3s var(--dlc-ease), box-shadow .3s, border-color .3s; }
.dlc-whatsapp::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--dlc-champagne); opacity: 0; transform: scale(.88); transition: opacity .35s, transform .45s var(--dlc-ease); pointer-events: none; }
.dlc-whatsapp:hover, .dlc-whatsapp:focus-visible { transform: translateY(-3px); border-color: var(--dlc-champagne); box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 14px rgba(230,201,135,.28), inset 0 0 0 1px rgba(230,201,135,.4); }
.dlc-whatsapp:hover::before, .dlc-whatsapp:focus-visible::before { opacity: .85; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .dlc-whatsapp, .dlc-whatsapp::before { transition: none; } .dlc-whatsapp:hover, .dlc-whatsapp:focus-visible { transform: none; } }

/* Hero background video: sits under the template's tint (::after) and diagonal (::before); fades in over the static image. */
.dlc-hero__video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.dlc-hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dlc-hero__video { display: none; } }

@media (max-width: 767px) {
    /* on phones the diagonal would clip the copy, so use a full pale backing instead */
    html .dlc-hero.index-traingle::before, html[dir="rtl"] .dlc-hero.index-traingle::before {
        left: 0; right: 0; top: 0; bottom: 0; width: auto; height: auto; border: 0; background: rgba(255, 255, 255, .88);
    }
}
@media (max-width: 575px) {
    .dlc-newsletter { flex-direction: column; }
    .dlc-hero { padding-top: 7rem; min-height: 0; }
    .dlc-box { padding: 1.25rem; }
}

/* Reveal on scroll (progressive enhancement) */
.dlc-js .dlc-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--dlc-ease), transform .7s var(--dlc-ease); }
.dlc-js .dlc-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dlc-js .dlc-reveal { opacity: 1; transform: none; transition: none; }
    .dlc-service-card, .dlc-course-card, .dlc-btn { transition: none; }
}
