/* ================================= */
/* VARIABLES & GLOBAL RESET         */
/* ================================= */
:root {
  /* COLORS */
  --color-primary: #227c9d;
  --color-accent: #5dbbb0;
  --color-dark: #0d3c55;
  --color-light: #ffffff;
  --color-bg: #f9f9f9;
  --color-text: #222222;

  /* TYPOGRAPHY */
  --font-base: 1rem; /* 16px */
  --font-scale-lg: clamp(1.5rem, 4vw, 2.5rem);
  --font-scale-md: clamp(1.125rem, 3vw, 2rem);
  --font-scale-sm: clamp(0.875rem, 2.5vw, 1.25rem);
  --line-height: 1.5;

  /* SPACING */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* TRANSITIONS */
  --trans-fast: 0.3s ease;
  --trans-med: 0.5s ease;

  /* SLIDESHOW */
  --slideshow-img-max: 80%; /* limit each slide image width */

  /* BREAKPOINTS */
  --bp-sm: 40em;  /* 640px */
  --bp-md: 64em;  /* 1024px */
  --bp-lg: 75em;  /* 1200px */
}

/* ===================== */
/* GENERAL LAYOUT STYLES */
/* ===================== */

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

.mat-sidenav-container {
  height: 100%;
  width: 100%;
}

/* === Button Light Sweep Effect === */
.button-container button,
.explore-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  outline: none;
}

.button-container button::before,
.explore-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-30deg);
  transition: left 0.5s ease;
  z-index: 0;
}

.button-container button:hover::before,
.explore-button:hover::before {
  left: 100%;
}

/* ================== */
/* SECTION: HERO      */
/* ================== */

.section-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(30, 96, 96, 0.7);
  z-index: 3;
  padding: 2rem;
  box-sizing: border-box;
}

.left-content {
  flex: 1 1 300px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.overlay-content p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #e6f5f3;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button-container button {
  display: inline-block;
  background: linear-gradient(to right, #b7f0df, #a2e5d2);
  color: #0d3c55;
  font-weight: bold;
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  text-align: center;
}

.button-container button:hover {
  background-color: #59afa2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

/* ================== */
/* SECTION: STATS     */
/* ================== */

.stats-section {
  background-color: #0d3c55;
  padding: 40px 20px;
  color: white;
  display: flex;
  justify-content: center;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.stat-block {
  text-align: center;
  flex: 1 1 140px;
}

.stat-title {
  font-size: 0.875rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: bold;
  margin-top: 6px;
  color: #f0f0f0;
}

.stat-block.with-icon .stat-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ================== */
/* SECTION: FEATURES  */
/* ================== */

.section2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem clamp(1rem, 6vw, 8rem);
  text-align: center;
}

.subheading-container {
  max-width: 960px;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.subheading {
  font-size: clamp(1rem, 2vw, 1.75rem);
  color: #818181;
}

.heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
}

/* ============================== */
/* SECTION: suppliers guide       */
/* ============================== */

.supplier-guide-section {
  background: linear-gradient(to bottom, #e3f5e3, #ffffff);
  padding: 80px 20px;
  text-align: center;
}

.supplier-guide-title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 50px;
  color: #0d3c55;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.supplier-slideshow-container {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  min-height: 500px;
}

.supplier-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  box-sizing: border-box;
}

.supplier-slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.slide-tab {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  background-color: #0d3c55;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInTab 1.2s ease;
  max-width: 90%;
  letter-spacing: 0.5px;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.slide-images img {
  width: 70%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  transition: transform 0.3s ease;
}

.slide-images img:hover {
  transform: scale(1.03);
}

.slide-images.two-img {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.slide-images.two-img img {
  width: 48%;
  min-width: 240px;
}

.slide-images.two-img .small-img {
  width: 22% !important;
  min-width: 150px;
}

.slide-images .small-img {
  width: 30% !important;
  min-width: 150px;
}

.buyer-cta-fixed {
  margin-top: 3rem;
  padding: 2rem;
  background: #f5f9ff;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.buyer-cta-fixed h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.buyer-cta-fixed p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Button styling */
.button-container-buyer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================== */
/* SECTION: VS - MPS Supplier Workflow */
/* ============================== */

.workflow-container {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}

.workflow-container h2 {
  font-size: 2.5rem;
  color: #1a5276;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-in-out forwards;
}

.workflow-flow.row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.workflow-flow.row.reverse {
  flex-direction: row-reverse;
}

.block {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.step {
  background: #ffffff;
  padding: 1.4rem 1.6rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  min-width: 230px;
  border-top: 6px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.step span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: #1a5276;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1000;
  font-size: 0.85rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1a5276 transparent transparent transparent;
}

.step:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.arrow,
.arrow-down {
  font-size: 1.8rem;
  margin: 0.5rem 0;
  color: #1a5276;
}

.arrow-down::after {
  content: "\2193";
}

.blue { border-color: #1a5276; }
.pink { border-color: #d63384; }
.red { border-color: #e74c3c; }
.green { border-color: #27ae60; }
.orange { border-color: #f39c12; }
.purple { border-color: #6f42c1; }
.grey { border-color: #95a5a6; }
.darkgrey { border-color: #34495e; }

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.fade { animation-name: fadeInUp; }

.fade.delay-1 { animation-delay: 1s; }
.fade.delay-2 { animation-delay: 1.5s; }
.fade.delay-3 { animation-delay: 2s; }
.fade.delay-4 { animation-delay: 2.5s; }
.fade.delay-5 { animation-delay: 3s; }
.fade.delay-6 { animation-delay: 3.5s; }
.fade.delay-7 { animation-delay: 4s; }
.fade.delay-8 { animation-delay: 4.5s; }
.fade.delay-9 { animation-delay: 5s; }
.fade.delay-10 { animation-delay: 5.5s; }
.fade.delay-11 { animation-delay: 6s; }
.fade.delay-12 { animation-delay: 6.5s; }

/* ============================== */
/* SECTION: platform-info        */
/* ============================== */
.platform-info {
  padding: 4rem 1rem;
  background: #f8fafd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.platform-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  padding: 1rem;
}

.platform-label {
  color: #0077c8;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.platform-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
}

.platform-intro {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.platform-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.platform-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #cdeeff;
}

.platform-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0077c8;
  margin-bottom: 1rem;
}

.platform-box ul {
  list-style: none;
  padding: 0;
}

.platform-box ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.platform-box ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #28a745;
  font-weight: bold;
}

@media (max-width: 768px) {
  .platform-title {
    font-size: 1.8rem;
  }

  .platform-box {
    padding: 1.5rem;
  }

  .platform-box ul li {
    font-size: 1rem;
  }
}

/* ============================== */
/* SECTION: Industry Leaders     */
/* ============================== */

.industry-leaders-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f9fafa;
  overflow: hidden;
}

.industry-leaders-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #0d3c55;
  margin-bottom: 40px;
  font-weight: bold;
}

.leaders-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

.leaders-grid {
  display: flex;
  gap: 24px;
  animation: scrollLeft 60s linear infinite;
  width: max-content;
  user-select: none;
  padding: 10px 0;
  cursor: grab;
}

.leaders-grid.reverse {
  animation: scrollRight 60s linear infinite;
}

.leaders-grid:active {
  animation-play-state: paused;
  cursor: grabbing;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.leader-logo {
  flex: 0 0 auto;
  width: 160px;
  height: 120px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.leader-logo:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.leader-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.leader-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.leaders-grid::-webkit-scrollbar {
  display: none;
}

/* ================================= */
/* FAQ                           */
/* ================================= */
  .faq-section {
    background: var(--color-light);
    padding: var(--space-lg);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto 4rem;
  }

  /* FAQ Title */
  .faq-title {
    font-size: var(--font-scale-lg);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--space-lg);
  }

  /* Accordion Items */
  .faq-item {
    border-bottom: 1px solid var(--color-bg);
    padding: var(--space-sm) 0;
  }
  .faq-item:last-child {
    border-bottom: none;
  }

  /* Summary/Question Styling */
  .faq-item summary {
    font-size: var(--font-scale-md);
    font-weight: 600;
    color: var(--color-dark);
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: var(--space-lg);
    transition: color var(--trans-fast);
  }
  .faq-item summary:hover {
    color: var(--color-primary);
  }
  /* Hide default marker */
  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  /* Custom toggle icon */
  .faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-scale-md);
    transition: transform var(--trans-fast);
  }
  /* When open, change icon */
  .faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
  }

  /* Answer/Text Styling */
  .faq-item p {
    margin: var(--space-sm) 0 0;
    color: var(--color-text);
    line-height: var(--line-height);
    padding-left: var(--space-sm);
  }

/* ================================= */
/* FOOTER                            */
/* ================================= */
.footer {
  background-color: #f8f9fa;
  border-top: 4px solid var(--color-accent);
  padding: 2rem 1rem;
  color: #333;
}

.footer-container {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Follow Us */
.footer-follow-us {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.footer-follow-us h3 {
  font-size: 1.5rem;
  color: #335596;
  margin-bottom: var(--space-sm);
  transition: color var(--trans-fast);
}
.footer-follow-us h3:hover {
  color: var(--color-accent);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}
.footer-social a {
  color: #555;
  font-size: 1.75rem;
  transition: transform var(--trans-fast), color var(--trans-fast);
}
.footer-social a:hover {
  transform: scale(1.2);
  color: var(--color-accent);
}

/* Navigation links */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin: 1.5rem 0;
}
.footer-nav a {
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 2px;
  transition: background var(--trans-fast), color var(--trans-fast);
}
.footer-nav a:hover {
  background: rgba(51,85,150,0.1);
  color: var(--color-accent);
}

/* Contact Title */
.footer-title {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

/* Addresses */
.footer-addresses {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: space-around;
  width: 100%;
  margin-bottom: var(--space-md);
}
.address-block {
  max-width: 17.5rem;
  text-align: left;
}
.address-block h3 {
  font-size: 1rem;
  color: #335596;
  margin-bottom: var(--space-xs);
}
.address-block a {
  color: var(--color-accent);
  text-decoration: none;
}
.address-block a:hover {
  text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
  width: 100%;
  border-top: 1px solid #e4e4e4;
  padding-top: var(--space-sm);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

/* ============================== */
/* MEDIA QUERIES                 */
/* ============================== */

@media (max-width: 768px) {
  .overlay-content {
    flex-direction: column;
    text-align: center;
  }

  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .button-container button {
    width: 100%;
    max-width: 300px;
  }

  .footer-addresses {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .subheading {
    font-size: 1rem;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
  }

  .overlay-content h1 {
    font-size: 1.5rem;
  }

  .overlay-content p {
    font-size: 1rem;
  }

  .leader-logo {
    padding: 10px;
  }
}