
/* =========================================================
   UX enhancements  [2026-11-29]  (used by /sd-enhance.js)
   ========================================================= */
:root { --sd-red: #ec2635; --sd-red-text: #d01f2c; --sd-navy: #001845; --sd-section: 40px; }
@media (min-width: 768px) { :root { --sd-section: 56px; } }
@media (min-width: 1024px) { :root { --sd-section: 72px; } }

/* --- consistent spacing between sections (was 96px top + 96px bottom) --- */
html body:not(#sd) .page-content[class*="lg:py-24"] { padding-top: var(--sd-section) !important; padding-bottom: var(--sd-section) !important; }
html body:not(#sd) .page-content.no-padding { padding-top: 0 !important; padding-bottom: 0 !important; }
html body:not(#sd) .page-content.pt-0 { padding-top: 0 !important; }
html body:not(#sd) .page-content.pb-0 { padding-bottom: 0 !important; }

/* --- readable red text (brand red on white was 4.3:1, now 5:1) --- */
html body:not(#sd) .text-primary:not([class*="bg-"]), html body:not(#sd) .real-map-title { color: var(--sd-red-text) !important; }
html body:not(#sd) .real-map-note { color: #666 !important; }

/* --- buttons --- */
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--sd-font); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none !important; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease; cursor: pointer; white-space: nowrap; }
.sd-btn:hover { transform: translateY(-1px); }
.sd-btn:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.sd-btn--primary { background: var(--sd-red); color: #fff !important; box-shadow: 0 8px 22px rgba(236, 38, 53, .35); }
.sd-btn--primary:hover { background: #c81d2a; }
.sd-btn--light { background: #fff; color: var(--sd-navy) !important; border-color: #fff; box-shadow: 0 8px 22px rgba(0, 24, 69, .18); }
.sd-btn--light:hover { background: var(--sd-navy); color: #fff !important; border-color: var(--sd-navy); }
.sd-btn svg { width: 20px; height: 20px; }
.sd-btn[disabled] { opacity: .6; cursor: progress; }

/* --- 1. hero buttons, placed under the text that is inside the banner image --- */
.sd-hero-cta { position: absolute; z-index: 20; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  left: 50%; transform: translateX(-50%); top: 41%; width: 92%; }
.sd-hero-cta .sd-btn { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
@media (min-width: 481px) {
  .sd-hero-cta { left: 5.5%; transform: none; width: 27%; top: 44%; }
  .sd-hero-cta .sd-btn { min-height: 46px; }
}
@media (min-width: 1280px) { .sd-hero-cta .sd-btn { min-height: 52px; padding: 0 30px; font-size: 1.0625rem; } }

/* --- 2. stats bar --- */
.sd-stats { background: var(--sd-navy); color: #fff; padding: 22px 16px; }
.sd-stats:empty { min-height: 108px; }
.sd-stats__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
@media (min-width: 768px) { .sd-stats { padding: 30px 24px; } .sd-stats__inner { grid-template-columns: repeat(4, 1fr); } }
.sd-stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.sd-stat + .sd-stat { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 767px) { .sd-stat:nth-child(3) { border-inline-start: 0; } }
.sd-stat strong { font-family: var(--sd-font); font-size: 1.75rem; font-weight: 800; line-height: 1.2; color: #fff; }
@media (min-width: 1024px) { .sd-stat strong { font-size: 2.25rem; } }
.sd-stat span { font-family: var(--sd-font); font-size: var(--sd-body); color: rgba(255, 255, 255, .82); }

/* --- 3. one floating contact button (replaces the 3 separate ones) --- */
html.sd-enhanced .fixed-icon, html.sd-enhanced .sd-chat-open-btn { display: none !important; }
.sd-fab { position: fixed; right: 16px; bottom: 18px; z-index: 100001; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--sd-font); }
.sd-fab__toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--sd-red); color: #fff; cursor: pointer;
  box-shadow: 0 12px 28px rgba(236, 38, 53, .4); display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background-color .2s ease; }
.sd-fab__toggle:hover { transform: scale(1.05); }
.sd-fab__toggle:focus-visible, .sd-fab__item:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.sd-fab__toggle svg { width: 28px; height: 28px; }
.sd-fab .sd-fab__icon-close { display: none; }
.sd-fab.is-open .sd-fab__icon-open { display: none; }
.sd-fab.is-open .sd-fab__icon-close { display: block; }
.sd-fab.is-open .sd-fab__toggle { background: var(--sd-navy); }
.sd-fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sd-fab__menu[hidden] { display: none; }
.sd-fab__item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; color: var(--sd-navy) !important;
  font-weight: 700; font-size: .9375rem; text-decoration: none !important; box-shadow: 0 8px 24px rgba(0, 24, 69, .18); animation: sdFabIn .18s ease both; }
html[dir="rtl"] .sd-fab__item { flex-direction: row-reverse; padding: 10px 14px 10px 18px; }
.sd-fab__item svg { width: 22px; height: 22px; flex: none; }
.sd-fab__item--wa svg { color: #1faa53; }
.sd-fab__item--call svg { color: var(--sd-red); }
.sd-fab__item--chat svg { color: var(--sd-navy); }
.sd-fab__item:hover { background: #f3f5f9; }
.sd-fab__item:nth-child(2) { animation-delay: .04s; } .sd-fab__item:nth-child(3) { animation-delay: .08s; }
@keyframes sdFabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .sd-fab { right: 12px; bottom: 14px; } .sd-fab__toggle { width: 56px; height: 56px; } }

/* --- 4. missing section title --- */
html body:not(#sd) .sd-section-title { font-family: var(--sd-font); font-size: var(--sd-title) !important; line-height: 1.35 !important; font-weight: 800 !important; color: #111 !important; margin: 6px 0 14px; }

/* --- 5. nearest branch --- */
.sd-nearest { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 14px auto 22px; text-align: center; font-family: var(--sd-font); }
.sd-nearest__result:empty { display: none; }
.sd-nearest__result { font-size: var(--sd-body); color: #444; }
.sd-nearest__card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid #e6e8ee;
  border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 26px rgba(0, 24, 69, .08); min-width: min(100%, 420px); text-align: start; }
.sd-nearest__card .sd-btn--light { border-color: var(--sd-navy); }
.sd-nearest__label { display: block; font-size: var(--sd-small); color: #666; }
.sd-nearest__card strong { display: block; font-size: var(--sd-subtitle); color: var(--sd-navy); font-weight: 800; }
.sd-nearest__dist { display: block; font-size: var(--sd-small); color: #555; }

/* stats bar sits directly under the banner */
/* reserve the stats bar height from the first paint so nothing jumps when it appears */
:root { --sd-stats-h: 196px; }
@media (min-width: 768px) { :root { --sd-stats-h: 128px; } }
@media (min-width: 1024px) { :root { --sd-stats-h: 140px; } }
html body:not(#sd) header[data-v-132d6879] { margin-bottom: calc(var(--sd-stats-h) + var(--sd-section)) !important; }
html.sd-has-stats body:not(#sd) header[data-v-132d6879] { margin-bottom: 0 !important; }
html body:not(#sd) .sd-stats { height: var(--sd-stats-h); box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 0 var(--sd-section) !important; padding-top: 0 !important; padding-bottom: 0 !important; }
html body:not(#sd) .sd-stats__inner { width: 100%; }
@media (min-width: 1280px) { .sd-hero-cta .sd-btn { min-height: 56px; padding: 0 34px; font-size: 1.125rem; } }

@media (min-width: 481px) and (max-width: 1023px) { .sd-hero-cta { width: 36%; gap: 8px; } .sd-hero-cta .sd-btn { min-height: 40px; padding: 0 14px; font-size: .875rem; } }

html body:not(#sd) h2.real-map-title { font-size: calc(var(--sd-subtitle) + 4px) !important; line-height: 1.4 !important; }

/* banner keeps its height before the slider script starts (stops the page jumping) */
html body:not(#sd) header[data-v-132d6879] { aspect-ratio: 2350 / 1100; }
@media (max-width: 480px) { html body:not(#sd) header[data-v-132d6879] { aspect-ratio: 1090 / 1820; } }

/* Google Maps page link for the selected branch */
.sd-gmaps-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--sd-font); font-weight: 700; font-size: var(--sd-small); color: var(--sd-navy) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.sd-gmaps-link svg { width: 18px; height: 18px; color: var(--sd-red); flex: none; }
.sd-nearest__gmaps { display: block; margin-top: 4px; font-size: var(--sd-small); font-weight: 700; color: var(--sd-red-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* --- 8. branches map (only Saudi Doors branches) --- */
html.sd-enhanced .real-map-panel { display: flex; flex-direction: column; }
.sd-branch-map { flex: 1 1 auto; width: 100%; min-height: 520px; border-radius: 16px; overflow: hidden; z-index: 1; background: #e9eef2; }
@media (max-width: 767px) { .sd-branch-map { min-height: 420px; } }
.sd-branch-map.leaflet-container { font-family: var(--sd-font); }
.sd-pin-wrap { background: none !important; border: 0 !important; }
.sd-pin { position: relative; width: 40px; height: 48px; display: flex; flex-direction: column; align-items: center; }
.sd-pin__logo { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--sd-red); box-shadow: 0 4px 12px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; position: relative; box-sizing: border-box; }
.sd-pin__logo::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--sd-red); }
.sd-pin__logo img { width: 22px !important; height: 22px !important; object-fit: contain !important; }
.sd-pin__label { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--sd-navy); font: 700 12px/1.2 var(--sd-font); padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,24,69,.22); pointer-events: none; }
.sd-pin-wrap:hover, .sd-pin-wrap:focus { z-index: 1000 !important; }
.sd-pin-wrap:hover .sd-pin__label, .sd-pin-wrap:focus .sd-pin__label { visibility: visible !important; }
.sd-pop { font-family: var(--sd-font); min-width: 190px; }
.sd-pop strong { display: block; font-size: 15px; font-weight: 800; color: var(--sd-navy); margin-bottom: 10px; }
.sd-pop__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-pop .sd-btn { min-height: 36px; padding: 0 14px; font-size: 13px; box-shadow: none; }
.sd-pop .sd-btn--light { border-color: var(--sd-navy); }

/* main factory pin: bigger, navy ring, always on top */
.sd-pin--factory { width: 48px; height: 56px; }
.sd-pin--factory .sd-pin__logo { width: 46px; height: 46px; border: 4px solid var(--sd-navy); }
.sd-pin--factory .sd-pin__logo::after { border-top-color: var(--sd-navy); bottom: -11px; }
.sd-pin--factory .sd-pin__logo img { width: 26px !important; height: 26px !important; }
.sd-pin--factory .sd-pin__label { top: 56px; background: var(--sd-navy); color: #fff; font-size: 13px; }
.sd-pop__tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--sd-navy); color: #fff; font-size: 11px; font-weight: 700; }

/* --- 9. wide branches map section (desktop / tablet / mobile) --- */
html body:not(#sd) .real-showrooms-map {
  width: min(1760px, calc(100vw - 48px)) !important; max-width: none !important;
  margin-left: calc(50% - min(880px, 50vw - 24px)) !important; margin-right: calc(50% - min(880px, 50vw - 24px)) !important;
  grid-template-columns: 340px minmax(0, 1fr) !important; gap: 20px !important;
}
html body:not(#sd) .real-map-panel { min-height: 640px !important; }
.sd-branch-map { min-height: 640px; }
@media (min-width: 1600px) { html body:not(#sd) .real-map-panel, .sd-branch-map { min-height: 720px !important; } }

/* tablet: list on top as a grid of city buttons, map full width under it */
@media (max-width: 1023px) {
  html body:not(#sd) .real-showrooms-map { width: calc(100vw - 32px) !important; margin-left: calc(50% - (50vw - 16px)) !important; margin-right: calc(50% - (50vw - 16px)) !important; grid-template-columns: 1fr !important; gap: 16px !important; }
  html body:not(#sd) .real-map-sidebar { min-height: 0 !important; }
  html body:not(#sd) .real-city-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 8px !important; }
  html body:not(#sd) .real-city-list .real-city-btn { margin: 0 !important; width: 100% !important; }
  html body:not(#sd) .real-map-panel, .sd-branch-map { min-height: 560px !important; }
}
/* mobile */
@media (max-width: 640px) {
  html body:not(#sd) .real-showrooms-map { width: calc(100vw - 20px) !important; margin-left: calc(50% - (50vw - 10px)) !important; margin-right: calc(50% - (50vw - 10px)) !important; gap: 12px !important; }
  html body:not(#sd) .real-map-sidebar { padding: 16px !important; }
  html body:not(#sd) .real-city-list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
  html body:not(#sd) .real-city-list .real-city-btn { height: 40px !important; font-size: 13px !important; padding: 0 6px !important; }
  html body:not(#sd) .real-map-panel, .sd-branch-map { min-height: 460px !important; }
  .sd-pin__label { font-size: 11px; padding: 3px 7px; }
}

/* --- 10. accreditation certificates: one centred row of equal cards --- */
html body:not(#sd) .sd-cert { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; align-items: stretch !important; gap: 24px !important; text-align: center; max-width: 1240px; margin-inline: auto !important; }
html body:not(#sd) .sd-cert .certificates-title-wrapper { width: 100% !important; display: flex !important; justify-content: center !important; margin: 0 !important; }
html body:not(#sd) .sd-cert .certificates-title { background: none !important; color: #111 !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 0 14px !important; margin: 0 !important; position: relative; }
html body:not(#sd) .sd-cert .certificates-title::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 4px; background: var(--sd-red); }
html body:not(#sd) .sd-cert .sd-cert-sub { width: 100%; margin: -8px 0 8px !important; color: #555 !important; }
html body:not(#sd) .sd-cert .certificate-logos-row, html body:not(#sd) .sd-cert .certificate-docs-grid { display: contents !important; }
html body:not(#sd) .sd-cert .certificate-logo-card, html body:not(#sd) .sd-cert .certificate-doc-card {
  width: 280px !important; max-width: 100%; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 14px !important;
  background: #fff !important; border: 1px solid #eceef3 !important; border-radius: 18px !important; box-shadow: 0 10px 28px rgba(0, 24, 69, .08) !important;
  display: flex !important; align-items: center; justify-content: center; transition: transform .2s ease, box-shadow .2s ease; }
html body:not(#sd) .sd-cert .certificate-logo-card:hover, html body:not(#sd) .sd-cert .certificate-doc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 24, 69, .14) !important; }
html body:not(#sd) .sd-cert .certificate-doc-img-box { display: block !important; width: 100% !important; height: auto !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }
html body:not(#sd) .sd-cert img { display: block; width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 1200 / 1700; object-fit: contain !important; border-radius: 10px; image-rendering: auto; }
html body:not(#sd) .sd-cert .certificate-doc-title { display: none !important; }
@media (max-width: 640px) {
  html body:not(#sd) .sd-cert { gap: 12px !important; }
  html body:not(#sd) .sd-cert .certificate-logo-card, html body:not(#sd) .sd-cert .certificate-doc-card { width: calc(50% - 6px) !important; padding: 8px !important; border-radius: 12px !important; }
}

html body:not(#sd) .sd-cert { margin-top: var(--sd-section) !important; }
html body:not(#sd) .sd-cert .sd-cert-sub { text-align: center !important; }

/* --- 11. hero video (replaces the banner image) --- */
html body:not(#sd) header[data-v-132d6879] { aspect-ratio: 16 / 9 !important; overflow: hidden; }
@media (max-width: 600px) { html body:not(#sd) header[data-v-132d6879] { aspect-ratio: 9 / 16 !important; } }
html body:not(#sd) header[data-v-132d6879] .swiper, html body:not(#sd) header[data-v-132d6879] .swiper-wrapper, html body:not(#sd) header[data-v-132d6879] .swiper-slide { height: 100% !important; }
html body:not(#sd) header[data-v-132d6879] .swiper-slide picture img, html body:not(#sd) header[data-v-132d6879] .swiper-slide > img { height: 100% !important; aspect-ratio: auto !important; object-fit: cover !important; }
html body:not(#sd) header.sd-has-video .swiper { visibility: hidden; }
.sd-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 15; background: #0b1a33; pointer-events: none; }
html body:not(#sd) header.sd-has-video::after { content: ''; position: absolute; inset: 0; z-index: 16; pointer-events: none;
  background: linear-gradient(to left, rgba(0, 24, 69, .78) 0%, rgba(0, 24, 69, .45) 38%, rgba(0, 24, 69, .05) 70%); }
html[dir="ltr"] body:not(#sd) header.sd-has-video::after { background: linear-gradient(to right, rgba(0, 24, 69, .78) 0%, rgba(0, 24, 69, .45) 38%, rgba(0, 24, 69, .05) 70%); }
.sd-hero-text { position: absolute; z-index: 20; inset-inline-start: 6%; top: 50%; transform: translateY(-50%); max-width: min(640px, 56%); text-align: start; color: #fff; font-family: var(--sd-font); }
html body:not(#sd) header .sd-hero-title { margin: 0 0 14px !important; color: #fff !important; font-family: var(--sd-font); font-weight: 800 !important; font-size: clamp(30px, 4.2vw, 68px) !important; line-height: 1.18 !important; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
html body:not(#sd) header .sd-hero-title span { display: block; color: #ff4d5a; }
html body:not(#sd) header .sd-hero-sub { margin: 0 !important; color: rgba(255, 255, 255, .92) !important; font-size: clamp(16px, 1.5vw, 24px) !important; line-height: 1.6 !important; font-weight: 600 !important; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
html body:not(#sd) .sd-hero-text .sd-hero-cta { position: static !important; transform: none !important; width: auto !important; justify-content: flex-start !important; margin-top: 26px; }
@media (max-width: 1023px) { .sd-hero-text { max-width: 70%; } }
@media (max-width: 600px) {
  html body:not(#sd) header.sd-has-video::after, html[dir="ltr"] body:not(#sd) header.sd-has-video::after { background: linear-gradient(to top, rgba(0, 24, 69, .88) 0%, rgba(0, 24, 69, .5) 35%, rgba(0, 24, 69, 0) 62%); }
  .sd-hero-text { top: auto; bottom: 7%; transform: none; inset-inline: 6%; max-width: none; text-align: center; }
  html body:not(#sd) .sd-hero-text .sd-hero-cta { justify-content: center !important; margin-top: 18px; }
}

/* hero never taller than the screen (video is cropped, not stretched) */
html body:not(#sd) header[data-v-132d6879] { max-height: calc(100vh - 64px) !important; width: 100% !important; }

/* --- 12. hero full screen on every device [2026-11-29] --- */
html body:not(#sd) header.sd-has-video { aspect-ratio: auto !important; height: calc(100vh - var(--sd-nav-h, 80px)) !important; height: calc(100svh - var(--sd-nav-h, 80px)) !important; min-height: 420px !important; max-height: none !important; width: 100% !important; position: relative !important; overflow: hidden !important; }
html body:not(#sd) header.sd-has-video video.sd-hero-video { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; min-height: 0 !important; aspect-ratio: auto !important; object-fit: cover !important; object-position: center center !important; transform: none !important; margin: 0 !important; }

/* --- 13. ISO accreditation certificates + light motion [2026-11-29] --- */
html body:not(#sd) #home-certificates.sd-iso-section { padding: clamp(56px, 7vw, 96px) 0 !important; background: radial-gradient(1200px 500px at 50% 0%, #0b2a63 0%, #001845 60%, #00112f 100%) !important; overflow: hidden; position: relative; }
#home-certificates.sd-iso-section::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 15% 80%, rgba(236, 38, 53, .18), transparent 40%), radial-gradient(circle at 85% 20%, rgba(212, 175, 55, .14), transparent 40%); }
.sd-iso { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; font-family: var(--sd-font); }
.sd-iso-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 4vw, 56px); }
.sd-iso-kicker { display: inline-block; padding: 6px 14px; border: 1px solid rgba(212, 175, 55, .55); border-radius: 999px; color: #e8c766; font-size: 13px; font-weight: 700; letter-spacing: .12em; direction: ltr; }
html body:not(#sd) .sd-iso .sd-iso-title { margin: 16px 0 12px !important; color: #fff !important; font-size: clamp(28px, 3.2vw, 44px) !important; font-weight: 800 !important; line-height: 1.25 !important; }
html body:not(#sd) .sd-iso .sd-iso-lead { margin: 0 !important; color: rgba(255, 255, 255, .78) !important; font-size: clamp(15px, 1.2vw, 18px) !important; line-height: 1.8 !important; }
.sd-iso-body { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: clamp(24px, 3vw, 44px); align-items: center; }
.sd-iso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.sd-iso figure { margin: 0; }
.sd-iso-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.sd-iso-thumb img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1.414 !important; object-fit: cover !important; }
.sd-iso-poster .sd-iso-thumb img { aspect-ratio: 1100 / 1556 !important; }
.sd-iso-thumb:hover, .sd-iso-thumb:focus-visible { transform: translateY(-8px) scale(1.02); box-shadow: 0 28px 60px rgba(0, 0, 0, .45), 0 0 0 2px rgba(232, 199, 102, .7); outline: none; }
.sd-iso-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); }
.sd-iso-thumb:hover .sd-iso-shine { transition: transform .9s ease; transform: translateX(120%); }
.sd-iso-card figcaption { margin-top: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.sd-iso-card figcaption strong { color: #fff; font-size: clamp(16px, 1.3vw, 19px); font-weight: 800; direction: ltr; }
.sd-iso-card figcaption span { color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.6; }
.sd-iso-card figcaption a { margin-top: 6px; color: #e8c766 !important; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px dashed rgba(232, 199, 102, .6); }
.sd-iso-card figcaption a:hover { color: #fff !important; }
/* light motion: reveal on scroll + gentle float + periodic shine */
.sd-iso-reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.sd-iso-reveal.is-in { opacity: 1; transform: none; }
.sd-iso-card.is-in .sd-iso-thumb { animation: sdIsoFloat 6s ease-in-out var(--f, 0s) infinite; }
.sd-iso-card.is-in .sd-iso-thumb:hover { animation-play-state: paused; }
.sd-iso-poster.is-in .sd-iso-shine { animation: sdIsoShine 7s ease-in-out 1.2s infinite; }
@keyframes sdIsoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sdIsoShine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .sd-iso-reveal { opacity: 1; transform: none; transition: none; } .sd-iso-card.is-in .sd-iso-thumb, .sd-iso-poster.is-in .sd-iso-shine { animation: none; } }
/* lightbox */
.sd-iso-lb { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(0, 12, 34, .92); opacity: 0; transition: opacity .25s; font-family: var(--sd-font); }
.sd-iso-lb.is-open { opacity: 1; }
.sd-iso-lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.sd-iso-lb img { max-width: min(92vw, 820px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; transform: scale(.96); transition: transform .3s; }
.sd-iso-lb.is-open img { transform: none; }
.sd-iso-lb figcaption { margin-top: 12px; display: flex; gap: 18px; align-items: center; color: #fff; font-size: 15px; font-weight: 700; }
.sd-iso-lb figcaption a { color: #e8c766; text-decoration: none; }
.sd-iso-lb-x { position: absolute; top: 14px; inset-inline-end: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.sd-iso-lb-nav { flex: 0 0 auto; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.sd-iso-lb-x:hover, .sd-iso-lb-nav:hover { background: var(--sd-red, #ec2635); }
html[dir="rtl"] .sd-iso-lb-nav { transform: scaleX(-1); }
@media (max-width: 1023px) {
  .sd-iso-body { grid-template-columns: 1fr; }
  .sd-iso-poster { max-width: 340px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .sd-iso-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; gap: 34px; }
  .sd-iso-poster { max-width: 300px; }
  .sd-iso-lb { padding: 12px; gap: 4px; }
  .sd-iso-lb-nav { width: 38px; height: 38px; font-size: 26px; }
  .sd-iso-lb img { max-width: calc(100vw - 100px); }
}

/* --- 14. ISO uniform cards (4 equal cards, no downloads) [2026-11-29] --- */
.sd-iso-body { display: block !important; }
.sd-iso-grid { grid-template-columns: repeat(4, 1fr) !important; max-width: 1180px; margin: 0 auto; }
.sd-iso-thumb img, .sd-iso-card:first-child .sd-iso-thumb img { aspect-ratio: 1 / 1.414 !important; object-fit: cover !important; object-position: center top !important; }
.sd-iso-card.is-in:first-child .sd-iso-shine { animation: sdIsoShine 7s ease-in-out 1.2s infinite; }
.sd-iso-lb figcaption a { display: none !important; }
@media (max-width: 1023px) { .sd-iso-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 640px; } }
@media (max-width: 600px) { .sd-iso-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: none; gap: 22px 14px !important; } .sd-iso-card figcaption span { font-size: 12px; } }

/* --- 15. home blog – design A [2026-11-29] --- */
html body:not(#sd) .page-content.sd-blog-section { background: #f6f7fb !important; padding: clamp(56px, 6vw, 88px) 0 !important; }
.page-content.sd-blog-section > :not(.sd-blog) { display: none !important; }
.sd-blog { max-width: 1200px; margin: 0 auto; padding: 0 24px; font-family: var(--sd-font); color: #001845; display: flex; flex-direction: column; gap: 36px; }
.sd-blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.sd-blog-intro { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.sd-blog-kicker { display: flex; align-items: center; gap: 10px; color: #d01f2c; font-weight: 700; font-size: 16px; }
.sd-blog-kicker::before { content: ''; width: 28px; height: 3px; background: #ec2635; border-radius: 2px; }
html body:not(#sd) .sd-blog .sd-blog-title { margin: 0 !important; font-size: clamp(26px, 3vw, 42px) !important; line-height: 1.3 !important; font-weight: 800 !important; color: #001845 !important; }
html body:not(#sd) .sd-blog .sd-blog-lead { margin: 0 !important; font-size: clamp(15px, 1.2vw, 17px) !important; line-height: 1.8 !important; color: #4a5672 !important; }
.sd-blog-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.sd-blog-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-blog-pill { font-family: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 6px 18px; border-radius: 999px; border: 1px solid #d5dae6; background: #fff; color: #001845; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sd-blog-pill:hover { border-color: #001845; }
.sd-blog-pill.is-on { background: #001845; border-color: #001845; color: #fff; font-weight: 700; }
html body:not(#sd) .sd-blog a.sd-blog-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: #d01f2c !important; text-decoration: none; }
html[dir="ltr"] .sd-blog svg { transform: scaleX(-1); }
.sd-blog-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
html body:not(#sd) .sd-blog a.sd-blog-feat { position: relative; display: block; min-height: 520px; border-radius: 24px; overflow: hidden; background: #001845; box-shadow: 0 24px 60px rgba(0, 24, 69, .18); text-decoration: none; }
.sd-blog-feat img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sd-blog-feat:hover img { transform: scale(1.05); }
.sd-blog-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 24, 69, .95) 0%, rgba(0, 24, 69, .55) 40%, rgba(0, 24, 69, 0) 68%); }
.sd-blog-badge { position: absolute; top: 22px; inset-inline-start: 22px; padding: 6px 14px; border-radius: 999px; background: #ec2635; color: #fff; font-size: 13px; font-weight: 700; }
.sd-blog-feat-body { position: absolute; inset-inline: 34px; bottom: 32px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.sd-blog-feat .sd-blog-meta { color: rgba(255, 255, 255, .82); }
.sd-blog-feat-title { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.35; font-weight: 800; color: #fff; }
.sd-blog-read { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: 6px; padding: 12px 22px; border-radius: 999px; background: #fff; color: #001845; font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.sd-blog-feat:hover .sd-blog-read { background: #ec2635; color: #fff; }
.sd-blog-side { display: flex; flex-direction: column; gap: 14px; }
html body:not(#sd) .sd-blog a.sd-blog-item { display: flex; gap: 20px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(0, 24, 69, .06); text-decoration: none; color: #001845; transition: transform .3s, box-shadow .3s; }
.sd-blog-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 24, 69, .12); }
.sd-blog-item img { width: 140px !important; height: 100px !important; border-radius: 12px; object-fit: cover !important; flex: none; }
.sd-blog-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.sd-blog-meta { font-size: 13px; color: #6b7590; }
.sd-blog-item-title { font-size: 18px; font-weight: 700; line-height: 1.5; color: #001845; }
.sd-blog-item:hover .sd-blog-item-title { color: #d01f2c; }
.sd-blog-num { font-size: 34px; font-weight: 800; color: #dfe4ee; flex: none; width: 54px; text-align: center; }
html body:not(#sd) .sd-blog a.sd-blog-cta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 18px; background: #001845; color: #fff; text-decoration: none; }
.sd-blog-cta strong { display: block; font-size: 18px; font-weight: 700; color: #fff; }
.sd-blog-cta small { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); }
.sd-blog-cta-btn { padding: 10px 20px; border-radius: 999px; background: #ec2635; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sd-blog-empty { display: flex; align-items: center; justify-content: center; min-height: 320px; border-radius: 24px; background: #fff; color: #6b7590; font-size: 16px; }
@media (max-width: 1023px) {
  .sd-blog-grid { grid-template-columns: 1fr; }
  .sd-blog-tools { align-items: flex-start; }
  html body:not(#sd) .sd-blog a.sd-blog-feat { min-height: 440px; }
}
@media (max-width: 600px) {
  .sd-blog { padding: 0 18px; gap: 22px; }
  .sd-blog-pills { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100vw - 36px); scrollbar-width: none; }
  .sd-blog-pill { white-space: nowrap; font-size: 13px; padding: 6px 15px; }
  html body:not(#sd) .sd-blog a.sd-blog-feat { min-height: 420px; border-radius: 20px; }
  .sd-blog-feat-body { inset-inline: 20px; bottom: 22px; }
  .sd-blog-item { gap: 14px; padding: 10px; }
  .sd-blog-item img { width: 96px !important; height: 78px !important; }
  .sd-blog-item-title { font-size: 15px; }
  .sd-blog-num { display: none; }
  html body:not(#sd) .sd-blog a.sd-blog-cta { flex-direction: column; align-items: flex-start; }
}

/* --- 16. blog featured: image above text, no overlap with the image's own lettering --- */
html body:not(#sd) .sd-blog a.sd-blog-feat { min-height: 0 !important; display: flex !important; flex-direction: column; }
.sd-blog-feat img { position: relative !important; inset: auto; display: block; aspect-ratio: 4600 / 4000 !important; height: auto !important; }
.sd-blog-shade { display: none; }
.sd-blog-feat-body { position: relative !important; inset: auto !important; bottom: auto !important; padding: 24px 30px 28px; background: #001845; }
.sd-blog-item img { width: 120px !important; height: 104px !important; }
@media (max-width: 600px) { .sd-blog-feat-body { padding: 18px 20px 22px; } .sd-blog-item img { width: 90px !important; height: 78px !important; } }

/* --- 17. blog side items fill the column height --- */
@media (min-width: 1024px) {
  html body:not(#sd) .sd-blog a.sd-blog-item { flex: 1 1 0; align-items: stretch; padding: 14px; }
  .sd-blog-item img { height: 100% !important; width: auto !important; max-width: 52%; min-height: 120px; aspect-ratio: 4600 / 4000 !important; object-fit: cover !important; }
  .sd-blog-item-body { justify-content: center; }
  .sd-blog-item-title { font-size: 20px; }
  .sd-blog-num { align-self: center; }
}

/* --- 18. blog title on one line --- */
.sd-blog-intro { max-width: 760px !important; }
html body:not(#sd) .sd-blog .sd-blog-title { font-size: clamp(22px, 2.3vw, 34px) !important; }
@media (min-width: 1024px) { html body:not(#sd) .sd-blog .sd-blog-title { white-space: nowrap; } }

/* --- 19. blog images: show the whole picture, filled (no side crop) [2026-11-29] --- */
html body:not(#sd) div.data.bg-cover[style*="/storage/"] { height: auto !important; aspect-ratio: 4600 / 4000; width: 100% !important; max-width: 860px; margin-inline: auto !important; background-size: cover !important; background-position: center !important; background-color: #f4f5f7; }
html body:not(#sd) a.blog .image-contain { height: auto !important; aspect-ratio: 4600 / 4000; }
html body:not(#sd) a.blog .image-contain img { object-fit: cover !important; width: 100% !important; height: 100% !important; }
