/* =============================================================
   OUR PARTNERS — styles.css
   Depends on ../css/styles.css for brand tokens, nav, footer
   ============================================================= */

/* ── Brand tokens (local fallbacks if shared CSS not loaded) ── */
:root {
  --red:     #812926;
  --yellow:  #FFD546;
  --green:   #7EBB55;
  --green-d: #67924B;
  --navy:    #1C395C;
  --teal:    #41BED0;
  --teal-bg: #F0FAFB;
  --orange:  #F78A3C;
  --why-bg:  #FEF6EF;
  --max-w:   1200px;
  --header-h: 76px;
}

/* ── Shared layout offset ── */
#content {
  margin-top: var(--header-h, 76px);
}

/* =============================================================
   1. HERO
   ============================================================= */
.partners-hero {
  min-height: 56vh;
  background-image:
    linear-gradient(176deg, transparent 16%, rgba(0,0,0,0.72) 55%),
    url('https://b2008833.smushcdn.com/2008833/wp-content/uploads/2024/08/83bcc.jpg?lossy=2&strip=1&webp=1');
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  padding: 0 110px 60px;
}

.partners-hero-inner {
  max-width: 540px;
}

.partners-hero-inner h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
}

.partners-hero-inner p {
  font-size: 17px;
  line-height: 1.65;
  color: #fff;
  margin: 0;
}

/* =============================================================
   2. INTRO STATEMENT (teal background)
   ============================================================= */
.partners-intro {
  background: var(--teal-bg);
  padding: 80px 110px;
  display: flex;
  justify-content: center;
}

.partners-intro-inner {
  max-width: var(--max-w);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 97px;
}

.partners-intro-inner h3 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}

/* Override — teal section: white text on teal bg */
.partners-intro {
  background: var(--teal);
}

/* =============================================================
   3. PARTNER SECTION (shared)
   ============================================================= */
.partner-section {
  background: #fff;
  padding: 80px 110px 60px;
}

.partner-section--alt {
  background: #fff;
}

.partner-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.partner-section-header {
  margin-bottom: 50px;
}

.partner-section-header h2 {
  font-size: 41px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin: 0 0 16px;
}

.partner-section-header p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin: 0;
  max-width: 780px;
}

/* =============================================================
   4. INSTITUTIONAL LOGO GRID (5 cols)
   ============================================================= */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #EDEFF2;
  /* slight hover */
  transition: background 0.2s;
}

.partner-logo-item:hover {
  background: #FAFAFA;
}

.partner-logo-item img {
  width: 100%;
  max-width: 130px;
  height: 100px;
  object-fit: contain;
  display: block;
  /* Strip white fringe from PNGs that have white backgrounds */
  mix-blend-mode: multiply;
}

/* =============================================================
   5. CAROUSEL
   ============================================================= */
.partner-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
  align-items: center;
}

.carousel-slide {
  flex: 0 0 calc((100% - 200px) / 6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.carousel-slide img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  border-radius: 16px;
  mix-blend-mode: multiply;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 40px;
  color: #858585;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.carousel-btn:hover {
  color: #333;
}

/* =============================================================
   6. TESTIMONIAL
   ============================================================= */
.partners-testimonial {
  background: var(--teal-bg);
  padding: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-inner {
  max-width: 60%;
  text-align: center;
}

.testimonial-inner blockquote {
  margin: 0;
}

.testimonial-inner blockquote p {
  font-size: 18px;
  line-height: 1.75;
  color: #333;
  margin: 0 0 28px;
}

.testimonial-inner blockquote cite {
  font-size: 15px;
  color: var(--teal);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* =============================================================
   7. COLLABORATE CTA
   ============================================================= */
.partners-collaborate {
  background: #fff;
  display: flex;
  min-height: 0;
  align-items: stretch;
}

.collaborate-inner {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 80px;
  padding: 100px 150px 100px 110px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.collaborate-photo {
  flex-shrink: 0;
}

.collaborate-photo img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 60% 40% 55% 45% / 50% 50% 40% 50%;
  display: block;
}

.collaborate-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.collaborate-logo {
  width: 260px;
  max-width: 100%;
  display: block;
}

.collaborate-text h2 {
  font-size: 38px;
  font-weight: 700;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.collaborate-text h3 {
  font-size: 22px;
  font-weight: 400;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

/* Teal CTA button */
.btn-teal {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  padding: 22px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-top: 8px;
}

.btn-teal:hover {
  background: #1EA3B6;
  transform: scale(1.03);
}

/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .partners-hero            { padding: 0 60px 60px; }
  .partners-intro           { padding: 60px 60px; }
  .partner-section          { padding: 80px 60px 60px; }
  .partner-logo-grid        { grid-template-columns: repeat(4, 1fr); }
  .collaborate-inner        { padding: 80px 60px; gap: 60px; }
  .collaborate-photo img    { width: 300px; height: 300px; }
}

@media (max-width: 900px) {
  .partner-logo-grid        { grid-template-columns: repeat(3, 1fr); }
  .carousel-slide           { flex: 0 0 calc((100% - 80px) / 3); }
  .collaborate-inner        { flex-direction: column; gap: 48px; padding: 80px 40px; }
  .collaborate-photo img    { width: 260px; height: 260px; }
  .testimonial-inner        { max-width: 80%; }
}

@media (max-width: 640px) {
  .partners-hero            { padding: 0 20px 40px; min-height: 59vh; }
  .partners-intro           { padding: 48px 20px; }
  .partner-section          { padding: 60px 20px 40px; }
  .partner-section-header h2 { font-size: 28px; }
  .partner-logo-grid        { grid-template-columns: repeat(2, 1fr); }
  .partner-logo-item img    { max-width: 90px; height: 70px; }
  .carousel-slide           { flex: 0 0 calc((100% - 40px) / 2); }
  .collaborate-inner        { padding: 60px 20px; }
  .collaborate-photo img    { width: 220px; height: 220px; }
  .collaborate-text h2      { font-size: 28px; }
  .collaborate-text h3      { font-size: 18px; }
  .testimonial-inner        { max-width: 95%; padding: 0 20px; }
  .testimonial-inner blockquote p { font-size: 16px; }
}