/* General Section Styling */
.our-team-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  margin-top: 0;
  position: relative;
  top: 20;
  width: 100%;
}

body {
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.container {
  width: 80%;
  margin: 0 auto;
}

/* Header Section */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  margin-top: 80px;
}

.header-left {
  flex: 1;
  padding-right: 20px;
}

.header-right {
  flex: 1;
  text-align: center;
}

.header-right img {
  max-width: 100%;
  margin-top: 40px;
  border-radius: 10px;
}

.team-title {
  font-size: 58px;
  font-weight: bold;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
}

.header p {
  font-size: 18px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  font-size: 18px;
  font-weight: 500;
  color: white;
  background-color: #007bff; /* Blue */
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e74c3c; /* Reddish hover effect */
  color: white;
}

/* Team Members Section */
.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.team-member {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 40px;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  margin-top: 20px;
}

.team-member h3 {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.team-member .role {
  font-size: 18px;
  color: #007bff; /* Matching CTA button color */
  font-weight: 400;
  margin-bottom: 15px;
}

.team-member .description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .header-left {
    padding-right: 0;
  }

  .header-right img {
    margin-top: 20px;
  }

  .team-member img {
    width: 100px;
    height: 100px;
  }

  .team-title {
    font-size: 28px;
  }

  .header p {
    font-size: 16px;
  }

  .cta-button {
    font-size: 16px;
  }
}

/* Keep your existing styles and update/add these responsive styles */

/* Tablet Responsive (768px to 1024px) */
@media (max-width: 1024px) {
  .container {
    width: 90%;
  }

  .team-members {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-member {
    padding: 15px;
  }

  .team-title {
    font-size: 42px;
  }
}

/* Mobile Responsive (below 768px) */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .header {
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .team-members {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .team-member {
    margin-top: 20px;
    padding: 20px 15px;
  }

  .team-member h3 {
    font-size: 22px;
  }

  .team-member .role {
    font-size: 16px;
  }

  .team-member .description {
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
  }

  .header-right {
    margin-top: 30px;
  }

  .header-right img {
    width: 80%;
  }
}

/* Small Mobile Responsive (below 480px) */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  .team-title {
    font-size: 24px;
  }

  .header p {
    font-size: 14px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .team-member img {
    width: 90px;
    height: 90px;
  }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 767px) {
  .header .row {
    display: flex;
    flex-direction: column-reverse;
  }

  .header-left {
    margin-top: 2rem;
    text-align: center;
  }

  .header-right img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}

/* Logo Responsive Styles */
.logo img {
  max-width: 250px; /* Default desktop size */
  width: 100%;
  height: auto;
}

/* Mobile size */
@media (max-width: 768px) and (min-width: 481px) {
  .logo img {
    max-width: 120px; /* Specifically targeting the problematic range */
    width: 100%;
    height: auto;
  }
}

/* Small mobile size - keeping your perfect 480px and below size */
@media (max-width: 480px) {
  .logo img {
    max-width: 110px;
    width: 100%;
    height: auto;
  }
}

/* Navigation Styles */
.navbar-header {
  padding-left: -10px !important;
}

/* Home Link Gradient Text */
.navigation .dropdown > a {
  font-weight: bold;
  font-size: 20px !important;
  background: linear-gradient(to right, #1050f8, #ff6232);
  -webkit-background-clip: text;
  color: transparent;
}

/* Submenu Link Styles */
.submenu-content a {
  text-decoration: none !important;
  color: #333 !important;
  font-size: 14px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 4px !important;
  transition: all 0.2s ease-in-out !important;
}

/* Icon Styles */
.icon {
  background-color: #ffffff;
}

/* Footer Icon Sizes */
.footer-widget .icon img {
  width: 80px;
  height: 80px;
}

.footer-widget .icon img.whatsapp-icon {
  width: 50px;
  height: 50px;
}

/* Navigation Dropdown Styles */
.dropdown ul {
  min-width: 220px;
}

.dropdown ul a {
  white-space: nowrap;
}

/* Z-index Fix */
.dropdown {
  z-index: 0 !important;
}

/* Tablet size */
@media (max-width: 1024px) and (min-width: 481px) {
  .header-upper .logo img,
  .logo-outer .logo img {
    max-width: 40%;
    width: auto !important;
    height: auto !important;
  }
}

/* Tablet size logo fix */
@media (min-width: 481px) and (max-width: 1023px) {
  .header-upper .logo img,
  .logo-outer .logo img,
  .mobile-logo img {
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
  }

  .navbar-header .mobile-logo img {
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
  }
}

/* Override navbar toggle position for our team page */
@media (max-width: 1023px) {
  .main-menu .navbar-header {
    position: relative; /* Create positioning context */
  }

  .main-menu .navbar-header .navbar-toggle {
    position: absolute; /* Use absolute instead of fixed */
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
  }
}

/* Ensure logo has proper spacing */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-header .mobile-logo {
    margin-right: 60px; /* Add space for toggle button */
  }
}
