:root { --partners-top-offset: 10px; } /* সবসময় 10px রাখলাম */

/* ===== Page scope ===== */
.partners-page {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #FFA500;
}

/* ===== HERO ===== */
.partners-page .hero {
  margin-top: var(--partners-top-offset) !important;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  background: transparent;
}
.partners-page .hero img {
  max-width: calc(100% - 120px);
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
@media (max-width: 992px) {
  .partners-page .hero img { max-width: calc(100% - 60px); }
}
@media (max-width: 600px) {
  .partners-page .hero img { max-width: 100%; }
}

/* ===== Main container ===== */
.partners-page .main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 44px;
}
.partners-page .main-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 50px rgba(255,165,0,0.9);
}

/* ===== Headline ===== */
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  color: #FFA500;
  margin: 6px 0 20px;
}

/* ===== 5–5–3 Grid ===== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: stretch;
  justify-items: stretch;
}
.partner-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(255,165,0,0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.partner-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(255,165,0,0.55);
}
.partner-box h4 {
  color: #FFA500;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.partner-box p {
  color: #FFA500;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* last 3 boxes centered */
.partner-grid .partner-box:nth-child(11) { grid-column: 2; }
.partner-grid .partner-box:nth-child(12) { grid-column: 3; }
.partner-grid .partner-box:nth-child(13) { grid-column: 4; }

/* Responsive grid */
@media (max-width: 1100px) {
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .partner-grid .partner-box:nth-child(11),
  .partner-grid .partner-box:nth-child(12),
  .partner-grid .partner-box:nth-child(13) { grid-column: auto; }
}
@media (max-width: 900px) {
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .partner-grid { grid-template-columns: 1fr; }
}

/* ===== Scrolling Certificates ===== */
.scrolling-certificates {
  text-align: center;
  margin: 40px 0;
}
.scrolling-certificates h2 {
  font-size: 24px;
  font-weight: 700;
  color: #FFA500;
  margin-bottom: 20px;
  text-decoration: underline;
}
.scroll-wrapper {
  overflow: hidden;
  width: 100%;
}
.scroll-content {
  display: flex;
  animation: scroll-left 40s linear infinite;
  animation-play-state: running;
}
.scroll-content:hover {
  animation-play-state: paused;
}
.scroll-content img {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
@keyframes scroll-left {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== Tray Button (same as about-r-page) ===== */
/* ===== 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; }

/* ===== Mobile এ tray hide ===== */
@media (max-width: 768px) {
  .tray-toggle-vertical,
  .tray-menu {
    display: none !important;
  }
}

/* ===== Fix scroll issue ===== */
html, body {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
.partners-page {
  min-height: 100vh;
  overflow: visible;
}
