@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ROOT VARIABLES */

:root {
  --primary-color: #31287d;
  --white: #ffffff;
  --dark: #000e22;
  --primary-pink: #e60076;
  --accent-color: #3498db;
  --hover-transition: all 0.3s ease;
  --small-text: 13px;
}

.small-text {
  font-size: var(--small-text);
}

.dark-bg {
  background-color: var(--dark);
}
.pink-bg {
  background-color: var(--primary-pink);
}

.p-text-color {
  color: var(--primary-color);
}
.pink-text {
  color: var(--primary-pink);
}
.blue-text {
  color: var(--primary-color);
}

.custom-border {
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

body,
html {
  font-family: "Poppins", sans-serif;
}

/* NAV AND CAROUSEL SECTION */

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  /* margin-top: 90px; */
  height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Carousel Images */
.carousel-inner img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  filter: brightness(60%) contrast(110%); /* Ensure darkened effect */
  transition: transform 0.5s ease;
}

.carousel-inner .carousel-item:hover img {
  transform: scale(1.05);
}

/* Smooth Transition for Slides */
.carousel-item {
  transition: opacity 0.8s ease-in-out;
}

/* Carousel Caption - Explicit Centering */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center both axes */
  color: #fff;
  text-align: center; /* Ensure text inside is centered */
  padding: 10px 12px;
  max-width: 80%;
  width: 800px;
  z-index: 10;
  border-radius: 15px;
  backdrop-filter: blur(2px);
  margin: 0; /* Remove any default margins */
  inset: auto; /* Override Bootstrap defaults */
  display: flex; /* Use flexbox for perfect centering */
  flex-direction: column;
  align-items: center; /* Center children horizontally */
  justify-content: center; /* Center children vertically */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Improve readability */
}
.carousel-caption {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Typography */
.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.carousel-caption h2 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 300;
}

.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Button Styling - Match Theme */
.carousel-caption .btn {
  /* Consistent modern blue */
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: #fff; /* Ensure text is white */
}

/* Slider Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 15;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 20%;
  padding: 10px;
  filter: drop-shadow(0 2px 5px rgba(179, 179, 179, 0.3));
}

/* Carousel Indicators */
.carousel-indicators {
  z-index: 15;
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 10%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid #fff;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #00aaff;
  border-color: #00aaff;
  transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .carousel-wrapper {
    height: 70vh;
    /* margin-top: 80px; */
  }
  .carousel-inner img {
    height: 70vh;
  }
  .carousel-caption h1 {
    font-size: 2rem;
  }
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  .carousel-caption h5 {
    font-size: 1.2rem;
  }
  .carousel-caption p {
    font-size: 0.95rem;
  }
  .carousel-caption .btn {
    padding: 10px 20px;
  }
}

@media (max-width: 576px) {
  .carousel-wrapper {
    height: 60vh;
    /* margin-top: 70px; */
  }
  .carousel-inner img {
    height: 60vh;
  }
  .carousel-caption {
    padding: 25px;
  }
  .carousel-caption h1 {
    font-size: 1rem;
  }
  .carousel-caption h2 {
    font-size: 1.2rem;
  }
  .carousel-caption h5 {
    font-size: 1rem;
  }
  .carousel-caption p {
    font-size: 0.85rem;
  }
  .carousel-caption .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    bottom: 5px;
  }
  .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 5px;
  }
}

a.btn.learn-more-btn {
  background-color: var(--primary-pink);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  display: inline-block; /* Ensures it respects text-align: center */
  margin-top: 1rem; /* Adds space above the button */
}
a.btn.learn-more-btn:hover {
  background-color: var(--primary-pink);
  color: var(--white);
  outline: none;
}
a.btn.learn-more-btn:focus {
  background-color: var(--primary-pink);
  outline: none;
  border: none;
}

/* Main Section Styling */

.dir-img {
  width: 100%;
  height: auto;
  max-height: 450px; /* Limit image height */
  object-fit: cover; /* Ensure proper scaling */
}

.bg-light {
  background-color: #fff; /* White card background */
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Read More Link */
.read-more {
  text-decoration: none;
  cursor: pointer;
}

.read-more:hover {
  text-decoration: underline;
}

/* Collapse Animation */
.collapse:not(.show) {
  display: none;
}

.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dir-img {
    max-height: 400px;
  }
  .lead {
    font-size: 1rem;
  }
  .row {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .dir-img {
    max-height: 300px;
    margin-bottom: 20px;
  }
  h1.text-center {
    font-size: 1.75rem;
  }
}

/* Navbar */
/* Navbar Styling */
.navbar {
  padding: 0.5rem 1rem; /* Consistent padding */
  transition: background-color 0.3s ease; /* Smooth transition for potential scroll effects */
}

.logo-img {
  height: 80px; /* Fixed height instead of max-height */
  width: auto;
  transition: height 0.3s ease; /* Smooth resize on responsive */
}

.navbar-brand {
  margin-right: 2rem; /* Space between logo and toggler/links */
}

/* Navbar Links */
.navbar-nav .nav-link {
  color: #333;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #007bff; /* Bootstrap primary color - adjust as needed */
}

/* Active State (optional - add 'active' class via JS or server-side) */
.navbar-nav .nav-link.active {
  color: #0056b3;
  border-bottom: 2px solid #0056b3;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .logo-img {
    height: 80px; /* Smaller logo on mobile */
  }
  .navbar-brand {
    margin-right: 1rem;
  }
  .navbar-toggler {
    margin-right: 0.5rem;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 80px;
  }
}

/* Footer */

.footer-link:hover {
  color: #007bff !important;
}
.socials:hover {
  color: #007bff !important;
}

/* Floating Call Button */
.floating-call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #28a745;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-call-btn a {
  color: #fff;
  text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-caption {
    padding: 0.5rem;
  }
  .carousel-caption h1 {
    font-size: clamp(2rem, 3vw, 4rem);
  }
  .learn-more-btn {
    display: inline-block !important;
  }
}

.offcanvas.offcanvas-end {
  width: 250px;
  background-color: var(--dark);
  color: #ffffff;
}
.offcanvas-backdrop.show {
  opacity: 0.5;
}
.offcanvas-body .nav-link {
  color: #ffffff;
}

button.floating-call-btn {
  padding: 10px;
  font-size: 0.4rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  position: fixed;
  right: 3%;
  bottom: 3%;
  z-index: 10;
  outline: none;
  color: var(--primary-color);
}

button.floating-call-btn:hover,
button.floating-call-btn:focus {
  background-color: var(--primary-color);
  color: var(--primary-color);
  transform: scale(1.2);
}

.read-more {
  color: var(--primary-color);
  cursor: pointer;
}

/* ABOUT US */

.goals-section {
  background-color: rgb(247, 247, 247);
}

.about-hero {
  background-color: #f8f9fa;
}

.card {
  transition: transform 0.3s ease;
}

.card-title {
  font-size: 20px;
}
.card:hover {
  transform: translateY(-5px);
}
.feature-item {
  display: flex;
  gap: 10px;
}

/* DIVISIONS */
.nav-tabs .nav-link {
  color: #495057;
  font-weight: bold;
}
.nav-tabs .nav-link.active {
  background-color: #0d6efd;
  color: white;
}
.tab-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

ul.divisions-dropdown {
  min-width: 280px;
  white-space: normal;
  word-wrap: break-word;
  overflow: hidden;
}

.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

.service-link {
  color: #007bff;
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Hero Section Styling */
.hero-section {
  background: linear-gradient(
    135deg,
    #1a2a6c 0%,
    var(--dark) 50%,
    var(--accent-color) 100%
  );
  color: white;
  margin-top: 80px;
}

/* Text Styling */
.hero-section .display-5 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-section .lead {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Breadcrumb Styling */
.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: white;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Hero Logo */
.hero-logo-wrapper {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 40vh;
    margin-top: 70px;
  }
  .hero-section .display-5 {
    font-size: 2rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 35vh;
    padding-top: 60px;
  }
  .hero-section .display-5 {
    font-size: 1.5rem;
  }
  .hero-section .lead {
    font-size: 0.9rem;
  }
  .breadcrumb {
    font-size: 0.875rem;
  }
}

.breadcrumb-item + .breadcrumb-item::before {
  color: white !important;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;
}
.gallery-img:hover {
  transform: scale(1.05);
}
.gallery-item {
  cursor: pointer;
}

.division-title,
.division-description,
.services-list,
.division-head,
.projects-gallery {
  transition: opacity 0.3s ease;
}

.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* PROJECTS */

.project-hero-section {
  background:
    url("/assets/images/image-5.jpg") no-repeat center center,
    linear-gradient(
      155deg,
      #1a2a6c 0%,
      var(--dark) 50%,
      var(--accent-color) 100%
    );
  background-size: cover;
  background-blend-mode: overlay;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.project-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.project-hero-section .container {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 60px;
}

.project-hero-section h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-hero-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.animate__animated {
  animation-duration: 1s;
}

.animate__delay-1s {
  animation-delay: 1s;
}
.project-image-details {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.description-text {
  line-height: 1.6;
  text-align: justify;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.additional-project-image {
  max-width: 350px;
  height: auto;
  border-radius: 5px;
}

.project-info {
  padding: 20px;
}

/* Wrapper that holds the inline SVG */
.pub-cover-svg {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pub-cover-svg:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

/* Make the SVG fill its wrapper */
.pub-cover-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep real cover images consistent with SVG card sizing */
.publication-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  object-fit: cover;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.publication-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

/* Vertical alignment of the cover column */
.pub-cover-col {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

/* ── Publication type badge colours ────────────────────────────────────── */
.pub-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 8px;
}

.badge-journal {
  background: #d6eaf8;
  color: #0d3b6e;
}
.badge-conference {
  background: #d5f5e3;
  color: #1b4d35;
}
.badge-book {
  background: #e8daef;
  color: #4a235a;
}
.badge-report {
  background: #fde8d8;
  color: #7b341e;
}
.badge-default {
  background: #eaecee;
  color: #1c2833;
}

/* ── Publication year chip ──────────────────────────────────────────────── */
.pub-year {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  vertical-align: middle;
}

/* ── Meta row (badge + year) ────────────────────────────────────────────── */
.pub-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* ── Divider between publication cards ─────────────────────────────────── */
.publication-divider {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 1.75rem 0;
}

/* Existing styles */
.project-card {
  background: white;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: flex;
  padding-top: 150px;
  border-radius: 3px;
}
.project-image-details {
  width: 100%;
  height: 500px;
  object-fit: contain;
  display: block;
}

.project-info {
  padding: 2rem;
}

.btn-details {
  background-color: var(--primary-color);
  border: none;
  padding: 0.5rem 1.5rem;
  color: var(--white);
  transition: background-color 0.3s ease;
}

.btn-details:hover {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

#projects-load-more {
  display: none;
}

/* PUBLICATIONS */
.sidebar {
  height: 100vh;
  width: 250px;
  position: fixed;
  background-color: var(--dark);
  padding-top: 20px;
  transition: transform 0.3s ease-in-out;
}
.sidebar a {
  padding: 10px;
  text-decoration: none;
  font-size: 18px;
  color: #ffffff;
  display: block;
}
.sidebar a:hover {
  background-color: var(--white);
  color: var(--primary-color);
}
.content {
  margin-left: 260px;
  padding: 20px;
}

/* GALLERY PAGE */

.gallery-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  font-weight: 700;
  color: var(--primary-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.gallery-nav .nav-link {
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 15px;
  transition: var(--hover-transition);
  border-radius: 30px;
}

.gallery-nav .nav-link.active {
  background: var(--accent-color);
  color: white;
}

.gallery-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--hover-transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.gallery-card img {
  height: 250px;
  object-fit: cover;
  transition: var(--hover-transition);
}

.gallery-card:hover img {
  transform: scale(1.05);
  cursor: pointer;
}

.video-card {
  position: relative;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--hover-transition);
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-color);
  transition: var(--hover-transition);
}

.play-icon:hover {
  transform: scale(1.1);
  background: white;
}

.image-overlay {
  position: absolute;
  bottom: 0; /* Keep it visible */
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease-in-out;
}

.gallery-card:hover .image-overlay {
  opacity: 1; /* Show on hover */
}

/* CONTACT US PAGE */
.contact-card {
  transition: transform 0.3s ease;
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.social-icon {
  font-size: 1.5rem;
  color: #6c757d;
  transition: color 0.2s;
}

.social-icon:hover {
  color: #007bff;
}

.form-control:focus {
  box-shadow: none;
  border-color: #0d6efd;
}

.social-icon {
  transition: color 0.3s ease;
  font-size: 1.5rem;
  color: #2c3e50;
}

.social-icon:hover {
  color: var(--primary-color);
}

/* FOOTER */

.footer-link {
  text-decoration: none;
  font-size: 0.95rem;
}

p.footer-list:hover {
  color: var(--accent-color);
}

.socials {
  font-size: 23px;
}

.nav-item .nav-link:hover {
  color: var(--accent-color);
}

.nav-item #navbarDropdown:hover {
  color: var(--accent-color);
}

ul .dropdown-menu {
  width: 100%;
}

/* DIVISION PROJECTS */
.gallery-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.gallery-card:hover {
  transform: scale(1.05);
}

.gallery-img {
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

/* STAFF PAGE */
/* Staff Hero Section */
.staff-hero-section {
  background: linear-gradient(
    135deg,
    #1a2a6c 0%,
    var(--dark) 50%,
    var(--accent-color) 100%
  );
  color: white;
  margin-top: 90px;
}

/* Overlay */
.staff-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Title */
.staff-hero-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Subtitle */
.staff-hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 100%;
}

/* CTA Button */
.btn-primary {
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .staff-hero-section {
    min-height: 30vh;
    margin-top: 110px;
  }
  .staff-hero-title {
    font-size: 2rem;
  }
  .staff-hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .staff-hero-section {
    min-height: 25vh;
    margin-top: 110px;
  }
  .staff-hero-title {
    font-size: 1.75rem;
  }
  .staff-hero-subtitle {
    font-size: 1rem;
  }
}

/* Animation Overrides */
.animate__animated {
  animation-duration: 1s;
}

.animate__delay-1s {
  animation-delay: 0.5s;
}

.animate__delay-2s {
  animation-delay: 1s;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Subtle overlay for contrast */
  z-index: 0;
}

.hero-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

.hero-cta {
  padding: 12px 30px;
  border-radius: 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-image-container {
  perspective: 1000px;
}

.hero-image {
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: var(--primary-pink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: -1;
}

.animate__animated {
  animation-duration: 1s;
}

.animate__fadeInDown {
  animation-name: fadeInDown;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__delay-1s {
  animation-delay: 0.5s;
}

.animate__delay-2s {
  animation-delay: 1s;
}

.staff-card .card {
  width: 100%;
  max-width: 250px;
  margin: auto;
}
.staff-card .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.load-more-wrapper {
  padding: 20px 0;
  clear: both;
}

.load-more-btn {
  padding: 10px 40px;
  font-size: 16px;
  background-color: transparent;
  border: 1px solid var(dark);
  outline: none;
  color: var(--dark);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.4s;
}

.load-more-btn:hover {
  background-color: var(--dark);
  color: var(--white);
  border: none;
}

.staff-controls {
  margin-bottom: 20px;
}

/* STAFF PROFILE */
.profile-container {
  max-width: 1200px;
  margin: 40px auto;
}
.left-column {
  background: #fafafa;
  padding: 20px;
  border-radius: 5px;
}
.left-column img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
}
.position-list {
  list-style: none;
  padding: 0;
}
.category-label {
  font-weight: bold;
  color: #666;
  margin-top: 15px;
}
.right-column {
  padding: 20px;
}
.education-list li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .profile-container {
    margin: 20px;
  }
}

/* FAQ PAGE */
.faq-container {
  max-width: 800px;
  margin: auto;
  padding: 50px 20px;
}
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}
.accordion-button {
  background: transparent;
  color: white;
  border: none;
}
.accordion-button:focus {
  box-shadow: none;
}

.faq-image {
  max-width: 500px;
  margin-top: -15%;
}

/* LABORATORY PAGE */
.lab-section {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  height: 60vh;
  margin-top: 100px;
}
.facility-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}
.facility-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.gradient-text {
  background: linear-gradient(45deg, #7ebee9, #4e4376);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.modal-img-container img {
  max-height: 70vh;
  width: auto;
}

/* NEWS Page */
/* News Hero Section */
.news-hero {
  background:
    linear-gradient(
      135deg,
      rgba(26, 42, 108, 0.8) 0%,
      rgba(0, 0, 0, 0.8) 50%,
      rgba(255, 92, 182, 0.8) 100%
    ),
    url("/assets/images/projects/eetd/image-4.JPEG") no-repeat center center;
  background-size: cover;
  margin-top: 0; /* Removed margin-top for a full-width hero */
  color: white;
  position: relative;
  margin-top: 80px;
  min-height: 60vh; /* Ensures it takes full viewport height */
  display: flex;
  align-items: center;
}

/* Newsletter */
.newsletter-banner {
  position: relative;
  z-index: 1000;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Slightly darker overlay for better contrast */
  z-index: 0;
}

.news-title {
  font-size: 3.5rem; /* Modern, bold sizing */
  letter-spacing: 2px; /* Adds a touch of sophistication */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

.news-subtitle {
  font-size: 1.25rem; /* Clean and readable */
  line-height: 1.6;
  max-width: 600px; /* Limits width for readability */
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-title {
    font-size: 2.5rem;
  }
  .news-subtitle {
    font-size: 1rem;
  }
}

.news-title {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 1.5px;
}

.news-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* News Cards */
.news-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.news-card .card-title {
  font-size: 1.25rem;
  color: #1a2a6c;
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Featured News */
.featured-news {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.featured-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-news .card-title {
  font-size: 1.75rem;
  color: #1a2a6c;
}

/* Show More Button */
.show-more-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.news-read-more {
  padding: 10px 15px;
  font-size: 0.9rem;
  text-decoration: none;
  background-color: var(--primary-color);
  border: none;
  outline: none;
  color: var(--white);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.news-read-more:hover {
  background-color: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
}
.show-more-btn {
  padding: 10px 40px;
  font-size: 16px;
  background-color: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.show-more-btn:hover {
  background-color: rgba(0, 0, 0, 0.1); /* Optional: Adds a hover effect */
}

/* Upcoming Events */
.event-card img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}

.event-card img:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.event-modal-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Partners and Collaborators */
.partners-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.partner-card {
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  transition: transform 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo {
  max-width: 150px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.partner-name {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.partner-name a {
  color: #333;
  text-decoration: none;
}

.partner-name a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .partner-logo {
    max-width: 120px;
    height: 80px;
  }
}

/* News Detail Hero */
.news-detail-hero {
  background: linear-gradient(120deg, #0d1b2a 0%, #415a77 50%, #778da9 100%);
  color: white;
  margin-top: 50px;
  position: relative;
}

.news-detail-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.page-indicator {
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Newsletters */
/* newsletter-hero Section */
.newsletter-hero-section {
  background: url("https://via.placeholder.com/1920x600?text=Research+Insights")
    no-repeat center center;
  background-size: cover;
  color: white;
  padding: 6rem 0;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.newsletter-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
}
.newsletter-hero-content {
  position: relative;
  z-index: 1;
}
.newsletter-hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  animation: fadeInDown 1s ease-out;
}
.newsletter-hero-section p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
}
.filter-buttons .btn {
  margin: 0.25rem;
  border-radius: 20px;
  font-weight: 500;
}
.filter-buttons .btn.active {
  background-color: var(--primary-color);
  color: white;
  border: none;
}
.newsletter-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}
.newsletter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.newsletter-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.newsletter-card .card-body {
  padding: 2rem;
}
.newsletter-card .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #003087;
}
.newsletter-card .card-text {
  color: #444;
  font-size: 1rem;
}
.newsletter-card .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
}
.newsletter-card .btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.3s,
    opacity 0.3s;
  opacity: 0.8;
}

#scrollToTopBtn:hover {
  opacity: 1;
}

#scrollToTopBtn:hover {
  background-color: #0d1b2a;
  opacity: 1;
}

#scrollToTopBtn .material-symbols-rounded {
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .main-section {
    padding-top: 25%;
  }
  .parallax-1,
  .parallax-2,
  .parallax-3 {
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .content {
    margin-left: 0;
  }
  .toggle-btn {
    position: absolute;
    top: 23%;
    right: 15px;
    background-color: #343a40;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
  }
}
