/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* === NEW === Smooth scrolling effect for entire site */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: #333;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Floating Top-Right Social Icons */
.social-top-right {
  position: fixed;
  top: 15px;   /* slightly closer to top */
  right: 15px; /* slightly closer to right */
  display: flex;
  gap: 12px;   /* default spacing */
  z-index: 2000;
}

.social-top-right a {
  text-decoration: none;
  color: #2e7d32; /* theme color */
  font-size: 1.2rem; /* default for large screens */
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-top-right a:hover {
  color: #1b4d23;
  transform: scale(1.2);
}

/* Laptops */
@media (max-width: 1024px) {
  .social-top-right a {
    font-size: 1.1rem;
  }
  .social-top-right {
    gap: 10px;
    top: 12px;
    right: 12px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .social-top-right a {
    font-size: 1rem;
  }
  .social-top-right {
    gap: 8px;
    top: 10px;
    right: 10px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .social-top-right a {
    font-size: 0.9rem;
  }
  .social-top-right {
    gap: 6px;
    top: 8px;
    right: 8px;
  }
}

/* === Header === */
.header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.4s ease, background-color 0.3s ease;
  padding: 20px 0;
}

.header.hide {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo span {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2e7d32;
}

/* === Navbar === */
/* NAV/HAMBURGER STYLES MOVED TO common.css - per-page rules disabled
   Original rules removed to avoid conflicts. */

/* === Staff Section === */
#staffs {
  position: relative;
  background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
              url('Docs/IMG_0484.JPG') center/cover no-repeat;
  padding: 150px 0 100px;
  text-align: center;
}

#staffs h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 40px;
  letter-spacing: 1px;
  font-weight: 700;
}

/* === Staff Grid === */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  justify-items: center;
}

/* === Staff Card === */
.staff-card {
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 25px 15px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.staff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.staff-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2e7d32;
  margin-bottom: 15px;
  background: #eee;
}

.staff-card h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 4px;
}

.staff-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* === View Profile Button === */
.view-profile {
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.view-profile:hover {
  background-color: #ffcc00;
  color: #2e7d32;
}

/* === Modal Popup === */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.modal-content h3 {
  color: #2e7d32;
  margin-bottom: 5px;
}

.modal-content p {
  color: #444;
  margin: 10px 0;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.8rem;
  color: #2e7d32;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ffcc00;
}

/* === Fade-in Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== FOOTER ===== */
/* ===== STAFF FOOTER STYLING ===== */
.footer-staff {
  background-color: #0a0f24; /* same as other pages */
    color: #ddd; /* main text color */
      padding: 50px 20px 30px 20px;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        }

        .footer-staff a {
          color: #ddd; /* links same as text */
            text-decoration: none;
            }

            .footer-staff a:hover {
              color: #4cc9f0; /* same hover color as other pages */
              }

              /* Logo & Tagline */
              .footer-logo {
                text-align: center;
                  margin-bottom: 30px;
                  }

                  .footer-logo img {
                    width: 120px;
                      height: 120px;
                        border-radius: 50%; /* round logo */
                          display: block;
                            margin: 0 auto 10px;
                              object-fit: cover;
                              }

                              .footer-logo .tagline {
                                color: #ddd; /* match text color */
                                  font-size: 14px;
                                    line-height: 1.5;
                                    }

                                    /* Footer Sections */
                                    .footer-sections {
                                      display: flex;
                                        flex-wrap: wrap;
                                          justify-content: space-between;
                                            gap: 30px;
                                              max-width: 1200px;
                                                margin: 0 auto 30px auto;
                                                }

                                                .footer-section {
                                                  flex: 1 1 200px;
                                                  }

                                                  .footer-section h4 {
                                                    color: #4cc9f0; /* same as headings on other pages */
                                                      font-size: 18px;
                                                        margin-bottom: 15px;
                                                        }

                                                        .footer-section ul {
                                                          list-style: none;
                                                            padding: 0;
                                                            }

                                                            .footer-section ul li {
                                                              margin-bottom: 10px;
                                                              }

                                                              .footer-section p {
                                                                margin-bottom: 10px;
                                                                  font-size: 14px;
                                                                  }

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

                                                                        .social-icons a {
                                                                          display: flex;
                                                                            justify-content: center;
                                                                              align-items: center;
                                                                                width: 40px;
                                                                                  height: 40px;
                                                                                    border-radius: 50%;
                                                                                      background-color: transparent; /* remove colored background */
                                                                                        color: #ddd; /* same as text color */
                                                                                          font-size: 18px;
                                                                                            border: 1px solid #ddd; /* optional for a subtle border */
                                                                                              transition: 0.3s;
                                                                                              }

                                                                                              .social-icons a:hover {
                                                                                                color: #4cc9f0; /* same hover as other pages */
                                                                                                  border-color: #4cc9f0; /* optional hover border */
                                                                                                  }

                                                                                                  /* Footer Bottom */
                                                                                                  .footer-bottom {
                                                                                                    text-align: center;
                                                                                                      border-top: 1px solid #333;
                                                                                                        padding-top: 20px;
                                                                                                          font-size: 14px;
                                                                                                            color: #aaa;
                                                                                                              display: flex;
                                                                                                                flex-direction: column;
                                                                                                                  align-items: center;
                                                                                                                    gap: 5px;
                                                                                                                    }

                                                                                                                    .footer-bottom a.back-to-top {
                                                                                                                      color: #4cc9f0;
                                                                                                                      }

                                                                                                                      .footer-bottom a.back-to-top:hover {
                                                                                                                        color: #fff;
                                                                                                                        }

                                                                                                                        /* Responsive */
                                                                                                                        @media (max-width: 768px) {
                                                                                                                          .footer-sections {
                                                                                                                              flex-direction: column;
                                                                                                                                  gap: 20px;
                                                                                                                                    }

                                                                                                                                      .footer-logo img {
                                                                                                                                          width: 100px;
                                                                                                                                              height: 100px;
                                                                                                                                                }

                                                                                                                                                  .social-icons a {
                                                                                                                                                      width: 35px;
                                                                                                                                                          height: 35px;
                                                                                                                                                              font-size: 16px;
                                                                                                                                                                }
                                                                                                                                                                }



                                                                                                                                                                /* === Responsive Design === */
                                                                                                                                                                @media (max-width: 1024px) {
                                                                                                                                                                  .navbar ul { gap: 20px; }
                                                                                                                                                                  }

                                                                                                                                                                  @media (max-width: 768px) {
                                                                                                                                                                    /* mobile navbar behavior moved to common.css; preserve layout tweaks */
                                                                                                                                                                      .logo img { height: 60px; }
                                                                                                                                                                        .logo span { font-size: 1.2rem; }
                                                                                                                                                                        }

                                                                                                                                                                        @media (max-width: 480px) {
                                                                                                                                                                          #staffs h2 { font-size: 1.5rem; }
                                                                                                                                                                            .staff-card { width: 200px; padding: 16px; }
                                                                                                                                                                              .staff-card img { width: 90px; height: 90px; }
                                                                                                                                                                              }

                                                                                                                                                                              /* Small phones (iPhone 12 - 390px) */
                                                                                                                                                                              @media (max-width: 390px) {
                                                                                                                                                                                .logo img { height: 45px; }
                                                                                                                                                                                  .logo span { font-size: 1rem; }
                                                                                                                                                                                    .logo { gap: 8px; }
                                                                                                                                                                                    }

                                                                                                                                                                                    @media (max-width: 360px) {
                                                                                                                                                                                      .staff-card { width: 180px; padding: 12px; }
                                                                                                                                                                                        .staff-card img { width: 80px; height: 80px; }
                                                                                                                                                                                        }
                                                                                                                                                                                        