/* SDFI — global styles (Bootstrap 5 extensions) */
:root {
  --sdfi-primary: #0d6efd;
  --sdfi-success: #198754;
  --sdfi-nav-active: #ffc107;
  --sdfi-dropdown-hover-bg: rgba(13, 110, 253, 0.09);
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.tracking-wide {
  letter-spacing: 0.06em;
}

body {
  padding-top: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Injected shell — ensure full-bleed width on phones (avoids narrow column + white edge). */
#site-header {
  width: 100%;
  max-width: 100%;
}

.bg-sdfi-primary {
  background-color: var(--sdfi-primary) !important;
}

.sdfi-navbar {
  background:
    linear-gradient(118deg, #0b2f61 0%, #0e4f9d 42%, #0a65d9 78%, #0b4fa8 100%) !important;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
  border-bottom: 1px solid rgba(255, 193, 7, 0.58);
  backdrop-filter: blur(7px);
  min-height: 3.75rem;
  align-items: center;
  position: relative;
  overflow: visible;
  isolation: isolate;
  animation: sdfi-navbar-bg-shift 16s ease-in-out infinite alternate;
}

.sdfi-navbar::before,
.sdfi-navbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Glossy highlight pass for a subtle 3D bar look */
.sdfi-navbar::before {
  z-index: 0;
  background:
    radial-gradient(120% 90% at 12% -30%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 36%, transparent 62%),
    radial-gradient(90% 70% at 88% 130%, rgba(1, 22, 62, 0.4) 0%, transparent 58%);
  mix-blend-mode: screen;
  animation: sdfi-navbar-sheen 12s ease-in-out infinite;
}

/* Moving aurora layer to add depth/motion */
.sdfi-navbar::after {
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(42% 58% at 22% 48%, rgba(59, 130, 246, 0.48) 0%, transparent 70%),
    radial-gradient(36% 48% at 78% 42%, rgba(14, 165, 233, 0.36) 0%, transparent 72%),
    radial-gradient(34% 42% at 56% 78%, rgba(37, 99, 235, 0.33) 0%, transparent 72%);
  filter: blur(10px);
  animation: sdfi-navbar-aurora 14s linear infinite;
}

/* Fixed header: narrow top utility bar + main navbar */
.sdfi-header-stack {
  z-index: 1090;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  /* Avoid transform here — it creates a containing block for position:fixed children
     (e.g. modals), which clips them to the header height. */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.sdfi-header-stack .sdfi-topbar,
.sdfi-header-stack .sdfi-navbar {
  width: 100%;
  max-width: 100%;
}

.sdfi-topbar {
  background: linear-gradient(90deg, #071a33 0%, #0a2b53 50%, #0d3f74 100%);
  border-bottom: 1px solid rgba(220, 53, 69, 0.45);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: sdfi-topbar-bg-shift 14s ease-in-out infinite alternate;
}

.sdfi-topbar::before,
.sdfi-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sdfi-topbar::before {
  z-index: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 56%),
    radial-gradient(60% 80% at 84% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 65%);
  mix-blend-mode: screen;
  animation: sdfi-topbar-sheen 9s ease-in-out infinite;
}

.sdfi-topbar::after {
  z-index: 0;
  opacity: 0.42;
  background:
    radial-gradient(50% 90% at 18% 58%, rgba(59, 130, 246, 0.36) 0%, transparent 72%),
    radial-gradient(42% 76% at 74% 42%, rgba(14, 116, 144, 0.3) 0%, transparent 72%);
  filter: blur(8px);
  animation: sdfi-topbar-aurora 11s linear infinite;
}

.sdfi-topbar-inner,
.sdfi-navbar > .sdfi-nav-container {
  position: relative;
  z-index: 1;
}

@keyframes sdfi-navbar-bg-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes sdfi-navbar-sheen {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-3%) translateY(0);
  }
  50% {
    opacity: 0.78;
    transform: translateX(3%) translateY(-1%);
  }
}

@keyframes sdfi-navbar-aurora {
  0% {
    transform: translateX(-4%) scale(1);
  }
  50% {
    transform: translateX(3%) scale(1.04);
  }
  100% {
    transform: translateX(-4%) scale(1);
  }
}

@keyframes sdfi-topbar-bg-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes sdfi-topbar-sheen {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-4%);
  }
  50% {
    opacity: 0.72;
    transform: translateX(4%);
  }
}

@keyframes sdfi-topbar-aurora {
  0% {
    transform: translateX(4%) scale(1);
  }
  50% {
    transform: translateX(-3%) scale(1.04);
  }
  100% {
    transform: translateX(4%) scale(1);
  }
}

.sdfi-topbar-inner {
  min-height: 2rem;
}

.sdfi-topbar-contact {
  gap: 0.35rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
}

@media (min-width: 576px) {
  .sdfi-topbar-contact {
    font-size: 0.8rem;
  }
}

.sdfi-topbar-contact__glyph {
  font-size: 0.82rem;
  opacity: 0.92;
  margin-right: 0.15rem;
}

.sdfi-topbar-contact__line {
  white-space: nowrap;
}

.sdfi-topbar-contact__pipe {
  margin-left: 0.35rem;
  margin-right: 0.25rem;
}

/* Keep "| Mobile :" together so the divider never wraps onto its own line */
.sdfi-topbar-phone-mobile {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .sdfi-topbar-phone-lines {
    row-gap: 0.08rem;
  }

  .sdfi-topbar-phone-mobile {
    flex-wrap: wrap;
    white-space: normal;
  }

  .sdfi-topbar-phone-mobile__sep {
    display: none;
  }

  .sdfi-topbar-phone-mobile__label {
    padding-left: 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
  }
}

.sdfi-topbar-contact__link {
  color: inherit !important;
  text-decoration: none;
  font-weight: 600;
}

.sdfi-topbar-contact__link:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* Avoid splitting sisdoc…@gmail. and com onto separate lines (no break-all) */
.sdfi-topbar-contact__email {
  word-break: normal;
  overflow-wrap: normal;
}

@media (min-width: 576px) {
  .sdfi-topbar-contact__email {
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .sdfi-topbar-contact__email {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.sdfi-topbar-social {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: #0d3f74 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.sdfi-topbar-social--facebook {
  color: #1877f2 !important;
}

.sdfi-topbar-social--youtube {
  color: #ff0000 !important;
}

.sdfi-topbar-social--linkedin {
  color: #0a66c2 !important;
}

.sdfi-topbar-social--x {
  color: #111111 !important;
}

.sdfi-topbar-social--instagram {
  color: #e4405f !important;
}

.sdfi-topbar-social:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sdfi-topbar-social:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

.sdfi-topbar-sep {
  display: inline-block;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 200;
  font-size: 0.95rem;
  line-height: 1;
  margin: 0 0.1rem;
  user-select: none;
}

.sdfi-topbar-search-btn {
  background: transparent !important;
  border: none;
  color: #fff;
  padding: 0.2rem;
  font-size: 1.125rem;
  line-height: 1;
  border-radius: 0.35rem;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.sdfi-topbar-search-btn:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff;
}

.sdfi-global-search-modal.modal {
  z-index: 12250 !important;
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-topbar,
  .sdfi-navbar,
  .sdfi-topbar::before,
  .sdfi-topbar::after,
  .sdfi-navbar::before,
  .sdfi-navbar::after {
    animation: none !important;
  }

  .sdfi-topbar-social:hover {
    transform: none;
  }
}

.sdfi-navbar > .sdfi-nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  max-width: min(100%, 1440px);
  margin-left: auto;
  margin-right: auto;
}

.sdfi-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 0.75rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  min-width: 0;
}

.sdfi-navbar .navbar-collapse {
  flex-grow: 1;
  justify-content: flex-end;
}

.sdfi-navbar .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.55rem;
  padding: 0.45rem 0.62rem;
  transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Bar links only — white on hover (do not apply to .dropdown-item: those sit on a light panel) */
.sdfi-navbar .nav-link:hover,
.sdfi-navbar .nav-link:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Dropdown panels: light surface, dark text; gold accent on hover */
.sdfi-navbar .dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.9rem;
  padding: 0.4rem;
  margin-top: 0.35rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2), 0 4px 10px rgba(15, 23, 42, 0.08);
  min-width: 13rem;
  backdrop-filter: blur(6px);
}

.sdfi-navbar .dropdown-item {
  color: #1e293b !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.5rem;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sdfi-navbar .dropdown-item:hover,
.sdfi-navbar .dropdown-item:focus {
  color: #0a58ca !important;
  background-color: var(--sdfi-dropdown-hover-bg) !important;
  box-shadow: inset 3px 0 0 var(--sdfi-nav-active);
}

.sdfi-navbar .dropdown-item:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.45);
  outline-offset: 1px;
}

.sdfi-navbar .dropdown-divider {
  margin: 0.35rem 0.5rem;
  opacity: 0.12;
}

@media (max-width: 1199.98px) {
  /* Keep logo narrow enough that the menu button stays in the viewport (not clipped off-screen) */
  .sdfi-navbar > .sdfi-nav-container {
    gap: 0.35rem;
    align-items: center;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .sdfi-navbar .navbar-brand {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
    margin-right: 0;
    overflow: hidden;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  /* Use % of the flex row — avoids 100vw scrollbar/overflow gaps on mobile Chrome. */
  .sdfi-navbar-brand-img {
    max-width: 100%;
    padding-right: 0;
  }

  .sdfi-navbar-toggler {
    margin-left: auto;
    margin-top: 0;
    margin-right: max(0px, env(safe-area-inset-right, 0px));
    align-self: center;
  }

  .sdfi-navbar .dropdown-menu {
    width: 100%;
    min-width: 0;
    margin-top: 0.25rem;
  }

  .sdfi-navbar .navbar-collapse {
    flex-basis: 100%;
    margin-top: 0.35rem;
    padding: 0.35rem 0.5rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-height: calc(100vh - 8.25rem);
    max-height: calc(100dvh - 8.25rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Collapsed nav: sub-menus in document flow (push items down) — overrides Popper inline styles. */
  .sdfi-navbar .navbar-collapse .nav-item.dropdown {
    width: 100%;
  }

  .sdfi-navbar .navbar-collapse .dropdown-menu,
  .sdfi-navbar .navbar-collapse .dropdown-menu.show {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    margin-left: 0;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(248, 250, 252, 0.98);
    /* Long submenus: scroll inside the light panel (separate from main menu scroll). */
    max-height: min(17.5rem, calc(100vh - 14rem));
    max-height: min(17.5rem, calc(100dvh - 14rem));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .sdfi-navbar .navbar-collapse .dropdown-menu .dropdown-item {
    color: #1e293b !important;
  }
}

/* Phones: mini header — one row, logo + SDFI on the left, menu on the right. */
@media (max-width: 575.98px) {
  .sdfi-header-stack .sdfi-nav-container.px-3 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .sdfi-topbar-inner {
    min-height: 0;
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
  }

  .sdfi-topbar-contact {
    font-size: 0.58rem;
    line-height: 1.2;
    gap: 0.1rem 0.35rem;
  }

  .sdfi-topbar-contact__glyph {
    font-size: 0.65rem;
    margin-right: 0.08rem;
  }

  .sdfi-topbar-social {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.72rem;
  }

  .sdfi-topbar-search-btn {
    font-size: 0.88rem;
    padding: 0.12rem;
  }

  .sdfi-topbar-sep {
    font-size: 0.8rem;
    margin: 0 0.05rem;
  }

  .sdfi-navbar {
    min-height: 0;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.22);
  }

  .sdfi-logo-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .sdfi-navbar-brand-img {
    height: 30px;
    max-height: 34px;
  }

  .sdfi-brand-text {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    max-width: none;
  }

  .sdfi-navbar > .sdfi-nav-container {
    align-items: center;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .sdfi-navbar-toggler {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.3rem 0.4rem;
  }

  .sdfi-menu-icon {
    width: 20px;
    height: 15px;
    gap: 4px;
  }

  /* Offset main content below fixed stack (top bar height varies when contact wraps). */
  .navbar-spacer,
  .sdfi-navbar-spacer {
    height: calc(2.85rem + 2.7rem);
  }
}

/* Uniform bar: current page = white + gold underline (not full yellow text) */
.sdfi-navbar .nav-link.active,
.sdfi-navbar .dropdown-toggle.active-nav {
  color: #fff !important;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--sdfi-nav-active);
  background: rgba(255, 255, 255, 0.1);
}

.sdfi-navbar .dropdown-item.active {
  background-color: var(--sdfi-primary) !important;
  color: #fff !important;
  box-shadow: none;
}

.sdfi-navbar .dropdown-item.active:hover,
.sdfi-navbar .dropdown-item.active:focus {
  color: #fff !important;
  background-color: #0b5ed7 !important;
  box-shadow: none;
}

/* Custom menu icon (phones/tablets only — toggler hidden by Bootstrap from xl / 1200px up) */
.sdfi-navbar-toggler {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.sdfi-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.sdfi-navbar .navbar-toggler-icon {
  display: none !important;
}

.sdfi-menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 18px;
}

.sdfi-menu-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #fff;
  border-radius: 1px;
}

.sdfi-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sdfi-logo-svg {
  flex-shrink: 0;
}

/* Full brand image (icon + title): IMG/logo.png — see js/layout.js */
.sdfi-navbar-brand-img {
  display: block;
  height: 44px;
  width: auto;
  max-height: 50px;
  max-width: min(65vw, 280px);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .sdfi-navbar-brand-img {
    height: 48px;
    max-height: 52px;
    max-width: min(50vw, 340px);
  }
}

@media (min-width: 1200px) {
  .sdfi-navbar-brand-img {
    max-width: 300px;
    height: 46px;
    max-height: 50px;
  }
}

/* Single horizontal row on desktop (xl+); phones/tablets use collapsible menu + custom icon */
@media (min-width: 1200px) {
  .sdfi-navbar-nav.navbar-nav {
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: center;
    column-gap: 0.1rem;
  }

  .sdfi-navbar .nav-link {
    font-size: 0.8125rem;
    padding: 0.5rem 0.44rem;
    white-space: nowrap;
  }

  .sdfi-navbar .dropdown-toggle::after {
    margin-left: 0.2em;
    vertical-align: 0.12em;
  }
}

/* Space below combined top bar + main navbar */
.navbar-spacer,
.sdfi-navbar-spacer {
  height: calc(2.4rem + 4.25rem);
}

@media (min-width: 576px) {
  .navbar-spacer,
  .sdfi-navbar-spacer {
    height: calc(2.5rem + 4.5rem);
  }
}

.sdfi-brand-text {
  line-height: 1.15;
  font-size: 0.95rem;
}

@media (min-width: 992px) {
  .sdfi-brand-text {
    font-size: 1.05rem;
  }
}

/* Hero */
.sdfi-hero {
  position: relative;
  min-height: 85vh;
  min-height: 85dvh;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sdfi-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a58ca;
}

/* Fallback sits under the video so the MP4 is always painted on top when it loads */
.sdfi-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 45%, #6ea8fe 100%);
  background-size: 200% 200%;
  animation: sdfi-hero-gradient 12s ease infinite;
}

.sdfi-hero-video-wrap .sdfi-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Background video: no browser UI (PiP / play overlay) — attributes + JS also set */
.sdfi-hero-video::-webkit-media-controls {
  display: none !important;
}

.sdfi-hero-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.sdfi-hero-video::-webkit-media-controls-panel {
  display: none !important;
}

.sdfi-hero-video::-webkit-media-controls-play-button,
.sdfi-hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.sdfi-hero-video.sdfi-hero-video--failed {
  display: none;
}

@keyframes sdfi-hero-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.sdfi-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.sdfi-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.sdfi-hero-title {
  font-size: clamp(1.35rem, 5.5vw, 2.75rem);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sdfi-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 36rem;
  margin: 1rem auto 1.5rem;
  opacity: 0.95;
}

.sdfi-hero-accent {
  display: inline-block;
  animation: sdfi-slide-glow 2.5s ease-in-out infinite;
}

@keyframes sdfi-slide-glow {
  0%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.85;
    transform: translateX(6px);
  }
}

/* Page content */
.page-main {
  min-height: 50vh;
}

.content-heading {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  color: var(--sdfi-primary);
  margin-bottom: 1.25rem;
}

.content-heading.dark {
  color: #212529;
}

.page-section {
  padding: 3.5rem 0;
}

.page-section.alt-bg {
  background: #f8f9fa;
}

.sdfi-home-stats {
  padding: 2.5rem 0;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(8, 29, 63, 0.88), rgba(10, 88, 202, 0.84)),
    url("../IMG/background.jpg") center / cover no-repeat;
}

.sdfi-home-stats__card {
  height: 100%;
  border-radius: 0.85rem;
  padding: 1.25rem 0.8rem 1.1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 24px rgba(5, 22, 50, 0.22);
  transform: translateY(14px);
  opacity: 0;
  animation: sdfiStatCardIn 0.7s ease forwards;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.sdfi-home-stats .col-sm-6:nth-child(1) .sdfi-home-stats__card { animation-delay: 0.05s; }
.sdfi-home-stats .col-sm-6:nth-child(2) .sdfi-home-stats__card { animation-delay: 0.12s; }
.sdfi-home-stats .col-sm-6:nth-child(3) .sdfi-home-stats__card { animation-delay: 0.19s; }
.sdfi-home-stats .col-sm-6:nth-child(4) .sdfi-home-stats__card { animation-delay: 0.26s; }
.sdfi-home-stats .col-sm-6:nth-child(5) .sdfi-home-stats__card { animation-delay: 0.33s; }
.sdfi-home-stats .col-sm-6:nth-child(6) .sdfi-home-stats__card { animation-delay: 0.4s; }
.sdfi-home-stats .col-sm-6:nth-child(7) .sdfi-home-stats__card { animation-delay: 0.47s; }
.sdfi-home-stats .col-sm-6:nth-child(8) .sdfi-home-stats__card { animation-delay: 0.54s; }
.sdfi-home-stats .col-sm-6:nth-child(9) .sdfi-home-stats__card { animation-delay: 0.61s; }
.sdfi-home-stats .col-sm-6:nth-child(10) .sdfi-home-stats__card { animation-delay: 0.68s; }

.sdfi-home-stats__card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 34px rgba(7, 25, 58, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.sdfi-home-stats__number {
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.sdfi-home-stats__label {
  margin-top: 0.45rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.sdfi-highlights-agbm-link {
  border-radius: 0.55rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
  animation: sdfiPulseButton 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sdfi-highlights-agbm-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.33);
}

@keyframes sdfiStatCardIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sdfiPulseButton {
  0%, 100% {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26), 0 0 0 0 rgba(255, 193, 7, 0.38);
  }
  50% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 193, 7, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-home-stats__card,
  .sdfi-highlights-agbm-link {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Vision / Mission boxes */
.vm-box {
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  min-height: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vm-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.vm-box.vision {
  background: var(--sdfi-primary);
}

.vm-box.mission {
  background: var(--sdfi-success);
}

.vm-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.vm-box-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.vm-box-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.vm-box-icon i {
  font-size: 1.35rem;
  line-height: 1;
}

/* Cards */
.sdfi-card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 0.75rem;
}

.sdfi-card-lift:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.18) !important;
}

.btn-history-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-history-cta:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}

/* PDF download cards */
.sdfi-doc-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sdfi-doc-card .pdf-icon {
  width: 52px;
  height: 64px;
  background: linear-gradient(180deg, #e53935 0%, #c62828 100%);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding-bottom: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.35);
}

.sdfi-doc-card .doc-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Timeline */
.sdfi-timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
}

.sdfi-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--sdfi-primary), var(--sdfi-success));
  border-radius: 4px;
}

.sdfi-timeline li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 2rem;
}

.sdfi-timeline .timeline-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--sdfi-primary);
  z-index: 1;
}

.sdfi-timeline .timeline-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sdfi-timeline .timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.sdfi-timeline .timeline-year {
  background: var(--sdfi-primary);
  color: #fff;
  font-weight: 800;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
}

/* Footer */
.sdfi-footer {
  background: #0b5ed7;
  color: rgba(255, 255, 255, 0.92);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

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

.sdfi-footer a:hover {
  color: var(--sdfi-nav-active);
}

.sdfi-footer .social a {
  font-size: 1.35rem;
  margin-right: 0.75rem;
}

/* Match header: white-circle social icons; override footer link hover tint */
.sdfi-footer .sdfi-footer-social-strip .sdfi-topbar-social:hover,
.sdfi-footer .sdfi-footer-social-strip .sdfi-topbar-social:focus-visible {
  text-decoration: none;
}

.sdfi-footer-address {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.sdfi-footer-address__text {
  margin-bottom: 0;
  font-style: normal;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.93);
}

/* Board / staff photos */
.sdfi-profile-card img {
  object-fit: cover;
  height: 220px;
  width: 100%;
}

/* Office staff portraits: auto-center and keep face/upper body visible */
.sdfi-office-card {
  overflow: hidden;
  max-width: 260px;
  margin: 0 auto;
}

.sdfi-office-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #f1f5f9;
}

@media (min-width: 992px) {
  .sdfi-office-photo {
    height: 240px;
  }
}

/* Activities by Region — unified banner format */
.sdfi-region-page {
  max-width: 1080px;
}

.sdfi-region-hero-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.9rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.sdfi-region-content {
  margin-top: 1.5rem;
  color: #475569;
  line-height: 1.9;
  font-size: 1.02rem;
}

/* Recent events carousel */
.sdfi-events-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.sdfi-events-viewport {
  overflow: hidden;
  padding: 0.25rem;
}

.sdfi-events-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.55s ease;
  will-change: transform;
}

.sdfi-events-item {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}

.sdfi-events-item .card-img-top {
  object-fit: cover;
  height: 210px;
}

.sdfi-events-arrow {
  border: 0;
  background: transparent;
  color: #d62828;
  font-size: 2.2rem;
  line-height: 1;
  padding: 0.25rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sdfi-events-arrow:hover,
.sdfi-events-arrow:focus-visible {
  color: #b71c1c;
  transform: scale(1.08);
}

.sdfi-events-arrow:focus-visible {
  outline: 2px solid rgba(214, 40, 40, 0.4);
  outline-offset: 2px;
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .sdfi-events-item {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 575.98px) {
  .sdfi-events-carousel {
    grid-template-columns: auto 1fr auto;
    gap: 0.35rem;
  }

  .sdfi-events-item {
    flex-basis: 100%;
  }

  .sdfi-events-arrow {
    font-size: 1.9rem;
  }
}

/* Objectives list */
.objectives-list li {
  margin-bottom: 0.75rem;
}

/* ——— Contact page (dark two-column + motion) ——— */
.sdfi-contact-page {
  background: #030712;
  color: #e2e8f0;
}

.sdfi-contact-main {
  min-height: calc(100vh - 4.5rem);
  padding-bottom: 2rem;
}

.sdfi-contact-shell {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(28px);
  animation: sdfi-contact-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sdfi-contact-shell .sdfi-contact-info {
  animation: sdfi-contact-enter-col 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.sdfi-contact-shell .sdfi-contact-form-panel {
  animation: sdfi-contact-enter-col 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

@keyframes sdfi-contact-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sdfi-contact-enter-col {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sdfi-contact-info {
  border-radius: 1.15rem;
  padding: 2rem 1.75rem;
  background: linear-gradient(165deg, #1d4ed8 0%, #2563eb 38%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 1200px) {
  .sdfi-contact-info {
    border-radius: 1.15rem 0 0 1.15rem;
    margin-right: -1px;
  }

  .sdfi-contact-form-panel {
    border-radius: 0 1.15rem 1.15rem 0;
  }
}

.sdfi-contact-info:hover {
  box-shadow: 0 28px 56px rgba(37, 99, 235, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.sdfi-contact-info-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  line-height: 1.15;
}

.sdfi-contact-info-block {
  margin-bottom: 1.5rem;
}

.sdfi-contact-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.88;
  margin-bottom: 0.35rem;
}

.sdfi-contact-info-text {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.96;
}

.sdfi-contact-info-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.sdfi-contact-info-text a:hover {
  opacity: 0.85;
}

.sdfi-contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.sdfi-contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.15rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sdfi-contact-social-link:hover {
  color: #fff;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sdfi-contact-form-panel {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.15rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1200px) {
  .sdfi-contact-form-panel {
    border-left-color: transparent;
  }
}

.sdfi-contact-form-panel:focus-within {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.sdfi-float-wrap {
  position: relative;
  --sdfi-float-pad-x: 0.85rem;
  --sdfi-float-pad-y: 0.65rem;
}

.sdfi-float-wrap--grow {
  flex: 1;
  min-width: 0;
}

/* Grid: select cannot steal min-intrinsic width from the number field (fixes floating label jumping to the edge). */
.sdfi-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 6.75rem) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

@media (max-width: 380px) {
  .sdfi-phone-row {
    grid-template-columns: 1fr;
  }
}

.sdfi-phone-cc {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 0.55rem;
  padding-right: 1.75rem;
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  cursor: pointer;
  appearance: auto;
}

.sdfi-phone-cc.sdfi-contact-input {
  padding-top: 0.62rem;
}

.sdfi-phone-row .sdfi-float-wrap--grow {
  flex: unset;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.sdfi-contact-input {
  display: block;
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #020617;
  color: #f1f5f9;
  padding: 1.15rem var(--sdfi-float-pad-x) 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sdfi-contact-input::placeholder {
  color: transparent;
}

.sdfi-contact-input:hover {
  border-color: rgba(96, 165, 250, 0.45);
}

.sdfi-contact-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
  background: #020617;
  color: #f8fafc;
}

.sdfi-contact-textarea {
  min-height: 8.5rem;
  resize: vertical;
  padding-top: 1.35rem;
}

.sdfi-float-wrap--textarea .sdfi-float-label {
  top: 1rem;
  transform: none;
}

.sdfi-float-label {
  position: absolute;
  left: var(--sdfi-float-pad-x);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: #94a3b8;
  pointer-events: none;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  line-height: 1.2;
}

.sdfi-float-wrap:focus-within .sdfi-float-label,
.sdfi-float-wrap .sdfi-contact-input:focus + .sdfi-float-label,
.sdfi-float-wrap .sdfi-contact-input:not(:placeholder-shown) + .sdfi-float-label,
.sdfi-float-wrap .sdfi-contact-textarea:focus + .sdfi-float-label,
.sdfi-float-wrap .sdfi-contact-textarea:not(:placeholder-shown) + .sdfi-float-label {
  top: 0.45rem;
  transform: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #60a5fa;
}

.sdfi-float-wrap--textarea:focus-within .sdfi-float-label,
.sdfi-float-wrap--textarea .sdfi-contact-textarea:focus + .sdfi-float-label,
.sdfi-float-wrap--textarea .sdfi-contact-textarea:not(:placeholder-shown) + .sdfi-float-label {
  top: 0.55rem;
}

.sdfi-contact-check {
  padding-left: 0.15rem;
}

.sdfi-contact-check .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2em;
  border-color: rgba(148, 163, 184, 0.55);
  background-color: #020617;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sdfi-contact-check .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.sdfi-contact-check .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

.sdfi-contact-check-label {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  cursor: pointer;
}

.sdfi-contact-privacy-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sdfi-contact-privacy-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.sdfi-contact-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 0.65rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sdfi-contact-submit:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
}

.sdfi-contact-submit:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.sdfi-contact-submit:disabled {
  cursor: wait;
  opacity: 0.92;
}

.sdfi-contact-submit-text,
.sdfi-contact-submit-spinner,
.sdfi-contact-submit-check {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sdfi-contact-submit-spinner {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  animation: none;
  pointer-events: none;
}

.sdfi-contact-submit-check {
  position: absolute;
  font-size: 1.35rem;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.sdfi-contact-submit.is-loading .sdfi-contact-submit-text {
  opacity: 0;
  transform: scale(0.92);
}

.sdfi-contact-submit.is-loading .sdfi-contact-submit-spinner {
  opacity: 1;
  animation: sdfi-spin 0.7s linear infinite;
}

.sdfi-contact-submit.is-success .sdfi-contact-submit-text,
.sdfi-contact-submit.is-success .sdfi-contact-submit-spinner {
  opacity: 0;
}

.sdfi-contact-submit.is-success .sdfi-contact-submit-check {
  opacity: 1;
  transform: scale(1);
  animation: sdfi-check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sdfi-spin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes sdfi-check-pop {
  0% {
    transform: scale(0.4);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-contact-shell,
  .sdfi-contact-shell .sdfi-contact-info,
  .sdfi-contact-shell .sdfi-contact-form-panel {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .sdfi-contact-submit:hover:not(:disabled) {
    transform: none;
  }

  .sdfi-contact-social-link:hover {
    transform: none;
  }

  .sdfi-contact-submit.is-loading .sdfi-contact-submit-spinner {
    animation: none;
    opacity: 0.85;
  }
}

/* ——— Gallery page ——— */
.sdfi-gallery-page {
  background: #f1f5f9;
}

.sdfi-gallery-hero {
  padding-top: 2.25rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .sdfi-gallery-hero {
    padding-top: 2.75rem;
    padding-bottom: 0.75rem;
  }
}

.sdfi-gallery-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sdfi-gallery-sub {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.55;
}

.sdfi-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.sdfi-gallery-filter-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sdfi-gallery-filter-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.sdfi-gallery-filter-btn:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.45);
  outline-offset: 2px;
}

.sdfi-gallery-filter-btn.is-active {
  background: var(--sdfi-primary);
  color: #fff;
  border-color: var(--sdfi-primary);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.sdfi-gallery-filter-btn.is-active:hover {
  color: #fff;
  border-color: #0b5ed7;
  background: #0b5ed7;
}

.sdfi-gallery-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sdfi-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

/* Frame: set data-gallery-aspect="landscape" | "portrait" | "square" on the wrapper */
.sdfi-gallery-card-visual {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  background: #0f172a;
  overflow: hidden;
}

.sdfi-gallery-card-visual[data-gallery-aspect="landscape"] {
  aspect-ratio: 16 / 9;
}

.sdfi-gallery-card-visual[data-gallery-aspect="portrait"] {
  aspect-ratio: 3 / 4;
}

.sdfi-gallery-card-visual[data-gallery-aspect="square"] {
  aspect-ratio: 1 / 1;
}

/* Optional: crop to fill the frame (default shows full image with letterboxing) */
.sdfi-gallery-card-visual[data-gallery-fit="cover"] .sdfi-gallery-card-img {
  object-fit: cover;
}

.sdfi-gallery-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.sdfi-gallery-card-cap {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.45;
}

.sdfi-gallery-item[hidden] {
  display: none !important;
}

.sdfi-gallery-cta {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 55%, #084298 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 2.75rem;
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.25);
}

.sdfi-gallery-cta-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.sdfi-gallery-cta-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.sdfi-gallery-cta a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sdfi-gallery-cta a:hover {
  color: #fde68a;
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-gallery-card:hover {
    transform: none;
  }
}

/* ——— Annual report (dark gallery cards) ——— */
.sdfi-annual-report-page {
  background: #080c18;
  color: #e2e8f0;
  padding-bottom: 3rem;
}

.sdfi-annual-hero {
  text-align: center;
  padding: 2.25rem 1rem 1.5rem;
}

.sdfi-annual-hero-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.sdfi-annual-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.sdfi-annual-grid-wrap {
  background: rgba(22, 27, 46, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Bootstrap row-cols-xl-5: five cards per row; extra cards wrap to the next row */
.sdfi-annual-grid-wrap .row {
  justify-content: flex-start;
}

.sdfi-annual-card {
  background: linear-gradient(180deg, #161f36 0%, #0f1528 100%);
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 1rem;
  padding: 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sdfi-annual-card:hover,
.sdfi-annual-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 12px 40px rgba(37, 99, 235, 0.22);
}

/* Cover: uniform portrait (3×4) for every card — landscape source images crop to fit */
.sdfi-annual-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0.8rem;
  overflow: hidden;
  margin: 0 auto 1rem;
  max-width: 100%;
  background: linear-gradient(155deg, #1e40af 0%, #0f172a 45%, #1e3a8a 100%);
  flex-shrink: 0;
}

.sdfi-annual-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sdfi-annual-card-cover-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  gap: 0.35rem;
}

.sdfi-annual-card-cover-fallback:not([hidden]) {
  display: flex;
}

.sdfi-annual-fallback-year {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.sdfi-annual-fallback-org {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.75);
  max-width: 12rem;
  line-height: 1.35;
}

.sdfi-annual-card-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.1vw, 1.02rem);
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.sdfi-annual-card-sub {
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.72);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.sdfi-annual-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  justify-content: center;
}

.sdfi-annual-btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 6.5rem;
  text-align: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.sdfi-annual-btn:not(:disabled):not(.disabled):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.sdfi-annual-btn--view {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sdfi-annual-btn--download {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.sdfi-annual-btn:disabled,
.sdfi-annual-btn.disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.sdfi-annual-foot {
  max-width: 36rem;
  margin: 2.25rem auto 0;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.95);
}

.sdfi-annual-foot a {
  color: #93c5fd;
  font-weight: 600;
}

.sdfi-annual-foot a:hover {
  color: #bfdbfe;
}

.sdfi-annual-hint {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.75);
  max-width: 42rem;
  margin: 1rem auto 0;
  text-align: center;
  padding: 0 1rem;
}

/* ——— Paper Presentation (PowerPoint download list) ——— */
.sdfi-paper-page {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 38%, #f1f5f9 100%);
  min-height: 50vh;
}

.sdfi-paper-shell {
  max-width: 52rem;
}

.sdfi-paper-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.sdfi-ppt-stack .sdfi-ppt-card {
  border-radius: 0.85rem !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.35s ease;
}

.sdfi-ppt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: linear-gradient(118deg, rgba(13, 110, 253, 0.06), transparent 45%, transparent 55%, rgba(13, 110, 253, 0.04));
  pointer-events: none;
  border-radius: inherit;
}

.sdfi-ppt-card {
  position: relative;
}

.sdfi-ppt-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 110, 253, 0.22) !important;
  box-shadow: 0 18px 44px rgba(13, 110, 253, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

.sdfi-ppt-card:hover::before {
  opacity: 1;
}

.sdfi-ppt-card:focus-within {
  outline: none;
}

.sdfi-ppt-card:focus-within .sdfi-ppt-download {
  box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.35);
}

.sdfi-ppt-card-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
  line-height: 1.38;
  color: #111827;
  text-wrap: balance;
}

.sdfi-ppt-download {
  font-weight: 600;
  border-radius: 0.42rem;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
}

.sdfi-ppt-card:hover .sdfi-ppt-download {
  transform: scale(1.04);
}

.sdfi-ppt-download:active {
  transform: scale(0.98);
}

/* PowerPoint-style icon */
.sdfi-ppt-icon {
  width: 52px;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(165deg, #ffffff 0%, #eef1f5 52%, #e2e8f0 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 4px 12px rgba(234, 88, 12, 0.2),
    0 2px 4px rgba(15, 23, 42, 0.08);
  overflow: visible;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.42s ease;
}

.sdfi-ppt-card:hover .sdfi-ppt-icon {
  transform: translateY(-5px) rotate(-2deg) scale(1.05);
  box-shadow:
    0 14px 28px rgba(234, 88, 12, 0.3),
    0 6px 12px rgba(15, 23, 42, 0.1);
}

.sdfi-ppt-icon-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent rgba(0, 0, 0, 0.1) transparent transparent;
}

.sdfi-ppt-icon-letter {
  display: block;
  padding: 0.35rem 0 0.45rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 36%, #ea580c 100%);
  border-radius: 0 0 5px 5px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-annual-card:hover,
  .sdfi-annual-card:focus-within {
    transform: none;
  }

  .sdfi-annual-btn:not(:disabled):not(.disabled):hover {
    transform: none;
  }

  .sdfi-ppt-card:hover,
  .sdfi-ppt-card:hover .sdfi-ppt-icon,
  .sdfi-ppt-card:hover .sdfi-ppt-download {
    transform: none;
  }
}

/* Career page */
.sdfi-career-section {
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.74), rgba(30, 41, 59, 0.7)),
    url("../IMG/banner_ggu.jpg") center/cover no-repeat;
}

.sdfi-career-panel {
  max-width: 920px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.45);
}

.sdfi-career-input,
.sdfi-career-file {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.sdfi-career-input::placeholder {
  color: #cbd5e1;
}

.sdfi-career-input:focus,
.sdfi-career-file:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
}

.sdfi-career-form .form-select {
  color: #f8fafc;
}

.sdfi-career-form .form-select:invalid {
  color: #cbd5e1;
}

.sdfi-career-form .form-select:focus,
.sdfi-career-form .form-select:valid {
  color: #f8fafc;
}

.sdfi-career-form .form-select option {
  color: #f8fafc;
  background-color: #0f172a;
}

.sdfi-career-form .form-select option[value=""] {
  color: #cbd5e1;
}

.sdfi-career-submit {
  background: #06b6d4;
  color: #fff;
  border: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sdfi-career-submit:hover {
  background: #0891b2;
  color: #fff;
}

/* Full-page load overlay (injected by js/layout.js) */
body.sdfi-page-loader-active {
  overflow: hidden;
}

.sdfi-page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(
    140deg,
    rgba(13, 110, 253, 0.98) 0%,
    rgba(10, 88, 202, 0.96) 45%,
    rgba(30, 64, 175, 0.95) 100%
  );
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sdfi-page-loader--exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sdfi-page-loader__inner {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.sdfi-page-loader__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.15rem;
}

.sdfi-page-loader__logo {
  width: 192px;
  height: 192px;
  max-width: min(192px, 48vmin);
  max-height: min(192px, 48vmin);
  object-fit: contain;
  animation: sdfi-page-loader-pulse 1.35s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.22));
}

.sdfi-page-loader__label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin: 0;
}

@keyframes sdfi-page-loader-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-page-loader__logo {
    animation: none;
  }

  .sdfi-page-loader {
    transition: opacity 0.25s ease;
  }
}

/* Fast mode (phones / slow networks) — skip heavy motion & blocking loader */
html.sdfi-perf-mode [data-aos],
html.sdfi-perf-mode .sdfi-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html.sdfi-perf-mode .sdfi-page-loader {
  display: none !important;
}

html.sdfi-perf-mode body.sdfi-page-loader-active {
  overflow: auto !important;
}

html.sdfi-perf-mode .sdfi-hero-video {
  display: none !important;
}

html.sdfi-perf-mode .sdfi-hero-fallback {
  opacity: 1 !important;
}

/* ——— AGBM microsite (agbm/agbm.html) ——— */
.sdfi-agbm-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(125deg, #0d47a1 0%, #1565c0 38%, #0d6efd 72%, #1e3a8a 100%);
}

.sdfi-agbm-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 78% 65%, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
  animation: sdfi-agbm-hero-bg 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.sdfi-agbm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
}

@keyframes sdfi-agbm-hero-bg {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(2%, -2%) scale(1.05);
  }
}

.sdfi-agbm-hero .container {
  position: relative;
  z-index: 2;
}

.sdfi-agbm-hero__logo {
  max-width: min(200px, 55vw);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.3));
}

.sdfi-agbm-hero__title {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  line-height: 1.28;
  max-width: 34rem;
}

.sdfi-agbm-hero__tagline {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.45;
  max-width: 36rem;
}

.sdfi-agbm-hero__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.95);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sdfi-agbm-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.sdfi-agbm-countdown__unit {
  min-width: 3.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  text-align: center;
}

.sdfi-agbm-countdown__value {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffc107;
  font-variant-numeric: tabular-nums;
}

.sdfi-agbm-countdown__label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
}

.sdfi-agbm-card {
  border-radius: 1rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sdfi-agbm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.sdfi-agbm-venue {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.88)),
    url("../IMG/front.JPG") center / cover no-repeat;
  color: #fff;
}

.sdfi-agbm-venue__inner {
  position: relative;
  z-index: 1;
}

/* Gallery carousel — compact frame for comfortable viewing */
.sdfi-agbm-gallery__frame {
  max-width: min(640px, 100%);
}

.sdfi-agbm-gallery .carousel-inner {
  background: #e8eef5;
}

.sdfi-agbm-gallery .carousel-item img {
  display: block;
  width: 100%;
  max-height: min(340px, 48vh);
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 768px) {
  .sdfi-agbm-gallery__frame {
    max-width: min(720px, 92vw);
  }

  .sdfi-agbm-gallery .carousel-item img {
    max-height: min(380px, 50vh);
  }
}

.sdfi-agbm-gallery .carousel-indicators {
  flex-wrap: wrap;
  gap: 0.25rem;
  row-gap: 0.35rem;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .sdfi-agbm-gallery .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin-left: 2px;
    margin-right: 2px;
  }
}

.sdfi-agbm-gallery .carousel-control-prev,
.sdfi-agbm-gallery .carousel-control-next {
  width: 2.5rem;
  height: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.85);
  opacity: 1;
}

.sdfi-agbm-gallery .carousel-control-prev-icon,
.sdfi-agbm-gallery .carousel-control-next-icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-agbm-hero::before {
    animation: none;
  }

  .sdfi-agbm-card {
    transition: none;
  }

  .sdfi-agbm-card:hover {
    transform: none;
  }
}

/* ——— CME program module (cme-program.html) ——— */
.sdfi-cme-page .sdfi-cme-lead {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.sdfi-cme-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sdfi-cme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.sdfi-cme-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  background: #1e293b;
}

.sdfi-cme-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sdfi-cme-card:hover .sdfi-cme-card__media img {
  transform: scale(1.04);
}

.sdfi-cme-card__media--zoomable {
  cursor: zoom-in;
}

.sdfi-cme-card__media--zoomable:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.65);
  outline-offset: 2px;
}

/* CME lightbox above fixed navbar (1090) and page loader (12000) */
.modal-backdrop {
  z-index: 12090 !important;
}

.modal.sdfi-cme-modal {
  z-index: 12100 !important;
}

.modal.sdfi-announce-detail-modal {
  z-index: 12120 !important;
}

/* CME image lightbox — dark header + white X always visible; scroll tall posters on phones */
.sdfi-cme-modal .modal-dialog {
  margin-left: auto;
  margin-right: auto;
  margin-top: max(0.75rem, env(safe-area-inset-top, 0px));
  margin-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - max(1.5rem, env(safe-area-inset-top, 0px)) - max(1.5rem, env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 575.98px) {
  .sdfi-cme-modal .modal-dialog {
    margin-left: max(0.5rem, env(safe-area-inset-left, 0px));
    margin-right: max(0.5rem, env(safe-area-inset-right, 0px));
    max-width: calc(100% - max(1rem, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)));
  }
}

.sdfi-cme-modal__sheet {
  background: #0f172a;
  max-height: 100%;
}

.sdfi-cme-modal__toolbar {
  background: #0f172a;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sdfi-cme-modal__close-btn {
  opacity: 1 !important;
  padding: 0.65rem;
  margin: -0.35rem -0.35rem -0.35rem 0;
}

.sdfi-cme-modal__body {
  background: rgba(0, 0, 0, 0.25);
}

.sdfi-cme-modal__img {
  width: auto;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.sdfi-cme-card__fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 32%, rgba(15, 23, 42, 0.45) 68%, rgba(15, 23, 42, 0.88) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(15, 23, 42, 0.55) 0%, transparent 55%);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.sdfi-cme-card__body {
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sdfi-cme-card__body dt {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.sdfi-cme-card__body dd {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1e293b;
}

.sdfi-cme-card__body dd:last-of-type {
  margin-bottom: 0;
}

.sdfi-cme-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.sdfi-cme-card__body a {
  font-weight: 600;
  text-decoration: none;
}

.sdfi-cme-card__body a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-cme-card,
  .sdfi-cme-card__media img {
    transition: none;
  }

  .sdfi-cme-card:hover {
    transform: none;
  }

  .sdfi-cme-card:hover .sdfi-cme-card__media img {
    transform: none;
  }

}

/* ——— Directory downloads (directory.html) ——— */
.sdfi-directory-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sdfi-directory-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.sdfi-directory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.11);
  border-color: rgba(13, 110, 253, 0.22);
}

.sdfi-directory-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 110, 253, 0.11);
  color: #0d6efd;
  font-size: 1.45rem;
  flex-shrink: 0;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.sdfi-directory-card__icon--doc {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.sdfi-directory-card:hover .sdfi-directory-card__icon {
  transform: scale(1.06);
}

.sdfi-directory-card__body {
  flex: 1 1 200px;
  min-width: 0;
}

.sdfi-directory-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.sdfi-directory-card__meta {
  font-size: 0.875rem;
  color: #64748b;
}

.sdfi-directory-card__cta {
  flex-shrink: 0;
  margin-left: auto;
}

.sdfi-directory-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 575.98px) {
  .sdfi-directory-card__cta {
    margin-left: 0;
    width: 100%;
  }

  .sdfi-directory-card__actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .sdfi-directory-card__actions .btn {
    width: 100%;
  }
}

.sdfi-directory-card__btn {
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sdfi-directory-card:hover .sdfi-directory-card__btn--download {
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-directory-card,
  .sdfi-directory-card__icon,
  .sdfi-directory-card__btn {
    transition: none;
  }

  .sdfi-directory-card:hover {
    transform: none;
  }

  .sdfi-directory-card:hover .sdfi-directory-card__icon {
    transform: none;
  }

  .sdfi-directory-card:hover .sdfi-directory-card__btn--download {
    box-shadow: none;
  }
}

/* Home — Announcements (after Recent Events) */
.sdfi-announcements-section .sdfi-announcements__title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f2744;
  letter-spacing: -0.02em;
}

.sdfi-announcements-feature {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.sdfi-announcements-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 39, 68, 0.12) !important;
}

.sdfi-announcements-feature .sdfi-announcements-feature__ratio img {
  object-fit: cover;
}

.sdfi-announcements-feature__title:hover {
  color: var(--sdfi-primary) !important;
}

.sdfi-announcements-list__item {
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.sdfi-announcements-list__item--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.sdfi-announcements-list__thumb {
  width: 88px;
  height: 88px;
}

.sdfi-announcements-list__link {
  border-radius: 0.5rem;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.sdfi-announcements-list__link:hover {
  background-color: rgba(13, 110, 253, 0.06);
}

.sdfi-announcements-list__link:hover .sdfi-announcements-list__title {
  color: var(--sdfi-primary) !important;
}

.sdfi-announcements-list__link:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.65);
  outline-offset: 3px;
}

.sdfi-announcements__cta {
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
}

.sdfi-announcements__cta:hover {
  box-shadow: 0 8px 22px rgba(255, 193, 7, 0.45);
  transform: translateY(-1px);
}

/* Home announcements — circular rotation (featured + next three in sidebar) */
.sdfi-announcements-rotator {
  --sdfi-announce-rot-pad: 2.125rem;
  padding-left: var(--sdfi-announce-rot-pad);
  padding-right: var(--sdfi-announce-rot-pad);
  touch-action: pan-y;
}

@media (min-width: 576px) {
  .sdfi-announcements-rotator {
    --sdfi-announce-rot-pad: 2.5rem;
  }
}

.sdfi-announce-rot-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sdfi-primary);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.12);
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.sdfi-announce-rot-arrow--prev {
  left: 0;
}

.sdfi-announce-rot-arrow--next {
  right: 0;
}

.sdfi-announce-rot-arrow:hover {
  color: #0b5ed7;
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.16);
  transform: scale(1.06);
}

.sdfi-announce-rot-arrow:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-announcements-feature:hover,
  .sdfi-announcements-list__link:hover,
  .sdfi-announcements__cta:hover,
  .sdfi-announce-rot-arrow:hover {
    transform: none;
  }
}

/* Announcements listing page (View All) */
.sdfi-announce-feed-wrap {
  max-width: 920px;
}

.sdfi-announce-feed-list > li + li {
  margin-top: 1.5rem;
}

.sdfi-announce-feed-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sdfi-announce-feed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.12) !important;
}

/* Publications page */
.sdfi-publications-page {
  background:
    radial-gradient(1100px 460px at 20% -10%, rgba(13, 110, 253, 0.1), transparent 65%),
    radial-gradient(900px 420px at 85% 0%, rgba(14, 165, 233, 0.1), transparent 62%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
}

.sdfi-publications-shell {
  padding-top: 2.6rem;
  padding-bottom: 4rem;
}

.sdfi-publications-container {
  max-width: min(96vw, 1500px);
  padding-left: clamp(0.8rem, 2vw, 1.8rem);
  padding-right: clamp(0.8rem, 2vw, 1.8rem);
}

.sdfi-publications-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f2744;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sdfi-publication-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 39, 68, 0.12);
  box-shadow: 0 16px 34px rgba(15, 39, 68, 0.13), 0 2px 6px rgba(15, 39, 68, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sdfi-publication-card:hover {
  transform: translateY(-7px);
  border-color: rgba(13, 110, 253, 0.34);
  box-shadow: 0 24px 42px rgba(15, 39, 68, 0.2), 0 6px 16px rgba(13, 110, 253, 0.16);
}

.sdfi-publication-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd 0%, #31b3ff 50%, #0d6efd 100%);
}

.sdfi-publication-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -130px;
  top: -140px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.18) 0%, rgba(13, 110, 253, 0) 72%);
  pointer-events: none;
}

.sdfi-publication-card__meta {
  font-size: 0.64rem;
  line-height: 1.45;
  color: #334155;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  margin: 0.85rem 0.85rem 0.65rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sdfi-publication-card__img {
  display: block;
  width: calc(100% - 1.7rem);
  margin: 0 auto;
  height: 190px;
  border-radius: 0.65rem;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(15, 39, 68, 0.17);
}

.sdfi-publication-card__body {
  padding: 0.9rem 0.95rem 1.05rem;
  font-size: 0.9rem;
  color: #334155;
}

.sdfi-publication-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sdfi-publication-card__btn.btn {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #0d6efd 0%, #0b5ed7 100%);
  box-shadow: 0 6px 12px rgba(13, 110, 253, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sdfi-publication-card__btn.btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.4);
}

.sdfi-publication-card__btn--attachment.btn {
  background: #fff;
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.38);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.16);
}

.sdfi-publication-card__btn--attachment.btn:hover {
  background: #eaf3ff;
  color: #0b5ed7;
}

@media (max-width: 575.98px) {
  .sdfi-publication-card__img {
    height: 165px;
  }

  .sdfi-publication-card__body {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-publication-card,
  .sdfi-publication-card__btn.btn {
    transition: none;
  }

  .sdfi-publication-card:hover,
  .sdfi-publication-card__btn.btn:hover {
    transform: none;
  }
}

.sdfi-announce-feed-card__ratio img {
  object-fit: cover;
}

@media (min-width: 768px) {
  .sdfi-announce-feed-card__ratio {
    min-height: 100%;
  }

  .sdfi-announce-feed-card__media-link .ratio {
    --bs-aspect-ratio: 75%;
  }
}

.sdfi-announce-feed-card__badge {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.35em 0.75rem;
  background: rgba(13, 110, 253, 0.14);
  color: #084298;
}

.sdfi-announce-feed-card__date {
  font-size: 0.9rem;
  color: var(--sdfi-primary);
}

.sdfi-announce-feed-card__title-link {
  color: #0f2744;
}

.sdfi-announce-feed-card__title-link:hover {
  color: var(--sdfi-primary);
}

.sdfi-announce-feed-card__excerpt {
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sdfi-announce-feed-card__more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sdfi-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sdfi-announce-feed-card__more:hover {
  color: #0a58ca;
}

@media (prefers-reduced-motion: reduce) {
  .sdfi-announce-feed-card:hover {
    transform: none;
  }
}
