/* ===== GOOGLE FONTS IMPORT ===== */
/* Import Open Sans font family with multiple weights for typography */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

/* ===== GLOBAL RESET ===== */
/* Remove default browser spacing and set consistent box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

/* ===== SMOOTH SCROLLING ===== */
/* Enable smooth scrolling for anchor links throughout the page */
html {
  scroll-behavior: smooth;
}

/* ===== BODY STYLES ===== */
/* Set base text alignment for the page */
body {
  text-align: center;
}

/* ===== HEADER ===== */
/* Fixed header that stays at top with semi-transparent background */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  /* Changed to light background with subtle border */
  background: #ffffff;
  color: #333;
  z-index: 10; /* Ensure header stays above other content */
  transition: background 0.3s ease; /* Smooth background transition on scroll */
  border-bottom: 1px solid #e5e7eb;
  /* Added subtle shadow to navigation header */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* Added backdrop blur for better readability */
  backdrop-filter: blur(10px);
}

/* Logo styling in header */
.logo {
  height: 40px;
  transition: transform 0.3s ease; /* Smooth scale effect on hover */
}

.logo:hover {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* Navigation links container */
.hyperlinks {
  display: flex;
  align-items: center;
  gap: 1rem; /* Space between navigation links */
}

/* Individual navigation link styling */
.hyperlinks a {
  font-size: 1rem;
  /* Changed to dark text color for light header */
  color: #333;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap; /* Prevent links from wrapping */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
}

/* Hover effect for navigation links */
.hyperlinks a:hover {
  font-weight: 900;
  transform: translateY(-2px); /* Subtle lift effect on hover */
}

/* ===== BANNER SECTION ===== */
/* Hero banner with background image and darkening overlay */
.banner {
  /* Changed to uniform light gray background */
  background: #f5f5f5;
  min-height: 25vh; /* Reduced from 60vh to make it shorter */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 57px;
  padding-top: 0;
}

/* Dark overlay on banner for better text readability */
/* Reduced overlay opacity since no background image */
.banner::before {
  display: none; /* No overlay needed for light background */
}

/* Container for banner text to position above overlay */
.banner-overlay {
  position: relative;
  z-index: 2; /* Above the dark overlay */
}

/* ===== BANNER TEXT ===== */
/* Large heading text on banner with responsive sizing */
.wt {
  font-size: clamp(2rem, 8vw, 4rem);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  /* Changed to neutral dark gray text color */
  color: #333;
  font-weight: bold;
  text-align: center;
  text-shadow: none; /* Removed shadow for cleaner look on light background */
}

/* ===== TEAM SECTIONS ===== */
/* Container for each team category section */
.team-section {
  padding: 3rem 1rem; /* Vertical and horizontal padding */
  max-width: 1400px; /* Maximum width for large screens */
  margin: 0 auto; /* Center the section */
  /* Prevent horizontal overflow */
  overflow-x: hidden;
}

/* ===== TEAM SECTION HEADINGS ===== */
/* Large headings for each team category with responsive sizing */
.mtttxt {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: clamp(2.5rem, 6vw, 5rem); /* Fluid typography for headings */
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: #333;
  font-weight: 700;
  transition: color 0.3s ease; /* Smooth color transition */
}

/* ===== TEAM MEMBER GRID ===== */
/* Responsive grid layout for team member photos */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns that adapt to screen size */
  gap: 2rem; /* Space between grid items */
  justify-items: center; /* Center items in grid cells */
  padding: 1rem;
  /* Ensure grid doesn't overflow */
  max-width: 100%;
}

/* ===== TEAM MEMBER IMAGES ===== */
/* Styling for individual team member photos with hover effects */
.mtt {
  width: 100%;
  max-width: 600px; /* Maximum width for large screens */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Crop image to fit container */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  /* Prevent image overflow */
  max-width: 100%;
  display: block;
}

/* ===== FOOTER ===== */
/* Updated footer to match mc.css structure with three columns */
footer {
  display: flex;
  flex-wrap: wrap; /* Allow columns to wrap on small screens */
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  background: #333;
  color: white;
  padding: 2rem;
}

/* Footer columns with flexible sizing */
.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 250px; /* Flexible with minimum 250px width */
  font-size: clamp(0.9rem, 1.5vw, 1.1rem); /* Responsive font size */
  /* Reduced line-height to eliminate excessive spacing */
  line-height: 1.4;
}

/* Left column: contact information */
.footer-left {
  text-align: left;
}

/* Center column: logo only */
.footer-center {
  text-align: center;
  display: flex;
  /* Removed flex-direction: column since logo is the only child now */
  justify-content: center;
  align-items: center;
}

/* Right column: social media */
.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* "Keep Updated" text in footer */
.keep-updated {
  font-size: clamp(1rem, 2vw, 1.2rem); /* Responsive font size */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer logo styling */
.logofooter {
  /* Made logo size responsive */
  height: clamp(100px, 15vw, 150px);
  transition: transform 0.3s ease;
  /* Removed margin-bottom since logo is alone in center column */
}

/* Added hover effect for footer logo */
.logofooter:hover {
  transform: scale(1.05);
}

/* Social media icons container */
.footer-social {
  display: flex;
  gap: 0.5rem;
  /* Changed justify-content to flex-end to align right */
  justify-content: flex-end;
}

/* Social media icon styling */
.logo2 {
  height: 40px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Added hover effect for social icons */
.logo2:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Email link in footer */
footer a.gmail {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effect for footer email link */
footer a.gmail:hover {
  text-decoration: underline;
  color: wheat;
}

/* ===== RESPONSIVE DESIGN - TABLET ===== */
/* Adjustments for tablet-sized screens */
@media (max-width: 768px) {
  /* Stack header elements vertically on tablets */
  header {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  /* Adjust navigation for smaller screens */
  .hyperlinks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .hyperlinks a {
    font-size: 0.9rem; /* Slightly smaller text */
  }

  /* Reduce banner height on tablets */
  .banner {
    min-height: 20vh; /* Reduced from 50vh */
    /* Adjust margin for stacked header */
    margin-top: 90px;
  }

  /* Adjust team grid for tablets */
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    /* Reduce padding on tablets */
    padding: 0.5rem;
  }

  /* Stack footer columns on tablets */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .footer-left,
  .footer-right {
    text-align: center; /* Center text in all footer columns */
    align-items: center; /* Center align items */
  }

  .footer-right {
    align-items: center; /* Override flex-end for mobile */
  }

  .footer-social {
    justify-content: center; /* Center social icons on mobile */
  }

  /* Added tighter line-height for footer on mobile */
  .footer-left,
  .footer-center,
  .footer-right {
    /* Further reduce line-height on mobile */
    line-height: 1.3;
  }
}

/* ===== RESPONSIVE DESIGN - MOBILE ===== */
/* Adjustments for mobile phone screens */
@media (max-width: 480px) {
  /* Further reduce header padding on mobile */
  header {
    padding: 0.75rem;
  }

  .logo {
    height: 30px; /* Smaller logo on mobile */
  }

  /* Smaller navigation text on mobile */
  .hyperlinks a {
    font-size: 0.85rem;
  }

  /* Reduce banner height on mobile */
  .banner {
    min-height: 18vh; /* Reduced from 40vh */
    /* Adjusted for mobile header height */
    margin-top: 100px;
  }

  /* Single column grid on mobile */
  .team-grid {
    grid-template-columns: 1fr; /* One column layout */
    gap: 1rem;
    /* Minimal padding on mobile */
    padding: 0.25rem;
  }

  /* Adjust team section padding for mobile */
  .team-section {
    padding: 2rem 0.5rem;
  }

  /* Adjust heading size for mobile */
  .mtttxt {
    font-size: clamp(2rem, 8vw, 3rem);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Reduce footer padding on mobile */
  footer {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    /* Maintain tight line-height on mobile */
    line-height: 1.3;
  }

  /* Slightly smaller logo on very small screens */
  .logofooter {
    height: clamp(80px, 20vw, 120px);
  }

  /* Smaller social icons on mobile */
  .logo2 {
    height: 35px;
  }
}

/* Added extra small mobile adjustments */
@media (max-width: 360px) {
  .banner {
    margin-top: 110px;
  }

  .mtttxt {
    font-size: clamp(1.5rem, 10vw, 2.5rem);
  }

  .hyperlinks a {
    font-size: 0.75rem;
    padding: 0.25rem;
  }

  .team-section {
    padding: 1.5rem 0.25rem;
  }
}
