/* Custom overrides for KPG Consultancy site */

/* Responsive layout for mission and vision section */
/* Use CSS grid to place mission and vision side by side on larger screens,
   and stack them on narrow widths. */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.mission-vision .mv-item {
  /* Each item fills available grid cell */
}
.mission-vision .mv-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}
.mission-vision .mv-item p {
  margin-bottom: 1rem;
}

/* Styling for the contact section's single photo */
.contact-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.contact-photo img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid var(--color-gold);
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Unified CTA button styling */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 1.75rem;
  background-color: var(--color-gold);
  color: var(--color-white);
  border-radius: 9999px;
  /* Remove default border to achieve cleaner look */
  border: none;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Remove borders from CTA and intro-play buttons and unify styling */
.cta-button,
.intro-play {
  border: none !important;
}

/* Navigation logo sizing */
.nav-logo {
  width: 50px;
  height: auto;
  margin-right: 0.5rem;
}

/* Hero section now uses a clean off-white background instead of a gradient.
   The founder portrait will be displayed via CSS on the .hero-right element. */
.hero {
  background-color: var(--color-offwhite);
  position: relative;
  padding-top: 80px;
}

/* Adjust about image size to fit on a single screen */
.about-image img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Spinner animation for play icon */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.intro-play i.loading {
  animation: spin 0.8s linear infinite;
}
.cta-button:hover {
  background-color: var(--color-teal);
  transform: translateY(-2px);
}
.cta-button:active {
  transform: translateY(0);
}
.cta-button:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* === Updated Hero Layout === */
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Override hero title colours for the new light hero background */
.hero-title {
  color: var(--color-navy);
}
.hero-title .highlight {
  color: var(--color-gold);
}
.hero-left,
.hero-right {
  flex: 1 1 400px;
}
/* Hero description and name card styling for light background */
.hero-description {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--color-dark-text);
}
.hero-name-card {
  background-color: var(--color-offwhite);
  border-left: 4px solid var(--color-gold);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  color: var(--color-dark-text);
}
.hero-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.25rem;
}
.hero-role {
  font-size: 0.95rem;
  color: var(--color-dark-text);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.secondary-button {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}
.secondary-button:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* Metrics grid within hero */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.metric-card {
  background-color: var(--color-offwhite);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.metric-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}
.metric-plus {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-left: 2px;
}
.metric-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-navy);
}

/* Approach Section */
.approach {
  background-color: var(--color-offwhite);
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.approach-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.approach-content,
.approach-image {
  flex: 1 1 450px;
}
.approach-content h2 {
  margin-bottom: 1rem;
  text-align: left;
}
.approach-list {
  list-style: none;
  padding-left: 0;
}
.approach-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-dark-text);
}
.approach-list li i {
  color: var(--color-gold);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}
.approach-list li span {
  flex: 1;
}
.approach-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Key Metrics Section */
.key-metrics {
  background-color: var(--color-light-grey);
  padding: 4rem 0;
}
.metrics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.metric-item {
  background-color: var(--color-offwhite);
  border: 2px solid var(--color-gold);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.metric-item .metric-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
}
.metric-item .metric-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-navy);
}

/* Mission and vision card styling */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
/* Mission, Vision and Approach card styling */
.mv-item {
  background-color: var(--color-offwhite);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 2px solid var(--color-light-grey);
  position: relative;
}
/* Top accent bar reminiscent of the reference design */
.mv-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-teal));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--color-offwhite);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.mv-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}
.mv-item p {
  margin-top: 0;
  color: var(--color-dark-text);
}

/* Diagram container for CSR in the approach section */
.csr-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}
.csr-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-offwhite);
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.csr-item {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-offwhite);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.csr-item span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  margin-top: 0.25rem;
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
/* Positioning items around the center (approximately radial layout) */
.csr-item.item-1 { top: 0%; left: 50%; transform: translate(-50%, -20%); }
.csr-item.item-2 { top: 18%; right: -6%; transform: translate(50%, -10%); }
.csr-item.item-3 { top: 50%; right: -10%; transform: translate(50%, -50%); }
.csr-item.item-4 { bottom: -6%; left: 50%; transform: translate(-50%, 10%); }
.csr-item.item-5 { top: 50%; left: -10%; transform: translate(-50%, -50%); }
.csr-item.item-6 { top: 18%; left: -6%; transform: translate(-50%, -10%); }
.csr-item.item-7 { top: -5%; left: 50%; transform: translate(-50%, -50%); display: none; }

@media (max-width: 768px) {
  .csr-diagram {
    width: 260px;
    height: 260px;
  }
  .csr-center {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }
  .csr-item {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  .csr-item span {
    font-size: 0.7rem;
  }
}

/* Approach description */
.approach-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-dark-text);
}

/* Adjust approach container layout: diagram on right, text on left */
.approach-diagram {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Trusted partnerships section styling */
.trusted-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--color-navy);
  text-align: center;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.partner-card {
  background-color: var(--color-offwhite);
  border: 2px solid var(--color-light-grey);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.partner-card .icon-wrapper {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}
.partner-card span {
  font-weight: 600;
  color: var(--color-dark-text);
}

/* Trusted description text below partner cards */
.trusted-description {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-dark-text);
}

/* Hero right portrait styling */
.hero-right {
  background-image: url('../images/kashu.webp');
  background-size: cover;
  /* Position the image towards the top to ensure the face is fully visible */
  background-position: top center;
  border-radius: 16px;
  /* Increase portrait height to emphasise the founder image */
  min-height: 600px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* === Program Tags Styling === */
/* Add pill-style tags beneath each program description to highlight
   key takeaways or outcomes for the participant. The tags wrap
   automatically and maintain readability on smaller screens. */
.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.program-tag {
  background-color: var(--color-light-grey);
  color: var(--color-navy);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gold);
}