/* masc-home.css */
:root {
  --logo-bg: rgba(255,255,255,0.7);
  --content-width: 1200px;
  --bar-cluster-width: 90px;
  --bar-padding: 140px;  /* tweak this visually */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: #ffffff;
}

.page-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding: 0 var(--content-padding);
}

/* ——— Hero container context ——— */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  /* …other existing rules… */
}

/* put this just below your existing .hero rule */
.hero .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero .slide.active {
  opacity: 1;
}

/* ——— Now a single flex bar for all logos ——— */
.platform-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 90vw;
  margin: 1rem auto 0 auto;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 1;
}

/* ——— Big MASC logo styling (no more absolute positioning) ——— */
.platform-logos .masc-logo {
  width: clamp(200px, 25vw, 400px);
  background-color: var(--logo-bg);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ——— Three smaller logos (links & hover remain intact) ——— */
.platform-logos a img {
  width: clamp(80px, 12vw, 160px);
  background-color: var(--logo-bg);
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.platform-logos a img:hover {
  transform: scale(1.1);
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  position: relative;
  width: 100%;
}

.intro-text {
  padding: 0px 0;
  padding-top: 0;
  text-align: justify;
  font-size: 1.1em;
}

.platform-box {
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  display: flex;
  align-items: center; 
  gap: 1.5rem;
}

.platform-box p {
  text-align: justify;
}

.pcml-box {
  background-color: rgba(146, 208, 80, 0.1);
  border-left: 6px solid #92d050;
}

.hits-box {
  background-color: rgba(229, 146, 182, 0.1);
  border-left: 6px solid #e592b6;
}

.pcvmt-box {
  background-color: rgba(63, 152, 241, 0.1);
  border-left: 6px solid #3f98f1;
}

.intro-box {
  background-color: rgba(128,128,128,0.1);
  border-left: 6px solid #888888;
}

.platform-logo {
  width: 160px;
  margin-right: 12px;
  vertical-align: middle;
}

.group-photo {
  display: block;
  width: 100%;
  max-width: 80%;
  height: auto;
  margin: 2rem auto;            /* ← centers it */
  border-radius: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.contact-text.intro-box {
  background-color: rgba(128,128,128,0.1);
  border-left: 6px solid #888888;  /* from .intro-box */
  border-radius: 8px;              /* match .platform-box */
  margin: 24px 0;                  /* vertical spacing like the others */
  padding: 16px;                   /* same padding as .platform-box */
  text-align: center;              /* center all headings and paragraphs */
}

/* keep the Contact Us heading centered */
.contact-text.intro-box h2 {
  text-align: left;
}

/* match intro-text paragraphs: justify + font size */
.contact-text.intro-box p {
  text-align: justify;
  font-size: 1.1em;      /* same as .intro-text */
  margin-bottom: 1em;
}

.contact-text.intro-box a {
  text-decoration: none;
}

/* BARS */
.platform-bars {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;

  /* OLD, push too far: */
  /* left: calc((100vw - var(--content-width)) / 2 - var(--bar-cluster-width) / 2); */

  /* NEW: better anchoring just before content */
  left: calc((100vw - var(--content-width)) / 2 - var(--bar-padding));
  width: var(--bar-cluster-width);
}

.platform-bars .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  border-radius: 6px;
}

.bar-hits {
  left: 0px;
  background-color: #e592b688;
}

.bar-pcml {
  left: 40px;
  background-color: #92d05086;
}

.bar-pcvmt {
  left: 80px;
  background-color: #b1d8ff8a;
}

@keyframes bar-twist {
  0%   { transform: scaleX(1); filter: brightness(1); }
  30%  { transform: scaleX(0.25); filter: brightness(1.8); }
  60%  { transform: scaleX(1.15); filter: brightness(1); }
  100% { transform: scaleX(1); filter: brightness(1); }
}

.bar-animate {
  animation: bar-twist 1s ease-in-out;
}

@media screen and (max-width: 900px) {
  /* Platform intro + platform boxes stack */
  .platform-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .platform-logo {
    margin: 0 0 1rem 0;
    width: 120px;
  }

  .group-photo {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0.8rem;
    box-shadow: none;
    margin: 1rem 0;
  }

  .contact-text.intro-box {
    padding: 1rem;
    font-size: 1rem;
    text-align: left;
  }

  .contact-text.intro-box h2 {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1rem;
  }
}

.logo-thumb-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0rem; /* spacing between images and text */
  justify-content: center;
}

.platform-logo {
  height: 100px;
  width: auto;
  max-width: 160px;
}

.platform-thumb {
  width: 120px;           /* fixed width */
  height: 100px;          /* fixed height to match logo */
  object-fit: cover;      /* crop automatically to fill */
  object-position: center;/* keep the central part of the image */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-right: 1rem;
}

.group-slideshow {
  width: 100%;
  max-width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0 auto 50px auto;
  position: relative;
}

.group-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-logos-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;              /* 👈 generous spacing by default */
  margin-top: 0.5rem;
}
.platform-logos-row img {
  width: clamp(80px, 12vw, 160px);
  transition: transform 0.3s ease;
}
.platform-logos-row img:hover {
  transform: scale(1.05);
}


@media screen and (max-width: 1600px) {
  .platform-bars .bar { width: 20px; }
  .bar-pcml { left: 28px; }
  .bar-pcvmt { left: 56px; }
  :root {
    --bar-cluster-width: 60px;
    --bar-padding: 100px;  /* ← reduced from 140px */
  }
}

@media screen and (max-width: 1500px) {
  .platform-bars .bar { width: 10px; }
  .bar-pcml { left: 14px; }
  .bar-pcvmt { left: 28px; }
  :root {
    --bar-cluster-width: 40px;
    --bar-padding: 60px;
  }
}

@media screen and (max-width: 1400px) {
  .platform-bars .bar { width: 4px; }
  .bar-pcml { left: 6px; }
  .bar-pcvmt { left: 12px; }
  :root {
    --bar-cluster-width: 20px;
    --bar-padding: 35px;
  }
}

@media screen and (max-width: 1350px) {
  .platform-bars {
    left: 25px !important; /* or whatever fixed value looks right */
    --bar-padding: 5px; /* optional: has no effect unless you switch back */
  }
}

@media screen and (max-width: 600px) {
  .platform-bars {
    left: 15px !important; /* or whatever fixed value looks right */
    --bar-padding: 5px; /* optional: has no effect unless you switch back */
  }
}

@media screen and (max-width: 800px) {
  .platform-logos {
    flex-direction: column;
    align-items: center;
  }

  .platform-logos .masc-logo {
    margin-bottom: 0.8rem;
  }

  /* Wrap the 3 logos into a flex row */
  .platform-logos-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 90vw;
  }

  .platform-logos-row img {
    width: clamp(60px, 22vw, 100px);
    height: auto;
  }

  .platform-logos a img {
  transition: transform 0.3s ease, width 0.3s ease;
}
}











