:root {
  /* Premium Light Theme Palette */
  --primary: #f42c37;
  /* Vibrant striking red */
  --primary-hover: #e0222c;
  --primary-glow: rgba(244, 44, 55, 0.3);

  --surface: #ffffff;
  /* Clean white */
  --surface-alt: #f8fafc;
  /* Very light slate for sections/cards */
  --surface-dark: #0f172a;
  /* Dark color for footer */
  --surface-glass: rgba(255, 255, 255, 0.8);

  --on-surface: #0f172a;
  /* Slate 900 for main text */
  --on-surface-variant: #475569;
  /* Slate 600 for secondary text */
  --on-surface-dark: #ffffff;

  --outline: rgba(0, 0, 0, 0.1);
  --outline-variant: rgba(0, 0, 0, 0.05);

  --font-display: 'Hanken Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --spacing-unit: 8px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --container-max: 1280px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(244, 44, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(244, 44, 55, 0.04) 0%, transparent 50%);
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.flash-message-container {
  padding-top: 20px;
}

.flash-message-container .alert {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #e0222c 100%);
  color: #fff;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-slow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px var(--primary-glow);
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition-slow);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

.btn-primary:hover::before {
  left: 100%;
  transition: 0.7s ease;
}

.btn-outline {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid #fff;
  color: #fff;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-slow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.btn-outline:hover {
  background: #fff;
  color: var(--on-surface);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ════════════════════════════════════════════════════════════
   BOOTSTRAP 5 NAVBAR — ELMATICS custom skin
   Replaces the old .header + .navbar blocks.
   Bootstrap resets are carefully overridden here.
════════════════════════════════════════════════════════════ */

/* ── Wrapper ─────────────────────────────────────────────── */
.elmatics-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.05);
  padding: 0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  /* ensure Bootstrap sticky-top z-index is sufficient */
  z-index: 1040 !important;
}

/* Stronger shadow once user scrolls */
.elmatics-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}

/* ── Container sizing ────────────────────────────────────── */
.elmatics-nav-container {
  max-width: var(--container-max);
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  min-height: 72px;
}

@media (min-width: 1024px) {
  .elmatics-nav-container {
    padding: 0 64px;
  }
}

/* ── Brand block ─────────────────────────────────────────── */
.elmatics-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
  padding: 8px 0;
}

.elmatics-logo {
  height: 42px;
  width: auto;
  transition: filter var(--transition-fast);
}

.elmatics-brand:hover .elmatics-logo {
  filter: drop-shadow(0 0 10px rgba(244, 44, 55, 0.25));
}

/* Hide brand text on very small screens to save space */
@media (max-width: 360px) {
  .elmatics-brand-text { display: none; }
}

/* ── Mobile: ensure full logo is visible without horizontal scrolling ────────
   Strategy:
   • Shrink container gap so the right cluster (icons + toggler) doesn't crowd
     the logo into a compressed state.
   • Give the logo a max-width that pulls back ~1 cm (≈ 38px) from the right
     edge, keeping all text in the image readable.
   • padding-left stays small (8 px) so the logo sits near the left edge.
   • Logo height is kept at 42 px; width scales proportionally via max-width.
   ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .elmatics-nav-container {
    padding-left: 8px;
    padding-right: 8px;   /* symmetric — prevents right-side overflow */
    gap: 8px;             /* was 16px; tighter gap frees space for the logo  */
  }

  .elmatics-logo {
    /* Limit logo width so it never crowds the right cluster.
       calc(100vw - 8px left pad - 8px right pad - 38px x2 icons - 3px icon gap
            - 40px toggler - 8px x3 gaps = 100vw - 143px)
       Slightly generous value so the logo is as wide as possible
       while still leaving the right cluster fully visible. */
    max-width: calc(100vw - 168px) !important;
    width: auto !important;
    height: 48px !important;         /* Expanded height to utilize the empty space to the right of the logo */
    object-fit: contain !important;
    object-position: left center !important;
  }
}

/* Extra-small phones (up to 390 px): tighten a touch more */
@media (max-width: 390px) {
  .elmatics-logo {
    height: 40px !important;         /* Expanded height for smaller devices */
    max-width: calc(100vw - 150px) !important;
  }
}

/* ── Right side wrapper (social icons + toggler) ─────────── */
.elmatics-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* On large screens the menu is inline, so push right cluster to end */
@media (min-width: 992px) {
  .elmatics-nav-right {
    order: 3;
    margin-left: 0;
    flex-shrink: 0;
  }
}

/* ── Social / action icons ───────────────────────────────── */
.elmatics-actions {
    display: flex;
    /*gap: 10px;*/
    gap: 3px;
}

.action-btn {
  color: var(--on-surface-variant);
  background: var(--surface-alt);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--outline-variant);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.action-btn:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ── Hamburger toggler ───────────────────────────────────── */
.elmatics-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: var(--surface-alt) !important;
  border: 1px solid var(--outline-variant) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.elmatics-toggler:focus {
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
  outline: none;
}

.elmatics-toggler:hover {
  background: rgba(244, 44, 55, 0.08) !important;
  border-color: var(--primary) !important;
}

/* Three bars */
.toggler-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.25s ease,
              width     0.25s ease;
  transform-origin: center;
}

/* Animate bars → ✕ when menu is open */
.elmatics-toggler.open .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.elmatics-toggler.open .toggler-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.elmatics-toggler.open .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Nav links list ──────────────────────────────────────── */
.elmatics-nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop: horizontal, centred */
@media (min-width: 992px) {
  .elmatics-nav-links {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    order: 2;
    flex: 1;
  }
}

/* ── Individual nav link ─────────────────────────────────── */
.elmatics-link {
  position: relative;
  display: inline-block;
  color: var(--on-surface-variant) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px !important;
  white-space: nowrap;
  transition: color var(--transition-fast);
  background: transparent !important;
}

/* Responsive adjustments for tight desktop screens (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .elmatics-link {
    padding: 4px 8px !important;
    font-size: 12.2px;
    letter-spacing: 0.5px;
  }
  .elmatics-nav-container {
    gap: 8px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Underline indicator */
.elmatics-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 1px;
  transition: width var(--transition-slow);
}

.elmatics-link:hover,
.elmatics-link.active {
  color: var(--primary) !important;
}

.elmatics-link:hover::after,
.elmatics-link.active::after {
  width: calc(100% - 24px);
}

/* ── Thin red accent bar between brand and links (desktop) ── */
.nav-accent-line {
  display: none;
}

/* ══════════════════════════════════════════════════════════
   MOBILE COLLAPSED MENU PANEL
   Below lg breakpoint Bootstrap collapses #navMenu
══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  /* Full-width dropdown panel */
  #navMenu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--outline-variant);
    margin: 0 -24px;        /* bleed to edges */
    padding: 0 24px;
  }

  .elmatics-nav-links {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }

  .elmatics-link {
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 12px 8px !important;
    border-bottom: 1px solid var(--outline-variant);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Chevron arrow on mobile */
  .elmatics-link::before {
    content: '';
    display: none;
  }
  .elmatics-link::after {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    /* Use a CSS-only right-arrow */
    content: '›';
    font-size: 20px;
    color: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
  }

  .elmatics-link:hover::after,
  .elmatics-link.active::after {
    opacity: 1;
    width: auto;
  }

  /* Last item – no bottom border */
  .elmatics-nav-links .nav-item:last-child .elmatics-link {
    border-bottom: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: var(--surface-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/Images/Shared/default-hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #fff;
  max-width: 900px;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(244, 44, 55, 0.15);
  border: 1px solid rgba(244, 44, 55, 0.3);
  color: #ff858d;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 28px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 24px;
  letter-spacing: -2px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 650px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-pagination {
  position: absolute;
  bottom: 40px;
  right: max(24px, calc((100vw - var(--container-max)) / 2 + 64px));
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-pagination-dot {
  width: 40px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-slow);
  cursor: pointer;
  border-radius: 2px;
}

.hero-pagination-dot.active,
.hero-pagination-dot:hover {
  background-color: var(--primary);
  width: 64px;
  box-shadow: 0 0 12px var(--primary-glow);
}


/* Sections General */
.section {
  padding: 48px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
}

.section-alt {
  background-color: var(--surface-alt);
}

.section-dark {
  background-color: var(--surface-alt);
  /* Changed to light */
  color: var(--on-surface);
}

.section-dark p {
  color: var(--on-surface-variant) !important;
}

.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  color: var(--on-surface);
}

.section-title::before {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--on-surface-variant);
  font-size: 20px;
  max-width: 700px;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--on-surface-variant);
}

.about-intro-section .about-text {
  line-height: 1.75;
}

.about-intro-section .about-quote {
  color: var(--on-surface);
  font-weight: 700;
  line-height: 1.6;
}

.about-intro-section .intro-images {
  align-content: center;
}

@media (max-width: 767.98px) {
  .about-intro-section .section-title {
    display: block;
    font-size: 30px;
    line-height: 1.18;
  }

  .about-intro-section .section-title::before {
    margin-bottom: 14px;
  }

  .about-intro-section .about-text {
    font-size: 16px;
    line-height: 1.68;
    margin-bottom: 18px;
  }

  .about-intro-section .about-quote {
    font-size: 16px;
    padding-left: 18px;
  }

  .about-intro-section .intro-image-box.staggered {
    margin-top: 20px;
  }
}

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

.management-section .section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.management-section .section-title::before {
  display: none;
}

.management-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  padding: 28px 24px 26px;
  position: relative;
  overflow: hidden;
}

.management-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), #172033);
}

.management-card-founder {
  background: #0f172a;                       /* deep slate background to blend with dark image */
  border: 1px solid rgba(212, 175, 55, 0.4);  /* premium gold border */
  box-shadow: 0 24px 58px rgba(212, 175, 55, 0.12), 0 12px 24px rgba(0, 0, 0, 0.35);
  padding: 36px 32px 32px;
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.management-card-founder::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #d4af37, #f7e7a8, #d4af37); /* premium gold gradient top bar */
}

.founder-photo-wrap {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 1600 / 682 !important;       /* natural aspect ratio of the banner image */
  background: #0d0d0d !important;
  border: 4px solid #1e293b !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6) !important;
  margin: 0 auto 24px !important;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.founder-photo {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
  animation: founderImgFadeIn 1.1s ease both;
  transition: transform var(--transition-slow);
}

.management-card-founder:hover .founder-photo {
  transform: scale(1.018);
}

@keyframes founderImgFadeIn {
  from { opacity: 0; transform: scale(1.012); }
  to   { opacity: 1; transform: scale(1);     }
}

.founder-name {
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-top: 18px !important;
  margin-bottom: 12px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.founder-designation {
  background: rgba(212, 175, 55, 0.15) !important;
  color: #ffd700 !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 8px 24px !important;
  text-transform: uppercase !important;
  border-radius: var(--radius-full) !important;
  display: inline-flex !important;
  margin: 0 !important;
}

/* ── Desktop: show landscape image, hide portrait mobile image ─────────── */
.founder-photo-mobile { display: none !important; }
.founder-photo-desktop { display: block !important; }

/* ── Responsive adjustments for Founder photo wrap ──────────────────────── */
@media (max-width: 767.98px) {
  .management-card-founder {
    padding: 24px 16px 24px;
    margin-bottom: 28px;
  }

  /* Switch to portrait mobile image */
  .founder-photo-desktop { display: none !important; }
  .founder-photo-mobile  { display: block !important; }

  /* Remove fixed aspect ratio — let portrait image size naturally */
  .founder-photo-wrap {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    height: auto !important;
  }

  /* Portrait image: full width, natural height */
  .founder-photo-mobile {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  .founder-name {
    font-size: 21px !important;
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 479.98px) {
  .founder-name {
    font-size: 19px !important;
  }
  .founder-designation {
    font-size: 13px !important;
    padding: 6px 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-photo { animation: none; }
}
/* ══════════════════════════════════════════════════════════════════════════ */

.management-photo-wrap {
  width: min(210px, 58vw);
  aspect-ratio: 3 / 4;
  background: #f8fafc;
  border: 4px solid #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  margin: 0 auto 22px;
  overflow: hidden;
}

.management-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.04) contrast(1.02);
}

.management-level {
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.management-name {
  color: var(--on-surface);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.22;
  margin-bottom: 10px;
}

.management-designation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  padding: 8px 16px;
}

.management-designation.founder {
  background: rgba(244, 44, 55, 0.12);
  color: var(--primary);
}

.management-designation.director {
  background: rgba(23, 32, 51, 0.1);
  color: #172033;
}

@media (max-width: 767.98px) {
  .management-section .section-header {
    margin-bottom: 28px;
  }

  .management-section .section-title {
    display: block;
    font-size: 30px;
    line-height: 1.18;
  }

  .management-card {
    padding: 24px 18px 22px;
  }

  .management-photo-wrap {
    width: min(190px, 62vw);
    margin-bottom: 18px;
  }

  .management-name {
    font-size: 20px;
  }
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .certification-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-card {
  border: 1px solid var(--outline-variant);
  padding: 24px 16px;
  text-align: center;
  background: var(--surface);
  transition: var(--transition-slow);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-slow);
  transform-origin: left;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-card span:first-child {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}

.cert-card span:last-child {
  font-size: 13px;
  color: var(--on-surface-variant);
  letter-spacing: 1px;
}

.about-image-card {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--outline-variant);
}

.about-image-card h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-quote {
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  margin-bottom: 32px;
  color: var(--on-surface-variant);
  font-size: 18px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.read-more:hover .material-symbols-outlined {
  transform: translateX(8px);
}

/* Bento Grid */
.advantage-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

@media (min-width: 768px) {
  .advantage-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.advantage-subtitle {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
  font-size: 14px;
}

.advantage-title {
  font-size: 48px;
  margin: 0;
  color: var(--on-surface);
}

.advantage-desc {
  max-width: 450px;
  color: var(--on-surface-variant);
  font-size: 18px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  border: 1px solid var(--outline-variant);
  padding: 40px;
  background: var(--surface);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(244, 44, 55, 0.04), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(244, 44, 55, 0.2);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 32px;
  transition: var(--transition-slow);
}

.bento-card:hover .bento-icon {
  transform: scale(1.1);
}

.bento-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.bento-text {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Services */
.services-section .section-header {
  text-align: center;
}

.services-section .section-title {
  justify-content: center;
}

.services-section .section-title::before {
  display: none;
}

.services-grid {
  margin: 0;
}

.services-grid > [class*="col-"] {
  margin-bottom: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/11;
  background-color: var(--surface-dark);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

/* Slightly taller ratio on small phones so content has room to breathe */
@media (max-width: 575.98px) {
  .service-card {
    aspect-ratio: 4/5;
  }
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #fff;
}

.service-title {
  font-size: 32px;
  margin-bottom: 12px;
  color: #fff;
}

.service-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  font-size: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: gap var(--transition-slow);
}

.service-link:hover {
  gap: 12px;
  color: var(--primary);
}

.service-link .material-symbols-outlined {
  transition: transform var(--transition-slow);
}

.service-link:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Responsive content sizing — tablet */
@media (max-width: 991.98px) {
  .service-overlay {
    padding: 28px;
  }

  .service-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .service-desc {
    font-size: 15px;
    margin-bottom: 18px;
  }
}

/* Responsive content sizing — mobile */
@media (max-width: 575.98px) {
  .service-overlay {
    padding: 20px;
  }

  .service-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .service-desc {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .service-link {
    font-size: 13px;
  }
}

/* Registrations */
.reg-section-title {
  display: inline-block;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 40px;
  font-size: 28px;
  color: var(--on-surface);
}

.reg-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  transition: var(--transition-slow);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

@media (max-width: 767.98px) {
  .reg-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
}

.reg-item:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateX(8px);
}

.reg-info {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 18px;
  color: var(--on-surface);
}

@media (max-width: 767.98px) {
  .reg-info {
    gap: 16px;
    font-size: 16px;
  }
}

.reg-icon {
  color: var(--primary);
  font-size: 32px;
  background: rgba(244, 44, 55, 0.1);
  padding: 12px;
  border-radius: 50%;
}

.reg-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reg-link:hover {
  text-decoration: underline;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .jobs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.job-card {
  background-color: var(--surface);
  color: var(--on-surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-slow);
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.job-card:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(244, 44, 55, 0.2);
}

.job-icon {
  font-size: 40px;
  opacity: 0.7;
}

.job-title {
  font-weight: 700;
  font-size: 18px;
}

.job-link {
  font-size: 14px;
  color: var(--on-surface-variant);
  font-weight: 600;
}

.job-card:hover .job-link {
  color: rgba(255, 255, 255, 0.9);
}

/* =====================================================================
   5 High-Impact E&I Successes Section
   ===================================================================== */
.ei-successes-wrapper {
  margin-top: 32px;
  padding: 36px 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  border: 1px solid rgba(244, 44, 55, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.ei-successes-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, #ff6b35 100%);
  border-radius: 16px 0 0 16px;
}

.ei-successes-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(244, 44, 55, 0.2);
}

.ei-header-icon {
  font-size: 32px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(244, 44, 55, 0.5));
}

.ei-successes-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.ei-success-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ei-success-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
  position: relative;
  cursor: default;
}

.ei-success-item:hover {
  background: rgba(244, 44, 55, 0.10);
  border-color: rgba(244, 44, 55, 0.35);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(244, 44, 55, 0.12);
}

.ei-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(244, 44, 55, 0.4);
}

.ei-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ei-check-icon {
  font-size: 22px;
  color: #4ade80;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.45));
}

.ei-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0;
}

.ei-success-item:hover .ei-text {
  color: #ffffff;
}

@media (max-width: 640px) {
  .ei-successes-wrapper {
    padding: 24px 20px;
  }

  .ei-success-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .ei-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ei-text {
    font-size: 14px;
  }
}

/* Marquee */
.marquee-section {
  padding: 16px 0;
  background: var(--surface);
  overflow: hidden;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}

.marquee-header {
  display: table;
  margin: 0 auto 16px auto;
  font-weight: 700;
  font-size: 28px;
  color: var(--on-surface);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
}

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  gap: 48px;
  align-items: center;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  transition: var(--transition-slow);
  cursor: pointer;
  font-weight: 700;
  font-size: 24px;
  color: var(--on-surface);
  flex-shrink: 0;
}

.client-logo img {
  width: 200px;
  height: 112px;
  object-fit: contain;
  display: block;
}

.client-logo:hover {
  filter: contrast(1.1);
  color: var(--primary);
  transform: scale(1.05);
}

/* Contact */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-title {
  font-size: 56px;
  margin-bottom: 24px;
  letter-spacing: -1px;
  border-left: 6px solid var(--primary);
  padding-left: 18px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-block h4 {
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.contact-block p {
  color: var(--on-surface-variant);
  font-size: 18px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--on-surface);
  font-weight: 600;
}

.map-placeholder {
  height: 240px;
  background-color: var(--surface-alt);
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.contact-form-card {
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--outline-variant);
}

.contact-form-title {
  font-size: 28px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--outline-variant);
  background-color: var(--surface-alt);
  color: var(--on-surface);
  font-family: inherit;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(244, 44, 55, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #e0222c 100%);
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 24px;
  transition: var(--transition-slow);
  border-radius: var(--radius-sm);
  font-size: 16px;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

/* Footer */
.footer {
  background-color: var(--surface-dark);
  color: #fff;
  border-top: 1px solid var(--outline-variant);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: #cbd5e1;
  /* Slate 300 for readability on dark footer */
  margin-bottom: 32px;
  font-size: 16px;
  max-width: 300px;
}

.footer-badges {
  display: flex;
  gap: 20px;
}

.footer-badges .material-symbols-outlined {
  color: var(--primary);
  font-size: 32px;
}

.footer-links h3 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-size: 14px;
  letter-spacing: 2px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: #94a3b8;
  /* Slate 400 */
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-contact h3 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-size: 14px;
  letter-spacing: 2px;
}

.footer-contact p {
  color: #cbd5e1;
  margin-bottom: 12px;
  font-size: 16px;
}

.footer-bottom {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
}

/* About Page Components */
.hero-sm {
  height: 60vh;
  min-height: 400px;
}

@media (max-width: 768px) {
  .hero-sm {
    height: auto;
    min-height: 320px;
    padding: 64px 0 48px;
  }
}

.intro-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.intro-image-box {
  background-color: var(--surface-alt);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  aspect-ratio: 1;
}

.intro-image-box.staggered {
  margin-top: 32px;
}

.intro-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.intro-img:hover {
  filter: grayscale(0%);
}

.md-section {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.md-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background-color: var(--primary);
  opacity: 0.05;
  transform: skewX(12deg) translateX(50%);
  pointer-events: none;
}

.md-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .md-grid {
    grid-template-columns: 4fr 8fr;
  }
}

.md-portrait-frame {
  position: relative;
}

.md-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #1a1a1a;
  transform: translate(16px, 16px);
  z-index: 0;
}

.md-portrait {
  position: relative;
  z-index: 10;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: brightness(90%) grayscale(100%);
}

.md-quote-icon {
  color: #1a1a1a;
  font-size: 64px;
  margin-bottom: 24px;
}

.md-text {
  font-size: 18px;
  color: #1a1a1a;
  opacity: 0.95;
  line-height: 1.8;
  font-style: italic;
}

.md-text p {
  margin-bottom: 16px;
}

.md-author {
  margin-top: 32px;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: 16px;
}

.md-author-title {
  font-size: 24px;
  color: #1a1a1a;
  font-weight: 700;
}

.md-author-subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
}

.stats-section {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.stat-icon.alt {
  color: var(--on-surface-variant);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--on-surface);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--on-surface-variant);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--outline-variant);
}

@media (min-width: 1024px) {
  .vision-mission-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.vm-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-card {
  background-color: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
}

@media (min-width: 1024px) {
  .vision-card {
    border-bottom: none;
    border-right: 1px solid var(--outline-variant);
  }
}

.mission-card {
  background-color: var(--on-surface);
  color: #fff;
}

.vm-accent {
  width: 64px;
  height: 4px;
  background-color: var(--primary);
  margin-bottom: 32px;
}

.mission-card .vm-accent {
  background-color: #fff;
}

.vm-title {
  font-size: 32px;
  margin-bottom: 24px;
}

.vm-subtitle {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.vision-card .vm-subtitle {
  color: var(--on-surface-variant);
}

.mission-card .vm-subtitle {
  color: #fff;
}

.vm-text {
  font-size: 16px;
}

.vision-card .vm-text {
  color: var(--on-surface-variant);
}

.mission-card .vm-text {
  color: var(--surface-alt);
  opacity: 0.9;
}

.manpower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .manpower-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.manpower-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.manpower-card.featured {
  transform: scale(1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  z-index: 10;
  border-color: var(--primary);
}

@media (min-width: 768px) {
  .manpower-card.featured {
    transform: scale(1.05);
  }
}

.manpower-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.manpower-card.featured .manpower-icon-wrap {
  background-color: var(--primary);
}

.manpower-card.featured .manpower-icon-wrap .material-symbols-outlined {
  color: #fff;
}

.manpower-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.manpower-text {
  font-size: 16px;
  color: var(--on-surface-variant);
}

.cert-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background-color: var(--surface-alt);
  border-bottom: 4px solid var(--outline-variant);
  transition: var(--transition-fast);
}

.cert-box:nth-child(1) { border-bottom-color: var(--primary); }
.cert-box:nth-child(2) { border-bottom-color: var(--on-surface-variant); }
.cert-box:nth-child(3) { border-bottom-color: var(--on-surface); }

.cert-box .material-symbols-outlined {
  font-size: 48px;
  margin-bottom: 24px;
}
.cert-box:nth-child(1) .material-symbols-outlined { color: var(--primary); }
.cert-box:nth-child(2) .material-symbols-outlined { color: var(--on-surface-variant); }
.cert-box:nth-child(3) .material-symbols-outlined { color: var(--on-surface); }

.cert-box h5 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.cert-box p {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

/* Services Page Components */
.bento-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bento-services-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.service-bento-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  padding: 40px;
  transition: border-color var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.service-bento-card:hover {
  border-color: var(--primary);
}

.service-bento-card.dark {
  background-color: var(--on-surface);
  color: var(--surface-bright);
  border-top: 4px solid var(--primary);
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.service-bento-card.dark:hover {
  border-color: var(--primary);
}

.service-bento-card.full-width {
  padding: 0;
  flex-direction: column;
  background-color: var(--surface-alt);
}

@media (min-width: 768px) {
  .service-bento-card.full-width {
    flex-direction: row;
  }
  
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: span 12; }
}

.service-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon-box.dark-box {
  background-color: var(--on-surface);
  color: var(--primary);
}

.service-icon-box.primary-box {
  background-color: var(--primary);
  color: var(--surface-bright);
}

.service-icon-box.alt-box {
  background-color: var(--surface-alt);
  color: var(--on-surface);
}

.service-icon-box.tertiary-box {
  background-color: #3776b8;
  color: var(--surface-bright);
}

.service-bento-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--on-surface);
}

.service-bento-card.dark .service-bento-title {
  color: var(--primary);
}

.service-bento-text {
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-bento-card.dark .service-bento-text {
  color: var(--surface-alt);
  opacity: 0.8;
}

.service-bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #135d9d;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  transition: gap var(--transition-fast);
}

.service-bento-link:hover {
  gap: 16px;
}

.service-image-square {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .service-image-square {
    width: 33%;
    margin-top: 0;
    margin-left: 32px;
  }
}

.service-image-rect {
  width: 100%;
  height: 192px;
  overflow: hidden;
  margin-top: auto;
}

.service-image-half {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-image-half {
    width: 50%;
    height: auto;
  }
}

.service-image-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-bento-card:hover .service-image-inner {
  transform: scale(1.05);
}

.service-image-inner.grayscale {
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.service-bento-card:hover .service-image-inner.grayscale {
  filter: grayscale(0%);
}

.service-list {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--on-surface-variant);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--surface-alt);
}

.service-list-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 14px;
}

.service-tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
}

.service-tag {
  background-color: var(--surface-alt);
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.service-split-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .service-split-content {
    width: 50%;
  }
}

/* ================================================================
   E&I PROJECT SERVICES — INTRO BLOCK
   ================================================================ */

.eandi-intro-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .eandi-intro-block {
    grid-template-columns: 58fr 42fr;
    gap: 52px;
    align-items: center;
  }
}

.eandi-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(244, 44, 55, 0.08);
  border: 1px solid rgba(244, 44, 55, 0.2);
  border-radius: var(--radius-full);
  padding: 5px 16px;
  margin-bottom: 18px;
}

.eandi-main-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--on-surface);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.eandi-title-accent {
  color: var(--primary);
}

.eandi-tagline {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 18px;
  line-height: 1.5;
}

.eandi-body-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-surface-variant);
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .eandi-body-text { font-size: 16px; }
}

.eandi-services-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--on-surface);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eandi-services-heading::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Our Services Include — modern icon-card list ── */
.eandi-services-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
}

@media (min-width: 640px) {
  .eandi-services-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }
}

/* Each row */
.esi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
  cursor: default;
}

.esi-item:hover {
  background: #fff;
  border-color: rgba(244, 44, 55, 0.22);
  box-shadow: 0 4px 16px rgba(244, 44, 55, 0.08);
  transform: translateY(-1px);
}

/* Coloured icon container */
.esi-icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.esi-item:hover .esi-icon-wrap {
  transform: scale(1.1);
}

.esi-icon-wrap .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Colour variants */
.esi-red    { background: rgba(244, 44,  55,  0.10); color: #e8192c; }
.esi-blue   { background: rgba(29,  78,  216, 0.10); color: #1d4ed8; }
.esi-teal   { background: rgba(13,  148, 136, 0.10); color: #0d9488; }
.esi-orange { background: rgba(234, 88,  12,  0.10); color: #ea580c; }
.esi-indigo { background: rgba(99,  102, 241, 0.10); color: #6366f1; }
.esi-amber  { background: rgba(217, 119, 6,   0.10); color: #d97706; }
.esi-green  { background: rgba(22,  163, 74,  0.10); color: #16a34a; }

/* Label text */
.esi-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--on-surface-variant);
}

.esi-item:hover .esi-label {
  color: var(--on-surface);
}

/* Mobile tweak */
@media (max-width: 639.98px) {
  .esi-label { font-size: 13.5px; }
  .esi-icon-wrap { width: 32px; height: 32px; border-radius: 8px; }
  .esi-icon-wrap .material-symbols-outlined { font-size: 18px; }
}

.eandi-why-box {
  background: linear-gradient(135deg, var(--on-surface) 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.eandi-why-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff858d);
}

.eandi-why-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.eandi-why-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eandi-why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
}

.eandi-why-list li .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(244,44,55,0.5));
}

.eandi-intro-image {
  width: 100%;
}

@media (min-width: 1024px) {
  .eandi-intro-image {
    position: sticky;
    top: 96px;
  }
}

.eandi-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.22),
    0 4px 16px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.06);
}

.eandi-image-wrap img {
  display: block;
  width: 100%;
  height: auto;                /* respects natural 900×760 aspect ratio */
  border-radius: var(--radius-md);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.eandi-image-wrap:hover img {
  transform: scale(1.015);
}

/* No overlay needed — image already has dark background */
.eandi-image-wrap::before {
  display: none;
}

/* ── Work-profile photo panel (above info card) ─────────────────────────── */
.eandi-work-photo-wrap {
  position: relative;
  width: 100%;
  /* Height sized so the panel reads as ~75% of the combined column height.
     overflow:hidden clips both the hover scale and the bottom-crop. */
  height: clamp(320px, 46vw, 560px);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  /* Tight shadow only on sides/top so it merges with card below */
  box-shadow:
    0 -6px 32px rgba(0,0,0,0.18),
    4px 0 24px rgba(0,0,0,0.14),
    -4px 0 24px rgba(0,0,0,0.14);
}

.eandi-work-photo {
  display: block;
  width: 100%;
  /* Extend image 57px (~1.5 cm at 96 dpi) beyond the container bottom.
     overflow:hidden on the wrap clips that strip, hiding it on both
     mobile and desktop without any JavaScript. */
  height: calc(100% + 57px);
  object-fit: cover;
  /* Anchor the visible area to the top of the image so the bottom
     1.5 cm is the part that gets clipped away. */
  /* Mobile default: centre — engineer visible on full-width container */
  object-position: center top;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Desktop: column is ~42% wide so container is tall & narrow.
   Shift right to 72% so the engineer stays in frame — same
   natural result mobile gets at full width. */
@media (min-width: 1024px) {
  .eandi-work-photo {
    object-position: 72% top;
  }
}

.eandi-work-photo-wrap:hover .eandi-work-photo {
  transform: scale(1.04);
}

/* Gradient fade bottom — blends photo into the info card below */
.eandi-work-photo-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(8, 14, 30, 0.55) 55%,
    rgba(8, 14, 30, 0.92) 100%
  );
  pointer-events: none;
}

/* "Site Operations" floating label — bottom-left of photo */
.eandi-work-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 14, 30, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  z-index: 4;
  pointer-events: none;
}

.eandi-work-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;   /* green "live" pulse */
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse-live 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0   rgba(34,197,94,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0);   }
}

/* Info card flush below the photo — remove top radius so it reads as one unit */
.eandi-work-photo-wrap + .eandi-image-wrap {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.22),
    0 4px 16px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.06);
  margin-top: 0;  /* flush join */
}

.eandi-work-photo-wrap + .eandi-image-wrap img {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Mobile: reduce photo height */
@media (max-width: 639.98px) {
  .eandi-work-photo-wrap {
    height: clamp(200px, 58vw, 320px);
  }
  .eandi-work-label {
    font-size: 10.5px;
    bottom: 12px;
    left: 12px;
    padding: 5px 12px 5px 8px;
  }
}

.eandi-image-badge { display: none; }   /* legacy — removed */

/* ── ISO Certified badge — pinned inside top-right corner of image frame ── */
.eandi-iso-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 96px;
  height: 96px;
}

.eandi-iso-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1e3a6e 0%, #0a1428 72%);
  border: 4px solid #d4af37;
  box-shadow:
    0 0 0 2px rgba(212,175,55,0.30),
    0 6px 24px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,215,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
}

/* Inner decorative thin ring */
.eandi-iso-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.30);
  pointer-events: none;
}

.eandi-iso-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255,215,0,0.50);
}

.eandi-iso-sub {
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  color: rgba(200,210,230,0.85);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}

.eandi-iso-num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.5px;
  line-height: 1;
}

@media (max-width: 639.98px) {
  .eandi-iso-badge { width: 76px; height: 76px; top: 12px; right: 12px; }
  .eandi-iso-label { font-size: 17px; }
  .eandi-iso-num   { font-size: 8.5px; }
}

.eandi-divider {
  margin: 56px 0 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--outline-variant), transparent);
  position: relative;
}

.eandi-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

@media (max-width: 639.98px) {
  .eandi-main-title { font-size: 24px; }
  .eandi-why-box    { padding: 20px; }
  .eandi-divider    { margin: 40px 0 36px; }
  .eandi-services-list li { font-size: 13.5px; }
}

/* ================================================================
   END E&I PROJECT SERVICES BLOCK
   ================================================================ */

/* Service Detail (Engineering & Design) */
.service-detail-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  max-width: 900px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .service-detail-lead {
    font-size: 20px;
    margin-bottom: 48px;
  }
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    margin-bottom: 48px;
  }
}

.service-detail-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-detail-image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .service-detail-image img {
    height: 320px;
  }
}

@media (min-width: 1024px) {
  .service-detail-image {
    position: sticky;
    top: 96px;
  }

  .service-detail-image img {
    height: 480px;
  }
}

.service-detail-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 28px;
  color: var(--on-surface);
  margin-bottom: 18px;
}

.service-detail-title::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 2px;
  background-color: var(--primary);
}

@media (min-width: 768px) {
  .service-detail-title {
    font-size: 34px;
  }
}

.service-detail-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
}

.service-detail-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 18px;
}

.service-detail-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .service-detail-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
  }
}

.service-detail-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-surface-variant);
}

.service-detail-list-item .material-symbols-outlined {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 18px;
  color: var(--primary);
}

.service-detail-closing {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-surface-variant);
  padding-top: 32px;
  border-top: 1px solid var(--outline-variant);
}

.cta-section {
  background-color: var(--primary);
  padding: 64px 0;
  text-align: center;
}

.cta-title {
  font-size: 32px;
  color: #fff;
  margin-bottom: 24px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

.btn-solid-dark {
  background-color: var(--on-surface);
  color: #fff;
  padding: 16px 40px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #fff;
  transition: all var(--transition-fast);
}

.btn-solid-dark:hover {
  background-color: transparent;
  color: #fff;
}

.btn-outline-white {
  background-color: transparent;
  color: #fff;
  padding: 16px 40px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #fff;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  background-color: #fff;
  color: var(--primary);
}

.btn-primary-flat {
  background-color: var(--primary);
  color: #fff;
  padding: 12px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-fast);
  align-self: flex-start;
  margin-top: 32px;
  display: inline-flex;
}

.btn-primary-flat:hover {
  background-color: #93000d;
}

/* Quality & Safety Page Components */
.page-header {
  padding: 64px 0;
  border-bottom: 1px solid var(--outline-variant);
}

.page-title {
  font-size: 48px;
  color: var(--on-surface);
  margin-bottom: 24px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 800px;
}

.quality-safety-header .page-title {
  max-width: 900px;
}

.quality-safety-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
}

.quality-safety-image {
  min-height: 320px;
}

.quality-safety-title {
  color: var(--on-surface);
  font-size: 36px;
  line-height: 1.18;
  margin-bottom: 20px;
}

.quality-safety-text {
  color: var(--on-surface-variant);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 18px;
}

.quality-safety-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-top: 4px solid var(--primary);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
  padding: 32px;
}

.quality-card-blue {
  border-top-color: #3776b8;
}

.quality-card-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.quality-card-heading .material-symbols-outlined {
  color: var(--primary);
  font-size: 34px;
  font-variation-settings: 'FILL' 1;
}

.quality-card-blue .quality-card-heading .material-symbols-outlined {
  color: #3776b8;
}

.quality-card-heading h2 {
  color: var(--on-surface);
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
}

.quality-list-title {
  color: var(--on-surface);
  font-size: 18px;
  margin: 24px 0 18px;
}

.quality-list-item {
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--outline-variant);
  display: flex;
  gap: 10px;
  height: 100%;
  padding: 14px;
}

.quality-list-item .material-symbols-outlined {
  color: var(--primary);
  flex: 0 0 auto;
  font-size: 21px;
  margin-top: 1px;
}

.quality-list-item span:last-child {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.45;
}

.quality-philosophy {
  background: var(--on-surface);
  border-left: 5px solid var(--primary);
  margin-top: 48px;
  padding: 34px;
}

.quality-philosophy .advantage-subtitle {
  color: var(--primary);
}

.quality-philosophy blockquote {
  color: #ffffff;
  font-size: 28px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.35;
  margin: 12px 0 18px;
}

.quality-philosophy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 767.98px) {
  .quality-safety-title {
    font-size: 28px;
  }

  .quality-safety-text {
    font-size: 16px;
    line-height: 1.64;
  }

  .quality-safety-card {
    padding: 24px 18px;
  }

  .quality-card-heading {
    align-items: flex-start;
  }

  .quality-card-heading h2 {
    font-size: 23px;
  }

  .quality-safety-image {
    min-height: 220px;
  }

  .quality-philosophy {
    margin-top: 36px;
    padding: 26px 18px;
  }

  .quality-philosophy blockquote {
    font-size: 22px;
  }

  .quality-philosophy p {
    font-size: 16px;
  }
}

.safety-commitment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .safety-commitment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.title-underline {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.title-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 4px;
  background-color: var(--primary);
}

.quote-block {
  padding: 24px;
  background-color: var(--surface-alt);
  border-left: 4px solid var(--primary);
  margin-top: 32px;
}

.quote-block p {
  font-style: italic;
  font-weight: 600;
  color: var(--on-surface);
}

.brutalist-border {
  border: 1px solid #e2e8f0;
}

.industrial-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.industrial-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.health-qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .health-qa-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.brutalist-card {
  background-color: var(--surface);
  padding: 32px;
}

.brutalist-card.top-border-tertiary {
  border-top: 4px solid #3776b8;
}

.qa-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qa-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qa-list-item .material-symbols-outlined {
  margin-top: 4px;
}

.cert-dark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .cert-dark-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-dark-card {
  background-color: var(--on-surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast);
}

.cert-dark-card:hover {
  transform: scale(1.02);
}

.cert-dark-icon-wrap {
  width: 64px;
  height: 64px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.cert-dark-icon-wrap .material-symbols-outlined {
  color: #fff;
  font-size: 36px;
}

.cert-dark-title {
  color: var(--surface-bright);
  font-size: 24px;
  margin-bottom: 8px;
}

.cert-dark-subtitle {
  color: #c8c6c5;
  font-size: 12px;
  margin-bottom: 16px;
}

.cert-dark-desc {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  width: 100%;
  color: var(--surface-alt);
  font-size: 14px;
}

.training-section {
  background-color: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.training-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .training-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.training-content {
  padding: 32px;
}

@media (min-width: 768px) {
  .training-content {
    padding: 48px;
  }
}

.training-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .training-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

.training-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-surface);
  font-weight: 600;
  font-size: 14px;
}

.training-list-item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
}

.training-image-wrap {
  position: relative;
  height: 256px;
}

@media (min-width: 1024px) {
  .training-image-wrap {
    height: 100%;
    min-height: 400px;
  }
}

.training-image-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--primary);
  opacity: 0.1;
  mix-blend-mode: multiply;
}

/* Project Page Components */
.page-header-accent {
  width: 96px;
  height: 4px;
  background-color: var(--primary);
  margin-top: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-slow);
}

.project-card:hover {
  border-color: var(--primary);
}

.project-image-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%);
  transition: filter var(--transition-slow);
}

.project-card:hover .project-image {
  filter: grayscale(100%);
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 4px 12px;
  font-weight: 700;
  font-size: 14px;
}

.project-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 24px;
  color: var(--on-surface);
  margin-bottom: 16px;
}

.project-desc {
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-link {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-link .material-symbols-outlined {
  margin-left: 8px;
  transition: transform var(--transition-fast);
}

.project-card:hover .project-link .material-symbols-outlined {
  transform: translateX(8px);
}

.project-commitment-section {
  margin-top: 64px;
  padding: 42px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--outline-variant);
  border-left: 5px solid var(--primary);
}

.project-commitment-title {
  color: var(--on-surface);
  font-size: 34px;
  line-height: 1.18;
  margin-bottom: 18px;
}

.project-commitment-text,
.project-commitment-summary {
  color: var(--on-surface-variant);
  font-size: 18px;
  line-height: 1.7;
}

.project-commitment-text {
  margin-bottom: 0;
}

.project-commitment-summary {
  border-top: 1px solid var(--outline-variant);
  margin: 32px 0 0;
  padding-top: 24px;
}

.project-commitment-item {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 16px;
}

.project-commitment-item .material-symbols-outlined {
  color: var(--primary);
  flex: 0 0 auto;
  font-size: 28px;
}

.project-commitment-item span:last-child {
  color: var(--on-surface);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  .project-commitment-section {
    margin-top: 40px;
    padding: 28px 18px;
  }

  .project-commitment-title {
    font-size: 28px;
  }

  .project-commitment-text,
  .project-commitment-summary {
    font-size: 16px;
    line-height: 1.62;
  }

  .project-commitment-summary {
    margin-top: 24px;
    padding-top: 20px;
  }
}

.project-cta-section {
  margin-top: 80px;
  padding: 48px;
  background-color: var(--on-secondary-fixed);
  border-top: 4px solid var(--primary);
  text-align: center;
}

/* Modal Components */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal:target {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modalZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.modal-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@keyframes modalZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-btn {
  position: sticky;
  top: 0px;
  float: right;
  margin-top: -8px;
  margin-right: -8px;
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(244, 44, 55, 0.4);
}

.close-btn:hover {
  background-color: #e0222c;
  color: #fff;
  transform: scale(1.1);
}

/* ── EEProjects Hero — responsive left-border accent ────────── */
.hero-content-projects {
  border-left: 4px solid var(--primary);
  padding-left: 32px;
  margin-left: 24px;
}

.hero-text-projects {
  font-size: 18px;
  max-width: 700px;
}

@media (max-width: 768px) {
  .hero-content-projects {
    margin-left: 0;          /* remove extra left push on mobile */
    padding-left: 16px;      /* reduce padding so text fits */
    border-left-width: 3px;
  }

  .hero-text-projects {
    font-size: 15px;         /* readable without overflowing */
    line-height: 1.7;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content-projects {
    padding-left: 12px;
    border-left-width: 3px;
  }

  .hero-text-projects {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(26px, 7vw, 40px);  /* fluid — won't overflow any phone */
    letter-spacing: -1px;
  }

  .section {
    padding: 32px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .advantage-title {
    font-size: 32px;
  }
}

/* ══════════════════════════════════════════════════════════════
   PROJECT VERTICALS — TAB NAVIGATION
   ══════════════════════════════════════════════════════════════ */

.pv-tab-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Tab nav bar */
.pv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--outline-variant);
  background-color: var(--surface-alt);
  padding: 0 8px;
  list-style: none;
  margin: 0;
}

.pv-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  border-radius: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pv-tab-btn:hover {
  color: var(--primary);
  background-color: rgba(244, 44, 55, 0.04);
}

.pv-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: rgba(244, 44, 55, 0.06);
}

.pv-tab-icon {
  font-size: 20px;
}

/* Tab content area */
.pv-tab-content {
  padding-top: 40px;
}

.tab-pane {
  animation: tabFadeIn 0.3s ease-out;
}

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

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — CONTROLS (Search + Filter Pills)
   ══════════════════════════════════════════════════════════════ */

.cp-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

/* Search */
.cp-search-wrap {
  position: relative;
  max-width: 440px;
}

.cp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--on-surface-variant);
  pointer-events: none;
}

.cp-search {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--on-surface);
  background-color: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.cp-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.cp-search::placeholder {
  color: #94a3b8;
}

/* Filter Pills */
.cp-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
  background-color: var(--surface-alt);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cp-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(244, 44, 55, 0.05);
}

.cp-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — SECTOR BANNERS
   ══════════════════════════════════════════════════════════════ */

.cp-sector-banners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cp-sector-banner {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.cp-sector-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.7);
  transition: filter var(--transition-slow), transform var(--transition-slow);
}

.cp-sector-banner:hover img {
  filter: grayscale(0%) brightness(0.85);
  transform: scale(1.06);
}

.cp-sector-banner-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.cp-sector-banner-label .material-symbols-outlined {
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .cp-sector-banners {
    grid-template-columns: repeat(3, 1fr);
  }
  .cp-sector-banners .cp-sector-banner:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 576px) {
  .cp-sector-banners {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-sector-banners .cp-sector-banner:nth-child(n+3) {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — STATS STRIP
   ══════════════════════════════════════════════════════════════ */

.cp-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, var(--on-surface) 0%, #1e293b 100%);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.cp-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.cp-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.cp-stat-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cp-stats-strip {
    gap: 16px 0;
  }
  .cp-stat {
    padding: 0 20px;
  }
  .cp-stat-divider {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — TABLE
   ══════════════════════════════════════════════════════════════ */

.cp-table-wrap {
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0;
}

/* Table head */
.cp-table thead {
  background: linear-gradient(135deg, var(--on-surface) 0%, #1e293b 100%);
}

.cp-table th {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  white-space: nowrap;
}

.cp-th-sr {
  width: 52px;
  text-align: center;
}

/* Table body rows */
.cp-table tbody tr {
  border-bottom: 1px solid var(--outline-variant);
  transition: background-color var(--transition-fast);
}

.cp-table tbody tr:last-child {
  border-bottom: none;
}

.cp-table tbody tr:nth-child(even) {
  background-color: var(--surface-alt);
}

.cp-table tbody tr:hover {
  background-color: rgba(244, 44, 55, 0.04) !important;
}

.cp-table td {
  padding: 13px 16px;
  color: var(--on-surface);
  border: none;
  vertical-align: middle;
}

.cp-sr {
  text-align: center;
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 600;
  width: 52px;
}

.cp-client-name {
  font-weight: 600;
  color: var(--on-surface);
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — SECTOR BADGES
   ══════════════════════════════════════════════════════════════ */

.cp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cp-badge-oil {
  background-color: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.cp-badge-power {
  background-color: rgba(234, 179, 8, 0.12);
  color: #a16207;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.cp-badge-steel {
  background-color: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.cp-badge-fertilizer {
  background-color: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.cp-badge-chemical {
  background-color: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.cp-badge-pharma {
  background-color: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.cp-badge-food {
  background-color: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.cp-badge-aviation {
  background-color: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — NO RESULTS STATE
   ══════════════════════════════════════════════════════════════ */

.cp-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  color: var(--on-surface-variant);
  text-align: center;
}

.cp-no-results .material-symbols-outlined {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.cp-no-results p {
  font-size: 15px;
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — MOBILE CARDS (xs only)
   ══════════════════════════════════════════════════════════════ */

.cp-mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -4px;
}

.cp-mobile-card {
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cp-mobile-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.cp-mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cp-mc-sr {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface-variant);
  background-color: var(--surface-alt);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

.cp-mc-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--on-surface);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cp-mc-location {
  font-size: 12px;
  color: var(--on-surface-variant);
}

/* ══════════════════════════════════════════════════════════════
   CLIENT PORTFOLIO — FOOTNOTE
   ══════════════════════════════════════════════════════════════ */

.cp-footnote {
  font-size: 12px;
  color: var(--on-surface-variant);
  opacity: 0.65;
  margin-top: 16px;
  font-style: italic;
  padding: 0 4px;
}

/* ══════════════════════════════════════════════════════════════
   PROJECT VERTICALS TAB — RESPONSIVE OVERRIDES
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .pv-tab-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .pv-tab-icon {
    font-size: 18px;
  }

  .pv-tab-content {
    padding-top: 28px;
  }

  .cp-controls {
    gap: 12px;
  }

  .cp-search-wrap {
    max-width: 100%;
  }

  .cp-table-wrap {
    display: none; /* replaced by mobile cards on xs */
  }

  .cp-sector-banner-label {
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .cp-mobile-cards {
    display: none !important;
  }

  .cp-table-wrap {
    display: block !important;
  }
}

/* ================================================================
   HALLMARK OF EXCELLENCE — AWARDS & CERTIFICATES SECTION
   ================================================================ */

/* ---------- Section Wrapper ---------- */
.hallmark-section {
  background: linear-gradient(160deg, #fafbff 0%, #f8f6f0 40%, #fffdf5 100%);
  position: relative;
  overflow: hidden;
}

.hallmark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(244, 44, 55, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.hallmark-header {
  max-width: 720px;
  margin: 0 auto 12px;
}

.hallmark-title {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hallmark-trophy-icon {
  font-size: 2.4rem;
  background: linear-gradient(135deg, #b8860b, #d4af37, #ffd700, #d4af37, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(212,175,55,0.4));
}

/* ---------- Decorative Divider ---------- */
.hallmark-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 420px;
}

.hallmark-divider::before,
.hallmark-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #d4af37 60%, transparent);
}

.hallmark-divider-star {
  font-size: 1.3rem;
  color: #d4af37;
  margin: 0 12px;
  animation: hallmarkStarPulse 3s ease-in-out infinite;
}

@keyframes hallmarkStarPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%       { transform: scale(1.15) rotate(15deg); opacity: 0.85; }
}

/* ---------- Certificate Card ---------- */
.cert-award-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.08),
    0 1px 4px rgba(0,0,0,0.05),
    inset 0 0 0 1px rgba(212,175,55,0.15);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}

.cert-award-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.14),
    0 4px 12px rgba(212,175,55,0.18),
    inset 0 0 0 1.5px rgba(212,175,55,0.4);
}

.cert-award-card.featured-cert {
  box-shadow:
    0 6px 32px rgba(212,175,55,0.22),
    0 1px 4px rgba(0,0,0,0.06),
    inset 0 0 0 2px rgba(212,175,55,0.5);
}

.cert-award-card.featured-cert:hover {
  box-shadow:
    0 24px 64px rgba(212,175,55,0.32),
    0 6px 16px rgba(244,44,55,0.10),
    inset 0 0 0 2px #d4af37;
}

/* ---------- Shimmer / Shine Layer ---------- */
.cert-award-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 200% 200%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cert-award-card:hover .cert-award-shine {
  opacity: 1;
  animation: hallmarkShimmer 1.2s ease forwards;
}

@keyframes hallmarkShimmer {
  0%   { background-position: -100% -100%; }
  100% { background-position: 200% 200%; }
}

/* ---------- Badge Icon ---------- */
.cert-award-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(212,175,55,0.5);
}

.cert-award-badge .material-symbols-outlined { font-size: 1.2rem; color: #fff; }

.cert-award-badge.featured-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f42c37, #ff6b6b);
  box-shadow: 0 3px 12px rgba(244,44,55,0.45);
}

.cert-award-badge.featured-badge .material-symbols-outlined { font-size: 1.4rem; }

/* ---------- Certificate Image Wrapper ---------- */
.cert-award-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0ede8;
}

.cert-award-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}

.cert-award-card:hover .cert-award-img { transform: scale(1.06); }

/* Hover overlay */
.cert-award-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.cert-award-card:hover .cert-award-overlay { opacity: 1; }

.cert-zoom-icon { font-size: 2.8rem; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }

.cert-view-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd700;
}

/* ---------- Card Body ---------- */
.cert-award-body {
  padding: 18px 20px 20px;
  border-top: 2px solid rgba(212,175,55,0.18);
}

.cert-award-issuer {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 5px;
}

.cert-award-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 6px;
  line-height: 1.35;
}

.cert-award-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--on-surface-variant);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Corner Ribbon ---------- */
.cert-award-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 68px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.cert-award-ribbon::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  border-style: solid;
  border-width: 68px 68px 0 0;
  border-color: #b8860b transparent transparent transparent;
}

.cert-award-ribbon span {
  position: absolute;
  top: 9px; left: 4px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transform: rotate(-45deg);
  width: 36px;
  text-align: center;
}

.cert-award-ribbon.featured-ribbon::before { border-color: var(--primary) transparent transparent transparent; }
.cert-award-ribbon.safety-ribbon::before   { border-color: #16a34a transparent transparent transparent; }

/* ================================================================
   CERTIFICATE LIGHTBOX MODAL
   ================================================================ */

.hallmark-modal .modal-dialog { max-width: min(92vw, 860px); }

.hallmark-modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  background: #fff;
}

.hallmark-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 2px solid rgba(212,175,55,0.35);
  padding: 20px 80px 20px 28px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hallmark-modal-header .advantage-subtitle { color: #ffd700; display: block; margin-bottom: 2px; }

.hallmark-modal-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.hallmark-modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: absolute !important;
  top: 20px;
  right: 28px;
  z-index: 9999 !important;
  color: #fff;
  transition: background 0.2s;
  flex-shrink: 0;
  margin: 0;
}

.hallmark-modal-close:hover { background: rgba(244,44,55,0.3); }
.hallmark-modal-close .material-symbols-outlined { font-size: 1.3rem; }

.hallmark-modal-body {
  padding: 28px;
  background: #fafaf8;
}

.hallmark-modal-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(212,175,55,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 20px;
  background: #f0ede8;
}

.hallmark-modal-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 62vh;
  object-fit: contain;
}

.hallmark-modal-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--on-surface-variant);
  text-align: center;
  line-height: 1.65;
  margin: 0;
  padding: 0 8px;
}

/* ================================================================
   RESPONSIVE — HALLMARK SECTION
   ================================================================ */

@media (max-width: 575.98px) {
  .cert-award-title  { font-size: 0.92rem; }
  .cert-award-body   { padding: 14px 16px 16px; }
  .cert-award-badge  { width: 34px; height: 34px; top: 10px; right: 10px; }
  .hallmark-modal-body   { padding: 16px; }
  .hallmark-modal-header { padding: 16px 66px 16px 18px; }
  .hallmark-modal-close  { top: 16px; right: 18px; }
  .hallmark-modal-title  { font-size: 1.05rem; }
  .hallmark-modal-img    { max-height: 55vh; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .cert-award-img-wrap { aspect-ratio: 3 / 2; }
}

@media (min-width: 992px) {
  .cert-award-img-wrap { aspect-ratio: 4 / 3; }
  .hallmark-grid { row-gap: 32px !important; }
}

/* ================================================================
   LUMINESCENT MOSAIC — Dual-Direction Infinite Marquee
   Used on EEProjects Client Portfolio tab (Tab 2).
   Keyframes defined globally so they work on all pages.
   ================================================================ */

.luminescent-mosaic {
  /* Clean light background — logos are clearly visible on white/light grey */
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 40%, #f8fafc 100%);
  padding: 64px 0 72px;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Subtle brand-red accent glow at the very top edge */
.luminescent-mosaic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f42c37 30%, #f42c37 70%, transparent 100%);
  pointer-events: none;
}

/* Soft fade masks at left & right edges for a seamless bleed effect */
.luminescent-mosaic::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  #f0f4f8 0%, transparent 8%, transparent 92%, #f0f4f8 100%);
  pointer-events: none;
  z-index: 3;
}

.mosaic-title {
  text-align: center;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: #0f172a;               /* dark slate — reads cleanly on white */
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  z-index: 4;
  font-family: var(--font-display, sans-serif);
}

/* Subtitle rule under the title */
.mosaic-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #f42c37;
  border-radius: 2px;
  margin: 10px auto 36px;
}

.mosaic-row {
  display: flex;
  align-items: center;
  margin: 14px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  white-space: nowrap;
}

.mosaic-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  will-change: transform;
  white-space: nowrap;
  padding: 8px 0;
}

.mosaic-row-left .mosaic-track {
  animation: marqueeLeft 38s linear infinite;
}

.mosaic-row-right .mosaic-track {
  animation: marqueeRight 42s linear infinite;  /* slightly different speed = organic feel */
}

/* ── Logo card ─────────────────────────────────────────────── */
.mosaic-logo {
  width: clamp(200px, 22vw, 280px);
  height: clamp(110px, 13vw, 160px);
  object-fit: contain;
  object-position: center;

  /* Full natural color — no grayscale, good brightness */
  filter: none;
  opacity: 0.82;

  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.mosaic-logo:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.06);
  box-shadow:
    0 12px 32px rgba(244, 44, 55, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.10),
    0 0 0 2px rgba(244, 44, 55, 0.35);
  border-color: rgba(244, 44, 55, 0.4);
  z-index: 10;
}

.mosaic-row:hover .mosaic-track {
  animation-play-state: paused;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mosaic-logo {
    width: clamp(180px, 20vw, 250px);
    height: clamp(100px, 12vw, 145px);
    padding: 14px 18px;
  }
  .mosaic-track { gap: 24px; }
}

@media (max-width: 768px) {
  .mosaic-logo {
    width: clamp(150px, 32vw, 200px);
    height: clamp(88px, 19vw, 120px);
    padding: 12px 16px;
    border-radius: 10px;
  }
  .mosaic-track { gap: 18px; }
}

@media (max-width: 480px) {
  .mosaic-logo {
    width: clamp(130px, 38vw, 170px);
    height: clamp(76px, 22vw, 105px);
    padding: 10px 14px;
  }
  .mosaic-track { gap: 14px; }
  .luminescent-mosaic { padding: 48px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-row-left .mosaic-track,
  .mosaic-row-right .mosaic-track {
    animation: none;
  }
  .mosaic-logo:hover { transform: none; }
}

/* ── Scoped brand logo alignment adjustment for home page browser view only ── */
@media (min-width: 992px) {
  body:has(.home-page) .elmatics-brand {
    margin-left: -1cm !important;
  }
}
