/* ==========================================================================
   STITCHED BROKING - 1C STRUCTURED GRID (SWISS CORPORATE & BENTO)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62.5..125,100..900&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --white: #ffffff;
  --navy-primary: #0a1b3d;
  --navy-dark: #061126;
  --navy-light: #162a52;
  --emerald-primary: #1a9d55;
  --emerald-light: #e6f6ed;
  --emerald-on-navy: #5fd08a;
  --ink: #22304a;
  --body: #5b6472;
  --meta: #7a8290;
  --hairline: #e2e2e2;
  --light-grey: #f4f6f9;

  /* Typography */
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Consolas, monospace;

  /* Sizing & Radius */
  --radius: 4px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1280px;
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

video,
iframe {
  max-width: 100%;
}

.mobile-title-line {
  display: inline;
}

.mobile-title {
  display: none;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  color: var(--body);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mono-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-primary);
  display: block;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 10px;
  white-space: nowrap;
}

.btn-emerald {
  background-color: var(--emerald-primary);
  color: var(--white);
}

.btn-emerald:hover {
  background-color: #148345;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-navy-outline {
  background-color: transparent;
  border-color: var(--navy-primary);
  color: var(--navy-primary);
}

.btn-navy-outline:hover {
  background-color: var(--navy-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-2px);
}

/* Global Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Ticker Bar */
.ticker-bar {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scrollTicker 30s linear infinite;
  width: max-content;
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-up {
  color: var(--emerald-on-navy);
  font-weight: 700;
}

/* Header */
.header-wrapper {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 16px; /* Optimized gap for 8 navbar items to prevent crowding */
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin: 0 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.8rem; /* Slightly smaller font for pixel-perfect single-line alignment */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  white-space: nowrap; /* Prevent any link text from wrapping onto multiple lines */
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald-primary);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 12px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-primary);
}

.nav-dropdown-item:hover {
  background-color: var(--light-grey);
  color: var(--emerald-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-primary);
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--navy-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-overlay.open,
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.mobile-nav-link {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-nav-link:hover {
  color: var(--emerald-on-navy);
}

/* Split Hero Component */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.hero-left {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 60px 80px 40px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: var(--emerald-primary);
}

.hero-left h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-left p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img, .hero-right video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}

.hero-right video {
  filter: brightness(0.9);
}

.hero-right video.video-fade {
  opacity: 0;
}

.hero-stat-tab {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--emerald-primary);
  color: var(--white);
  padding: 24px 36px;
  border-radius: 0 var(--radius) 0 0;
  z-index: 10;
}

.hero-stat-tab h2 {
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1;
}

.hero-stat-tab p {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Modular Bento Grid Component */
.bento-section {
  padding: 96px 0;
  background-color: var(--white);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.bento-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px;
  background-color: var(--white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card:hover {
  border-color: var(--navy-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.bento-header {
  margin-bottom: 24px;
}

.bento-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 0.98rem;
  color: var(--body);
}

.bento-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Stat Band */
.stat-band {
  background-color: var(--light-grey);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 60px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--hairline);
}

.stat-item h2 {
  font-size: 3.5rem;
  color: var(--emerald-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-primary);
  font-weight: 700;
  white-space: nowrap;
}

/* Featured Sourcing Rows */
.sourcing-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--hairline);
}

.sourcing-header {
  display: block;
  text-align: center;
  margin-bottom: 40px;
}

.sourcing-header .mono-kicker {
  display: block;
  margin-bottom: 12px;
}

.sourcing-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--navy-primary);
}

.sourcing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
  transition: var(--transition);
}

.sourcing-row:hover {
  background-color: var(--light-grey);
  padding-left: 12px;
  padding-right: 12px;
}

.company-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.company-sector {
  color: var(--meta);
  font-weight: 600;
}

.company-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-primary);
}

.company-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  font-weight: 600;
}

/* Process Section */
.process-section {
  padding: 46px 0;
  background-color: var(--navy-primary);
  color: var(--white);
}

.process-header {
  margin-bottom: 30px;
}

.process-header h2 {
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  position: relative;
}

.process-step .mono-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--emerald-on-navy);
  margin-bottom: 16px;
  display: block;
}

.process-step h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.process-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* CTA Band */
.cta-band {
  background-color: var(--emerald-primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--white);
  color: #061126;
  padding: 80px 0 40px;
  border-top: 4px solid var(--emerald-primary);
}

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

.footer-brand img {
  height: 72px;
  margin-bottom: 24px;
}

.footer p {
  color: #061126 !important;
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand p {
  color: #061126;
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h4,
.footer h4 {
  color: #061126;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  font-weight: 700;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: #061126;
}

.footer-links a:hover {
  color: var(--emerald-primary);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 30px;
  font-size: 0.82rem;
  text-align: center;
  color: #061126;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 17, 38, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--navy-primary);
  width: 100%;
  max-width: 700px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  margin: auto;
}

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

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

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy-primary);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--navy-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px var(--emerald-light);
}

/* Page Hero layout template */
.page-hero {
  background-color: var(--navy-primary);
  color: var(--white);
  padding: 80px 0;
  border-bottom: 2px solid var(--navy-primary);
}

.page-hero-content {
  max-width: 1200px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
}

/* Split Contact Form Section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 600px;
}

.split-left {
  background-color: var(--light-grey);
  border-right: 1px solid var(--hairline);
  padding: 80px;
}

.split-right {
  padding: 80px;
}

.contact-item {
  margin-bottom: 32px;
}

.contact-item h5 {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--emerald-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-item p {
  font-size: 1.1rem;
  color: var(--navy-primary);
  font-weight: 600;
}

/* Sub-page Solutions row */
.solutions-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.solutions-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.solutions-row:nth-child(even) .solutions-text-col {
  grid-column: 2;
}

.solutions-row:nth-child(even) .solutions-img-col {
  grid-column: 1;
  grid-row: 1;
}

.solutions-text-col h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.solutions-text-col p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.solutions-img-col img {
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

/* Detail page template styling */
.detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 60px;
  padding: 80px 0;
}

.detail-main h3 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--navy-primary);
  padding-bottom: 10px;
}

.detail-main p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.detail-sidebar {
  border: 2px solid var(--navy-primary);
  border-radius: var(--radius);
  padding: 32px;
  background-color: var(--light-grey);
  height: fit-content;
}

.detail-sidebar h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.detail-sidebar ul {
  list-style: none;
  margin-bottom: 24px;
}

.detail-sidebar li {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}

.detail-sidebar li i {
  color: var(--emerald-primary);
  margin-top: 4px;
}

/* Tables styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-top: 2px solid var(--navy-primary);
}

.data-table th, .data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--meta);
  text-transform: uppercase;
}

.data-table td {
  font-size: 0.95rem;
}

.data-table tr:hover td {
  background-color: var(--light-grey);
}

/* Compliance framing note */
.compliance-note {
  border-left: 4px solid var(--emerald-primary);
  padding: 20px 24px;
  background-color: var(--light-grey);
  margin: 32px 0;
}

.compliance-note h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.compliance-note p {
  font-size: 0.92rem;
  margin: 0;
}

/* Blog grid styling */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.blog-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--meta);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-card-desc {
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover {
  color: var(--navy-primary);
}

/* Blog detail read layout */
.blog-detail-container {
  max-width: 720px;
  margin: 60px auto 100px;
  padding: 0 20px;
}

.blog-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.blog-author-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--meta);
}

.blog-body p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--ink);
}

.blog-body blockquote {
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-primary);
  border-left: 4px solid var(--emerald-primary);
  padding-left: 24px;
  margin: 40px 0;
  line-height: 1.3;
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--meta);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--emerald-primary);
}

/* Scroll Animation Hooks */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive collapse grids */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-left {
    padding: 60px 40px;
  }
  .hero-right {
    height: 400px;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .solutions-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .solutions-row:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .solutions-row:nth-child(even) .solutions-text-col,
  .solutions-row:nth-child(even) .solutions-img-col {
    grid-column: span 1;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  .cta-band h2 { font-size: 1.8rem; }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .sourcing-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-left, .split-right {
    padding: 40px 20px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility settings for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-left, .hero-stat-tab, .btn, .bento-card, .blog-card img {
    transition: none;
  }
  .hero-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Sticky Scroll Hero Layout */
@media (min-width: 769px) {
  .about-page .bento-section h2 + p,
  .service-detail-page .detail-main h2 + p,
  .why-choose-page .bento-section h2 + p {
    margin-top: 18px !important;
  }

  .hero-scroll-wrapper {
    height: 250vh;
    position: relative;
  }
  .hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow: hidden;
  }
  
  .reveal-w1, .reveal-w2, .reveal-w3, .reveal-w4, .reveal-w5, .reveal-w6 {
    display: inline-block;
    margin-right: 0.18em;
    opacity: 0.15;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .reveal-s2, .reveal-s3, .reveal-btns {
    opacity: 0.15;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
}

/* Height-based media queries to adjust hero text and padding on smaller viewports */
@media (min-width: 769px) and (max-height: 850px) {
  .hero-left {
    padding: 30px 80px 20px 80px !important;
  }
  .hero-left h1 {
    font-size: 3.2rem !important;
    margin-bottom: 10px !important;
  }
  .hero-left p.reveal-s2 {
    margin-top: 8px !important;
  }
  .hero-left p.reveal-s3 {
    margin-top: 8px !important;
    margin-bottom: 25px !important;
    font-size: 1rem !important;
  }
}

@media (min-width: 769px) and (max-height: 720px) {
  .hero-left {
    padding: 20px 60px 15px 60px !important;
  }
  .hero-left h1 {
    font-size: 2.5rem !important;
    margin-bottom: 8px !important;
  }
  .hero-left p.reveal-s2 {
    margin-top: 6px !important;
    font-size: 0.85rem !important;
  }
  .hero-left p.reveal-s3 {
    margin-top: 6px !important;
    margin-bottom: 20px !important;
    font-size: 0.92rem !important;
  }
}



/* Card Stacking Services Section */
.services-stack-section {
  padding: 100px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 992px) {
  .services-stack-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
  }
  
  .services-sticky-col {
    position: sticky;
    top: 120px;
    padding-right: 20px;
  }
  
  .services-sticky-col h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-top: 12px;
    margin-bottom: 24px;
    color: var(--navy-primary);
  }
  
  .services-sticky-col p {
    color: var(--body);
    font-size: 1.05rem;
    line-height: 1.7;
  }
  
  .services-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 40px; /* spacing between cards before they stack */
    padding-bottom: 80px; /* space at the bottom */
  }
  
  /* Stacking Logic */
  .stack-card {
    position: sticky;
    background-color: var(--light-grey);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    top: 140px;
    height: 380px; /* fixed height for cards to stack nicely */
    justify-content: space-between;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  /* Stack Card offsets & z-indices */
  .stack-card:nth-child(1) { top: 140px; z-index: 1; }
  .stack-card:nth-child(2) { top: 155px; z-index: 2; }
  .stack-card:nth-child(3) { top: 170px; z-index: 3; }
  .stack-card:nth-child(4) { top: 185px; z-index: 4; }
  .stack-card:nth-child(5) { top: 200px; z-index: 5; }
  .stack-card:nth-child(6) { top: 215px; z-index: 6; }
  
  .stack-card .card-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--emerald-primary);
    font-weight: 700;
  }
  
  .stack-card h3 {
    font-size: 1.8rem;
    color: var(--navy-primary);
    margin-top: 8px;
  }
  
  .stack-card p {
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
  }
}

/* Mobile Fallback */
@media (max-width: 991px) {
  .services-stack-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .services-sticky-col h2 {
    font-size: 2.2rem;
    margin-top: 8px;
    margin-bottom: 16px;
    color: var(--navy-primary);
  }
  
  .services-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .stack-card {
    background-color: var(--light-grey);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .stack-card .card-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--emerald-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
  }
  
  .stack-card h3 {
    font-size: 1.5rem;
    color: var(--navy-primary);
    margin-top: 0;
  }
  
  .stack-card p {
    color: var(--body);
    font-size: 0.92rem;
  }
}

/* Sticky Scroll How We Work Section */
@media (min-width: 992px) {
  .process-scroll-wrapper {
    height: 220vh;
    position: relative;
  }
  
  .process-section {
    position: sticky;
    top: 230px;
    height: calc(100vh - 380px);
    background-color: var(--navy-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0 !important;
  }
  
  .process-step {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .process-step.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Infinite Marquee for Who We Serve */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  position: relative;
  display: flex;
}

/* Side mask gradients */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--light-grey) 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--light-grey) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: serveMarquee 30s linear infinite;
}

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

.marquee-item {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  color: var(--navy-primary);
  padding: 12px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  user-select: none;
}

@keyframes serveMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* 3D Card Flip Effect for About Us Page */
.flip-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .flip-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 250px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.flip-card-front {
  background-color: var(--white);
  color: var(--navy-primary);
}

.flip-card-front h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--navy-primary);
  position: relative;
  padding-bottom: 12px;
}

.flip-card-front h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--emerald-primary);
  border-radius: 2px;
}

.flip-card-back {
  background-color: var(--navy-primary);
  color: var(--white);
  transform: rotateY(180deg);
}

.flip-card-back h3 {
  font-size: 1.5rem;
  color: var(--emerald-on-navy);
  margin-bottom: 15px;
}

.flip-card-back p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Static Cards (No Flip) */
.static-card {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
  width: 100%;
  min-height: 250px;
}

.static-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.static-card h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: var(--navy-primary);
  position: relative;
  padding-bottom: 12px;
  border-bottom: none;
}

.static-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--emerald-primary);
  border-radius: 2px;
}

.static-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--body);
}

/* Left-aligned variant for solutions page */
.static-card.left-align {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
  min-height: 285px;
}

.static-card.left-align h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: none;
}



/* Full-Background Interactive Solutions Layout for solutions.html */
.interactive-solutions-section {
  position: relative;
  padding: 120px 0;
  background-color: #061126;
  overflow: hidden;
}

.section-bg-showcase {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-showcase-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.bg-showcase-img.active {
  opacity: 1;
  transform: scale(1);
}

.bg-showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 17, 38, 0.82) 0%, rgba(6, 17, 38, 0.88) 100%);
  z-index: 2;
}

.interactive-solutions-container {
  position: relative;
  z-index: 3;
  max-width: 900px !important;
  margin: 0 auto;
}

.interactive-services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.interactive-service-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
  transition: border-color 0.3s ease;
}

.interactive-service-item:first-child {
  padding-top: 0;
}

.interactive-service-item:last-child {
  border-bottom: none;
}

.service-item-header {
  cursor: pointer;
}

.service-item-header .mono-kicker {
  color: var(--emerald-on-navy);
}

.service-item-header h2 {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  margin-bottom: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.interactive-service-item.active .service-item-header h2 {
  color: var(--white);
  transform: translateX(10px);
}

.service-item-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding-top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  padding-top: 0;
  padding-left: 10px;
}

.interactive-service-item.active .service-item-content {
  max-height: 250px;
  opacity: 1;
  padding-top: 20px;
}

.service-item-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.service-item-content .btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.service-item-content .btn:hover {
  background-color: var(--white);
  color: var(--navy-primary);
}

/* Mobile Fallback: standard block cards */
@media (max-width: 991px) {
  .section-bg-showcase {
    display: none;
  }
  
  .interactive-solutions-section {
    padding: 60px 0;
    background-color: var(--light-grey);
  }
  
  .interactive-service-item {
    background-color: var(--white);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .interactive-service-item:first-child {
    padding-top: 28px;
  }
  
  .service-item-header .mono-kicker {
    color: var(--navy-primary);
  }
  
  .service-item-header h2 {
    font-size: 1.6rem;
    color: var(--navy-primary);
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.08;
  }

  .interactive-service-item.active .service-item-header h2 {
    color: var(--navy-primary);
    transform: none;
  }
  
  .service-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
  }

  .interactive-service-item.active .service-item-content {
    padding-top: 0;
  }
  
  .service-item-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--body);
  }
  
  .service-item-content .btn {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
  }
  
  .service-item-content .btn:hover {
    background-color: var(--navy-primary);
    color: var(--white);
  }
}

/* Sticky Scroll Operating Standards Section (why-choose-us.html) */
@media (min-width: 992px) {
  .standards-scroll-wrapper {
    height: 220vh;
    position: relative;
  }
  
  .standards-section {
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    background-color: var(--light-grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0 !important;
  }
  
  .standards-step {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .standards-step.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky Scroll AI Process Section (ai-intelligence.html) */
@media (min-width: 992px) {
  .ai-process-scroll-wrapper {
    height: 250vh;
    position: relative;
  }
  
  .ai-process-section {
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0 !important;
  }
  
  .ai-process-step {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }
  
  .ai-process-step.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Magic Bento Grid and Card Styles */
.magic-bento-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.magic-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  aspect-ratio: auto;
  min-height: 220px;
  width: 100%;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--navy-dark);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;

  --glow-x: 50%;
  --glow-y: 50%;
  --glow-intensity: 0;
  --glow-radius: 200px;
  --glow-rgb: 95, 208, 138; /* Emerald RGB */
}

.magic-bento-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.magic-bento-card__header,
.magic-bento-card__content {
  display: flex;
  position: relative;
  color: var(--white);
  z-index: 10;
}

.magic-bento-card__header {
  justify-content: space-between;
}

.magic-bento-card__content {
  flex-direction: column;
}

.magic-bento-card__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald-on-navy);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.magic-bento-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0 0 10px;
  color: var(--white);
}

.magic-bento-card__description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* Border glow effect */
.magic-bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: radial-gradient(
    var(--glow-radius) circle at var(--glow-x) var(--glow-y),
    rgba(var(--glow-rgb), calc(var(--glow-intensity) * 0.8)) 0%,
    rgba(var(--glow-rgb), calc(var(--glow-intensity) * 0.4)) 30%,
    transparent 60%
  );
  border-radius: inherit;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

/* Star particles container styles */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}

.particle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: rgba(95, 208, 138, 0.2);
  border-radius: 50%;
  z-index: -1;
}

/* Global spotlight styles */
.global-spotlight {
  mix-blend-mode: screen;
  will-change: transform, opacity;
  z-index: 200 !important;
  pointer-events: none;
}

/* Responsive grid rules */
@media (max-width: 599px) {
  .magic-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .magic-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .magic-bento-card.span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .magic-bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .magic-bento-card.span-2 {
    grid-column: span 2;
  }
}

/* Flowing Menu Styles */
.flowing-menu-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.flowing-menu {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
}

.flowing-menu__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
}

.flowing-menu__item:first-child {
  border-top: none;
}

.flowing-menu__item-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 40px;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.8rem;
  font-stretch: 110%;
  transition: color 0.3s ease;
  z-index: 5;
}

.flowing-menu__item-link:hover {
  color: inherit;
}

.flowing-marquee {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate3d(0, 101%, 0);
  display: flex;
  align-items: center;
  z-index: 10;
}

.flowing-marquee__inner-wrap {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.flowing-marquee__inner {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  width: fit-content;
  will-change: transform;
}

.flowing-marquee__part {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.flowing-marquee span {
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 20px;
  color: var(--white);
}

.flowing-marquee__part:nth-child(even) span {
  color: var(--white);
}

.flowing-marquee__img {
  width: 120px;
  height: 50px;
  margin: 0 20px;
  border-radius: 25px;
  background-size: cover;
  background-position: 50% 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .flowing-menu__item-link {
    font-size: 1.3rem;
    padding-left: 20px;
  }
  .flowing-marquee span {
    font-size: 1.3rem;
  }
  .flowing-marquee__img {
    width: 80px;
    height: 35px;
  }
}

/* Stepper Styles */
.stepper-container {
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  cursor: pointer;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--hairline);
  color: var(--meta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-label {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--hairline);
  margin: 0 15px;
  position: relative;
  top: -14px;
  transition: all 0.3s ease;
}

/* Active State Indicators */
.step-indicator.active .step-circle {
  border-color: var(--emerald-primary);
  background-color: var(--emerald-primary);
  color: var(--white);
  box-shadow: 0 0 12px rgba(26, 157, 85, 0.3);
}

.step-indicator.active .step-label {
  color: var(--navy-primary);
}

.step-indicator.completed .step-circle {
  border-color: var(--navy-primary);
  background-color: var(--navy-primary);
  color: var(--white);
}

.step-indicator.completed .step-label {
  color: var(--navy-primary);
}

.step-line.completed {
  background-color: var(--navy-primary);
}

/* Step Content Styles */
.stepper-content-wrap {
  position: relative;
  min-height: 140px;
  margin-bottom: 30px;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 30px 0;
}

.step-content {
  display: none;
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-content.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.step-content h4 {
  font-size: 1.4rem;
  color: var(--navy-primary);
  margin: 6px 0 12px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.6;
}

/* Stepper Controls Styles */
.stepper-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stepper-controls button {
  min-width: 100px;
  padding: 10px 24px;
}

.stepper-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--hairline);
  color: var(--meta);
}

@media (max-width: 576px) {
  .stepper-container {
    padding: 24px;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .step-label {
    display: none;
  }
  .step-line {
    top: 0;
    margin: 0 8px;
  }
}

/* Contact Map Full-Width Stretch */
.contact-map-wrap {
  grid-column: 1 / -1;
  padding: 40px 80px 80px 80px;
  background-color: var(--white);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 768px) {
  .contact-map-wrap {
    padding: 40px 20px;
  }
}

/* ==========================================================================
   UNLISTED SHARES DIRECTORY PAGE
   ========================================================================== */

.directory-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.directory-search-wrapper {
  position: relative;
  flex: 2;
}

.directory-search-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--meta);
  font-size: 1rem;
}

.directory-search {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy-primary);
  background-color: var(--white);
  transition: var(--transition);
}

.directory-search:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(26, 157, 85, 0.1);
}

.directory-select-wrapper {
  flex: 1;
}

.directory-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy-primary);
  background-color: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%235b6472' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: var(--transition);
}

.directory-select:focus {
  outline: none;
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px rgba(26, 157, 85, 0.1);
}

.mobile-sector-dropdown {
  display: none;
}

.shares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
  min-height: 400px;
}

.share-card {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.share-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-primary);
  box-shadow: 0 12px 30px rgba(10, 27, 61, 0.05);
}

.share-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.share-logo-container {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-grey);
}

.share-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.share-logo-badge {
  width: 100%;
  height: 100%;
  background-color: var(--navy-primary);
  color: var(--emerald-on-navy);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.share-meta-info {
  flex-grow: 1;
}

.share-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-sector {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-price-box {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
  margin-bottom: 24px;
}

.share-price-label {
  font-size: 0.75rem;
  color: var(--meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.share-price-value-container {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.share-price-symbol {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--emerald-primary);
}

.share-price-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--emerald-primary);
  letter-spacing: -0.02em;
}

.share-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn-enquire {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--emerald-primary);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: 1px solid var(--emerald-primary);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn-enquire:hover {
  background-color: #128c55;
  border-color: #128c55;
}

.share-btn-details {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: transparent;
  color: var(--navy-primary);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn-details:hover {
  background-color: var(--light-grey);
  border-color: var(--navy-primary);
}

/* Pagination Controls */
.directory-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  background-color: var(--white);
  color: var(--navy-primary);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover {
  border-color: var(--navy-primary);
  background-color: var(--light-grey);
}

.page-btn.active {
  background-color: var(--emerald-primary);
  color: var(--white);
  border-color: var(--emerald-primary);
}

.page-btn.disabled {
  color: var(--meta);
  background-color: var(--light-grey);
  border-color: var(--hairline);
  cursor: not-allowed;
  pointer-events: none;
}

.page-btn.nav-arrow {
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .directory-controls {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  .directory-search-wrapper, .directory-select-wrapper {
    width: 100%;
  }
  .directory-select-wrapper {
    position: relative;
  }
  .directory-select {
    display: none;
  }
  .mobile-sector-dropdown {
    display: block;
    position: relative;
    width: 100%;
  }
  .mobile-sector-trigger {
    width: 100%;
    min-height: 48px;
    padding: 12px 42px 12px 16px;
    border: 1px solid var(--emerald-primary);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink-primary);
    font: 500 0.95rem var(--font-sans);
    text-align: left;
    cursor: pointer;
  }
  .mobile-sector-trigger::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink-primary);
    border-bottom: 2px solid var(--ink-primary);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
  }
  .mobile-sector-list {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 252px;
    overflow-y: auto;
    border: 1px solid var(--emerald-primary);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 30px rgba(10, 27, 61, 0.14);
    -webkit-overflow-scrolling: touch;
  }
  .mobile-sector-dropdown.open .mobile-sector-list {
    display: block;
  }
  .mobile-sector-option {
    display: block;
    width: 100%;
    padding: 9px 16px;
    border: 0;
    background: var(--white);
    color: var(--ink-primary);
    font: 500 0.9rem var(--font-sans);
    text-align: left;
    cursor: pointer;
  }
  .mobile-sector-option:hover,
  .mobile-sector-option:focus {
    outline: none;
    background: rgba(26, 157, 85, 0.08);
  }
  .shares-grid {
    gap: 20px;
  }
}

/* ==========================================================================
   UNLISTED SHARE DETAILS MODAL & SCRAPED LAYOUTS
   ========================================================================== */

.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 17, 38, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  backdrop-filter: blur(8px);
  padding: 20px;
}

.details-modal-content {
  background: var(--white);
  width: 100%;
  max-width: 950px;
  height: 85vh;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(6, 17, 38, 0.15);
  animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalReveal {
  from { opacity: 0; transform: scale(0.97) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.details-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--navy-primary);
  transition: var(--transition);
  border: none;
  background: none;
  z-index: 10;
  line-height: 1;
}

.details-modal-close:hover {
  color: var(--emerald-primary);
}

.details-modal-body {
  padding: 40px;
  overflow-y: auto;
  flex-grow: 1;
}

.details-modal-header {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
  padding-right: 40px; /* Leave space for close button */
}

.details-modal-header .share-logo-container {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

.details-modal-header h2 {
  font-size: 1.8rem;
  color: var(--navy-primary);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.details-modal-header-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.details-modal-header-meta .isin-code {
  font-size: 0.75rem;
  color: var(--meta);
  font-family: var(--font-mono);
  background-color: var(--light-grey);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.details-modal-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-grey);
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  border: 1px solid var(--hairline);
}

.details-modal-cta-bar p {
  font-size: 0.95rem;
  color: var(--navy-primary);
  font-weight: 500;
  margin: 0;
}

.details-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.details-tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--meta);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.details-tab-btn:hover {
  color: var(--navy-primary);
}

.details-tab-btn.active {
  color: var(--emerald-primary);
  border-bottom-color: var(--emerald-primary);
}

.details-tab-content {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.details-tab-content.active {
  display: block;
}

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

/* Dynamic styling for scraped details blocks */
.details-tab-content h2,
.details-tab-content h3 {
  font-size: 1.4rem;
  color: var(--navy-primary);
  margin-top: 40px !important;
  margin-bottom: 16px;
  font-weight: 700;
}

.details-tab-content h2:first-child,
.details-tab-content h3:first-child,
.details-tab-content > div:first-child h2:first-child,
.details-tab-content > div:first-child h3:first-child,
.details-tab-content > div:first-child > div:first-child h2:first-child,
.details-tab-content > div:first-child > div:first-child h3:first-child {
  margin-top: 0 !important;
}

.details-tab-content p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.details-tab-content .rich p {
  margin-bottom: 16px;
}

/* Scraped Fundamentals */
.details-tab-content .funds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.details-tab-content .funds .f {
  background-color: var(--light-grey);
  border: 1px solid var(--hairline);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.details-tab-content .funds .f .l {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--meta);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.details-tab-content .funds .f .v {
  font-size: 1.15rem;
  color: var(--navy-primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.details-tab-content .funds .f .cap {
  font-size: 0.68rem;
  color: var(--meta);
}

.details-tab-content .funds .f.f-span2 {
  grid-column: span 2;
}

.details-tab-content .funds .f .copyb {
  display: none; /* Hide third-party copy buttons */
}

/* Scraped Financials & Rich Content Tables */
.details-tab-content .fin,
.details-tab-content .rich-tscroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-top: 15px;
  margin-bottom: 25px;
  background-color: var(--white);
}

.details-tab-content .fin table,
.details-tab-content .rich-tscroll table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.details-tab-content .fin th, 
.details-tab-content .fin td,
.details-tab-content .rich-tscroll th,
.details-tab-content .rich-tscroll td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.details-tab-content .fin tr:last-child th,
.details-tab-content .fin tr:last-child td,
.details-tab-content .rich-tscroll tr:last-child th,
.details-tab-content .rich-tscroll tr:last-child td {
  border-bottom: none;
}

.details-tab-content .fin th,
.details-tab-content .rich-tscroll th {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--meta);
  letter-spacing: 0.05em;
  background-color: var(--light-grey);
}

.details-tab-content .fin td,
.details-tab-content .rich-tscroll td {
  font-size: 0.95rem;
  color: var(--navy-primary);
}

.details-tab-content .fin td.num {
  font-family: var(--font-mono);
  font-weight: 500;
}

.details-tab-content .fin td.num.neg {
  color: #ef4444;
}

.details-tab-content .fin td.num.latest {
  font-weight: 700;
}

.details-tab-content .fin .yoy {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.details-tab-content .fin .yoy.dn { color: #ef4444; }
.details-tab-content .fin .yoy.up { color: var(--emerald-primary); }
.details-tab-content .fin .latest-tag {
  display: none; /* Hide tags to keep clean */
}

/* Scraped Management / Leadership */
.details-tab-content .people2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.details-tab-content .people2 .pcard2 {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.details-tab-content .people2 .pcard2 .pav2 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--navy-primary);
  color: var(--emerald-on-navy);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.details-tab-content .people2 .pcard2 .pnm2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 4px;
}

.details-tab-content .people2 .pcard2 .prole2 {
  font-size: 0.8rem;
  color: var(--meta);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.details-tab-content .people2 .pcard2 .pmeta2 {
  font-size: 0.82rem;
  color: var(--body);
  margin-top: auto;
}

.details-tab-content .people2 .pcard2 .pmeta2 a {
  display: none; /* Hide external social links */
}

/* Generic Custom FAQ Accordion */
.details-faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background-color: var(--white);
  overflow: hidden;
}

.details-faq-trigger {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-primary);
  cursor: pointer;
  transition: var(--transition);
}

.details-faq-trigger:hover {
  background-color: var(--light-grey);
}

.details-faq-trigger i {
  transition: transform 0.3s ease;
  color: var(--emerald-primary);
}

.details-faq-item.open .details-faq-trigger i {
  transform: rotate(180deg);
}

.details-faq-content {
  padding: 0 20px 16px 20px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.details-faq-item.open .details-faq-content {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .details-modal-content {
    height: 95vh;
  }
  .details-modal-body {
    padding: 24px;
  }
  .details-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .details-modal-cta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }
  .details-modal-cta-bar button {
    width: 100%;
  }
}

/* Scraped Chart Styles */
.chart {
  border: 1px solid var(--hairline);
  padding: 24px;
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(6, 17, 38, 0.01);
  margin-bottom: 24px;
}

.chart .chh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart .ct {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart .ranges {
  display: flex;
  gap: 4px;
  background-color: var(--light-grey);
  padding: 4px;
  border-radius: var(--radius);
}

.chart .ranges button {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: calc(var(--radius) - 1px);
  color: var(--body);
  cursor: pointer;
  transition: var(--transition);
}

.chart .ranges button:hover {
  color: var(--navy-primary);
  background-color: rgba(0, 0, 0, 0.05);
}

.chart .ranges button.on {
  background-color: var(--white);
  color: var(--emerald-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart .chg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.chart .chg.neg {
  color: #ef4444;
}

.chart .chg.up,
.chart .chg.pos {
  color: var(--emerald-primary);
}

.chartbox {
  height: 150px;
  width: 100%;
  margin-top: 15px;
}

.spark {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chnote {
  font-size: 0.7rem;
  color: var(--meta);
  margin-top: 12px;
  font-style: italic;
}

/* Skeleton Shimmer Loading Styles */
.skeleton-card {
  pointer-events: none;
}

.skeleton-pulse {
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 37%, #f0f2f5 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 4px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Mobile polish layer for shared static pages */
@media (max-width: 1024px) {
  .navbar > .btn,
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar {
    height: 72px;
  }

  .brand-logo img {
    height: 44px;
  }

  .page-hero {
    padding: 64px 0;
  }

  .detail-grid,
  .split-section,
  .solutions-row,
  .solutions-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .solutions-row:nth-child(even) .solutions-text-col,
  .solutions-row:nth-child(even) .solutions-img-col {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }

  .mobile-overlay {
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 24px 32px;
    overflow-y: auto;
  }

  .mobile-nav-links {
    align-items: stretch;
    gap: 14px;
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .mobile-nav-link,
  .mobile-nav-sublink {
    display: block;
    color: var(--white);
    font-size: 1.08rem !important;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .mobile-nav-sublink {
    color: rgba(255, 255, 255, 0.72);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-left {
    padding: 48px 22px 36px;
  }

  .hero-left h1,
  .hero-left h1[style] {
    font-size: clamp(2.15rem, 11vw, 3rem) !important;
    line-height: 1.08 !important;
  }

  .hero-left p,
  .hero-left p[style] {
    max-width: none;
    font-size: 0.98rem !important;
  }

  .hero-buttons,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn,
  .cta-actions .btn,
  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-right {
    height: clamp(210px, 52vw, 320px);
    background-color: var(--white);
  }

  .hero-right video {
    height: calc(100% + 18px);
    object-position: center top;
    transform: translateY(-2px);
  }

  .page-hero {
    padding: 48px 0;
  }

  .page-hero h1,
  .page-hero h1[style] {
    font-size: clamp(2.1rem, 10vw, 2.65rem) !important;
  }

  .page-hero p {
    font-size: 1rem;
  }

  section {
    scroll-margin-top: 72px;
  }

  .bento-section,
  .services-stack-section,
  .process-section,
  .cta-band,
  .detail-grid,
  .solutions-row {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .split-left,
  .split-right {
    padding: 36px 20px;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="gap: 60px"],
  [style*="gap:60px"] {
    gap: 28px !important;
  }

  [style*="gap: 50px"],
  [style*="gap:50px"],
  [style*="gap: 40px"],
  [style*="gap:40px"] {
    gap: 24px !important;
  }

  .stat-grid,
  .bento-grid,
  .blog-grid,
  .process-grid,
  .footer-grid,
  .flip-card-grid,
  .detail-grid,
  .details-tab-content .funds,
  .details-tab-content .people2 {
    grid-template-columns: 1fr !important;
  }

  .bento-card,
  .stack-card,
  .blog-card,
  .chart {
    padding: 22px;
  }

  .services-sticky-col h2,
  .solutions-text-col h2,
  .cta-band h2,
  h2[style] {
    font-size: clamp(1.75rem, 8vw, 2.15rem) !important;
    line-height: 1.15 !important;
  }

  h3[style],
  .stack-card h3 {
    font-size: clamp(1.25rem, 6vw, 1.55rem) !important;
  }

  .mobile-title-line,
  .mobile-btn-line {
    display: block;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  .service-item-content .btn {
    gap: 6px;
    line-height: 1.2;
    white-space: nowrap;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .service-item-content .btn span,
  .service-item-content .btn .mobile-btn-line {
    display: inline;
  }

  .bulk-block-mobile-title,
  .preipo-mobile-title {
    max-width: 100%;
  }

  .about-page .bento-section h2 + p {
    margin-top: 16px !important;
  }

  .about-page .magic-bento-card {
    justify-content: flex-start;
    gap: 12px;
  }

  .about-page .magic-bento-card__header {
    margin-bottom: 0;
  }

  .service-detail-page .page-hero .container,
  .service-detail-page > .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .service-detail-page > .container {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .service-detail-page .detail-main h2,
  .service-detail-page .detail-main h3,
  .service-detail-page .detail-main p {
    max-width: 100%;
  }

  .service-detail-page .detail-main h2 + p,
  .why-choose-page .bento-section h2 + p {
    margin-top: 16px !important;
  }

  .investors-page .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .investors-page .bento-card,
  .investors-page .bento-card.span-2,
  .investors-page .bento-card[style*="grid-column"] {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
  }

  .investors-page .bento-card {
    padding: 24px 20px;
    min-height: auto;
  }

  .investors-page .bento-card h3 {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .investors-page .bento-card p {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }

  .investors-page .bento-card [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .sourcing-row,
  .share-card,
  .unlisted-card {
    min-width: 0;
  }

  .details-tab-content .funds .f.f-span2 {
    grid-column: auto;
  }

  .details-modal-content {
    width: calc(100% - 24px);
  }

  .details-tab-btn {
    flex: 1 1 auto;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    height: 64px;
  }

  .brand-logo img {
    height: 38px;
  }

  .mobile-menu-toggle {
    font-size: 1.25rem;
    min-width: 40px;
    min-height: 40px;
  }

  .hero-left {
    padding: 40px 18px 32px;
  }

  .hero-left h1,
  .hero-left h1[style] {
    font-size: clamp(2rem, 12vw, 2.55rem) !important;
  }

  .hero-right {
    height: 210px;
  }

  .page-hero h1,
  .page-hero h1[style] {
    font-size: clamp(1.85rem, 11vw, 2.35rem) !important;
  }

  .bento-card,
  .stack-card,
  .blog-card,
  .chart {
    padding: 18px;
  }

  .details-modal-body,
  .details-modal-header {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Accessibility: Pure black text for share/company details content */
.details-tab-content,
.details-tab-content p,
.details-tab-content li,
.details-tab-content h2,
.details-tab-content h3,
.details-tab-content .funds .f .l,
.details-tab-content .funds .f .cap,
.details-tab-content .people2 .pcard2 .prole2,
.details-tab-content .people2 .pcard2 .pmeta2,
.details-faq-content,
.details-faq-content p,
.details-modal-header-meta .isin-code {
  color: #000000 !important;
}

.details-tab-content .fin td,
.details-tab-content .rich-tscroll td {
  color: #000000;
}

/* Maintain financial indicator colors (red / green) */
.details-tab-content .fin td.num.neg,
.details-tab-content .fin .yoy.dn {
  color: #ef4444 !important;
}
.details-tab-content .fin .yoy.up {
  color: var(--emerald-primary) !important;
}

/* Sidebar Forms Layout */
.details-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .details-grid-layout {
    grid-template-columns: 1fr 380px;
  }
  .details-sidebar-col {
    position: sticky;
    top: 100px;
  }
}

.sidebar-card {
  background-color: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(6, 17, 38, 0.02);
}

.sidebar-card-title {
  font-size: 1.25rem;
  color: var(--navy-primary);
  margin-bottom: 6px;
  font-weight: 800;
}

.sidebar-card-subtitle {
  font-size: 0.85rem;
  color: var(--body);
  margin-bottom: 20px;
  line-height: 1.5;
}

.sidebar-share-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--hairline);
}

.sidebar-share-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-primary);
  max-width: 60%;
}

.sidebar-share-price {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.sidebar-share-price span:first-child {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-primary);
}

.sidebar-share-price .price-type {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--meta);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}

.sidebar-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--meta);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.sidebar-tab-btn:hover {
  color: var(--navy-primary);
}

.sidebar-tab-btn.active {
  color: var(--emerald-primary);
  border-bottom-color: var(--emerald-primary);
}

.sidebar-disclaimer {
  font-size: 0.72rem;
  color: var(--meta);
  text-align: center;
  margin-top: 15px;
  line-height: 1.5;
}

.btn-navy {
  background-color: var(--navy-primary);
  color: var(--white);
  border: 1px solid var(--navy-primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-navy:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
}

/* Individual share details page responsive layer */
.details-grid-layout,
.details-main-col,
.details-sidebar-col,
.details-tab-content,
.details-tab-content *,
.sidebar-card,
.details-modal-header {
  min-width: 0;
}

.details-main-col {
  overflow: hidden;
}

.details-modal-header > div:last-child {
  min-width: 0;
  flex: 1;
}

.details-modal-header h2,
.details-modal-header h2[style] {
  overflow-wrap: anywhere;
}

.details-modal-header-meta {
  flex-wrap: wrap;
}

.details-modal-header-meta .isin-code {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.details-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.details-tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.details-tab-content .blkcard,
.details-tab-content .readmore,
.details-tab-content .rich {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.details-tab-content h2 .eyebrow,
.details-tab-content h3 .eyebrow {
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}

#detailTab-funds h2 .eyebrow {
  display: inline;
  margin-right: 0.35em;
  margin-bottom: 0;
}

.details-tab-content .rich table,
.details-tab-content .blkcard > table {
  width: 100%;
  min-width: 680px !important;
  border-collapse: collapse;
  text-align: left;
}

.details-tab-content .rich:has(table),
.details-tab-content .blkcard:has(> table) {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.details-tab-content ul,
.details-tab-content ol {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.details-tab-content li {
  margin-bottom: 10px;
}

.details-tab-content .fin,
.details-tab-content .rich-tscroll {
  -webkit-overflow-scrolling: touch;
}

.details-tab-content .fin table,
.details-tab-content .rich-tscroll table {
  min-width: 680px !important;
}

.details-tab-content .rich th,
.details-tab-content .rich td,
.details-tab-content .blkcard > table th,
.details-tab-content .blkcard > table td,
.details-tab-content .rich-tscroll th,
.details-tab-content .rich-tscroll td,
.details-tab-content .fin th,
.details-tab-content .fin td {
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal;
  vertical-align: middle;
}

.details-tab-content .funds .f.f-span2 {
  min-width: 0;
}

.details-tab-content .funds .f .v,
.details-tab-content .funds .f .mono,
.details-tab-content .funds .f .mono span {
  overflow-wrap: anywhere;
}

.details-faq-trigger {
  gap: 14px;
}

.details-faq-trigger span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.details-faq-trigger i {
  flex: 0 0 auto;
}

.sidebar-share-title,
.sidebar-share-price span:first-child,
.form-control {
  overflow-wrap: anywhere;
}

@media (max-width: 991px) {
  .details-grid-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .details-sidebar-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-hero[style] {
    padding: 36px 0 30px 0 !important;
  }

  .page-hero-content[style] {
    text-align: left !important;
  }

  #heroTitle,
  #heroTitle[style] {
    font-size: clamp(1.65rem, 9vw, 2.15rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  #heroSub,
  #heroSub[style] {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
  }

  .bento-section {
    padding: 42px 0;
  }

  .details-grid-layout {
    gap: 24px;
    margin-bottom: 28px;
  }

  .details-modal-header,
  .details-modal-header[style] {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px !important;
    padding: 0 0 18px 0 !important;
  }

  .details-modal-header .share-logo-container {
    width: 52px;
    height: 52px;
  }

  .details-modal-header h2,
  .details-modal-header h2[style] {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem) !important;
    line-height: 1.15 !important;
  }

  .details-modal-header-meta {
    gap: 8px;
  }

  .details-modal-cta-bar {
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    margin-bottom: 24px;
  }

  .details-modal-cta-bar p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .details-tabs {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px;
    gap: 4px;
  }

  .details-tab-btn {
    flex: 0 0 auto;
    padding: 11px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .details-tab-content h2,
  .details-tab-content h3 {
    font-size: clamp(1.2rem, 6vw, 1.45rem);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .details-tab-content h2 .eyebrow,
  .details-tab-content h3 .eyebrow {
    margin-bottom: 7px;
  }

  #detailTab-funds h2 .eyebrow {
    display: inline;
    margin-right: 0.35em;
    margin-bottom: 0;
  }

  .details-tab-content p,
  .details-tab-content li,
  .details-faq-content {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .details-tab-content .funds {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .details-tab-content .funds .f,
  .details-tab-content .people2 .pcard2 {
    padding: 15px;
  }

  .details-tab-content .funds .f {
    align-items: center;
    text-align: center;
  }

  .details-tab-content .funds .f.f-span2 {
    grid-column: auto;
  }

  .details-tab-content .fin,
  .details-tab-content .rich-tscroll {
    margin-left: -2px;
    margin-right: -2px;
  }

  .details-tab-content .rich:has(table),
  .details-tab-content .blkcard:has(> table) {
    margin-left: -2px;
    margin-right: -2px;
  }

  .details-tab-content .fin th,
  .details-tab-content .fin td,
  .details-tab-content .rich-tscroll th,
  .details-tab-content .rich-tscroll td,
  .details-tab-content .rich th,
  .details-tab-content .rich td,
  .details-tab-content .blkcard > table th,
  .details-tab-content .blkcard > table td {
    padding: 11px 12px;
    font-size: 0.86rem;
  }

  .details-tab-content .fin th,
  .details-tab-content .rich-tscroll th,
  .details-tab-content .rich th,
  .details-tab-content .blkcard > table th {
    min-width: 140px !important;
    line-height: 1.35;
  }

  .details-tab-content .people2 .pcard2 {
    align-items: center;
    text-align: center;
  }

  .details-tab-content .people2 .pcard2 .pav2 {
    margin-left: auto;
    margin-right: auto;
  }

  .details-tab-content .people2 .pcard2 .pmeta2 {
    margin-top: 0;
  }

  .chart {
    padding: 16px;
  }

  .chart .chh {
    align-items: flex-start;
  }

  .chart .ranges {
    width: 100%;
    overflow-x: auto;
  }

  .chart .ranges button {
    flex: 0 0 auto;
  }

  .chartbox {
    height: 130px;
  }

  .sidebar-card {
    padding: 20px;
  }

  .sidebar-share-info {
    align-items: flex-start;
    gap: 12px;
  }

  .sidebar-share-title {
    max-width: none;
    flex: 1;
  }

  .sidebar-tabs {
    gap: 4px;
  }

  .sidebar-tab-btn {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .details-modal-header,
  .details-modal-header[style] {
    flex-direction: column;
  }

  .details-modal-header .share-logo-container {
    width: 48px;
    height: 48px;
  }

  .details-modal-header-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .details-modal-header-meta .isin-code {
    width: 100%;
  }

  .details-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
  }

  .details-faq-trigger {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .details-faq-content {
    padding: 0 16px 14px 16px;
  }

  .sidebar-share-info {
    flex-direction: column;
  }

  .sidebar-share-price {
    text-align: left;
  }
}
