/* General Body Reset (Optional, but good for consistent rendering) */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Styles for Header (Desktop First) */
.es-header {
  background-color: #ffffff; /* White background */
  padding: 15px 0; /* Vertical padding */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  position: relative; /* Needed for z-index or absolute positioning if content below */
  z-index: 1000; /* Ensure header stays on top */
}

.es-header-container {
  max-width: 1200px; /* Max width of content */
  margin: 0 auto; /* Center the container */
  display: flex;
  justify-content: space-between; /* Space logo and nav apart */
  align-items: center; /* Vertically align items */
  padding: 0 25px; /* Horizontal padding for container */
}

.es-logo {
  display: flex; /* Helps align image and text if text were added */
  align-items: center;
  text-decoration: none; /* Remove underline from logo link */
}

.es-logo img {
  height: 50px; /* Logo height */
  display: block; /* Remove extra space below image */
  margin-right: 10px; /* Space between logo image and text if any */
}

/* Optional: Add text next to logo as seen in image */
.es-logo span {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}


.es-main-nav {
  display: flex; /* Horizontal nav links on desktop */
  gap: 30px; /* Space between nav items */
}

.es-main-nav a {
  text-decoration: none; /* Remove underline */
  color: #555; /* Darker text color */
  font-size: 16px;
  font-weight: 500; /* Medium weight */
  padding: 8px 0; /* Vertical padding */
  position: relative; /* For the underline effect */
  transition: color 0.3s ease;
}

.es-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* Position at the bottom of the link */
  width: 0; /* Start with no width */
  height: 2px; /* Underline thickness */
  background-color: #007bff; /* Blue underline color */
  transition: width 0.3s ease-out; /* Smooth transition for width */
}

.es-main-nav a:hover,
.es-main-nav a:focus {
  color: #007bff; /* Blue hover color */
}

.es-main-nav a:hover::after,
.es-main-nav a:focus::after {
  width: 100%; /* Expand underline on hover/focus */
}

/* Active link styling (you'd add a class with JS or server-side) */
.es-main-nav a.active {
  color: #007bff;
  font-weight: 600;
}

.es-main-nav a.active::after {
  width: 100%;
}


/* Hamburger Button Styles */
.es-menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #333; /* Icon color */
  font-size: 0; /* Hide any default button text */
  outline: none; /* Remove outline on focus */
}

.es-menu-toggle:focus-visible {
  outline: 2px solid #007bff; /* Focus ring for accessibility */
  outline-offset: 2px;
}

.es-menu-toggle svg {
  width: 28px;
  height: 28px;
  vertical-align: middle; /* Align icon nicely */
  transition: transform 0.3s ease;
}

/* Optional: 'X' icon for hamburger when open - requires a second SVG or CSS transform */
.es-menu-toggle.is-open .es-icon-hamb {
  /* Example: rotate to form an X if you only have one SVG */
  transform: rotate(90deg); /* Or swap SVG to an 'X' icon */
}

/* 
  Mobile Styles (max-width: 768px for tablet/mobile breakpoint)
*/
@media (max-width: 768px) {
  .es-header-container {
    padding: 0 20px; /* Adjust padding for smaller screens */
  }

  .es-logo img {
    height: 45px; /* Slightly smaller logo on mobile */
  }

  .es-menu-toggle {
    display: block; /* Show hamburger on mobile */
  }

  .es-main-nav {
    display: none; /* Hide nav by default on mobile */
    position: absolute; /* Position dropdown menu */
    top: 100%; /* Below the header */
    left: 0;
    width: 100%; /* Full width */
    background-color: #ffffff; /* White background for dropdown */
    flex-direction: column; /* Stack links vertically */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for dropdown */
    border-top: 1px solid #eee; /* Separator from header */
    padding: 10px 0; /* Vertical padding inside dropdown */
  }

  .es-main-nav.is-open {
    display: flex; /* Show nav when 'is-open' class is present */
  }

  .es-main-nav a {
    padding: 15px 25px; /* Larger touch targets, more padding */
    border-bottom: 1px solid #f0f0f0; /* Light separator between links */
    text-align: left; /* Align text to the left */
    width: 100%; /* Ensure full clickable width */
  }

  .es-main-nav a:last-child {
    border-bottom: none; /* No border for the last item */
  }

  /* Remove underline effect for mobile dropdown items */
  .es-main-nav a::after {
    display: none;
  }

  .es-main-nav a:hover,
  .es-main-nav a:focus {
    background-color: #f8f8f8; /* Light background on hover for mobile */
    color: #007bff;
  }
}

/* 
  Even smaller screens (e.g., specific phone sizes) 
  Further adjustments can be made here if needed.
*/
@media (max-width: 480px) {
  .es-header-container {
    padding: 0 15px;
  }
  .es-logo img {
    height: 40px;
  }
}
/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.hero-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.hero-content p {
  margin: 0 0 1.5rem 0;
}

/* General Section Styling */
.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.text-center {
  text-align: center;
}
.bg-gray-50 {
  background-color: #f9fafb;
}
.bg-gray-100 {
  background-color: #f3f4f6;
}

/* About Us Section */
.about-section .grid-container {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-section .grid-container img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  height: auto;
}

.about-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}
.about-section p {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-section .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  color: #ffffff;
  transition: background-color 0.3s;
  font-weight: 600;
}
.btn-primary {
  background-color: #2563eb;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}

/* Key Pillars Section */
.pillars-section h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #0d47a1;
}
.pillars-section .grid-container {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.pillar-card {
  padding: 2rem;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  border-radius: 1rem;
  transition: transform 500ms, box-shadow 500ms, background-image 500ms;
}

.pillar-card:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.pillar-1 { background-image: linear-gradient(to bottom right, #0f54bd, #0f54bd); }
.pillar-1:hover { background-image: linear-gradient(to bottom right, #004d40, #0f54bd); }
.pillar-2 { background-image: linear-gradient(to bottom right, #0f54bd, #1976d2); }
.pillar-2:hover { background-image: linear-gradient(to bottom right, #08306b, #0f54bd); }
.pillar-3 { background-image: linear-gradient(to bottom right, #0f54bd, #0f54bd); }
.pillar-3:hover { background-image: linear-gradient(to bottom right, #0f54bd, #0f54bd); }

.pillar-icon-wrapper {
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 2.25rem;
}
.pillar-card h4 {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
}
.pillar-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

@media (min-width: 768px) {
  .pillars-section .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Initiatives Section */
.initiatives-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.initiatives-section .grid-container {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.info-card {
  padding: 1.5rem;
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
  border-radius: 0.5rem;
}
.info-card h4 {
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
.info-card a {
  color: #2563eb;
  font-weight: 500;
}

@media (min-width: 768px) {
  .initiatives-section .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Leadership Section (Complex) */
.leadership-section-complex { padding: 60px 0; text-align: center; }
.leadership-section-complex .section-subheading { color: #007bff; font-size: 1.1em; margin-bottom: 5px; text-align: left; }
.leadership-section-complex .header-content { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; text-align: left; flex-wrap: wrap; }
.leadership-section-complex .section-heading { font-size: 2.5em; color: #2c3e50; margin: 0; flex: 1; min-width: 250px; }
.leadership-section-complex .section-description { font-size: 1em; color: #555; margin: 0; flex: 2; padding-left: 20px; min-width: 300px; text-align: right; }
.leadership-section-complex .executives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.executive-card { background-color: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; }
.executive-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 0 20px rgba(0, 123, 255, 0.5), 0 15px 35px rgba(0, 0, 0, 0.2); }
.card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; border-radius: 15px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); transition: filter 0.3s ease; }
.executive-card:hover .card-image img { filter: brightness(0.9) saturate(1.2); }
.card-info { position: relative; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); padding: 20px; padding-top: 80px; text-align: left; color: #fff; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; }
.card-info .title { font-size: 0.85em; opacity: 0.8; margin-bottom: 5px; display: block; letter-spacing: 1px; text-transform: uppercase; }
.card-info .name { font-size: 1.6em; margin: 0; font-weight: bold; }
.leadership-section-complex .view-all-button-container { margin-top: 40px; text-align: center; }
.leadership-section-complex .view-all-btn { background-color: #008080; color: white; padding: 12px 30px; border: none; border-radius: 8px; font-size: 1.1em; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 4px 10px rgba(0, 128, 128, 0.3); }
.leadership-section-complex .view-all-btn:hover { background-color: #006666; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 128, 128, 0.4); }
@media (max-width: 768px) { .leadership-section-complex .header-content { flex-direction: column; align-items: flex-start; } .leadership-section-complex .section-description { padding-left: 0; text-align: left; margin-top: 10px; } }

/* Gallery Section */
.gallery-section {
    overflow-x: hidden;
}
.gallery-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.gallery-row {
  display: flex;
  width: max-content;
}
.gallery-row:first-child {
  margin-bottom: 1.5rem;
}
.gallery-row img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  margin-right: 1rem;
  height: 220px;
  width: auto;
}
.gallery-section .view-all-btn {
  margin-top: 2rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 3rem 1rem;
  background-color: #1e40af;
  color: white;
  text-align: center;
}
.newsletter-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}
.newsletter-form {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
}
.newsletter-form input {
  flex: 1 1 0%;
  padding: 0.5rem 1rem;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  color: #1f2937;
  border: none;
  font-size: 1rem;
}
.newsletter-form button {
  background-color: #2563eb;
  padding: 0.5rem 1.25rem;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
  font-weight: 600;
}
.newsletter-form button:hover {
  background-color: #1d4ed8;
}

/* Footer */
.main-footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 2rem 0;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-grid h4 {
  color: white;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-grid li:not(:first-child) {
    margin-top: 0.5rem;
}
.footer-grid a:hover {
  text-decoration: underline;
}
.footer-copy {
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
@keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } }
.animate-bounce { animation: bounce 1s infinite; }

@keyframes pulse { 50% { opacity: .5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin 6s linear infinite; }

@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-scroll-left { animation: scroll-left 40s linear infinite; }

@keyframes scroll-right { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.animate-scroll-right { animation: scroll-right 40s linear infinite; }





/* ===== Hero Text ===== */
.hero-text-section {
  background: linear-gradient(to right, #0d47a1, #1976d2, #42a5f5);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.hero-text-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.hero-text-section p {
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== Hero Slider ===== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  height: 250px; /* smaller box */
  width: 100%;
  background: #f5f5f5; /* light background so smaller images look nice */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  width: calc(100% * 7); /* number of slides */
  height: 100%;
  animation: slideShow 40s linear infinite;
}

.slides div {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slides img {
  max-width: 70%;  /* smaller image */
  max-height: 200px; /* keeps it boxed */
  object-fit: contain; /* contain instead of cover */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Slow loop keyframes */
@keyframes slideShow {
  0% { transform: translateX(0); }
  14% { transform: translateX(-100%); }
  28% { transform: translateX(-200%); }
  42% { transform: translateX(-300%); }
  56% { transform: translateX(-400%); }
  70% { transform: translateX(-500%); }
  84% { transform: translateX(-600%); }
  100% { transform: translateX(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-text-section h2 {
    font-size: 1.5rem;
  }
  .hero-slider-section {
    height: 200px;
  }
  .slides img {
    max-width: 85%;
    max-height: 160px;
  }
}