/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  color: #180636;
  background-color: #ffffff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.main-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 60px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links li a {
  color: #180636;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links li a:hover {
  color: #3C7AFC;
}

/* HERO SECTION - Slideshow Compatible */
.hero {
  position: relative;
  width: 100%;
  height: 75vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden; /* Hide slides overflow */
}


/* Overlay to darken slides */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 6, 54, 0.6); /* Navy purple tint */

  z-index: 1; /* Below text but above slideshow */
}




/* Slideshow container fills hero */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind text */
}

/* Each slide (hidden by default) */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size:  cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Active slide is visible */
.slide.active {
  opacity: 1;
}

/* Hero text stays above slides */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  background : none; 
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}


.cta-buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}
.btn {
  background: #3C7AFC;
  color: white;
}
.btn:hover {
  background: #2d3196;
}
.btn-outline {
  border: 2px solid #3C7AFC;
  background: transparent;
  color: #3C7AFC;
  
}
.btn-outline:hover {
  background: #3C7AFC;
  color: white;
}
.btn-secondary {
  background: #7F7EEB;
}
.btn-secondary:hover {
  background: #180636;
}


/* About Section */
.about-preview {
  background-color: #f2f2f2;
  padding: 4rem 1rem;
  text-align: center;
}
.about-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #180636;
}
.about-preview p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1.1rem;
  color: #333;
}
.about-preview .btn {
  margin-top: 2rem;
}



/* Services Section */
.services-preview {
  padding: 4rem 1rem;
  background: #ffffff;
  text-align: center;
}
.services-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #180636;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3196;
}
.service-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}
.service-card .btn {
  font-size: 0.95rem;
}


/* Why South Africa Section */
.why-sa {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}
.why-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 30px auto 0;
}
.why-list li {
  padding: 15px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  position: relative;
}
.why-list li::before {
  content: "✔";
  color: #4CAF50;
  position: absolute;
  left: -25px;
}

/* Partner Logos Section */
.partners-section {
  padding: 4rem 1rem;
  background-color: #ffffff;
  text-align: center;
}
.partners-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #180636;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.partners-logos a {
  display: inline-block;
  max-width: 140px;    /* Adjusted size */
  min-width: 120px;    /* Ensures uniform minimum size */
  animation: floatUpDown 6s ease-in-out infinite;
  transition: transform 0.3s ease;
  position: relative;
}

.partners-logos a:hover {
  transform: scale(1.1) translateY(-10px);
  transition: transform 0.4s ease;
}

.partners-logos img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Enhanced Footer Section */
.site-footer {
  background: linear-gradient(135deg, #180636 0%, #3c7afc 100%);
  color: #f0f0f5;
  padding: 50px 20px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.4);
}

.site-footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-contact,
.footer-nav,
.footer-social {
  flex: 1 1 280px;
  min-width: 250px;
}

.footer-contact h3,
.footer-nav h3,
.footer-social h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #c0c3ff;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 2px solid #7f7eeb;
  padding-bottom: 6px;
}

.footer-contact p,
.footer-nav ul,
.footer-social a {
  font-size: 1.05rem;
  color: #dcdce5;
  margin: 8px 0;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul li a {
  color: #dcdce5;
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  font-weight: 600;
}

.footer-nav ul li a:hover {
  color: #ffffff;
  letter-spacing: 1.5px;
}

.footer-social a {
  display: inline-block;
  margin-right: 20px;
  transition: transform 0.4s ease, filter 0.4s ease;
  color: #dcdce5;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}

.footer-social a:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 6px #3c7afc);
  color: #ffffff;
}

.footer-bottom {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #b0b0d6;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .site-footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-contact,
  .footer-nav,
  .footer-social {
    flex: none;
    margin-bottom: 30px;
  }
  .footer-social a {
    margin-right: 15px;
  }
}
/* About Hero Section */
.about-hero {
  background-image: url('https://images.unsplash.com/photo-1464983953574-0892a716854b?auto=format&fit=crop&w=1600&q=80'); /* Table Mountain */
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 6rem 0 4rem 0;
  color: #fff;
  text-align: center;
}

.about-hero .hero-overlay {
  background: rgba(24, 6, 54, 0.4); /* or use background: none; */
  padding: 4rem 0 3rem 0;
  width: 100%;
  height: 100%;
  border: none; /* Ensure no border is set */
  box-shadow: none; /* Ensure no box-shadow is set */
}

.about-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
}

.mission-vision-values {
  background-color: #f9f9ff;
  padding: 4rem 1rem;
  color: #180636;
  text-align: center;
}

.mission-vision-values h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #2d3196;
}

.mission-vision-values h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #3C7AFC;
}

.mission-vision-values p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
  color: #333;
}

/* Mandela Legacy Slideshow */
.mandela-slideshow {
  position: relative;
  max-width: 700px;
  margin: 2rem auto 1rem auto;
  background: #f8f8fa;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(24,6,54,0.07);
  padding: 2.5rem 2rem 3.5rem 2rem;
  min-height: 120px;
}

.mandela-quote {
  display: none;
  font-size: 1.3rem;
  color: #180636;
  font-style: italic;
  transition: opacity 0.5s;
  text-align: center; /* Center the quotes */
  margin: 0 auto;     /* Center block element horizontally */
}

.mandela-legacy h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #2d3196;
  letter-spacing: 1px;
}

.mandela-quote.active {
  display: block;
  opacity: 1;
}

.slideshow-controls {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.slide-btn {
  background: #3C7AFC;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s;
}

.slide-btn:hover {
  background: #180636;
}

.mandela-legacy-desc {
  margin-top: 2rem;
  text-align: center;
  color: #444;
  font-size: 1.1rem;
}



/* Section: Our Three Pillars */
.three-pillars {
  background-color: #f0f0f0;
  padding: 60px 0;
  text-align: center;
}

.three-pillars h2 {
  font-size: 2.3rem;
  margin-bottom: 40px;
  color: #222;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pillar {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.pillar:hover {
  transform: translateY(-5px);
}

.pillar h3 {
  color:black ;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.pillar p, .pillar ul {
  color: #555;
  font-size: 1rem;
}

.pillar ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
  margin-top: 10px;
}

.pillar ul li {
  margin-bottom: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .mandela-legacy h2,
  .three-pillars h2 {
    font-size: 2rem;
  }

  .pillar h3 {
    font-size: 1.3rem;
  }
}


/* Team Section Container */
.team-section {
  padding: 4rem 1rem;
  background-color: #f9f9fb;
  text-align: center;
}

.team-section h2 {
  font-size: 2.5rem;
  color: #180636;
  margin-bottom: 2rem;
}

/* Grid Layout for Team Members */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual Team Member Card */
.team-member {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1rem 2rem;
  box-shadow: 0 4px 10px rgba(24, 6, 54, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(24, 6, 54, 0.15);
}

/* Team Member Image */
.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #3C7AFC; /* brand accent color */
  transition: border-color 0.3s ease;
}



.team-member:hover img {
  border-color: #7F7EEB; /* secondary brand color */
}

/* Name and Title */
.team-member h3 {
  font-size: 1.25rem;
  color: #180636;
  margin-bottom: 0.3rem;
}

.team-member p {
  font-size: 1rem;
  color: #555;
  font-style: italic;
  margin-top: 0;
}



/* --- Hero Section --- */
/* Services Page Hero */
.services-page .hero {
  position: relative;
  background: url('images/services-bg.jpg') center/cover no-repeat; /* Replace with your image */
  color: #fff;
  padding: 3rem 1rem 2rem 1rem; /* Decreased top and bottom padding */
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 140px;   /* Minimum height for small hero */
  max-height: 220px;   /* Maximum height for hero */
  height: 28vh;        /* Responsive: about a quarter of viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient overlay */
.services-page .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(24,6,54,0.85), rgba(60,122,252,0.6));
  z-index: 0;
  animation: gradientShift 10s ease-in-out infinite alternate;
}

/* Hero text container */
.services-page .hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  animation: fadeInUp 1.5s ease forwards;
  opacity: 0;
}

.services-page .hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.services-page .hero-content p {
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  from {
    background: linear-gradient(135deg, rgba(24,6,54,0.85), rgba(60,122,252,0.6));
  }
  to {
    background: linear-gradient(135deg, rgba(60,122,252,0.7), rgba(24,6,54,0.85));
  }
}


/* --- Services Grid --- */
.services-page .services-container {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

/* --- Service Cards --- */
.services-page .service-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  padding: 2.5rem 2rem 3rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 6, 54, 0.1);
  
}

.services-page .service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-page .service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 220%;
  height: 220%;
  background: radial-gradient(circle, rgba(60,122,252,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
}

.services-page .service-card:hover::before {
  opacity: 1;
}

/* --- Icons and Titles --- */
.services-page .service-icon {
  font-size: 4.5rem;
  color: #3C7AFC;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, color 0.3s ease;
}

.services-page .service-card:hover .service-icon {
  transform: scale(1.2) rotate(8deg);
  color: #180636;
}

.services-page .service-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #180636;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.services-page .service-card p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* --- Learn More Button --- */
.services-page .btn-learn {
  background: #3C7AFC;
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 1;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(60,122,252,0.3);
}

.services-page .btn-learn:hover {
  background: #180636;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(24,6,54,0.4);
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #180636;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* Hide menu by default */
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    border-top: 1px solid #ddd;
  }

  .nav-links.show {
    display: flex; /* Show menu when toggled */
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .services-page .hero h1 {
    font-size: 3rem;
  }
  .services-page .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .services-page .hero h1 {
    font-size: 2.4rem;
  }
  .services-page .service-card {
    padding: 2rem 1.5rem;
  }
  .services-page .btn-learn {
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
  }
}


/* Contact Section */
.contact-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #e0f0ff, #ffffff);
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  flex: 1 1 450px;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 119, 204, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form h2 {
  margin-bottom: 1rem;
  color: #0077cc;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
}

/* Floating labels */
.form-group {
  position: relative;
  margin-top: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border: 1.8px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background: transparent;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.5);
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 16px;
  background: white;
  padding: 0 5px;
  color: #777;
  font-size: 1rem;
  transition: 0.3s ease all;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  color: #0077cc;
  font-weight: 700;
}

/* Submit Button */
.btn-primary {
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #0077cc, #005fa3);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #005fa3, #0077cc);
  box-shadow: 0 0 15px rgba(0, 119, 204, 0.6);
}

/* Contact Details */
.contact-details {
  flex: 1 1 300px;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 119, 204, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details h3 {
  color: #0077cc;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.contact-details p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.contact-details a {
  color: #0077cc;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  filter: grayscale(60%);
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: none;
}

/* Map Container */
.map-container {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 119, 204, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form,
  .contact-details {
    flex: 1 1 100%;
  }
}

/* =========================================
   Mobile Responsiveness (Under 768px)
   ========================================= */
@media (max-width: 768px) {
  /* --- Header & Navigation --- */
  .logo {
    height: 45px;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none; /* Hide by default */
    padding: 1rem;
    border-top: 1px solid #ddd;
  }

  /* Temporary toggle class for now */
  .nav-links.show {
    display: flex;
  }

  /* --- Hero Sections --- */
  .hero, .about-hero, .services-page .hero {
    padding: 4rem 1rem;
    text-align: center;
  }

  .hero h1, .about-hero h1, .services-page .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero p, .about-hero p, .services-page .hero-content p {
    font-size: 1rem;
  }

  /* --- Services Grid --- */
  .services-preview .services-grid,
  .services-page .services-container {
    flex-direction: column;
    display: flex;
    gap: 1.5rem;
  }

  .services-page .service-card {
    width: 100%;
    max-width: 100%;
  }

  /* --- Team Section --- */
  .team-grid {
    grid-template-columns: 1fr; /* Stack all team members */
  }

  /* --- Partners Section --- */
  .partners-logos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .partners-logos a {
    flex: 0 0 auto;
    max-width: 120px;
  }

  /* --- Contact Page --- */
  .contact-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .contact-form,
  .contact-details {
    flex: 1 1 100%;
  }

  .map-container iframe {
    width: 100%;
    height: 300px;
  }

  /* --- Footer --- */
  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* Force consistent nav alignment on all pages */
.main-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.main-header .menu-toggle {
  margin-left: auto;
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 20;
}

/* Ensure the logo doesn't push the menu toggle */
.main-header .logo {
  max-height: 50px;
  width: auto;
}

/* Small Tablets (600px to 768px) */
@media (max-width: 768px) and (min-width: 600px) {
  /* Adjust header */
  .main-header .logo {
    max-height: 45px;
  }
  .main-header .nav-container {
    padding: 0.5rem 1rem;
  }

  /* Hero sections text size */
  .hero h1,
  .about-hero h1,
  .services-page .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero p,
  .about-hero p,
  .services-page .hero-content p {
    font-size: 1rem;
  }

  /* Services and Impact Grids */
  .services-grid,
  .impact-highlights,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Footer layout - 2 columns instead of 3 */
  .site-footer .footer-content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .footer-contact,
  .footer-nav,
  .footer-social {
    flex: 1 1 45%;
    margin-bottom: 2rem;
  }
}
/* Large Tablets & Small Laptops (769px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Header adjustments */
  .main-header .logo {
    max-height: 50px;
  }
  .nav-links {
    gap: 1.5rem;
  }

  /* Hero section scaling */
  .hero h1,
  .about-hero h1,
  .services-page .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero p,
  .about-hero p,
  .services-page .hero-content p {
    font-size: 1.2rem;
  }

  /* Service, Impact, Team grids: 2 columns (centered) */
  .services-grid,
  .impact-highlights,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Footer - 3 columns but reduced gaps */
  .site-footer .footer-content {
    gap: 20px;
  }
}

/* Full-width header fix */
.main-header {
  width: 100%;
}
.main-header .nav-container {
  max-width: none; /* Remove 1200px cap */
  padding: 0.5rem 3rem; /* Give side padding so it's not touching edges */
}

/* SERVICES HERO SECTION */
.services-hero {
  text-align: center;
  padding: 5rem 2rem;
  background: #f8f9fb;
  color: #180636;
}

.services-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.services-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #444;
}

/* SERVICES GRID */
.services-container {
  background: #fff;
  padding: 4rem 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #f8f9fb;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-icon {
  margin-bottom: 1rem;
}

.service-icon i {
  font-size: 2.8rem;
  color: #3C7AFC;
}


.service-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #180636;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: #ffffff;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5rem;
  color: #180636;
  margin-bottom: 1rem;
}

.services-section .section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: #333;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #3C7AFC;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #180636;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}
html {
  scroll-behavior: smooth;
}

.services-section {
  padding: 5rem 0;
  background: #f8f9fb;
  min-height: 100vh;
  text-align: center;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #180636;
}

.services-section .section-intro {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 1.5rem;
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-icon {
  margin-bottom: 1rem;
}

.service-icon i {
  font-size: 2.5rem;
  color: #3C7AFC;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #180636;
  margin: 1rem 0;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* --- Base Styling (already in your CSS) remains as is --- */

/* --- Tablet screens (up to 1024px) --- */
@media (max-width: 1024px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .services-page .services-container {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }
}

/* --- Mobile screens (up to 768px) --- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-container ul {
    display: none; /* Hide links by default (for hamburger menu) */
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .services-page .services-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-section p {
    font-size: 1rem;
  }

  footer {
    text-align: center;
    padding: 1rem;
  }
}

/* --- Very small devices (up to 480px) --- */
@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .services-page .services-container {
    gap: 1rem;
  }
}

/* Header container styling */
.main-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo always stays on the left */
.logo {
  max-height: 50px;
  flex-shrink: 0;
}

/* Desktop menu */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #180636;
  font-weight: bold;
}

/* Hamburger hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #180636;
}

/* Mobile view (tablet + phone) */
@media (max-width: 768px) {
  /* Hide normal menu */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  /* Show menu when toggled */
  .nav-links.show {
    display: flex;
  }

  /* Show hamburger icon */
  .hamburger {
    display: flex;
  }
}

/* Adjust header elements for small screens */
@media (max-width: 768px) {
  .nav-container {
    display: flex;
    justify-content: space-between;  /* Push logo left and hamburger right */
    align-items: center;
    position: relative;
  }

  .logo {
    max-height: 40px;
    margin-right: auto; /* Force logo to stay on left */
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem; /* Align to the right edge */
    top: 50%;
    transform: translateY(-50%); /* Vertically center it */
    z-index: 2000; /* Stay above menu */
  }

  /* Dropdown menu styling */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1500;
  }

  .nav-links.show {
    display: flex;
  }
}

/* Fix Hero Overflow on very small screens */
@media (max-width: 480px) {
  .hero {
    height: auto;              /* Let content dictate height */
    min-height: 100vh;         /* Ensure it still fills the screen */
    padding: 4rem 1rem;        /* Add padding so text isn't cramped */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    max-width: 90%;
    padding: 1rem;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;    /* Stack buttons vertically */
    gap: 0.8rem;
  }
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #3C7AFC; /* Your brand blue */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Services Section Styling */
.services-section {
  background-color: #f9f9fb;
  padding: 60px 0;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

.services-section h2 {
  font-size: 2.5rem;
  color: #180636; /* Navy */
  margin-bottom: 15px;
}

.services-section .section-intro {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 122, 252, 0.1); /* Blue light overlay */
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 40px;
  color: #3C7AFC; /* Brand Blue */
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  z-index: 2;
  position: relative;
}

.service-card:hover .service-icon {
  transform: translateY(-8px) scale(1.2);
}

.service-card h3 {
  font-size: 1.4rem;
  color: #180636; /* Navy */
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.service-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Enhanced About Section Styles */
.about-preview {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.about-hero {
  text-align: center;
  margin-bottom: 80px;
  padding: 60px 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3C7AFC, #7F7EEB, #3C7AFC);
}

.section-title {
  font-size: 18px;
  color: #7F7EEB;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-description {
  font-size: 20px;
  color: #5a6c7d;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Vision Section */
.vision-section {
  margin-bottom: 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.content-block {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.block-title {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
}

.block-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3C7AFC, #7F7EEB);
  border-radius: 2px;
}

/* Section: Our Three Pillars - Updated for seamless blending */
.three-pillars {
  background-color: transparent; /* Make the background transparent */
  padding: 60px 0;
  text-align: center;
}

.three-pillars h2 {
  font-size: 2.3rem;
  margin-bottom: 20px; /* Adjusted margin for new paragraph */
  color: #222;
}

.pillars-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 60px auto; /* Increased margin below the new paragraph for a gap */
  color: #555;
  line-height: 1.6;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pillar {
  background-color: #fff;
  border-radius: 15px; /* Slightly more rounded corners */
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Softer, more pronounced shadow */
  border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
  position: relative; /* Needed for absolute positioning of content */
  overflow: hidden; /* Hide overflowing content */
}

.pillar:hover {
  transform: translateY(-10px); /* More pronounced lift on hover */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

.pillar h3 {
  color:black ;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.pillar-icon {
  margin-bottom: 20px; /* Space below the icon */
}

.pillar-icon svg {
  transition: transform 0.3s ease; /* Smooth transition for icon */
}

.pillar:hover .pillar-icon svg {
  transform: scale(1.1); /* Slightly enlarge icon on hover */
}

.pillar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 10px;
}

.pillar-description-initial {
  color: #555;
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 10px;
}


.pillar-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Align list items to the left */
  opacity: 0;
  transition: opacity 0.3s ease;
  list-style-type: disc;
  padding-left: 20px; /* Indent list items */
  color: #555;
  font-size: 1rem;
}

.pillar-details ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
  margin-top: 10px;
}

.pillar-details ul li {
  margin-bottom: 8px;
}

.pillar:hover .pillar-description-initial {
  opacity: 0;
}

.pillar:hover .pillar-details {
  opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .mandela-legacy h2,
  .three-pillars h2 {
    font-size: 2rem;
  }

  .pillar h3 {
    font-size: 1.3rem;
  }
}

.pillar-icon {
  background: linear-gradient(to bottom right, #3C7AFC, #7F7EEB);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pillar-details {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pillar:hover .pillar-details {
  opacity: 1;
  transform: translateY(0);
}

.pillar:hover .pillar-icon {
  box-shadow: 0 8px 20px rgba(60, 122, 252, 0.3);
}

.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(60, 122, 252, 0.15);
}

.pillar-icon {
  background: linear-gradient(to bottom right, #3C7AFC, #7F7EEB);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
}

.pillar-icon i {
  color: white;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.pillar:hover .pillar-icon i {
  transform: scale(1.1);
   box-shadow: 0 8px 20px rgba(60, 122, 252, 0.3);
}
.pillars-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 40px; /* Add space below paragraph */
  color: #555;
  line-height: 1.6;
}

.pillar h3 {
  margin-bottom: 8px; /* Small gap below the heading */
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* Apply only to the initial paragraph, not the list items */
.pillar .pillar-description-initial {
  margin: 0 auto 10px auto; /* Remove top margin, slight bottom margin */
  padding: 0;
  color: #444;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

/* Prevent affecting hover list */
.pillar .pillar-details {
  margin: 0;
  padding-left: 20px;
}

.pillar .pillar-details li {
  margin-bottom: 5px;
}

/* Adds space between title and list only */
.pillar h3 + .pillar-details {
  margin-top: 10px;
}

/* Optional: If the list is not immediately after h3 but after the paragraph, use this instead */
.pillar .pillar-details {
  margin-top: 10px;
}

/* HERO SECTION - Slideshow Compatible */
.hero {
  position: relative;
  width: 100%;
  height: 75vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden; /* Hide slides overflow */
}

/* Overlay to darken slides - improved for better text readability */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 6, 54, 0.7); /* Increased opacity for better text contrast */
  z-index: 1; /* Below text but above slideshow */
}

/* Slideshow container fills hero */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind overlay and text */
}

/* Each slide (hidden by default) - improved for better image display and reduced pixelation */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Maintains aspect ratio while covering container */
  background-repeat: no-repeat;
  background-position: center center; /* Centers the image */
  opacity: 0;
  transition: opacity 1.5s ease-in-out; /* Slightly longer transition for smoother effect */
   filter: brightness(0.9) contrast(1.1);
  /* Improve image quality and reduce pixelation */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}



/* Active slide is visible */
.slide.active {
  opacity: 1;
}

/* Hero text stays above slides - enhanced for better readability */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px; /* Keep original width */
  padding: 2rem;
  background: none; 
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem; /* Keep original size */
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.2;
  
  /* Enhanced text shadow for main heading */
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

.hero p {
  font-size: 1.2rem; /* Keep original size */
  margin-bottom: 1.5rem;
  line-height: 1.6;
  
  /* Text shadow for paragraph */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* CTA Buttons - keeping original styling with improvements */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  
  /* Add shadow for better visibility */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Primary button - Learn More */
.btn {
  background: #3C7AFC;
  color: white;
  border: 2px solid #3C7AFC; /* Ensure border is present */
}

.btn:hover {
  background: #2d3196;
  border-color: #2d3196;
}

/* Outline button - Our Services */
.btn-outline {
  border: 2px solid #6a9eff; /* Lighter blue border color to match the image */
  background: transparent;
  color: #6a9eff; /* Match text color to the new border color */
  border-radius: 8px; /* Ensure consistent border-radius */
  box-shadow: none; /* Remove any existing box-shadow */
}

.btn-outline:hover {
  background: #6a9eff; /* Fill with the border color on hover */
  color: white;
  border-color: #6a9eff; /* Keep border color consistent on hover */
}

/* Secondary button - Partner With Us */
.btn-secondary {
  background: #7F7EEB;
  border: 2px solid #7F7EEB; /* Ensure border is present */
  color: white;
}

.btn-secondary:hover {
  background: #180636;
  border-color: #180636;
}

/* Optional: Slideshow indicators */
.slideshow-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.slide-indicator.active {
  background-color: white;
  border-color: white;
}

.slide-indicator:hover {
  background-color: rgba(255, 255, 255, 0.8);
}


/* Responsive design */
@media (max-width: 768px) {
  .hero {
    height: 60vh; /* Slightly shorter on mobile */
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    margin: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
}

/* Responsive Styles */
@media (max-width: 767px) {
  .about-preview .about-hero {
    text-align: center;
    padding: 20px;
  }

  .about-preview .hero-title {
    font-size: 1.8rem;
  }

  .about-preview .section-title {
    font-size: 1.4rem;
  }

  .about-preview .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about-preview .content-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about-preview .content-block {
    padding: 10px;
  }

  .about-preview .block-title {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  .about-preview .content-grid {
    display: flex;
    gap: 40px;
  }

  .about-preview .content-block {
    flex: 1;
    padding: 20px;
  }

  .about-preview .hero-title {
    font-size: 2.5rem;
  }

  .about-preview .section-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 1024px) {
  .about-preview {
    padding: 60px;
  }

  .about-preview .hero-title {
    font-size: 3rem;
  }

  .about-preview .hero-description {
    font-size: 1.2rem;
  }
}
@media (max-width: 550px) and (max-height: 870px) {
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-content {
    position: relative;
    transform: none;
    top: auto;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(24, 6, 54, 0.7) 0%,
    rgba(16, 4, 40, 0.5) 50%,
    rgba(24, 6, 54, 0.7) 100%
  );
  z-index: 1;
}

/* Hide the list entirely */
.pillar-details {
  display: none !important;
}

/* Always show the paragraph */
.pillar-description-initial {
  opacity: 1 !important;
}

/* Prevent hover from changing content */
.pillar:hover .pillar-description-initial {
  opacity: 1 !important;
}

.pillar:hover .pillar-details {
  display: none !important;
}

/* Team Section Container */
.team-section {
  padding: 4rem 1rem;
  background-color: #f9f9fb;
  text-align: center;
}

.team-section h2 {
  font-size: 2.5rem;
  color: #180636;
  margin-bottom: 2rem;
}

/* Modified Grid Layout for Single Row */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Team Member Card */
.team-member {
  background: white;
  border-radius: 12px;
  padding: 1.5rem 1rem 2rem;
  box-shadow: 0 4px 10px rgba(24, 6, 54, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(24, 6, 54, 0.15);
}

/* Team Member Avatar */
.team-member .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #3C7AFC;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  border: 3px solid #3C7AFC;
  transition: border-color 0.3s ease;
}

.team-member:hover .avatar {
  border-color: #7F7EEB;
}

/* Name and Title */
.team-member h3 {
  font-size: 1.1rem;
  color: #180636;
  margin-bottom: 0.3rem;
}

.team-member p {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  margin-top: 0;
}

/* Responsive Design */

/* Medium screens */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .team-member .avatar {
    width: 70px;
    height: 70px;
    font-size: 1.3rem;
  }
  
  .team-member h3 {
    font-size: 1rem;
  }
  
  .team-member p {
    font-size: 0.85rem;
  }
}

/* Small screens */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .team-member {
    padding: 1rem 0.5rem 1.5rem;
  }
  
  .team-member .avatar {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
  }
  
  .team-member h3 {
    font-size: 0.9rem;
  }
  
  .team-member p {
    font-size: 0.8rem;
  }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .team-member {
    padding: 0.8rem 0.5rem 1.2rem;
  }
  
  .team-member .avatar {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .team-member h3 {
    font-size: 0.85rem;
  }
  
  .team-member p {
    font-size: 0.75rem;
  }
}


body {
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-navy);
  background-color: var(--brand-white);
  line-height: 1.6;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--brand-navy);
  line-height: 1.2;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--brand-dark-blue);
  line-height: 1.3;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--brand-navy);
  line-height: 1.4;
}

p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: white;
  line-height: 1.6;
}

.nav-links li a {
  color: var(--brand-navy);
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.3s ease;
}

.cta-buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--brand-white);
  background: var(--brand-blue);
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.cta-buttons .btn {
  background: #3C7AFC;
  color: white;
  border: none;
}

.cta-buttons .btn:hover {
  background: #2d3196;
  transform: translateY(-2px);
}

* {
  font-family: 'Montserrat', sans-serif;
  color: inherit;
  box-sizing: border-box;
}



#about-section {
  background: linear-gradient(135deg, #180636, #3c7afc); /* Dark blue to blue */
  color: #ffffff; /* Default text color */
  font-family: 'Montserrat', sans-serif;
  padding: 60px 20px;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

#about-section h2,
#about-section h3 {
  color: #ffffff; /* Headings white */
}

#about-section p,
#about-section li {
  color: #f5f5f5; /* Light grey for better readability */
}

#about-section .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

#about-section .content-block {
  flex: 1 1 45%;
  background-color: rgba(255, 255, 255, 0.05); /* Transparent block */
  padding: 20px;
  border-radius: 8px;
}

#about-section .pillar {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s;
}

#about-section .pillar:hover {
  transform: translateY(-5px);
}

.about-hero {
  background: linear-gradient(135deg, #180636, #3c7afc);

  color: #f0f0f5; /* Light gray for readability */
  padding: 4rem 2rem;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.about-hero h2.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff; /* Bright white title */
}

.about-hero .hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  color: #e0e0e0;
}

.about-hero .hero-description strong {
  display: block;
  margin-top: 1rem;
  color: #ffffff;
  font-weight: 600;
}


#services-section {
  background: linear-gradient(135deg, #180636, #3c7afc);
  color: #ffffff; /* fallback text */
  font-family: 'Montserrat', sans-serif;
  padding: 60px 20px;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#services-section h2 {
  color: #ffffff;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#services-section .section-intro {
  color: #e0e0e0;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Grid for service cards */
#services-section .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Individual service card styling */
#services-section .service-card {
  flex: 1 1 300px;
  background-color: rgba(255, 255, 255, 0.08); /* translucent white */
  color: #000000; /* black text for readability */
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Hover effect on cards */
#services-section .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Icon style inside cards */
#services-section .service-icon {
  font-size: 3.5rem;
  color: #180636; /* dark navy for icons */
  margin-bottom: 15px;
}

/* Card titles */
#services-section .service-card h3 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #180636; /* match icon color */
}

/* Card paragraph text */
#services-section .service-card p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #222222; /* dark text for readability */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  #services-section .services-grid {
    flex-direction: column;
    gap: 20px;
  }
}

#services-section,
#services-section h2,
#services-section h3,
#services-section p,
#services-section .section-intro,
#services-section .service-card h3,
#services-section .service-card p {
  color: #ffffff !important;
}

.services-section {
  background-color: #3C7AFC; /* Blue background */
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.services-section h2,
.services-section h3,
.services-section p {
  color: white;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent card */
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon i {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

/* Meet the Team Section Background */
.team-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #0a0f2c, #3C7AFC); /* dark navy to brand blue */
  text-align: center;
  color: #ffffff;
}
.team-section h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 600;
}
.main-header {
  background: linear-gradient(135deg, #180636, #3c7afc); /* Dark blue to blue */
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 50px;
  width: auto;
}

nav ul.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul.nav-links li a {
  color: #ffffff; /* White links */
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a:focus {
  color: #3c7afc; /* Bright blue on hover */
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: 0.4s;
}

.why-sa {
  background: #f8f9ff;
  padding: 4rem 2rem;
  font-family: 'Montserrat', sans-serif;
  color: #180636;
}

.why-sa h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #3C7AFC;
}

.why-list {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.why-list li {
  background: #ffffff;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 6px solid #3C7AFC;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.why-sa {
  background: linear-gradient(135deg, #180636, #3C7AFC);
  padding: 4rem 2rem;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
}

.why-sa h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.why-list {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.why-list li {
  background: rgba(255, 255, 255, 0.06); /* Transparent white for cards */
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 6px solid #3C7AFC;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.partners-section {
  background: white;
  padding: 4rem 2rem;
  text-align: center;
  color: black;
}

.partners-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: black;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.partners-logos a {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.partners-logos a:hover {
  transform: scale(1.05);
}

.partners-logos img {
  max-width: 150px;
  height: auto;
  display: block;
  background: transparent;
  box-shadow: none;
}

/* Section Wrapper */
.why-sa {
  background: #ffffff;
  padding: 60px 20px;
}

.why-sa h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  background: linear-gradient(to right, #3b82f6, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gradient Paragraph Block */
.why-intro {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.why-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* List Block */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.why-list li {
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.why-list li:hover {
  background: #e0f2fe;
  transform: translateY(-3px);
}

.why-icon {
  width: 24px;       /* size of your icons */
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;    /* prevent shrinking */
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.why-list li {
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.why-list li:hover {
  background: #e0f2fe;
  transform: translateY(-3px);
}

.why-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.why-list li::before {
  content: none !important;
}

.why-sa h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  background: none;                  /* remove gradient background */
  -webkit-background-clip: unset;  /* reset */
  -webkit-text-fill-color: black;  /* make text black */
  color: black;                     /* fallback */
}


#services-section {
  scroll-margin-top: 80px; /* or your header height */
}

.why-icon {
  background-color: #e0f2fe; /* soft blue that matches hover bg */
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 34px;  /* increase size a bit to include padding */
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}


.section-title {
  font-size: 2.2rem !important;
  font-weight: 600 !important;
  margin-bottom: 30px !important;
  text-align: center !important;
  /* border-bottom: 3px solid #3C7AFC !important; */ /* Removed underline */
  padding-bottom: 0 !important;  /* Remove padding-bottom since no border */
  display: inline-block !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  box-shadow: none !important;
}

/* ===============================
   GLOBAL TYPOGRAPHY SYSTEM
================================= */
html {
  font-size: 16px; /* 1rem = 16px */
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--brand-navy);
  background-color: var(--brand-white);
  line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: 2.5rem; /* ~40px */
}

h2 {
  font-size: 2.2rem; /* ~35px */
  font-weight: 600;
}

h3 {
  font-size: 1.5rem; /* ~24px */
  font-weight: 600;
}

/* Paragraphs & Lists */
p, li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ===============================
   SECTION TITLE STYLING
================================= */
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.dark-bg .section-title {
  color: #ffffff;
}

.light-bg .section-title {
  color: var(--brand-navy);
}

/* ===============================
   NAVIGATION
================================= */
.nav-links li a {
  font-weight: 500;
  text-transform: uppercase;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a:focus {
  color: #3c7afc;
}

/* ===============================
   BUTTONS
================================= */
.cta-buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  background: #3C7AFC;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
  background: #2d3196;
  transform: translateY(-2px);
}

/* ===============================
   SECTION BACKGROUNDS & COLORS
================================= */
.dark-bg {
  background: linear-gradient(135deg, #180636, #3c7afc);
  color: #ffffff;
}

.light-bg {
  background: #ffffff;
  color: var(--brand-navy);
}

.gradient-block {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
}

/* ===============================
   ICON STYLING
================================= */
.icon-circle {
  background-color: #e0f2fe;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Strong, final override for those two sections */
#why-south-africa h2.section-title,
.why-sa h2.section-title,
.partners-section h2.section-title,
#our-partners h2.section-title {
  color: darkblue !important;
}

/* Hide hamburger by default */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

/* Mobile nav links hidden by default */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links.show {
  display: block;
}

@media (max-width: 768px) {
  nav ul.nav-links {
    display: none;
    flex-direction: column;
    background: linear-gradient(135deg, #180636, #3c7afc);
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }

  nav ul.nav-links li {
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.show {
    display: flex;
  }
}

@media (max-width: 992px) {
  .content-grid,
  .pillar-grid,
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .content-grid,
  .pillar-grid,
  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* The grid container */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* The card itself */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: white; /* Or your theme color */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);

  /* Ensure it grows with content */
  height: auto;
  min-height: 200px;
}

/* Text should wrap, never overflow */
.service-card h3,
.service-card p {
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Images scale with the card */
.service-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

/* Adjust for small screens */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


.service-card {
  height: auto !important;
  min-height: unset !important;
  overflow: visible !important;
}

/* Hero section responsive fix for tablet/medium screens */
@media (max-width: 800px) and (min-width: 500px) {
  .hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    max-width: 85%;
    padding: 2rem 1.5rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-content .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 1rem auto;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* Specific fix for 562px range */
@media (max-width: 600px) and (min-width: 520px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content {
    padding: 1.5rem 1rem;
  }
}

/* Hamburger menu fixes - matches your HTML structure */
@media (max-width: 768px) {
  /* Hide desktop navigation by default */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: rgba(25, 47, 89, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(100%);
  }
  
  /* Show mobile menu when .show class is added */
  .nav-links.show {
    display: flex;
    transform: translateX(0);
  }
  
  /* Style the mobile menu links */
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  
  .nav-links li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    width: 100%;
  }
  
  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Show hamburger menu */
  .hamburger {
    display: block;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }
  
  /* Style hamburger lines */
  .hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
  }
  
  /* Hide hamburger on desktop */
  @media (min-width: 769px) {
    .hamburger {
      display: none;
    }
    
    .nav-links {
      display: flex !important;
      position: static;
      width: auto;
      height: auto;
      background: none;
      flex-direction: row;
      padding-top: 0;
      transform: none;
    }
  }
}


header.main-header .logo {
  max-height: none !important;
  height: 110px !important; /* bigger than natural size */
  width: auto !important;
  object-fit: contain;
}


section {
  scroll-margin-top: 130px; /* matches header height */
}

#services-section {
  scroll-margin-top: 130px; /* Adjust for your header height */
}

/* Tablets */
@media (max-width: 992px) {
  header.main-header {
    padding: 0.5rem 0; /* reduce vertical padding */
  }

  header.main-header .logo {
    height: 80px !important; /* smaller logo */
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  header.main-header {
    padding: 0.3rem 0; /* more compact */
  }

  header.main-header .logo {
    height: 60px !important; /* smaller logo for mobile */
  }

  /* Optional: reduce nav link font size */
  nav ul.nav-links li a {
    font-size: 0.9rem;
  }
}

.partners-logos {
  display: flex;
  flex-wrap: wrap; /* allow logos to move to next line on small screens */
  justify-content: center; /* center logos horizontally */
  align-items: center;
  gap: 30px; /* space between logos */
}

.partners-logos a {
  display: inline-block;
  max-width: 180px; /* max width of each logo */
  flex: 1 1 150px; /* flexible width for responsiveness */
}

.partners-logos img {
  width: 100%; /* makes the logo fill its container */
  height: auto; /* keeps aspect ratio */
  object-fit: contain; /* prevent stretching */
}

/* Optional adjustments for smaller screens */
@media (max-width: 768px) {
  .partners-logos {
    gap: 20px;
  }

  .partners-logos a {
    flex: 1 1 120px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .partners-logos a {
    flex: 1 1 100px;
    max-width: 120px;
  }
}

/* When hamburger has 'active' class, transform bars into X */
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0; /* hide middle bar */
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


@media (max-width: 768px) {
  section {
    scroll-margin-top: 40px; /* smaller gap for mobile */
  }

  #services-section {
      scroll-margin-top: 40px; /* smaller gap for mobile */
  }
}

/* Target only the Cape Town slide */
.slideshow .slide[style*="Cape-Town.jpg"] {
  background-position: top center; /* pins top, trims bottom */
}



/* iPhone SE Landscape Fix */
@media screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape) {
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  .nav-links::after {
  content: "";
  display: block;
  height: 60px;  /* extra space at the bottom */
  width: 100%;
}


  /* Hamburger menu scrollable */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 260px !important;
    height: 100% !important;       /* Use full viewport */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 70px !important;
    padding-bottom: 60px !important;
    background: rgba(25, 47, 89, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
  }

  .nav-links li {
    padding: 10px 0 !important;
  }

  .nav-links a {
    padding: 12px 20px !important;
    font-size: 15px !important;
    display: block !important;
  }

  /* Hero Section */
  .hero {
    height: -webkit-fill-available !important;  /* iOS fix for 100vh */
    min-height: 320px !important;
    padding: 40px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .hero-content {
    max-height: 100% !important;
    overflow-y: auto !important;
    text-align: center !important;
  }

  .hero-content h1 {
    font-size: 1.2rem !important;
    margin-bottom: 6px !important;
  }

  .hero-content p {
    font-size: 0.7rem !important;
    margin-bottom: 8px !important;
  }

  .cta-buttons .btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    margin: 2px !important;
  }
}

/* iPhone SE Landscape Fix */
@media screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape) {
  
  /* Body fixed only when menu is open */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Hamburger menu scrollable */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 260px !important;
    height: 100vh !important; /* Use full viewport height */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 70px !important;
    padding-bottom: 60px !important;
    background: rgba(25, 47, 89, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
  }

  .nav-links li {
    padding: 10px 0 !important;
  }

  .nav-links a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    display: block !important;
  }

  /* Hero Section */
  .hero {
    height: -webkit-fill-available !important; /* Fix for Safari vh bug */
    min-height: 320px !important;
    padding: 30px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-content {
    max-height: 100% !important;
    overflow-y: auto !important;
    text-align: center !important;
  }

  .hero-content h1 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }

  .hero-content p {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
  }

  .cta-buttons .btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    margin: 2px !important;
  }
}

/* iPhone SE Landscape Fix */
@media screen and (max-width: 568px) and (max-height: 320px) and (orientation: landscape) {
  
  /* Hamburger menu scrollable */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 70px !important;
    padding-bottom: 120px !important; /* space for last link */
    background: rgba(25, 47, 89, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 9999 !important;
  }

  .nav-links li {
    padding: 10px 0 !important;
  }

  .nav-links a {
    font-size: 13px !important;
    display: block !important;
  }

  /* Prevent body scroll only when menu is open */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Hero adjustments */
  .hero {
    height: -webkit-fill-available !important;
    min-height: 320px !important;
    padding: 30px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-content {
    max-height: 100% !important;
    overflow-y: auto !important;
    text-align: center !important;
  }

  .hero-content h1 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }

  .hero-content p {
    font-size: 0.7rem !important;
    margin-bottom: 6px !important;
  }

  .cta-buttons .btn {
    padding: 4px 8px !important;
    font-size: 0.65rem !important;
    margin: 2px !important;
  }
}

/* ===============================
   MOBILE & LANDSCAPE FIXES
   =============================== */

/* General small screens (portrait & landscape) */
@media screen and (max-width: 768px) {
  /* Prevent side scroll */
  body {
    overflow-x: hidden !important;
  }

  /* Navigation fixes */
  .nav-links {
    flex-direction: column;
    text-align: center;
    padding-bottom: 80px !important; /* gives space without ::after */
  }

  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* iPhone SE / very small landscape screens */
@media screen and (max-width: 667px) and (max-height: 375px) and (orientation: landscape) {
  /* Hero fix - no cutoff */
  .hero {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    padding: 2rem 1rem !important;
  }

  /* Executive team - switch to 2-column grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* Make nav scrollable when menu is open */
  .nav-links {
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* iPhone X / taller landscape screens */
@media screen and (max-width: 812px) and (max-height: 414px) and (orientation: landscape) {
  .hero {
    display: block !important;
    height: auto !important;
    padding: 2rem 1rem !important;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* iPhone XR / similar large landscape devices */
@media screen and (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  /* Hero adjustments */
  .hero {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    padding: 3rem 1.5rem !important; /* more breathing room */
    text-align: center !important;
  }

  .hero h1 {
    font-size: 1.8rem !important; /* slightly smaller so it doesn’t cut off */
    line-height: 1.3 !important;
  }

  .hero p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero .btn {
    margin: 0.25rem !important;
  }
}

/* Large smartphones in landscape (Pixel 7, iPhone 14 Pro, Samsung S20 Ultra, etc.) */
@media (max-width: 932px) and (max-height: 430px) {
  
  /* Fix hero cut-off */
  #home-section.hero {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    padding-top: 60px;   /* add breathing room */
    padding-bottom: 60px;
  }

  /* Make nav menu scrollable */
  nav ul {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* 2-column team layout */
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small-height landscape screens (e.g., iPhone SE, Surface Duo, small foldables) */
@media (max-height: 540px) and (orientation: landscape) {

  /* HERO SECTION FIX */
  #home-section.hero {
    display: block !important;        /* remove flex centering */
    height: auto !important;          /* let it grow naturally */
    min-height: auto !important;
    padding-top: 60px !important;     /* add breathing room */
    padding-bottom: 60px !important;
  }

  /* NAV MENU FIX */
  nav ul {
    max-height: 100vh !important;     /* allow scrolling inside menu */
    overflow-y: auto !important;
  }

  body.menu-open {
    overflow: hidden;                 /* prevent background scroll */
  }

  /* TEAM GRID FIX */
  .team-grid {
    grid-template-columns: 1fr 1fr !important; /* 2 per row */
    gap: 15px !important;
  }
}

.hero {
  /* Fallback gradient while images load */
  background: linear-gradient(135deg, #180636, #3C7AFC);
  position: relative;
  width: 100%;
  min-height: 500px; /* adjust based on content */
  overflow: hidden;
}
/* Target iPad portrait */
@media (max-width: 768px) and (min-width: 600px) {
  .hero {
    height: auto;          /* Let content define the height */
    min-height: 100vh;     /* Ensure it fills the viewport */
    overflow: visible;     /* Prevent cutting off content */
    padding-top: 60px;     /* Adjust top padding if needed */
    padding-bottom: 60px;  /* Adjust bottom padding if needed */
  }
}

/* Target screens greater than 541px and less than 768px */
@media (min-width: 542px) and (max-width: 767px) {
  .hero {
    height: auto;          /* Let content define the height */
    min-height: 100vh;     /* Ensure it fills the viewport */
    overflow: visible;     /* Prevent cutting off content */
    padding-top: 60px;     /* Adjust top padding if needed */
    padding-bottom: 60px;  /* Adjust bottom padding if needed */
  }
}
