:root { --team-top-offset: 10px; }

/* ===== PAGE BASE ===== */
.team-page {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #FFA500;
  min-height: 100vh;
  overflow: visible;
}

/* ===== HERO ===== */
.team-page .hero {
  margin-top: 10px !important;   /* fixed gap like about.php */
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  background: transparent;
}
.team-page .hero img {
  max-width: calc(100% - 120px);
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
@media (max-width: 992px) {
  .team-page .hero img { max-width: calc(100% - 60px); }
}
@media (max-width: 600px) {
  .team-page .hero img { max-width: 100%; }
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 44px;
}
.main-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 50px rgba(255,165,0,.9);
}
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  color: #FFA500;
  margin: 6px 0 20px;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.team-box {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,165,0,0.5);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255,165,0,.25);
}
.team-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;   /* image সুন্দরভাবে fit হবে */
  margin-top: 5px;
}
.team-box h3 { color: #FFA500; margin-bottom: 4px; font-size: 18px; }
.team-box p { color: #FFA500; margin: 0; font-size: 15px; }

/* ===== BRANDS SCROLLER ===== */
.brands-section { margin: 30px auto; text-align: center; }
.brands-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: #FFA500; }
.brand-scroller { overflow: hidden; white-space: nowrap; }
.brand-track {
  display: inline-flex;
  gap: 40px;
  animation: scroll-left 25s linear infinite;
}
.brand-track img { height: 60px; }
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== TRAY MENU ===== */
/* ===== Tray (desktop only) ===== */
.tray-toggle-vertical{
  position: fixed;
  left: 0;
  top: 40%;
  transform: translateY(-50%) rotate(180deg);
  background: #ffffff;
  color: #FFA500;
  padding: 18px 12px;
  min-height: 140px;
  border-radius: 12px 0 0 12px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  border: 4px solid #FFA500;
  box-shadow: 0 0 28px 10px rgba(255,165,0,0.45);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, opacity .25s ease;
}
.tray-toggle-vertical:hover,
.tray-toggle-vertical:focus-visible{
  transform: translateY(-50%) rotate(180deg) translateX(2px) scale(1.03);
  box-shadow: 0 0 40px 16px rgba(255,165,0,0.65);
  filter: brightness(1.03);
  outline: none;
}
.tray-menu{
  position: fixed; top: 20%; left: -260px; width: 240px;
  background: #ffa500;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  z-index: 1200;
  transition: left .3s ease;
  overflow: hidden;
}
.tray-menu.open{ left: 0; }
.tray-menu a{
  display: block; padding: 14px 16px;
  color: #ffffff; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid #f1f1f1;
}
.tray-menu a:hover{ background: rgba(255,165,0,0.12); }

/* Tray open → hide button */
.tray-open #trayButton { opacity: 0; pointer-events: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .tray-toggle-vertical, .tray-menu { display: none !important; }
}
