
.about-hero {
  padding: 40px 20px !important;
}

.about-hero h1 {
  font-size: 32px !important;
}

.about-hero p {
  font-size: 16px !important;
}

.about-section {
  padding: 40px 20px !important;
}

.team-section {
  padding: 40px 20px !important;
}

.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  }
  
  .about-hero h1 {
    font-size: 28px !important;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr !important;
  }
  
  .about-hero h1 {
    font-size: 24px !important;
  }
}

/* Enhanced team member cards for mobile */
@media (max-width: 992px) {
  .team-member {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .team-member .member-info {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-decoration: none; /* Remove underline */
    color: white; /* Ensure text is white */
  }
  
  .team-member.expanded .member-info {
    max-height: 500px;
  }
  
  .team-member::after {
    content: "Tap for more";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 102, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }
  
  .team-member.expanded::after {
    content: "Tap to collapse";
    background-color: rgba(27, 70, 112, 0.8);
  }
}

/* Fade-in animation for sections */
.about-section, .mission-section, .team-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-section.visible, .mission-section.visible, .team-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Remove blue borders and underlines from all links */
a {
  text-decoration: none;
  outline: none;
}

a:focus {
  outline: none;
}

/* Top bar specific link styles */
.top-bar a {
  color: white;
  text-decoration: none;
  border: none;
  outline: none;
}

.top-bar a:hover,
.top-bar a:focus,
.top-bar a:active {
  text-decoration: none;
  border: none;
  outline: none;
}

/* Mobile Logo (Hidden on Desktop) */
.mobile-logo {
  display: none;
}

/* Desktop Register Button */
.desktop-register {
  display: block;
}

/* Mobile Register Button (Hidden on Desktop) */
.mobile-register {
  display: none;
}

/* ===== MOBILE STYLES (max-width: 992px) ===== */
@media (max-width: 992px) {
  /* Top Bar Mobile Styles */
  .top-bar {
    padding: 10px 15px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .top-left {
    width: 100%;
    justify-content: center;
  }
  
  .navbar-logo {
    height: 50px;
  }
  
  .contact-info {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
  }
  
  .contact-info span {
    display: none; /* Hide text on very small screens */
  }
  
  .contact-info i {
    font-size: 18px;
    margin-right: 0;
    color: #ff6600;
  }
  
  .contact-info a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none; /* Remove the underline */
    border: none; /* Remove any border */
    outline: none; /* Remove outline */
  }
  
  .contact-info a:hover, 
  .contact-info a:active,
  .contact-info a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    text-decoration: none;
    border: none;
    outline: none;
    color: white;
  }
  
  /* Navigation Bar Mobile Styles */
  .nav-bar {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    background-color: #4c4c4c; /* Match the top bar background color */
  }
  
  .nav-container {
    padding: 10px 15px;
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Mobile Logo */
  .mobile-logo {
    display: block;
    height: 40px;
  }
  
  .mobile-logo img {
    height: 100%;
    width: auto;
  }
  
  /* Hamburger Menu */
  .hamburger {
    display: flex;
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }
  
  .hamburger span {
    height: 3px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }
  
  .hamburger.active {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Mobile Menu */
  #navMenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4c4c4c;
    flex-direction: column;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  #navMenu.show {
    max-height: 500px; /* Adjust based on your menu height */
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
  }
  
  #navMenu li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #navMenu li:last-child {
    border-bottom: none;
  }
  
  #navMenu li a {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    display: block;
  }
  
  /* Dropdown Menu */
  .dropdown-parent {
    position: relative;
  }
  
  .dropdown-parent > a::after {
    content: "▼";
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .dropdown-parent.active > a::after {
    transform: rotate(180deg);
    color: white;
  }
  
  /* Make the dropdown parent more obvious */
  .dropdown-parent > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  /* Reset any desktop styles that might interfere */
  .dropdown {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 1 !important;
    transform: none !important;
    transition: max-height 0.3s ease-in-out !important;
    background-color: #1b4670 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
  }
  
  .dropdown-parent.active .dropdown {
    max-height: 200px !important; /* Adjust based on your dropdown height */
    padding: 5px 0 !important;
    display: block !important;
  }
  
  .dropdown a {
    padding: 10px 30px !important;
    font-size: 14px !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: block !important;
    width: 100% !important;
  }
  
  .dropdown a:last-child {
    border-bottom: none !important;
  }
  
  /* Register Button */
  .desktop-register {
    display: none;
  }
  
  .mobile-register {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
  
  .register-btn {
    margin: 5px 0;
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
  }
  
  .register-link {
    width: 100%;
    padding: 0 20px;
  }
}

/* Hide Lottie animations on mobile devices */
@media (max-width: 992px) {
  .image-container dotlottie-player {
    display: none !important;
  }
}

/* ===== SMALL MOBILE STYLES (max-width: 576px) ===== */
@media (max-width: 576px) {
  /* Top Bar Extra Small Screen */
  .top-bar {
    padding: 8px 10px;
  }
  
  .navbar-logo {
    height: 40px;
  }
  
  .contact-info {
    justify-content: space-around;
  }
  
  .contact-info i {
    font-size: 20px;
  }
  
  .contact-info a {
    width: 36px;
    height: 36px;
    text-decoration: none;
    border: none;
    outline: none;
  }
  
  /* Show phone numbers and email on click */
  .contact-info a {
    position: relative;
  }
  
  .contact-info a:active::after {
    content: attr(data-info);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1b4670;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Navigation Adjustments */
  .nav-container {
    padding: 8px 10px;
  }
  
  .mobile-logo {
    height: 35px;
  }
  
  .hamburger {
    width: 32px;
    height: 32px;
  }
  
  #navMenu li a {
    padding: 10px 15px;
    font-size: 15px;
  }
  
  .dropdown a {
    padding: 8px 25px !important;
    font-size: 13px !important;
  }
  
  /* Register Button */
  .register-btn {
    padding: 10px;
    font-size: 14px;
  }
  
  /* Improve tap targets for mobile */
  #navMenu li a,
  .dropdown a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}