/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

/* Color Variables */
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --background-color: #ecf0f1;
  --white: #ffffff;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
.box {
  display: flex;
  width: 100%;
}

/* style.css */
nav ul li a.active {
  color: var(--primary-color); /* Example: Change the color */
  font-weight: bold; /* Example: Make the text bold */
  border-bottom: 2px solid var(--primary-color); /* Example: Add a bottom border */
}

/* General styles */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-attachment: fixed;
  background-image: url("image/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header styling */
header {
  background-color: var(--white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  animation: fadeIn 1s ease-in-out; /* Added animation */
}

.head {
  margin-top: 6%;
  text-align: center;
}

.head h1 {
  font-size: 2rem;
  color: var(--primary-color);
}

.head p {
  font-size: 1rem;
  color: var(--text-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.logo a {
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.logo img {
  width: 50px;
  height: 50px;
  margin-left: 10px;
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.3s ease, background-position 0.3s ease; /* Updated transition */
  background: linear-gradient(
    to right,
    var(--primary-color) 0%,
    var(--primary-color) 50%,
    transparent 50%
  );
  background-size: 200%;
  background-position: 100%;
}

nav ul li a:hover {
  color: var(--white);
  background-position: 0%; /* Added animation effect */
}

.btn-donate {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-donate:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.8),
    rgba(52, 152, 219, 0.8)
  );
  min-height: 100vh;
  animation: fadeIn 1s ease-in-out;
}

.hero-content {
  width: 100%;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-in-out; /* Added animation */
}

.hero-content p {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-in-out 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  animation: fadeInUp 1s ease-in-out 1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 4rem 0;
}

.aboutus,
.main {
  flex: 1 1 300px;
  margin: 1rem;
  background-color: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1.5s ease-in-out; /* Added animation */
}

.aboutus:hover,
.main:hover {
  transform: translateY(-5px) scale(1.03); /* Updated hover effect */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.aboutus h2,
.main h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.main h3 {
  font-size: 1rem;
}
.info-item {
  margin: 5px 0; /* Adjust this value to reduce the gap */
  padding: 0; /* Remove any padding if necessary */
  display: flex; /* Align icon and text nicely */
  align-items: center; /* Center the icon and text vertically */
}

.info-item i {
  margin-right: 10px; /* Space between icon and text */
}

/* Classification Tree */
.classification-tree {
  font-family: "Arial", sans-serif;
  width: 90%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.classification-tree h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.classification-tree::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #40a7ff 100%);
  transition: opacity 0.5s ease;
}

.classification-tree::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #ffffff 0%, #d6d6d6 100%);
  opacity: 0;
  transition: opacity 3s ease;
}

.classification-tree:hover::before {
  opacity: 0;
}

.classification-tree:hover::after {
  opacity: 1;
}

.classification-tree > * {
  position: relative;
  z-index: 1;
}

.classification-tree h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.classification-tree h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}
.classification-tree ul {
  padding-top: 30px;
  position: relative;
  transition: all 0.5s;
}

.classification-tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 3px solid #ffffff;
  width: 0;
  height: 30px;
}

.classification-tree li {
  float: left;
  text-align: center;
  list-style-type: none;
  padding: 30px 10px 0 10px;
  position: relative;
  transition: all 0.5s;
}

.classification-tree li::before,
.classification-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 3px solid #fbfbfb;
  width: 50%;
  height: 30px;
}

.classification-tree li::after {
  right: auto;
  left: 50%;
  border-left: 3px solid #ffffff;
}

.classification-tree li:only-child::after,
.classification-tree li:only-child::before {
  display: none;
}

.classification-tree li:only-child {
  padding-top: 0;
}

.classification-tree li:first-child::before,
.classification-tree li:last-child::after {
  border: 0 none;
}

.classification-tree li:last-child::before {
  border-right: 3px solid #ffffff;
  border-radius: 0 5px 0 0;
}

.classification-tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

.classification-tree .node {
  padding: 15px 20px;
  border: 2px solid #3498db;
  display: inline-block;
  border-radius: 8px;
  background: white;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease-in-out; /* Added transition */
  color: #2c3e50;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.classification-tree .node:hover {
  background: #3498db;
  color: white;
  transform: scale(1.05) translateY(-5px); /* Updated hover effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .classification-tree {
    width: 95%;
    padding: 20px 10px;
  }

  .classification-tree h2 {
    font-size: 2rem;
  }

  .classification-tree .node {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .classification-tree {
    width: 95%;
    padding: 20px 10px;
  }

  .classification-tree h2 {
    font-size: 2rem;
  }

  .classification-tree .node {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  header {
    flex-direction: column;
    padding: 1rem 0;
  }

  nav ul {
    margin-top: 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .contact-form {
    margin-left: 0;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .btn-donate {
    padding: 0.4rem 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .aboutus,
  .main {
    margin: 0.5rem 0;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.5s ease-in-out;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color),
    var(--accent-color)
  );
  animation: rainbow 5s linear infinite;
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-left,
.footer-center,
.footer-right {
  text-align: left;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

footer p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-center h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-info i {
  margin-right: 10px;
  color: var(--white);
}

footer ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

footer ul li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

footer ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

footer ul li a:hover::after {
  width: 100%;
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  footer ul,
  .social-icons {
    justify-content: center;
  }
}
.social-icons a {
  color: white;
  font-size: 1.2rem;
  margin-right: 10px;
  transition: transform 0.3s ease-in-out; /* Added transition */
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1); /* Added hover effect */
}

.campaigns {
  padding: 6rem 2rem;
  text-align: center;
}
.camp {
  background-color: #f8f9fa;
}

.campaigns h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.campaigns h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.campaign-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.campaign-item {
  flex-basis: calc(33.333% - 2.5rem);
  max-width: 350px;
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.campaign-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.campaign-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.campaign-item:hover .campaign-image img {
  transform: scale(1.1);
}

.campaign-content {
  padding: 1.5rem;
}

.campaign-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.campaign-item p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .campaign-item {
    flex-basis: calc(50% - 2.5rem);
  }
}

@media (max-width: 768px) {
  .campaign-item {
    flex-basis: 100%;
  }
}

.staff-section {
  padding: 6rem 2rem;
  text-align: center;
  background-color: #f8f9fa;
}

.staff-section h2 {
  content: "";
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}
/* .staff-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
} */

/* Ensure each card is treated as a block element with a margin to create the gap */
.staff-cards {
  margin: 0;
  padding: 0;
  list-style: none; /* Remove bullet points if using ul/li */
}

.staff-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem; /* Creates a vertical gap between the cards */
  padding: 1rem; /* Add padding inside each card for spacing */
}

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

.staff-header {
  display: flex;
  justify-content: space-between; /* Distribute space between the h2 and the icon */
  align-items: center; /* Center vertically */
  padding: 1rem;
  cursor: pointer;
}

.staff-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.staff-header i {
  float: right; /* Position the icon on the right side */
  transition: transform 0.3s ease;
}

.staff-header.active i {
  transform: rotate(180deg);
}

.staff-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.staff-details.active {
  max-height: 1000px;
}

.staff-details table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.staff-details th,
.staff-details td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.staff-details th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.staff-details tr:nth-child(even) {
  background-color: #f9f9f9;
}

.staff-details tr:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
  .staff-details {
    overflow-x: auto;
  }

  .staff-details table {
    min-width: 600px;
  }
}

.team-leaders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px;
}

.leader-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 280px;
  transition: all 0.4s ease;
  position: relative;
  transform: translateY(0);
}

.leader-card:hover {
  transform: translateY(-10px);
  background-color: #e91e63; /* Light red background color on hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.leader-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.leader-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Make the image circular */
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(40%);
}

.leader-card:hover .leader-image img {
  transform: scale(1.1);
  filter: grayscale(0);
}

.leader-info {
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  position: relative;
}

.leader-info h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #2c3e50;
  font-family: "Poppins", sans-serif;
}

.leader-info .title {
  font-weight: bold;
  color: #3498db;
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leader-info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  color: #7f8c8d;
}

.leader-info td {
  padding: 5px 0;
  font-size: 14px;
}

.leader-info td:first-child {
  font-weight: bold;
  color: #555;
  width: 40%;
}

.leader-info td:last-child {
  color: #333;
}

/* Social Icons */
.leader-info .social-icons {
  margin-top: 20px;
}

.leader-info .social-icons a {
  color: #3498db;
  font-size: 18px;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.leader-info .social-icons a:hover {
  color: #2980b9;
}

/* Hover Overlay with Name */
.leader-image::after {
  content: attr(data-name);
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  opacity: 0;
}

.leader-card:hover .leader-image::after {
  transform: translateY(0);
  opacity: 1;
}

/* Adding animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leader-card {
  animation: fadeInUp 0.6s ease both;
}

/* Highlight a specific card (e.g., the fourth one) */
.leader-card:nth-child(4) {
  border: 2px solid #e0e0e0;
}

.leader-card:nth-child(4):hover {
  background-color: #e91e63;
}

@media (max-width: 768px) {
  .leader-card {
    width: 100%;
    max-width: 350px;
  }
}

.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* .popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  display: flex;
} */

.popup-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 50%;
}

.popup-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.popup-text-content {
  width: 60%;
  padding-left: 21px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popup-content {
    flex-direction: column;
  }

  .popup-image-grid,
  .popup-text-content {
    width: 100%;
  }

  .popup-text-content {
    padding-left: 0;
    padding-top: 20px;
  }
}

/* -------------------   Projects section   ----------------------------------- */
#projects .projects {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
}

#projects .projects-header h1 {
  margin-bottom: 50px;
  font-size: 3rem;
  text-align: center;
}

#projects .all-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.project-detail {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  justify-content: center;
  align-items: center; /* Center the slider vertically */
  padding: 28px; /* Add padding if needed to avoid content touching edges */
}
#projects .project-item {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
  border: 0.1rem solid rgba(228, 28, 28, 0.655);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

#projects .project-info {
  padding: 30px;
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(60deg, #86fadb 0%, #528cff 100%);
  color: white;
  text-align: left;
  justify-content: space-around;
}

#projects .project-info h1 {
  font-size: 2.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}

#projects .project-info h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

#projects .project-info h2::after {
  content: "";
}
#projects .project-info p {
  color: white;
  margin-bottom: 20px;
}

#projects .project-img {
  flex-basis: 50%;
  overflow: hidden;
  position: relative;
}

#projects .project-img::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  opacity: 0.7;
  transition: 0.3s ease opacity;
}

#projects .project-img img {
  transition: 0.3s ease transform;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#projects .project-item:hover .project-img img {
  transform: scale(1.1);
}

#projects .project-item:hover .project-img::after {
  opacity: 0;
}

#projects .btn-primary {
  padding: 10px 20px;
  background-color: #e91e63;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease background-color;
}

#projects .btn-primary:hover {
  background-color: #c2185b;
}

@media only screen and (max-width: 768px) {
  #projects .project-item {
    flex-direction: column;
    width: 100%;
  }

  #projects .project-info {
    flex-basis: auto;
  }

  #projects .project-img {
    flex-basis: 300px;
  }
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Darker background */
}

.popup-content {
  position: relative;
  width: 90%;
  height: 80%;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#popup-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates 2 columns */
  gap: 90px; /* Adds space between images */
  max-width: 78%; /* Take up 50% of the popup width */
}

#popup-images img {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}

#popup-content {
  display: flex;
  gap: 20px; /* Space between images and content */
}

#popup-text {
  flex: 1;
  padding-left: 20px; /* Space between the content and images */
}
.content-grid {
  display: flex;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 36px; /* Larger close button */
}

.slider-container {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  justify-content: center;
  padding: 20px; /* Add padding if needed to avoid content touching edges */
  margin: 50px; /* Center the slider horizontally */
  margin-top: 50px;
}
.slider-container h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  text-align: center;
}

.slider-container h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}
.slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.slide {
  flex: 0 0 100%;
  display: flex;
  padding: 40px;
  opacity: 0.7;
  transform: scale(0.9);
  transition: all 0.5s ease;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.image-container {
  flex: 1;
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-right: 40px;
}
.image-container img {
  width: 99%;
  height: 284px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.image-container img:hover {
  transform: scale(1.05);
}
.content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  transform: translateX(50px);
  opacity: 0;
}
.slide.active .content-container {
  transform: translateX(0);
  opacity: 1;
}
.content-container h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}
.content-container h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.5s ease;
}
.slide.active .content-container h3::after {
  width: 50px;
}
.content-container p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
}
.slide.active .content-container p {
  transform: translateY(0);
  opacity: 1;
}
.controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.control-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}
.control-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}
.dots-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active {
  background-color: #007bff;
  transform: scale(1.2);
}

#achievement-popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
}

.table-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 100%;
  margin-top: 5%;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-heading {
  background-color: #1abc9c;
  color: white;
  text-align: center;
  padding: 25px;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
}

.table-heading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

th {
  background-color: #f8f8f8;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

.sl-no {
  text-align: center;
  font-weight: 500;
}

/* ... (previous CSS remains the same) ... */

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

.pagination-button {
  background-color: #1abc9c;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.pagination-button:hover {
  background-color: #16a085;
  transform: translateY(-2px);
}

.pagination-button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

.page-info {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Add this to ensure the table takes up all available space */
/* .table-container {
    display: flex;
    flex-direction: column;
} */

#fundingTable {
  flex: 1;
}

/* Animate page transitions */
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.fade-in-out {
  animation: fadeInOut 0.5s ease-in-out;
}
/* Responsive design */
@media (max-width: 768px) {
  .table-container {
    margin: 20px;
  }

  th,
  td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .table-heading {
    font-size: 24px;
    padding: 20px;
  }
}

/* Animated background for header */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Smooth transition for navigation links */
nav ul li a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.achievements-section {
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 20px;
}
.achievements-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0f9be6;
  font-size: 2em;
}
.achievements-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 20px;
}
.achievements-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 15px;
}
.achievement-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.1);
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.achievement-card h3 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 15px;
}
.achievement-card p {
  color: #34495e;
  font-size: 1.1em;
  line-height: 1.6;
  flex-grow: 1;
}
@media (max-width: 1024px) {
  .achievements-container {
    flex-direction: column;
  }
  .achievements-column {
    padding: 0;
  }
}
.we-do-boxes {
  display: flex;
}
/* Base styles */
.activities {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  width: 90%;
  margin: 10px auto;
  padding: 20px;
  background-color: rgb(255, 248, 253);
  border-radius: 10px;
}

.activities header {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activities h1 {
  color: #0abef0;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.activities h2 {
  color: #070808;
  font-size: 2em;
  border-bottom: 2px solid #0abef0;
  padding-bottom: 10px;
  margin-top: 30px;
}

.subheading {
  font-style: italic;
  color: #070808;
  font-size: 1.2em;
}

.activities section {
  margin-top: 30px;
  text-align: justify;
}

/* Program card styles */
.program {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.program img {
  max-width: 300px;
  max-height: 250px;
  margin-left: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.program:hover img {
  transform: scale(1.05);
}

.program-content {
  flex: 1;
}

.program h3 {
  color: #0abef0;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.program p {
  font-size: 1em;
  line-height: 1.6;
}

/* Individual program card styles */
.program:nth-child(odd) {
  flex-direction: row-reverse;
}

.program:nth-child(odd) img {
  margin-left: 0;
  margin-right: 20px;
}

.program:nth-child(1) {
  background-color: #e1f5fe;
}
.program:nth-child(2) {
  background-color: #e8f5e9;
}
.program:nth-child(3) {
  background-color: #fff3e0;
}
.program:nth-child(4) {
  background-color: #f3e5f5;
}
.program:nth-child(5) {
  background-color: #e0f2f1;
}
.program:nth-child(6) {
  background-color: #fff8e1;
}
.program:nth-child(7) {
  background-color: #e8eaf6;
}
.program:nth-child(8) {
  background-color: #fce4ec;
}
.program:nth-child(9) {
  background-color: #f1f8e9;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.program {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.program:nth-child(1) {
  animation-delay: 0.1s;
}
.program:nth-child(2) {
  animation-delay: 0.2s;
}
.program:nth-child(3) {
  animation-delay: 0.3s;
}
.program:nth-child(4) {
  animation-delay: 0.4s;
}
.program:nth-child(5) {
  animation-delay: 0.5s;
}
.program:nth-child(6) {
  animation-delay: 0.6s;
}
.program:nth-child(7) {
  animation-delay: 0.7s;
}
.program:nth-child(8) {
  animation-delay: 0.8s;
}
.program:nth-child(9) {
  animation-delay: 0.9s;
}
