/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f0f4f8;
  color: #333;
  overflow-x: hidden;
}

/* ------------------- Master CSS Slim Floating Right Navbar ------------------- */
.navbar {
  position: fixed;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85); /* semi-black background */
  border-radius: 24px; /* pill/capsule shape */
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.navbar .nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Logo */
.navbar .nav-logo img {
  width: 36px;   /* small logo */
  height: 36px;
  border-radius: 50%;
  border: 2px solid #d9a441; /* cyan border */
  box-shadow: 0 0 8px rgba(0,255,255,0.6);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar .nav-logo img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(0,255,255,1);
}

/* Nav Links */
.navbar .nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: #fff; /* white text */
  font-weight: 500;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 30px; /* capsule */
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

/* Hover and Active Effect */
.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
  background: #d9a441; /* cyan hover */
  color: #000; /* black text on hover */
  box-shadow: 0 0 10px rgba(0,255,255,0.7);
  transform: scale(1.05);
}

/* Underline Animation */
.navbar .nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10%;
  height: 2px;
  width: 0%;
  background: #d9a441;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar .nav-links li a:hover::after,
.navbar .nav-links li a.active::after {
  width: 80%;
}

/* Responsive */
@media(max-width: 600px) {
  .principal-image img { min-height: 260px; }
  .navbar {
    padding: 4px 10px;
    gap: 6px;
  }
  .navbar .nav-logo img {
    width: 30px;
    height: 30px;
  }
  .navbar .nav-links li a {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* ===== Header ===== */
.header {
  width: 100%;
  background: linear-gradient(135deg, #1c3d28 0%, #2d5a3d 55%, #d9a441 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.08);
  top: -50%;
  left: -50%;
  transform: rotate(45deg);
  animation: slideBG 30s linear infinite;
  z-index: 0;
}

.header h1,
.header p {
  position: relative;
  z-index: 1;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInUp 1.2s forwards;
}

.header p {
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeInUp 1.5s forwards;
}

/* ===== Principal Message Section ===== */
.principal-message {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.principal-image {
  flex: 1 1 340px;
  text-align: center;
  display: flex;
}

.principal-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  border-radius: 15px;
  border: 3px solid var(--brand-accent, #6fcf87);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.principal-image img:hover {
  transform: scale(1.02) translateY(-5px);
}

.message-text {
  flex: 1.4 1 480px;
  background: linear-gradient(135deg, #1c3d28, #142a1c);
  color: #e0f2f1;
  padding: 36px 32px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-text:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.message-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffffff;
}

.message-text p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #cfd8dc;
}

.signature {
  margin-top: 25px;
  font-weight: 600;
  color: #fff;
}

/* ---------------- Footer (remains the same) ---------------- */
footer {
  background: #142a1c;
  color: #c8e8c4;
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #1c3d28;
  display: inline-block;
  padding-bottom: 5px;
}

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

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  text-decoration: none;
  color: #bbb;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #1c3d28;
}

.map-container iframe {
  border-radius: 12px;
  width: 100%;
  height: 200px;
  border: none;
}

.footer-text {
  text-align: center;
  margin-top: 25px;
  color: #aaa;
}

.social-icons {
  margin-top: 15px;
  text-align: center;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 20px;
  transition: all 0.3s;
}

.social-icons a.facebook { color: #1877f2; }

.social-icons a.instagram { color: #E1306C; }
.social-icons a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* ---------------- Responsive ---------------- */
@media(max-width: 900px) {
  .faculty-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media(max-width: 600px) {
  .faculty-container {
    grid-template-columns: 1fr;
  }
}


/* ===== Modal Base ===== */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* dark overlay */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #f8d7a4; /* beige background like your screenshot */
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  overflow-x: auto; /* allows horizontal scroll if timeline is too wide */
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}
.close:hover {
  color: #e74c3c;
}

/* ===== Title ===== */
.timeline-title {
  font-size: 32px;
  font-family: 'Georgia', serif;
  margin-bottom: 30px;
  color: #3c2c20;
}
.timeline-title span {
  font-style: italic;
  color: #7c4d2a;
}

/* ===== Timeline ===== */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 20px;
  padding: 20px 0;
  border-top: 2px solid #1c3d28; /* blue line across top */
}

/* Events */
.event {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 15px;
}

/* Circles */
.event .circle {
  width: 30px;
  height: 30px;
  background: #f39c12;
  border: 3px solid #1c3d28;
  border-radius: 50%;
  margin: 0 auto 15px;
  position: relative;
  z-index: 2;
}

/* Event year */
.event h3 {
  color: #1c3d28;
  font-size: 20px;
  margin-bottom: 15px;
}

/* Event description box */
.event p {
  background: #b92b2b;
  color: #fff;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4;
  margin-top: -5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    border-top: none;
  }
  .event {
    margin-bottom: 25px;
  }
  .event h3 {
    margin-bottom: 10px;
  }
}
   .footer-bottom a { color:rgba(255,255,255,0.6); text-decoration:none; }
.footer-bottom a:hover { color:#d9a441; }

.meet-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d9a441, #b9852f);
  color: #142a1c;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(217,164,65,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.meet-team-btn:hover {
  background: linear-gradient(135deg, #6fcf87, #4caf7d);
  color: #142a1c;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(111,207,135,0.4);
}
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); }
