/* ===================== Reset ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== Body ===================== */
body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #333;
}

/* ===================== Header ===================== */
header {
  background-color: #004444;
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-name img {
  height: 48px;
}

.site-name {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: "Poppins", "Segoe UI", sans-serif;
  letter-spacing: 0.5px;
}

/* ===================== Navigation ===================== */
nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  display: block;
  transition: all 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffcc00;
}

/* Dropdown */
nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #004444;
  border-radius: 4px;
  display: none;
  padding: 6px 0;
  z-index: 999;
}

nav ul li ul li a {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}

nav ul li ul li a:hover {
  background: #007777;
  color: #ffcc00;
}

nav ul li:hover > ul {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Menu */
@media (max-width: 1200px) {
  nav .menu {
    flex-direction: column;
    background: #004444;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    display: none;
    padding: 20px;
    border-radius: 8px;
  }
  nav .menu.show {
    display: flex;
  }
}

/* ===================== Hero Section ===================== */
.hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin; 2px 0px 10px 0px;
  text-align: center;
    
}

.hero img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border: 1px solid #004444;
    padding: 2px;
    
}


.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,0.3);
}

.hero .overlay h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero .overlay p {
  font-size: 18px;
}

.hero .overlay a {
  background: #E53935;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero .overlay a:hover {
  background: #ff6659;
}

/* ===================== Sections ===================== */

section h2 {
  text-align: center;
  color: #004444;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 20px 2px;
  text-decoration: underline;
}

/* ===================== Members Grid ===================== */
.members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 10px;
  
}



.member-card {
  flex: 1 1 calc(20% - 20px); /* 4 cards per row */
  max-width: 25%; /* ensure 4 per row */
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}


.member-card img {
  width: 200px;
  height: 200px;
  border-radius: 35%;
  object-fit: cover;
  border: 2px solid #004444;
  margin-bottom: 15px;
}

.member-card h3,
.member-card .post,
.member-card .location,
.member-card p {
  text-transform: capitalize;
}

.member-card h3 {
  color: #004444;
  font-size: 20px;
  margin: 8px 0 5px;
}

.member-card .post {
  color: #006666;
  font-weight: 600;
  margin-bottom: 10px;
}

.member-card .location {
  font-size: 15px;
  color: #555;
  margin-top: 8px;
}

.btn-small {
  display: inline-block;
  padding: 8px 14px;
  background-color: #004444;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background-color: #006666;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.member-card:hover img {
  transform: scale(1.08);
}

/* ===================== Gallery ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 10px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}

.gallery-item video {
  border-radius: 10px;
}

/* ===================== Forms ===================== */
form {
  display: flex;
  flex-direction: column;
}

input,
textarea,
select {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}

/* Buttons */
button,
.btn-submit {
  padding: 12px;
  background: #004444;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

button:hover,
.btn-submit:hover {
  background: #E53935;
  transform: scale(1.05);
}

/* ===================== Footer ===================== */
footer {
  background: #004444;
  color: #fff;
  text-align: center;
  padding: 30px 10px;
}

footer a {
  color: #E53935;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* ===================== Modal ===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  overflow: auto;
}

.modal-content {
  background: #fdfdfd;
  margin: 8% auto;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.modal-content img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #004444;
  margin-bottom: 15px;
}

.modal-content h3 {
  font-size: 22px;
  color: #004444;
  margin-bottom: 5px;
}

.modal-content .post {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.modal-content a {
  color: #004444;
  text-decoration: none;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  color: #004444;
  cursor: pointer;
}

/* ===================== Responsive Members ===================== */
@media(max-width: 1200px){ .member-card { flex: 1 1 calc(25% - 20px); } }
@media(max-width: 992px){ .member-card { flex: 1 1 calc(33.33% - 20px); } }
@media(max-width: 768px){ .member-card { flex: 1 1 calc(50% - 20px); } }
@media(max-width: 500px){ .member-card { flex: 1 1 100%; } }
