/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #000000; background: #fff; }

/* Hero */
.hero {
  background: 
    url('../assets/about_us/under_airplane.webp') center/cover no-repeat;
  height: 100vh;
  position: relative;
}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { border-bottom: 2px solid #e74c3c; }
.hero-content {
  position: absolute;
  bottom: 40px;
  left: 2%;
  max-width: 600px;
  color: #fff;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.3rem; }

/* Team */
.team { padding: 60px 0; text-align: center; }
.team h2 { position: relative; font-size: 2rem; margin-bottom: 40px; }
.team h2::after { content: ''; width: 100px; height: 2px; background: #e74c3c; display: block; margin: 8px auto 0; }
/* Removed .team-grid styles as the div is replaced */

/* Team members styling remains for other elements */
.member {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}
.member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}
.member h3 { margin-top: 16px; font-size: 1.3rem; }
.member p { font-size: 1rem; color: #777; margin-bottom: 12px; }
.social-icons { display: flex; gap: 20px; justify-content: center; }
.social-icons img {
  height: 35px;
  width: auto;
}
.member .info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* Wide last member */
.member.wide {
  grid-column: 1 / -1;
  width: 840px;       /* match the image size */
  margin: 0 auto;     /* center the block */
}

/* Group Photo */
.group-photo img { width: 100%; display: block; margin: 60px 0; }

/* Gallery */
.gallery { padding: 0 20px 60px; }
.gallery-grid { 
  display: grid; 
  gap: 10px; 
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px){
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
  }

}
/* Gallery responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer { background: #f8f8f8; padding: 40px 20px; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; max-width: 1200px; margin: 0 auto; }
.footer-logo img { width: 120px; }
.footer-address { font-size: 0.9rem; color: #555; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #333; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }
.topnav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
/*  height: 10% !important;*/
}


/* Team grid: horizontal row on large screens */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-left: 15%;
  margin-right: 15%;
}

.team-grid .member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-grid .member .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.team-grid .member > img {
  width: 17vw;
  height: 17vw;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}
.team-grid .member .info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}
.team-grid .member .info p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 12px;
  text-align: center;
  width: 100%;
}
.team-grid .member .social-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}
/* Medium screens: 2-3 members per row */
@media (max-width: 1200px) and (min-width: 769px) {
  .team-grid {
    gap: 50px;
    margin-left: 10%;
    margin-right: 10%;
  }
  
  .team-grid .member > img {
    width: 25vw;
    height: 25vw;
  }
}

/* Responsive: single-column for mobile */
@media (max-width: 768px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-left: 5%;
    margin-right: 5%;
  }
  
  .team-grid .member {
    max-width: 100%;
    width: 100%;
    max-width: 300px;
  }
  
  .team-grid .member > img {
    width: 50vw;
    height: 50vw;
    margin-bottom: 15px;
  }
  
  .team-grid .member .info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
  }
  
  .team-grid .member .info p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
  }
  
  .team-grid .member .social-icons img {
    height: 35px;
    width: auto;
  }
}

div.img {
  border: 1px solid #ccc;
}

div.img:hover {
  border: 1px solid #777;
}

/* The Image */
div.img img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

/* Description of Image */
div.desc {
  padding: 15px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

/* Add Responsiveness */
.responsive {
  padding: 0 6px;
  float: left;
  width: auto;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 70px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0.1)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive Columns */
@media only screen and (max-width: 700px){
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
  .modal-content {
    width: 100%;
  }
}

@media only screen and (max-width: 500px){
  .responsive {
    width: 100%;
  }
}

/* Clear Floats */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

@media only screen and (max-width: 300px){
  .hero-content p {
    font-size: 1rem;
  }
}

