/* Draupadi Mahila Samiti — static theme (Bootstrap 5 base) */
:root {
  --dms-primary: #1a5f4a;
  --dms-primary-dark: #134436;
  --dms-accent: #c45c26;
  --dms-sand: #f6f1e7;
  --dms-sand-deep: #ebe3d4;
  --dms-ink: #1c1c1c;
  --dms-muted: #5c5c5c;
  --dms-radius: 0.75rem;
  --dms-radius-lg: 1rem;
  --dms-shadow-soft: 0 0.35rem 1.25rem rgba(26, 95, 74, 0.08);
  --dms-shadow-lift: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
  /* Chrome (topbar + primary nav) */
  --dms-topbar-bg: #f7f4ec;
  --dms-topbar-ink: #1f2924;
  --dms-topbar-muted: #4d5c54;
  --dms-topbar-link: #14523f;
  --dms-topbar-link-hover: #0d3528;
  --dms-topbar-border: rgba(26, 95, 74, 0.14);
  --dms-topbar-wp-border: rgba(26, 95, 74, 0.35);
  --dms-nav-surface: #ffffff;
  --dms-nav-surface-mid: #f7fbf9;
  --dms-nav-border: rgba(26, 95, 74, 0.16);
  --dms-nav-link: #1a3028;
  --dms-nav-link-muted: #3d5249;
  --dms-nav-pill-hover: rgba(26, 95, 74, 0.09);
  --dms-nav-pill-active: rgba(26, 95, 74, 0.14);
  --dms-nav-shadow: 0 0.4rem 1.25rem rgba(19, 68, 54, 0.08);
  --dms-nav-accent-line: linear-gradient(90deg, transparent, rgba(26, 95, 74, 0.35) 20%, rgba(26, 95, 74, 0.35) 80%, transparent);
}

html {
  scroll-behavior: smooth;
}

body.dms-body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dms-ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.dms-font-display {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.dms-section-title {
  color: var(--dms-primary-dark);
}

/* —— Site chrome: topbar + navbar —— */
.dms-chrome-header {
  position: relative;
  z-index: 1030;
}

.dms-topbar {
  color: var(--dms-topbar-ink);
  background-color: var(--dms-topbar-bg);
  border-bottom: 1px solid var(--dms-topbar-border);
}

.dms-topbar-muted {
  color: var(--dms-topbar-muted);
}

.dms-topbar-muted .bi {
  color: var(--dms-topbar-link);
  opacity: 0.85;
}

.dms-topbar-link {
  color: var(--dms-topbar-link);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.dms-topbar-link:hover,
.dms-topbar-link:focus {
  color: var(--dms-topbar-link-hover);
  text-decoration: underline;
}

.dms-topbar-link:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.dms-topbar-wp {
  font-weight: 600;
  color: var(--dms-topbar-link);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--dms-topbar-wp-border);
}

.dms-topbar-wp:hover,
.dms-topbar-wp:focus {
  color: var(--dms-topbar-link-hover);
  background: #fff;
  border-color: var(--dms-primary);
}

.dms-topbar-wp:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: 2px;
}

.dms-badge-soft {
  font-weight: 600;
  color: var(--dms-topbar-link);
  background: rgba(26, 95, 74, 0.1);
  border: 1px solid rgba(26, 95, 74, 0.18);
}

.navbar.dms-navbar {
  position: relative;
  background: linear-gradient(180deg, var(--dms-nav-surface-mid) 0%, var(--dms-nav-surface) 38%, var(--dms-nav-surface) 100%);
  border-bottom: 1px solid var(--dms-nav-border);
  box-shadow: var(--dms-nav-shadow);
}

.navbar.dms-navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--dms-nav-accent-line);
  opacity: 0.45;
  pointer-events: none;
}

.navbar.dms-navbar .dms-navbar-brand,
.navbar.dms-navbar .dms-navbar-brand:hover,
.navbar.dms-navbar .dms-navbar-brand:focus {
  color: var(--dms-primary-dark);
}

.navbar.dms-navbar .dms-brand-title {
  color: var(--dms-primary-dark);
  letter-spacing: -0.01em;
}

.navbar.dms-navbar .dms-brand-sub {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--dms-nav-link-muted);
}

.dms-brand-mark {
  box-shadow: 0 0.2rem 0.75rem rgba(26, 95, 74, 0.12);
  border-radius: 0.75rem;
}

.dms-brand-logo {
  display: block;
}

.dms-navbar-contact-mobile {
  color: var(--dms-primary-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 95, 74, 0.28);
}

.dms-navbar-contact-mobile:hover,
.dms-navbar-contact-mobile:focus {
  background: #fff;
  border-color: var(--dms-primary);
  color: var(--dms-primary-dark);
}

.dms-navbar-contact-mobile:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: 2px;
}

.navbar.dms-navbar .nav-link {
  color: var(--dms-nav-link) !important;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar.dms-navbar .nav-link:hover,
.navbar.dms-navbar .nav-link:focus {
  color: var(--dms-primary-dark) !important;
  text-decoration: none;
  background-color: var(--dms-nav-pill-hover);
}

.navbar.dms-navbar .nav-link:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: 2px;
}

.navbar.dms-navbar .nav-link.active,
.navbar.dms-navbar .nav-item.dropdown.active > .nav-link.dropdown-toggle {
  color: var(--dms-primary-dark) !important;
  background-color: var(--dms-nav-pill-active);
}

.navbar.dms-navbar .dropdown-menu {
  border: 1px solid rgba(26, 95, 74, 0.1);
  box-shadow: 0 0.5rem 1.25rem rgba(19, 68, 54, 0.12);
  border-radius: var(--dms-radius);
}

/* Members: tighter gap + hover bridge (desktop) so menu stays open while moving pointer */
@media (min-width: 992px) {
  .navbar.dms-navbar .dms-nav-members-dd .dropdown-menu {
    margin-top: 0.15rem;
  }

  .navbar.dms-navbar .dms-nav-members-dd .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.45rem;
    height: 0.45rem;
  }
}

.navbar.dms-navbar .dropdown-item {
  font-weight: 600;
  color: var(--dms-nav-link);
}

.navbar.dms-navbar .dropdown-item:hover,
.navbar.dms-navbar .dropdown-item:focus {
  background-color: var(--dms-nav-pill-hover);
  color: var(--dms-primary-dark);
}

.navbar.dms-navbar .dropdown-item.active,
.navbar.dms-navbar .dropdown-item:active {
  background-color: var(--dms-nav-pill-active);
  color: var(--dms-primary-dark);
}

.navbar.dms-navbar .dropdown-item:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: -2px;
}

.navbar.dms-navbar .dms-navbar-toggler {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(26, 95, 74, 0.12);
}

.navbar.dms-navbar .dms-navbar-toggler:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: 2px;
}

.navbar.dms-navbar .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23134436' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .dms-nav-login {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(26, 95, 74, 0.12);
  }
}

.btn-dms-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: #a14a22;
  --bs-btn-border-color: #8a3d1c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b35222;
  --bs-btn-hover-border-color: #7a3418;
  --bs-btn-focus-shadow-rgb: 161, 74, 34;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #8a3d1c;
  --bs-btn-active-border-color: #6d3116;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #a14a22;
  --bs-btn-disabled-border-color: #a14a22;
  color: #fff;
  border-width: 1px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.btn-dms-accent:hover,
.btn-dms-accent:focus-visible {
  color: #fff;
}

.btn-dms-accent:focus-visible {
  outline: 2px solid var(--dms-primary-dark);
  outline-offset: 2px;
}

.navbar.dms-navbar .btn-dms-accent.active {
  box-shadow: 0 0 0 2px var(--dms-nav-pill-active), 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* —— Home: latest updates ticker (above hero) —— */
.dms-latest-marquee {
  --dms-marquee-duration: 42s;
  background: linear-gradient(180deg, #fffefb 0%, #f7f4ec 100%);
  position: relative;
  z-index: 2;
}

.dms-latest-marquee__label {
  background: linear-gradient(135deg, #7f1d1d 0%, #c41e3a 38%, #e11d48 62%, #991b1b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .dms-latest-marquee__label {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
}

.dms-latest-marquee__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
  min-height: 2.75rem;
}

.dms-latest-marquee__track {
  display: flex;
  width: max-content;
  animation: dms-marquee-scroll var(--dms-marquee-duration) linear infinite;
  will-change: transform;
}

.dms-latest-marquee__viewport:hover .dms-latest-marquee__track,
.dms-latest-marquee__viewport:focus-within .dms-latest-marquee__track {
  animation-play-state: paused;
}

.dms-latest-marquee__segment {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--dms-muted);
}

.dms-latest-marquee__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--dms-accent);
  flex-shrink: 0;
}

.dms-latest-marquee__text {
  white-space: nowrap;
}

.dms-latest-marquee__actions {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--dms-topbar-border);
}

@media (min-width: 768px) {
  .dms-latest-marquee__actions {
    min-width: 12rem;
    border-top: none;
    border-left: 1px solid var(--dms-topbar-border);
  }
}

@keyframes dms-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* —— Hero —— */
.dms-hero {
  position: relative;
  color: #fff;
  background-color: var(--dms-primary-dark);
  isolation: isolate;
}

.dms-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  transform: scale(1.02);
}

.dms-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 10% 20%, rgba(196, 92, 38, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 100% 70% at 90% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 80% 60% at 70% 90%, rgba(26, 95, 74, 0.55) 0%, transparent 55%),
    linear-gradient(135deg, rgba(19, 68, 54, 0.92) 0%, rgba(26, 95, 74, 0.55) 48%, rgba(19, 68, 54, 0.88) 100%);
  background-size: 200% 200%;
  animation: dms-mesh-shift 18s ease-in-out infinite alternate;
}

.dms-hero__diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.04) 42.5%,
    rgba(255, 255, 255, 0.04) 44%,
    transparent 44.5%
  );
  pointer-events: none;
}

.dms-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
}

.dms-hero__orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: var(--dms-accent);
  top: -12%;
  right: -8%;
}

.dms-hero__orb--2 {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  background: #5ab89a;
  bottom: -5%;
  left: -5%;
}

@keyframes dms-mesh-shift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.dms-hero__content {
  position: relative;
  z-index: 2;
  /* Clear space inside the green band (below chrome, above/below copy + carousel) */
  padding-block: clamp(2.75rem, 6vw, 5.25rem);
}

@media (min-width: 992px) {
  .dms-hero__content {
    padding-block: clamp(3.25rem, 7vw, 5.75rem);
  }
}

.dms-hero__title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  line-height: 1.15;
}

.dms-eyebrow {
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72) !important;
}

.dms-eyebrow--dark {
  color: var(--dms-primary) !important;
  opacity: 0.85;
}

.dms-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(19, 68, 54, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.dms-hero-visual {
  position: relative;
  max-width: 320px;
}

.dms-hero-visual__shape {
  position: absolute;
  inset: -8% -6% auto auto;
  width: 72%;
  height: 72%;
  border-radius: var(--dms-radius-lg);
  background: linear-gradient(145deg, rgba(196, 92, 38, 0.45), rgba(255, 255, 255, 0.08));
  clip-path: polygon(20% 0%, 100% 0%, 100% 80%, 80% 100%, 0% 100%, 0% 25%);
  z-index: 0;
}

.dms-hero-visual__frame {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border-radius: var(--dms-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 1.25rem 2.5rem rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dms-hero-visual__img {
  display: block;
  margin: 0 auto;
  max-height: 220px;
  width: auto;
  border-radius: calc(var(--dms-radius-lg) - 4px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.dms-hero-visual__card {
  position: absolute;
  left: 0;
  right: 12%;
  bottom: -12%;
  z-index: 2;
  border-radius: var(--dms-radius) !important;
  max-width: 100%;
}

@media (min-width: 992px) {
  .dms-hero-visual {
    max-width: 100%;
  }

  .dms-hero-visual__card {
    right: 0;
    bottom: -10%;
  }
}

@media (max-width: 575.98px) {
  .dms-hero-visual__card {
    position: relative;
    bottom: auto;
    margin-top: 1rem;
    right: 0;
  }
}

/* Hero carousel column — slight top breathing room on small screens; lg+ vertical align via row align-items-lg-center */
.dms-hero-carousel-col {
  padding-top: 0.25rem;
}

@media (min-width: 992px) {
  .dms-hero-carousel-col {
    padding-top: 0;
  }
}

/* Hero image carousel (home) */
#dms-hero-carousel.dms-hero-carousel {
  --dms-hero-carousel-h: clamp(14rem, 38vw, 24rem);
  max-width: 100%;
}

#dms-hero-carousel .carousel-inner {
  height: var(--dms-hero-carousel-h);
}

#dms-hero-carousel .carousel-item {
  height: 100%;
  background-color: rgba(19, 68, 54, 0.35);
}

#dms-hero-carousel .dms-hero-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#dms-hero-carousel .carousel-control-prev,
#dms-hero-carousel .carousel-control-next {
  width: 2.75rem;
}

#dms-hero-carousel .carousel-indicators {
  margin-bottom: 0.5rem;
}

#dms-hero-carousel .carousel-indicators [type="button"] {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

@media (min-width: 992px) {
  #dms-hero-carousel.dms-hero-carousel {
    /* Cap height so the frame does not read as a full-height slab next to copy */
    --dms-hero-carousel-h: clamp(15rem, min(24vw, 36vh), 22rem);
  }
}

/* Hero carousel — smoother crossfade + gentle Ken Burns on the active slide */
#dms-hero-carousel.dms-hero-carousel--motion.carousel-fade .carousel-item {
  transition: opacity 1.05s cubic-bezier(0.33, 1, 0.68, 1);
}

#dms-hero-carousel.dms-hero-carousel--motion .carousel-item .dms-hero-carousel__img {
  transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
  #dms-hero-carousel.dms-hero-carousel--motion .carousel-item.active .dms-hero-carousel__img {
    animation: dms-hero-carousel-kb 18s ease-in-out infinite alternate;
  }

  #dms-hero-carousel.dms-hero-carousel--motion .carousel-item:not(.active) .dms-hero-carousel__img {
    animation: none;
  }
}

@keyframes dms-hero-carousel-kb {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.07) translate(-1.25%, -0.75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #dms-hero-carousel.dms-hero-carousel--motion .carousel-item.active .dms-hero-carousel__img {
    animation: none;
  }
}

/* —— Mission & shared —— */
.dms-section-mission {
  background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
}

.dms-section-alt {
  background: linear-gradient(180deg, var(--dms-sand) 0%, var(--dms-sand-deep) 100%);
}

.dms-pullquote {
  border-left: 4px solid var(--dms-accent);
  padding: 1rem 1.25rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dms-primary-dark);
  background: rgba(26, 95, 74, 0.06);
  border-radius: 0 var(--dms-radius) var(--dms-radius) 0;
}

.dms-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 95, 74, 0.2), transparent);
}

.dms-divider--accent {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dms-accent), var(--dms-primary));
  max-width: 8rem;
}

.dms-divider--soft {
  opacity: 0.7;
}

.dms-pillar {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dms-pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--dms-shadow-soft) !important;
}

.dms-pillar__icon {
  width: 3rem;
  height: 3rem;
  color: var(--dms-primary);
  background: linear-gradient(145deg, rgba(26, 95, 74, 0.12), rgba(196, 92, 38, 0.1));
}

/* —— Latest card —— */
.dms-latest-card {
  border-radius: var(--dms-radius-lg) !important;
  box-shadow: var(--dms-shadow-lift) !important;
}

.dms-latest-card__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--dms-accent), var(--dms-primary));
  border-radius: var(--dms-radius-lg) 0 0 var(--dms-radius-lg);
}

.dms-icon-tile {
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.12), rgba(196, 92, 38, 0.12));
  color: var(--dms-primary);
}

.dms-icon-tile--lg {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.35rem;
}

.dms-timeline {
  position: relative;
  padding-left: 0.5rem;
}

.dms-timeline__item {
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dms-timeline__item:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.dms-timeline__marker {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dms-primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.2);
}

.dms-timeline__marker::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 2px;
  height: calc(100% + 1.5rem);
  background: linear-gradient(180deg, rgba(26, 95, 74, 0.35), transparent);
}

.dms-timeline__item:last-child .dms-timeline__marker::after {
  display: none;
}

.dms-date-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  background: var(--dms-primary-dark);
  color: #fff;
}

/* —— Explore bento —— */
.dms-explore-bento__tall .card {
  min-height: 100%;
}

@media (min-width: 992px) {
  .dms-explore-bento__tall .card {
    min-height: 280px;
  }
}

.dms-explore-card {
  border-radius: var(--dms-radius-lg) !important;
}

.dms-explore-card--featured {
  background: linear-gradient(165deg, #fff 0%, #f3faf7 100%);
}

.dms-explore-card__bg-icon {
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  font-size: 8rem;
  line-height: 1;
  color: rgba(26, 95, 74, 0.06);
  pointer-events: none;
}

.dms-explore-card__bg-icon--sm {
  font-size: 5rem;
  color: rgba(26, 95, 74, 0.07);
}

.dms-explore-card .stretched-link::after {
  border-radius: inherit;
}

.dms-card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dms-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--dms-shadow-lift) !important;
}

/* —— Gallery —— */
.dms-gallery--stagger .dms-gallery__cell--tall .dms-gallery-figure__img {
  min-height: 200px;
}

.dms-gallery--stagger .dms-gallery__cell--short .dms-gallery-figure__img {
  min-height: 160px;
}

@media (min-width: 768px) {
  .dms-gallery--stagger .dms-gallery__cell--tall .dms-gallery-figure__img {
    min-height: 260px;
  }

  .dms-gallery--stagger .dms-gallery__cell--short .dms-gallery-figure__img {
    min-height: 180px;
  }
}

.dms-gallery-figure__inner {
  position: relative;
  border-radius: var(--dms-radius);
  overflow: hidden;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dms-gallery-figure__img {
  display: block;
  width: 100%;
  object-fit: cover;
  height: 180px;
  transition: transform 0.35s ease;
}

@media (min-width: 768px) {
  .dms-gallery-figure__img {
    height: 200px;
  }
}

.dms-gallery-figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dms-gallery-figure__inner:hover .dms-gallery-figure__img,
.dms-gallery-figure__inner:focus-within .dms-gallery-figure__img {
  transform: scale(1.04);
}

.dms-gallery-figure__inner:hover .dms-gallery-figure__cap,
.dms-gallery-figure__inner:focus-within .dms-gallery-figure__cap {
  transform: translateY(0);
  opacity: 1;
}

/* —— Home: dynamic gallery (photos/ + list.php) —— */
.dms-home-gallery-section {
  background: linear-gradient(180deg, #fff 0%, #faf8f4 50%, #fff 100%);
}

.dms-home-gallery-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.015em;
  color: rgba(45, 52, 48, 0.82);
}

.dms-home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 118px;
  grid-auto-flow: dense;
  gap: 0.85rem;
}

@media (min-width: 576px) {
  .dms-home-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 128px;
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .dms-home-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 138px;
    gap: 1.1rem;
  }
}

.dms-photo-tile {
  min-height: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dms-photo-tile--inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .dms-photo-tile {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.dms-photo-tile__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--dms-radius-lg);
}

.dms-photo-tile__link:focus-visible {
  outline: 2px solid var(--dms-primary);
  outline-offset: 3px;
}

.dms-photo-tile__inner {
  position: relative;
  height: 100%;
  border-radius: var(--dms-radius-lg);
  overflow: hidden;
  box-shadow: 0 0.4rem 1.35rem rgba(19, 68, 54, 0.12);
  border: 1px solid rgba(26, 95, 74, 0.12);
  background: rgba(19, 68, 54, 0.06);
}

.dms-photo-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.dms-photo-tile__link:hover .dms-photo-tile__img,
.dms-photo-tile__link:focus-visible .dms-photo-tile__img {
  transform: scale(1.07);
}

.dms-photo-tile__zoom {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 2.15rem;
  height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--dms-primary-dark);
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.dms-photo-tile__link:hover .dms-photo-tile__zoom,
.dms-photo-tile__link:focus-visible .dms-photo-tile__zoom {
  opacity: 1;
  transform: scale(1);
}

.dms-home-gallery__toolbar .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dms-home-gallery__toolbar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.35rem 1rem rgba(26, 95, 74, 0.15);
}

/* GLightbox — align with site greens */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  border-radius: 999px;
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  background: rgba(26, 95, 74, 0.15);
}

/* —— Closing CTA —— */
.dms-cta-panel {
  background: linear-gradient(120deg, var(--dms-primary-dark) 0%, var(--dms-primary) 55%, #0f3d30 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dms-footer {
  position: relative;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(188deg, #152924 0%, #0f1e1a 42%, #0a1613 100%);
  overflow: hidden;
}

.dms-footer__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--dms-accent) 0%, var(--dms-primary) 42%, #5ab89a 100%);
}

.dms-footer__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.35;
}

.dms-footer__glow--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: var(--dms-accent);
  top: -12rem;
  right: -8rem;
}

.dms-footer__glow--2 {
  width: min(45vw, 320px);
  height: min(45vw, 320px);
  background: #2d7a62;
  bottom: -6rem;
  left: -6rem;
  opacity: 0.25;
}

.dms-footer__inner {
  z-index: 1;
}

.dms-footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dms-footer-brand__mark {
  flex-shrink: 0;
  padding: 0.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.dms-footer-brand__mark img {
  display: block;
  border-radius: 0.65rem;
}

.dms-footer-brand__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dms-footer-brand__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 220, 190, 0.9);
  margin: 0.35rem 0 0.65rem;
}

.dms-footer-brand__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.dms-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dms-footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  position: relative;
}

.dms-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: rgba(196, 92, 38, 0.9);
  transition: width 0.2s ease;
}

.dms-footer-nav a:hover,
.dms-footer-nav a:focus {
  color: #fff;
}

.dms-footer-nav a:hover::after,
.dms-footer-nav a:focus-visible::after {
  width: 100%;
}

.dms-footer__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dms-footer__heading--sub {
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
}

.dms-footer-lead {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.dms-footer-contact {
  font-size: 0.875rem;
}

.dms-footer-contact__block {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dms-footer-contact__body {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.dms-footer-contact__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: rgba(184, 230, 213, 0.95);
  background: rgba(26, 95, 74, 0.45);
}

.dms-footer-contact__row {
  list-style: none;
}

.dms-footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  color: #c5f0e3;
  padding: 0.35rem 0;
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.dms-footer-contact__link:hover,
.dms-footer-contact__link:focus {
  color: #fff;
}

.dms-footer-contact__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.dms-footer-contact__icon--btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dff7ef;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dms-footer-contact__link:hover .dms-footer-contact__icon--btn,
.dms-footer-contact__link:focus .dms-footer-contact__icon--btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dms-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  color: var(--dms-primary-dark);
  background: linear-gradient(180deg, #f4faf7 0%, #dceee6 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0.25rem 0.85rem rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dms-footer-cta:hover,
.dms-footer-cta:focus {
  color: var(--dms-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.2);
}

.dms-footer-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.dms-footer-cta--accent {
  background: linear-gradient(180deg, #e88a52 0%, #c45c26 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.dms-footer-cta--accent:hover,
.dms-footer-cta--accent:focus {
  color: #fff;
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .dms-footer-cta:hover,
  .dms-footer-cta:focus {
    transform: none;
  }

  .dms-footer-nav a::after {
    transition: none;
  }
}

.dms-footer-social-note {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.dms-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dms-footer-social__btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
}

.dms-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dms-footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.02em;
}

.dms-table-wrap {
  overflow-x: auto;
}

.table.dms-table thead th {
  background: var(--dms-primary);
  color: #fff;
  border: none;
  white-space: nowrap;
}

.table.dms-table tbody td {
  vertical-align: middle;
}

.dms-cookie {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 36rem;
  z-index: 1080;
  display: none;
}

.dms-cookie.is-visible {
  display: block;
}

/* Legacy gallery img rule (other pages may use row + img) */
.dms-gallery:not(.dms-gallery--stagger) img {
  object-fit: cover;
  height: 180px;
  width: 100%;
}

@media (min-width: 768px) {
  .dms-gallery:not(.dms-gallery--stagger) img {
    height: 200px;
  }
}

/* —— Jobs / appointment notice (contractual posts) —— */
.dms-appoint-hero {
  background: linear-gradient(135deg, var(--dms-primary-dark) 0%, var(--dms-primary) 48%, #0f3d30 100%);
  position: relative;
  overflow: hidden;
}

.dms-appoint-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 92, 38, 0.22), transparent 55%);
  pointer-events: none;
}

.dms-appoint-hero .container {
  position: relative;
  z-index: 1;
}

.dms-appoint-body {
  background: linear-gradient(180deg, #faf8f4 0%, #fff 12rem);
}

.dms-appoint-posts.table thead th {
  white-space: normal;
  vertical-align: middle;
  min-width: 5.5rem;
}

.dms-appoint-posts.table tbody td,
.dms-appoint-posts.table tbody th {
  vertical-align: top;
}

.dms-appoint-posts.table tbody td:nth-child(3) {
  max-width: 28rem;
}

.dms-appoint-callout {
  box-shadow: var(--dms-shadow-soft);
}

.dms-appoint-steps li {
  padding-left: 0.25rem;
}

@media (max-width: 991.98px) {
  .dms-appoint-posts.table {
    font-size: 0.9rem;
  }
}

/* —— Job application page & form —— */
body.dms-page-job-apply {
  background: linear-gradient(180deg, #f2f6f4 0%, #faf9f6 12rem, #fff 26rem);
}

.dms-job-hero {
  isolation: isolate;
  background: linear-gradient(138deg, #0c3028 0%, var(--dms-primary) 44%, #143d32 100%);
}

.dms-job-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 60% at 100% 0%, rgba(196, 92, 38, 0.32) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(90, 184, 154, 0.18) 0%, transparent 50%),
    linear-gradient(165deg, rgba(12, 48, 40, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.dms-job-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.4;
  pointer-events: none;
}

.dms-job-hero__orb--1 {
  width: min(60vw, 400px);
  height: min(60vw, 400px);
  background: var(--dms-accent);
  top: -35%;
  right: -10%;
}

.dms-job-hero__orb--2 {
  width: min(45vw, 300px);
  height: min(45vw, 300px);
  background: #4a9d82;
  bottom: -25%;
  left: -8%;
  opacity: 0.35;
}

.dms-job-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dms-job-hero-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.dms-job-hero-breadcrumb .breadcrumb-item a:hover,
.dms-job-hero-breadcrumb .breadcrumb-item a:focus {
  color: #fff;
  text-decoration: underline;
}

.dms-job-hero-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.dms-job-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.dms-job-hero__eyebrow {
  letter-spacing: 0.12em;
  color: rgba(255, 230, 200, 0.95);
}

.dms-job-hero__title {
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.dms-job-hero-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
}

.dms-job-apply-body {
  background: linear-gradient(180deg, #f7faf8 0%, #fff 14rem);
}

.dms-job-alert {
  border-radius: 1rem !important;
}

.dms-job-alert--success {
  border-left: 4px solid #198754 !important;
}

.dms-job-alert--danger {
  border-left: 4px solid #dc3545 !important;
}

.dms-job-form-aside {
  padding: 1.15rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(26, 95, 74, 0.12);
  box-shadow: 0 0.4rem 1.25rem rgba(19, 68, 54, 0.07);
}

.dms-job-form-aside__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dms-muted);
  margin-bottom: 0.65rem;
}

.dms-job-form-nav .nav-link {
  padding: 0;
}

.dms-job-form-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem !important;
  border-radius: 0.55rem;
  color: var(--dms-muted) !important;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dms-job-form-nav__link:hover,
.dms-job-form-nav__link:focus {
  color: var(--dms-primary-dark) !important;
  background: rgba(26, 95, 74, 0.08);
}

.dms-job-form-nav__ico {
  font-size: 1rem;
  color: var(--dms-primary);
  opacity: 0.85;
}

body[data-dms-page="job-apply"] .dms-job-form .dms-job-form__head {
  scroll-margin-top: 5.5rem;
}

.dms-job-form__head {
  background: linear-gradient(180deg, #fbfcfb 0%, #f4f8f6 100%);
  border-color: rgba(26, 95, 74, 0.1) !important;
}

.dms-job-form__head--primary {
  background: linear-gradient(125deg, #134436 0%, var(--dms-primary) 45%, #1a5f4a 100%);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
}

.dms-job-form__head--primary .dms-section-title,
.dms-job-form__head--primary h2 {
  color: #fff !important;
}

.dms-job-form__head--primary .text-primary {
  color: rgba(255, 255, 255, 0.92) !important;
}

.dms-job-form__subhead {
  color: var(--dms-primary-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dms-job-post-hint {
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #f6faf8 0%, #eef6f2 100%);
  border: 1px solid rgba(26, 95, 74, 0.14);
  box-shadow: 0 0.25rem 0.85rem rgba(19, 68, 54, 0.06);
}

.dms-job-post-hint .text-primary {
  color: var(--dms-primary-dark) !important;
}

.dms-job-form .dms-job-form-table thead th {
  background: linear-gradient(180deg, var(--dms-primary-dark) 0%, var(--dms-primary) 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: rgba(255, 255, 255, 0.12) !important;
  white-space: nowrap;
}

.dms-job-form .dms-job-form-table.table-bordered > :not(caption) > * > * {
  border-color: rgba(26, 95, 74, 0.12);
}

.dms-job-form__declaration {
  background: linear-gradient(180deg, #f3f8f5 0%, #eef5f1 100%) !important;
  border-top: 1px solid rgba(26, 95, 74, 0.08) !important;
}

.dms-job-form__footer {
  background: linear-gradient(180deg, #fafcfb 0%, #f0f5f3 100%) !important;
  border-top: 1px solid rgba(26, 95, 74, 0.1) !important;
}

.dms-job-form__footer .btn-primary {
  box-shadow: 0 0.35rem 1rem rgba(26, 95, 74, 0.25);
}

.dms-job-edu-table .form-control-sm {
  min-width: 4.5rem;
}

/* Job apply — photograph upload + cropper */
.dms-photo-upload__zone {
  border-color: rgba(26, 95, 74, 0.28) !important;
  background: linear-gradient(180deg, #f9fcfa 0%, #fff 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dms-photo-upload__zone:hover {
  border-color: rgba(26, 95, 74, 0.45) !important;
  box-shadow: 0 0.4rem 1.15rem rgba(19, 68, 54, 0.07);
}

.dms-photo-upload__icon-circle {
  width: 4rem;
  height: 4rem;
  background: rgba(26, 95, 74, 0.1);
}

.dms-photo-upload__thumb {
  width: 72px;
  height: 93px;
  object-fit: cover;
}

.dms-photo-upload__file-icon {
  width: 72px;
  height: 93px;
}

.dms-photo-crop-stage {
  min-height: 200px;
}

.dms-photo-crop-stage .cropper-container {
  max-height: min(70vh, 520px);
}

@media (prefers-reduced-motion: reduce) {
  .dms-photo-crop-stage .cropper-line,
  .dms-photo-crop-stage .cropper-point {
    transition: none !important;
  }
}

.dms-date-input {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991.98px) {
  .dms-job-form .dms-job-form-table {
    font-size: 0.82rem;
  }
}

/* —— Contact page (modern layout) —— */
body.dms-page-contact {
  background: linear-gradient(180deg, #f3f6f4 0%, #faf9f6 18rem, #fff 32rem);
}

.dms-contact-hero {
  background: linear-gradient(145deg, #0f3a2d 0%, var(--dms-primary) 42%, #134436 100%);
  color: #fff;
  isolation: isolate;
}

.dms-contact-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(196, 92, 38, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(255, 255, 255, 0.14) 0%, transparent 50%),
    linear-gradient(160deg, rgba(15, 61, 48, 0.4) 0%, transparent 45%);
  pointer-events: none;
}

.dms-contact-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.45;
  pointer-events: none;
}

.dms-contact-hero__orb--1 {
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  background: var(--dms-accent);
  top: -25%;
  right: -15%;
}

.dms-contact-hero__orb--2 {
  width: min(50vw, 360px);
  height: min(50vw, 360px);
  background: #4a9d82;
  bottom: -20%;
  left: -10%;
}

.dms-contact-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dms-contact-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.dms-contact-breadcrumb .breadcrumb-item a:hover,
.dms-contact-breadcrumb .breadcrumb-item a:focus {
  color: #fff;
  text-decoration: underline;
}

.dms-contact-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.dms-contact-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.dms-contact-eyebrow {
  letter-spacing: 0.12em;
  color: rgba(255, 230, 200, 0.95);
}

.dms-contact-hero-title {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.03em;
}

.dms-contact-hero-lead {
  max-width: 36rem;
}

.dms-contact-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.dms-contact-hero-figure {
  max-width: 420px;
}

.dms-contact-hero-figure__frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1.25rem 3rem rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.dms-contact-hero-figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 -2rem 3rem rgba(196, 92, 38, 0.15) inset;
  pointer-events: none;
}

.dms-contact-hero-figure__img {
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

.dms-contact-body {
  padding-top: 1.5rem;
}

@media (min-width: 992px) {
  .dms-contact-body {
    padding-top: 0.5rem;
  }

  .dms-contact-actions {
    margin-top: -3.25rem;
    position: relative;
    z-index: 2;
  }
}

.dms-contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 9.5rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border-radius: 1.15rem;
  text-decoration: none;
  color: var(--dms-ink);
  background: #fff;
  border: 1px solid rgba(26, 95, 74, 0.1);
  box-shadow:
    0 0.5rem 1.5rem rgba(19, 68, 54, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dms-contact-action:hover,
.dms-contact-action:focus-visible {
  color: var(--dms-ink);
  transform: translateY(-5px);
  box-shadow:
    0 1.25rem 2.5rem rgba(19, 68, 54, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border-color: rgba(26, 95, 74, 0.22);
}

.dms-contact-action:focus-visible {
  outline: 3px solid rgba(196, 92, 38, 0.55);
  outline-offset: 3px;
}

.dms-contact-action__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.dms-contact-action__icon--call {
  background: linear-gradient(145deg, rgba(26, 95, 74, 0.14), rgba(26, 95, 74, 0.06));
  color: var(--dms-primary-dark);
}

.dms-contact-action__icon--mail {
  background: linear-gradient(145deg, rgba(196, 92, 38, 0.2), rgba(196, 92, 38, 0.08));
  color: #8a3d1c;
}

.dms-contact-action__icon--map {
  background: linear-gradient(145deg, rgba(74, 157, 130, 0.22), rgba(26, 95, 74, 0.08));
  color: var(--dms-primary-dark);
}

.dms-contact-action__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dms-muted);
  margin-bottom: 0.2rem;
}

.dms-contact-action__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dms-primary-dark);
  margin-bottom: 0.35rem;
}

.dms-contact-action__hint {
  font-size: 0.85rem;
  color: var(--dms-muted);
  margin-top: auto;
  padding-top: 0.35rem;
}

.dms-contact-panel {
  position: relative;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(26, 95, 74, 0.1);
  box-shadow: 0 0.75rem 2rem rgba(19, 68, 54, 0.07);
  overflow: hidden;
}

.dms-contact-panel__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--dms-accent) 0%, var(--dms-primary) 100%);
}

.dms-contact-panel__inner {
  margin-left: 5px;
}

.dms-contact-address {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--dms-muted);
}

.dms-contact-address__org {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dms-ink);
  margin-bottom: 0.75rem;
}

.dms-contact-address__row {
  display: block;
}

.dms-contact-address__tag {
  display: inline-block;
  min-width: 3.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--dms-primary) 0%, #1d6b52 100%);
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.dms-contact-address__pin {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(26, 95, 74, 0.15);
  color: var(--dms-ink);
}

.dms-contact-mini {
  background: linear-gradient(180deg, #f8faf9 0%, #f2f6f4 100%);
  border: 1px solid rgba(26, 95, 74, 0.1);
}

.dms-contact-mini__icon {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.35rem;
}

.dms-contact-mini__link {
  color: var(--dms-primary-dark);
}

.dms-contact-mini__link:hover,
.dms-contact-mini__link:focus {
  color: var(--dms-accent);
}

.dms-contact-visit {
  background: linear-gradient(135deg, #123d30 0%, var(--dms-primary) 55%, #0d3026 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1rem 2.5rem rgba(19, 68, 54, 0.25);
}

.dms-contact-visit__glow {
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: var(--dms-accent);
  opacity: 0.18;
  filter: blur(48px);
  top: -30%;
  right: -10%;
  pointer-events: none;
}

.dms-contact-visit__list li::marker {
  color: rgba(255, 255, 255, 0.55);
}

.dms-contact-map-card {
  border: 1px solid rgba(26, 95, 74, 0.12);
  box-shadow: 0 0.5rem 1.5rem rgba(19, 68, 54, 0.08);
}

.dms-contact-context {
  background: #fff;
  border: 1px solid rgba(26, 95, 74, 0.1);
  box-shadow: 0 0.5rem 1.5rem rgba(19, 68, 54, 0.06);
}

.dms-contact-context__watermark {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  font-size: 5.5rem;
  line-height: 1;
  color: var(--dms-primary);
  opacity: 0.06;
  pointer-events: none;
}

.dms-contact-faq {
  background: linear-gradient(180deg, #1a4d3d 0%, #163f32 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1rem 2.25rem rgba(19, 68, 54, 0.2);
}

.dms-contact-faq__head {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.dms-contact-faq .accordion-button {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
}

.dms-contact-faq .accordion-button:not(.collapsed) {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: none;
}

.dms-contact-faq .accordion-button::after {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.dms-contact-faq .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.dms-contact-faq .accordion-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: -2px;
}

.dms-contact-faq .accordion-body {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 1rem 1.25rem 1.25rem;
}

.dms-contact-faq .accordion-body a {
  color: #f0d4a8;
  font-weight: 600;
}

.dms-contact-faq .accordion-body a:hover,
.dms-contact-faq .accordion-body a:focus {
  color: #fff;
}

.dms-contact-faq .accordion-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dms-contact-map-wrap {
  min-height: 12rem;
}

.dms-contact-map {
  width: 100%;
  height: 100%;
  border: 0;
}

/* —— About page —— */
body.dms-page-about {
  background: linear-gradient(180deg, #f4f6f3 0%, #faf9f6 14rem, #fff 28rem);
}

.dms-about-hero {
  background: linear-gradient(155deg, #0c3228 0%, var(--dms-primary) 38%, #1a4d3d 72%, #12362c 100%);
  color: #fff;
  isolation: isolate;
}

.dms-about-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 100% 0%, rgba(196, 92, 38, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(90, 184, 154, 0.2) 0%, transparent 50%),
    linear-gradient(170deg, rgba(12, 50, 40, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.dms-about-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
  pointer-events: none;
}

.dms-about-hero__orb--1 {
  width: min(65vw, 440px);
  height: min(65vw, 440px);
  background: #5ab89a;
  top: -18%;
  left: -12%;
}

.dms-about-hero__orb--2 {
  width: min(55vw, 380px);
  height: min(55vw, 380px);
  background: var(--dms-accent);
  bottom: -28%;
  right: -8%;
}

.dms-about-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dms-about-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.dms-about-breadcrumb .breadcrumb-item a:hover,
.dms-about-breadcrumb .breadcrumb-item a:focus {
  color: #fff;
  text-decoration: underline;
}

.dms-about-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.dms-about-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.45);
}

.dms-about-eyebrow {
  letter-spacing: 0.12em;
  color: rgba(255, 230, 200, 0.95);
}

.dms-about-hero-title {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.22);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.dms-about-hero-lead {
  max-width: 38rem;
}

.dms-about-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.dms-about-hero-aside {
  border-left: 3px solid rgba(196, 92, 38, 0.65);
  padding-left: 1.25rem;
  text-align: left;
}

@media (min-width: 992px) {
  .dms-about-hero-aside {
    display: inline-block;
    max-width: 17rem;
    margin-left: auto;
    text-align: left;
  }

  .text-lg-end .dms-about-hero-aside {
    margin-right: 0;
    margin-left: auto;
  }
}

.dms-about-prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--dms-ink);
}

.dms-about-prose p {
  margin-bottom: 1.25rem;
}

.dms-about-prose p:last-child {
  margin-bottom: 0;
}

.dms-about-lead {
  font-size: 1.08rem;
  line-height: 1.78;
}

@media (min-width: 992px) {
  .dms-about-lead {
    font-size: 1.12rem;
  }
}

.dms-about-figure__frame {
  border: 1px solid rgba(26, 95, 74, 0.12);
  box-shadow: 0 0.75rem 2rem rgba(19, 68, 54, 0.1);
}

.dms-about-figure__img {
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

.dms-about-quote {
  background: linear-gradient(135deg, rgba(26, 95, 74, 0.06) 0%, rgba(196, 92, 38, 0.06) 100%);
  border: 1px solid rgba(26, 95, 74, 0.12);
  border-left: 4px solid var(--dms-accent);
  box-shadow: 0 0.35rem 1rem rgba(19, 68, 54, 0.05);
}

.dms-about-quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--dms-primary-dark);
}

.dms-about-stats {
  position: relative;
  z-index: 1;
}

.dms-about-stat {
  background: #fff;
  border: 1px solid rgba(26, 95, 74, 0.1);
  box-shadow: 0 0.4rem 1.25rem rgba(19, 68, 54, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dms-about-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(19, 68, 54, 0.1);
}

.dms-about-stat__value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dms-primary-dark);
  letter-spacing: -0.02em;
}

.dms-about-stat__value--sm {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.2;
}

.dms-about-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dms-muted);
}

.dms-about-section-head {
  max-width: 40rem;
}

.dms-about-topic {
  background: #fff;
  border: 1px solid rgba(26, 95, 74, 0.1);
  box-shadow: 0 0.35rem 1.1rem rgba(19, 68, 54, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dms-about-topic:hover {
  border-color: rgba(26, 95, 74, 0.18);
  box-shadow: 0 0.65rem 1.75rem rgba(19, 68, 54, 0.09);
  transform: translateY(-2px);
}

.dms-about-topic__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, rgba(26, 95, 74, 0.12), rgba(26, 95, 74, 0.04));
}

.dms-about-topic--accent {
  border-color: rgba(196, 92, 38, 0.28);
  background: linear-gradient(180deg, #fffdf9 0%, #fff 40%);
}

.dms-about-topic__icon--accent {
  background: linear-gradient(145deg, rgba(196, 92, 38, 0.22), rgba(196, 92, 38, 0.07));
  color: #8a3d1c !important;
}

.dms-about-topic a {
  font-weight: 600;
}

.dms-about-foot .btn {
  font-weight: 600;
}
