/* =============================================================
   APPROACH — Steps, Industries, Leadership
   ============================================================= */

/* ----- Approach Section ----- */
.approach { background: var(--bg-dark); }

.approach .section-header h2 { color: #fff; }
.approach .section-header p  { color: rgba(255,255,255,0.65); }
.approach .section-tag       { background: rgba(232,160,32,0.15); color: var(--accent); }

.approach-steps { 
  /* display: flex; align-items: flex-start; gap: 0; */
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
 }

.approach-step {
  /* flex: 1; */
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.approach-step:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-8px);
  border-color: var(--accent);
}

.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(232,160,32,0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: #fff;
}

.approach-step h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.approach-step p  { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 16px; }

.step-outcome {
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(232,160,32,0.1);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 80px;
  flex-shrink: 0;
}

/* ----- Industries ----- */
.industries { background: var(--bg-alt); }

.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  background-color: var(--shadow-lg);
}

.industry-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
  transition: transform var(--transition);
}

.industry-card:hover i { transform: scale(1.2); }
.industry-card span    { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4; }

/* ----- Leadership ----- */
.leadership { background: var(--bg); overflow: hidden; }

.leader-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 220px 1fr;   /* fixed avatar col, rest to details */
  gap: 40px;
  align-items: start;
  overflow: hidden;                    /* contain everything inside the card */
}

.leader-avatar {
  text-align: center;
  width: 220px;
  flex-shrink: 0;
}

/* CRITICAL — grid child must have min-width:0 to allow shrinking */
.leader-details {
  min-width: 0;
  overflow: hidden;
}

.avatar-placeholder {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.8);
  border: 4px solid var(--accent);
  overflow: hidden;          /* clip the photo to the circle */
}

/* Founder photo fills the circle */
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 50%;
}

.leader-name-block h3   { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.leader-name-block h3 {
  background: rgba(26, 79, 160, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  /* font-weight: 700; */
}
.leader-name-block span { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.leader-since           { color: var(--primary) !important; font-weight: 600 !important; }

.leader-bio p      { color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; font-size: 0.92rem; }
.leader-bio strong { color: var(--text); }

.leader-bio blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  background: rgba(232,160,32,0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin: 20px 0;
  font-weight: 500;
}

.leader-certs {
  min-width: 0;
  overflow: hidden;
}

.leader-certs h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================================
   CERTIFICATE MARQUEE — continuous right-to-left auto-scroll
   Fully contained — never escapes the section
   ============================================================= */

.cert-marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;                    /* hard clip — nothing escapes */
  /* soft fade on both edges */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0%, #000 6%, #000 94%, transparent 100%);
}

/* Pause on hover */
.cert-marquee-outer:hover .cert-marquee-track {
  animation-play-state: paused;
}

.cert-marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: max-content;                  /* natural width of all items */
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* exactly one set → seamless */
}

/* Each certificate card */
.cert-marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
}

/* Thumbnail */
.cert-thumb {
  position: relative;
  width: 110px;
  height: 80px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  transition: border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.cert-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,79,160,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.cert-thumb-overlay i { font-size: 1rem; color: #fff; }

.cert-marquee-item:hover .cert-thumb {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.cert-marquee-item:hover .cert-thumb img     { transform: scale(1.08); }
.cert-marquee-item:hover .cert-thumb-overlay { opacity: 1; }

/* Label */
.cert-marquee-item > span {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  background: rgba(26,79,160,0.07);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(26,79,160,0.15);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================
   CERTIFICATE LIGHTBOX
   ============================================================= */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-lightbox.open { opacity: 1; pointer-events: all; }

.cert-lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}

.cert-lb-inner img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: lbZoomIn 0.3s ease;
}

@keyframes lbZoomIn {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.cert-lb-caption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(26,79,160,0.5);
  padding: 8px 20px;
  border-radius: 100px;
}

.cert-lb-close,
.cert-lb-prev,
.cert-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2001;
}

.cert-lb-close:hover,
.cert-lb-prev:hover,
.cert-lb-next:hover { background: rgba(255,255,255,0.25); }

.cert-lb-close { top: 24px;  right: 24px; }
.cert-lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.cert-lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }

/* =============================================================
   RESPONSIVE — Leadership
   ============================================================= */
@media (max-width: 900px) {
  .leader-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
  }
  .leader-avatar { width: 100%; }
}

@media (max-width: 480px) {
  .cert-marquee-item { width: 84px; }
  .cert-thumb        { width: 84px; height: 60px; }
}
