/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Reset */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

hr {
    color: #122A52;
}

/* Headings */
h1 {
    text-align: center;
    font-size: 50px;
    font-weight: bold;
}

p {
    margin-bottom: 20px;
}

/* Header Section */
header {
    background: white;
    padding: 20px 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(175, 175, 175);
    height: 20px;
    padding: 5px 20px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    margin-right: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: black;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
}

nav ul li a:hover {
    color: rgb(9, 164, 242);
    text-decoration: underline;
    font-weight: bold;
}

/* Join Button */
nav ul li:last-child a {
    background-color: #0A1931; 
    color: white; 
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

nav ul li:last-child a:hover {
    background-color: #122A52; 
}

 /* Dropdown Styling */
 .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  list-style: none;
  min-width: 150px;
  z-index: 100;
  border-radius: 5px;
}

.dropdown-menu li {
  padding: 8px 15px;
  white-space: nowrap;
}

/* Core Team & Tech Team Styling */
.dropdown-menu li a {
  text-decoration: none;
  color: black;
  display: block;
  font-size: 18px; /* Same size as nav links */
  padding: 8px 15px;
}

.dropdown-menu li a:hover {
  background-color: rgb(9, 164, 242);
  color: white;
  font-weight: bold;
  border-radius: 5px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
} 

/* Dropdown Styling */
.dropdown {
   position: relative;
   display: inline-block;
}

.dropdown-menu {
   display: none;
   position: absolute;
   background: white;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   padding: 10px;
   list-style: none;
   min-width: 150px;
}

.dropdown-menu li {
   padding: 5px 10px;
}

.dropdown-menu li a {
   text-decoration: none;
   color: black;
   display: block;
}

.dropdown:hover .dropdown-menu {
   display: block;
}

/* Hero Section */
.hero {
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/heroimg.jpg') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

/* Dark Overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    padding: 20px;
    backdrop-filter: blur(5px); 
    font-size: large;
}

/* Icons in Hero */
.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.icons div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.icons i {
    font-size: 22px;
}

/* Team Section */
.team-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.team-member {
    width: 280px;
}

.member-card {
    background: linear-gradient(135deg, #000428, #004e92, #1f1c2c);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-card:hover {
    transform: scale(1.07);
}

.member-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
}

.member-card h3 {
    margin-top: 12px;
    font-size: 1.3em;
    color: white;
}

.member-card p {
    color: white;
    font-size: 1.1em;
}

/* Vice Chair Image Fix */
.vice-chair img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
}

/* Footer Section */
footer {
    background-color: #24282f;
    color: white;
    padding: 40px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
}

.footer-section {
    width: 30%;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    height: 60px;
    margin-bottom: 10px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.5;
}

.footer-section a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #1E90FF;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #fff;
}

.footer-bottom p {
    font-size: 12px;
    margin: 5px 0;
}

@media (max-width: 600px) {

  /* Menu Toggle Button */
  .menu-toggle {
  background: #0A1931;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  }
  
  /* Hide other menu items */
  nav ul li {
  display: none;     /* Hide all items */
  }
  
  /* Show ONLY Home */
  nav ul li:first-child {
  display: block;    /* Show Home only */
  }
  
  /* Home button style */
  nav ul li:first-child a {
  display: block;
  padding: 12px 18px;
  font-size: 15px;
  background: white;
  color: black;
  border-radius: 8px;
  text-align: left;
  }
  
  /* Mobile Menu Box */
  nav ul {
  display: none;
  position: absolute;
  top: 60px;
  right: 12px;
  width: 180px;
  background: white;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  
  }
  
  /* Show menu when toggled */
  nav.show-menu ul {
  display: flex;
  }
  
  }
/* ---------------- MOBILE VIEW (max-width: 600px) ---------------- */
@media (max-width: 600px) {

  .desktop-menu {
  display: none;        /* hide desktop menu */
  }
  
  .mobile-home {
  display: block;
  background: #0A1931;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  }
  
  nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  }
  
  }
  
  /* ---------------- DESKTOP VIEW (min-width: 601px) ---------------- */
  @media (min-width: 601px) {
  .mobile-home {
  display: none !important;   /* FIX */
  }
  }
  
  
  @media (max-width: 420px) {

    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    nav ul {
        width: 140px;
        padding: 6px 0;
    }
    
    nav ul li a {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    nav ul li:last-child a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .dropdown-menu li a {
        font-size: 11px;
        padding: 5px 10px;
    }
    }
/* ---------------- HERO TEXT (max-width: 768px) ---------------- */
@media (max-width: 768px) {
  .hero {
      height: 18vh;                 /* Slightly smaller hero */
  }
  .hero-content h1 {
      font-size: 32px;              /* Decrease size */
  }
  .hero-content p {
      font-size: 16px;
  }
  }
  
  /* ---------------- HERO TEXT (max-width: 600px) ---------------- */
  @media (max-width: 600px) {
  .hero {
      height: 16vh;
  }
  .hero-content h1 {
      font-size: 26px;              /* Smaller for phones */
  }
  .hero-content p {
      font-size: 14px;
  }
  }
  
  /* ---------------- HERO TEXT (max-width: 420px) ---------------- */
  @media (max-width: 420px) {
  .hero {
      height: 14vh; 
  }
  .hero-content h1 {
      font-size: 22px;              /* Small screen readable */
  }
  .hero-content p {
      font-size: 12px;
  }
  }
  
  /* ---------------- TEAM SECTION (max-width: 768px) ---------------- */
@media (max-width: 768px) {
  .team-section {
      padding: 40px 15px;
  }
  .team-member {
      width: 250px;
  }
  .member-card img {
      height: 200px;
  }
  .member-card h3 {
      font-size: 1.1em;
  }
  }
  
  /* ---------------- TEAM (max-width: 600px) ---------------- */
  @media (max-width: 600px) {
  .team-member {
      width: 90%;
  }
  .member-card {
      padding: 20px;
  }
  .member-card img {
      height: 180px;
  }
  .member-card p {
      font-size: 14px;
  }
  }
  
  /* ---------------- TEAM (max-width: 420px) ---------------- */
  @media (max-width: 420px) {
  .member-card {
      padding: 15px;
  }
  .member-card img {
      height: 150px;
  }
  .member-card h3 {
      font-size: 1em;
  }
  .member-card p {
      font-size: 13px;
  }
  }

  /* ---------------- FOOTER (max-width: 768px) ---------------- */
@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      text-align: center;
      gap: 25px;
  }
  .footer-section {
      width: 100%;
  }
  }
  
  /* ---------------- FOOTER (max-width: 600px) ---------------- */
  @media (max-width: 600px) {
  .footer-section p, .footer-section a {
      font-size: 13px;
  }
  .footer-logo {
      height: 45px;
  }
  }
  
  /* ---------------- FOOTER (max-width: 420px) ---------------- */
  @media (max-width: 420px) {
  .footer-section h3 {
      font-size: 16px;
  }
  .footer-section p {
      font-size: 12px;
  }
  .social-icons a {
      font-size: 18px;
  }
  }

  /* ----------- TEAM IMAGE FIX (max-width: 600px) ----------- */
@media (max-width: 600px) {
  .member-card img {
      height: 260px !important;   /* bigger height = face visible */
      object-fit: cover;
      object-position: top center !important;
  }
}

/* ----------- EXTRA SMALL FIX (max-width: 420px) ----------- */
@media (max-width: 420px) {
  .member-card img {
      height: 300px !important;  /* even bigger for tiny screens */
      object-fit: cover;
      object-position: top center !important;
  }
}
