/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: #fff;
    padding: 20px 0; /* Taller navbar for consistency */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo */
.navbar .logo img {
    max-width: 220px; /* Same logo size across all navbars */
    height: auto;
    cursor: pointer;
}


/* Prevent horizontal scroll and mobile shake */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    touch-action: manipulation;
    overscroll-behavior-x: none;
    box-sizing: border-box;
}

/* Main layout */
.team-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 20px;
}

/* Section for each team category */
.team-category {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

.team-category h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Container for team members */
.team-branch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* Individual team member */
.team-member {
    width: 160px;
    max-width: 100%;
    text-align: center;
}

/* Sleek colored border around the image */
.team-member img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, black, #9360DB, white); /* Neon cyan to purple gradient */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Name text */
.team-member p {
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.2;
}

/* Optional: Responsive text scaling */
@media (max-width: 600px) {
    .team-category h3 {
        font-size: 20px;
    }

    .team-member {
        width: 120px;
    }

    .team-member p {
        font-size: 14px;
    }
}


/* Get Involved Section */
.get-involved {
    text-align: center;
    padding: 40px 20px;
    background: #6a0dad; /* Deep Purple */
    margin-top: 40px;
    color: white;
}

.get-involved h2 {
    font-size: 2.5rem;
    color: #fff;
}

.get-involved p {
    font-size: 1.5rem;
    color: #f8f8f8;
    margin-bottom: 20px;
}

/* Get Involved Button */
.get-involved .btn {
    background-color: #6A1B1A; /* Deep Red */
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.get-involved .btn:hover {
    background-color: #a11a1a; /* Slightly darker deep red */
}

/* Fade-In Effect */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #9370DB;
    color: white;
    text-align: center;
    padding: 20px 10px;
    width: 100%;
    max-width: 100vw;
    position: relative;
    left: 0;
    right: 0;
}

/* Social Media Icons */
.footer-social h3 {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icon {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 10px;
}


/* Prevent horizontal scroll and shaking */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: manipulation; /* Helps prevent weird touch behavior */
    overscroll-behavior-x: none; /* Prevents bounce on mobile */
    position: relative;
}




.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 10px 20px;
  background-color: #800080; /* Purple */
  color: #fff;            /* Deep Red */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  z-index: 9999;
  transition: background-color 0.3s;
}
.back-btn:hover {
  background-color: #4B004B; /* Darker purple on hover */
}