.sgh-about-page {
  color: var(--text-dark);
  overflow-x: hidden;
}
/* Hero */
.check {
  padding-left: 25px;
}
.fa-check-circle {
  color: #1e72b8;
}

/* ---------- PERFORMANCE FIX: hero parallax with GPU acceleration ---------- */
.about-hero {
  position: relative;
  height: 60vh;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
url("img/new/about_p.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 8px;
  color: white;
  animation: fadeInUp 1s ease;
}

/* Description Layout */
.description-container { 
  padding: 3.5rem 5%; 
  background: white;
  position: relative;
  z-index: 2;
}

.description-content { 
  display: flex; 
  gap: 30px; 
  align-items: flex-start; 
}

.image-side { 
  flex: 0.8; 
  margin-top: 25px; 
}

.text-side { 
  flex: 1.2; 
  margin-top: 25px;
}

.add {
  color: #1e72b8;
  font-weight: bold;
}

.text-side h2 { 
  font-size: 2.8rem; 
  color: #281f60; 
}

.main-description { 
  font-size: 1.25rem; 
  line-height: 1.6; 
  margin-bottom: 20px; 
}

.main-description strong { 
  color: #281f60; 
}

.sub-description { 
  border-left: 4px solid #1e72b8; 
  padding-left: 25px; 
  color: var(--text-light); 
}

/* Image and CTA positioning */
.image-frame { 
  position: relative; 
  margin-bottom: 40px; 
}

.image-frame img { 
  width: 100%; 
  height: auto;
  border-radius: 2px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: block;
}

.experience-badge {
  position: absolute; 
  top: -20px; 
  left: -20px;
  background: #281f60; 
  color: var(--white); 
  padding: 20px; 
  text-align: center;
}

.experience-badge .number { 
  display: block; 
  font-size: 2rem; 
  color: #1e72b8; 
  font-weight: bold; 
}

.experience-badge .label { 
  font-size: 0.6rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  color:white;
}

.cta-button {
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: #281f60; 
  color: white; 
  padding: 22px;
  text-decoration: none; 
  font-weight: bold; 
  width: 100%; 
  transition: var(--transition);
}

.cta-button:hover { 
  background: #1e72b8; 
  color: white; 
}

.cta-button .arrow { 
  margin-left: 15px; 
  transition: var(--transition); 
}

.cta-button:hover .arrow { 
  transform: translateX(8px); 
}

/* Horizontal Core Values Row */
.pillar-horizontal-row { 
  display: flex; 
  gap: 20px; 
  width: 100%; 
  justify-content: space-between;
}

.pillar-item { 
  flex: 1; 
  background: #281f60; 
  padding: 30px; 
  border-radius: 4px; 
  opacity: 100%;
  transition: var(--transition); 
  position: relative; 
  border-top: 3px solid transparent;
}

.pillar-item:hover { 
  transform: translateY(-10px); 
  background: #281f60; 
  box-shadow: 0 15px 30px rgba(0,0,0,0.05); 
  border-top-color: #1e72b8; 
}

.pillar-tag { 
  position: absolute; 
  top: 10px; 
  right: 15px; 
  font-weight: bold; 
  color: #1e72b8; 
  font-size: 1.2rem; 
}

.pillar-item strong { 
  display: block; 
  font-size: 1rem; 
  text-transform: uppercase; 
  color: #1e72b8; 
  margin-bottom: 10px; 
}

.pillar-item p { 
  font-size: 0.85rem; 
  margin: 0; 
  line-height: 1.4; 
  color: white; 
}

/* Team Section */
.team-section { 
  padding: 3rem 5%; 
  background: #e2e8f0;
  text-align: center;
  overflow: hidden;
}

.team-header { 
  margin-bottom: 60px; 
}

.team-header p { 
  color: #1e72b8;
  font-size: 1.1rem; 
}

.team-header h2 { 
  font-size: 2.8rem; 
  color: #281f60;
  margin-bottom: 10px;
  line-height: 1.2;
}

.team-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 30px; 
  max-width: 1200px;
  margin: 0 auto;
}

.member-card { 
  background: white; 
  padding: 30px 20px; 
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.member-card:hover { 
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

/* Profile image wrapper – now uses auto margins for rock‑solid centring */
.img-wrapper { 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  margin: 0 auto 20px; 
  overflow: hidden; 
  border: 3px solid #f0f0f0;
  flex-shrink: 0;
}

/* Face perfectly centred inside the circle */
.img-wrapper img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center center;   /* Changed from 'center top' to avoid face cut‑off on mobile */
  display: block;
}

.member-card h3 { 
  color: #281f60;
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.member-card .title { 
  color: #1e72b8; 
  font-weight: 600; 
  font-size: 0.8rem; 
  text-transform: uppercase; 
  margin: 10px 0; 
  display: block; 
  line-height: 1.4;
  min-height: 2.8em;
}

.member-card .intro { 
  font-size: 0.9rem; 
  color: var(--text-light); 
  line-height: 1.5; 
  margin-left: 20px;
  margin-right: 20px;
  text-align: left;
  flex-grow: 1;
}

/* Subsidiaries Slider */
.subsidiary-slider { 
  background: white; 
  padding: 3rem 0; 
  overflow: hidden; 
}

.subsidiary-slider h3 {
  text-align: center;
  color: #281f60;
  font-size: 1.5rem;
  margin: 20px 0;
}

.slider-title {
  text-align: center;
}

.slider-title p { 
  color: #1e72b8; 
  margin-bottom: 30px; 
  font-size: 1.1rem; 
}

.slider-title h2 { 
  font-size: 2.8rem; 
  color: #281f60; 
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-track { 
  display: flex; 
  width: fit-content;
  animation: scroll 30s linear infinite; 
  align-items: center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  gap: 80px;
}

.track-managed {
  animation: scroll 40s linear infinite; 
}

.slider-track:hover {
  animation-play-state: paused;
}

.logo-item { 
  width: auto;
  height: 200px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease; 
  cursor: pointer;
  flex-shrink: 0;
}

.logo-item:hover { 
  opacity: 1; 
  transform: scale(1.05);
}

@keyframes scroll { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } 
}

@keyframes fadeInUp { 
  from { opacity: 0; transform: translateY(40px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* Performance Enhancements */
.member-card,
.cta-button,
.logo-item,
.pillar-item {
  will-change: transform;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .slider-track {
    animation: none !important;
    transform: none !important;
  }
  
  .about-hero::before {
    transform: none !important;
  }
}

/* Mobile Adaptability */
@media (max-width: 1024px) {
  .description-content { 
    flex-direction: column; 
  }
  
  .pillar-horizontal-row { 
    flex-direction: column; 
  }
  
  .team-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .slider-track {
    gap: 60px;
  }
}

/* ========== MOBILE FIX: Directors/Executives photos no longer shift right ========== */
@media (max-width: 768px) {
  .team-grid { 
    grid-template-columns: 1fr; 
  }
  
  /* Force perfect centring for every member card on small screens */
  .member-card {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }
  
  .img-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
  }

  .img-wrapper img {
    object-position: center center;
  }
  
  .hero-content h1 { 
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .about-hero {
    height: 55vh;
    padding: 60px 1.5rem 80px;
  }

  .hero-overlay {
    padding: 20px;
  }
  
  .slider-track {
    gap: 40px;
  }
  
  .logo-item {
    width: 120px;
    height: 60px;
  }

  .slider-title h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  .slider-title p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .subsidiary-slider h3 {
    font-size: 1.25rem;
    margin: 15px 0;
  }
}

@media (max-width: 768px) {
  .about-hero::before {
    background-attachment: scroll;
  }
  
  .member-card,
  .cta-button,
  .logo-item,
  .pillar-item {
    will-change: auto;
  }
}

@media (max-width: 480px) {
  .about-hero {
    height: 45vh;
    padding: 40px 1rem 60px;
  }
  .hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
}

html {
  scroll-behavior: smooth;
}

.about-hero + .description-container {
  margin-top: -2px;
}

/* Read More Buttons */
.madam-read-more,
.zwanga-read-more,
.roanda-read-more,
.thendo-read-more {
    margin-top: 15px;
    padding: 10px 20px;
    background: #1e72b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    font-size: 40px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-grid {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.modal-left {
    flex: 0 0 40%;
    background-color: #f8fafc;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
}

.profile-image-container {
    width: 280px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 30px;   /* auto left/right to centre the block */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 1.85rem;
    color: #0f172a;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-align: center;
}

.profile-role {
    font-size: 0.95rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.modal-right {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.bio-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 35px;
    font-weight: 700;
    position: relative;
}

.bio-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 4px;
    background-color: #111;
    border-radius: 2px;
}

.bio-content p {
    font-size: 0.85rem;
    line-height: 1.1;
    color: #334155;
    margin-bottom: 24px;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .modal-content {
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-grid {
        flex-direction: column;
    }
    
    .modal-left {
        flex: none;
        padding: 50px 20px 30px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        align-items: center !important;
    }
    
    .profile-image-container {
        width: 200px;
        height: 280px;
        margin: 0 auto 30px;
    }
    
    .modal-right {
        padding: 40px 30px;
        overflow-y: visible;
    }
}

/* Navigation Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: #444;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-links li {
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }
}