.header-image {
  /* position: relative; */
  width: 100%;
  height: 60vh;
  background-image: url("../image/africa-neo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  /* z-index: 1; */
}

a {
  color: #007bff;
  text-decoration: none;
}

.sec-desc {
  font-size: 1.1rem;
  /* color: #333; */
  text-align: center;
  line-height: 1.8;
}

p {
  line-height: 1.8;
}

.navbar-custom {
  z-index: 10; /* Ensure this is higher than the header-image and its pseudo-element */
  background-color: #e0e0e0e0; /* Navbar background */
  border-bottom: 1px solid #e0e0e0; /* Optional border for visual separation */
}

nav {
  transition: all 0.3s ease; /* Smooth transition for sticky effects */
}

nav.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  /* background-color: #fff; */
  box-shadow: 0 3px 10px #85e0fc1a;
  z-index: 1030;
}

.navbar-custom .nav-link {
  position: relative; /* Required for positioning the underline */
  color: #000; /* Initial color for links */
  font-size: 1.25rem;
  transition: all 0.3s ease; /* Smooth transition for all changes */
  padding-bottom: 5px; /* Add some space for the underline */
}

.navbar-custom .nav-link:hover {
  /* background-color: #f0f0f0;  */
  color: #007bff;
  text-decoration: none;
}

@media (min-width: 992px) {
  .navbar-custom .nav-link::after {
    content: ""; /* Creates the underline */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* Thickness of the underline */
    background-color: #007bff; /* Color of the underline */
    transform: scaleX(0); /* Start with a scale of 0 (hidden) */
    transition: transform 0.3s ease; /* Smooth transition */
  }
}

.navbar-custom .nav-link:hover::after {
  transform: scaleX(1.05);
}

.navbar-custom .navbar-nav .nav-item {
  margin: 0 15px; /* Adds space to the left and right of each nav item */
}

.hr-sm {
  border: none;
  height: 5px;
  background-color: #35608bd5;
  width: 100px;
  margin: 20px auto;
  opacity: 1 !important;
}

.hr-lg {
  border: none;
  height: 5px;
  background-color: #35608bd5;
  width: 200px;
  margin: 20px auto;
  opacity: 1 !important;
}

.inst-parent {
  position: relative; /* Establishes a relative positioning context for the children */
  /* width: 100%; */
  height: 900px;
  /* border: 2px solid #333;  */
  display: flex;
  justify-content: center;
  align-items: center;
}

.inst-child {
  width: 445px;
  height: 450px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  /* background-color: #4caf50; */
  /* color: #fff;  */
  border-radius: 8px;
  position: absolute; /* Position the children absolutely within the parent */
  /* border: solid 1px black; */
}

.inst-child h3 {
  font-size: 18px;
}

.inst-child p {
  text-align: justify;
  text-justify: inter-word;
}

.justify-text {
  text-align: justify;
  text-justify: inter-word;
}

/* Position each corner child */
.top-left {
  top: 10px;
  left: 10px;
}

.top-right {
  top: 10px;
  right: 10px;
}

.bottom-left {
  bottom: 10px;
  left: 10px;
}

.bottom-right {
  bottom: 10px;
  right: 10px;
}

/* Center child */
.centered {
  position: relative; /* Center element remains relatively positioned within flex */
}

.about-item {
  text-align: center; /* Center the text */
  padding: 20px; /* Padding for each item */
  background-color: #ffffff; /* White background */
  border-radius: 8px; /* Rounded corners for each item */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);  */
  /* margin-bottom: 20px;  */
  min-height: 400px;
  border: solid 2px black;
}

.about-icon {
  display: inline-block;
  height: 100px;
  width: 100px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #d9dcdf;
  /* transition: background-color 0.5s ease; */
}

.about-icon img {
  width: 100%;
  height: 100%;
  /* border-radius: 50%; */
  object-fit: contain;
}

.about-item h3 {
  font-size: 1.5rem; /* Header font size */
  margin-bottom: 10px; /* Margin below the header */
  color: #333; /* Dark text color for the header */
}

.about-item p {
  font-size: 1rem; /* Paragraph font size */
  color: #555; /* Lighter text color for description */
}

.doughnut-container {
  position: relative;
  width: 250px;
  height: 250px;
  /* margin: auto; */
  /* border: solid 1px black; */
}

chart-text-container {
  display: flex;
  flex-direction: column;
  border: solid 1px black;
  /* margin: auto; */
  align-items: center;
  justify-content: center;
}
.chart-text-container h3 {
  font-size: 1.5rem;
}

.chart-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  /* font-weight: bold; */
  color: #141414;
}
.bar-chart {
  /* display: flex;
  justify-content: center; */
  margin: auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 400px;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 5px 5px 5px 5px #0000005b;
  border-radius: 10px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg); /* Flips the card */
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hides the back of the card when not flipped */
  border-radius: 10px;
  display: flex;
  /* align-items: center; */
  /* justify-content: center; */
  flex-direction: column;
  color: white;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
}

.flip-card-back {
  position: relative;
  background-color: #343a40;
  transform: rotateY(180deg);
  padding: 20px;
}

.flip-card-back p {
  margin: 30px 10px;
}

.fancy-link {
  display: block;
  font-size: 20px;
  padding: 10px 20px;
  margin: 20px 10px;
  border-radius: 10px;
  /* background: linear-gradient(to right, #007bff, #dc3545); */
  color: #c5f370;
  border: solid 1px #c5f370;
  text-decoration: none;
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  /* transform: translateX(-50%); */
  /* overflow: hidden; */
  transition: background 0.5s, transform 0.5s, color 0.5s;
}

.fancy-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #3f6100;
  z-index: -1;
  transition: width 0.5s;
  border-radius: 5px;
}

.fancy-link:hover {
  /* transform: scale(1.05); */
  color: white;
  /* border: solid 1px white; */
}

.fancy-link:hover::before {
  width: 100%;
}

.fancy-link:hover::after {
  width: 100%;
}

a.styled-link {
  display: inline-block; /* Allows padding and transform effects */
  padding: 10px 20px; /* Adds space around the link */
  border-radius: 8px; /* Rounded corners */
  border: solid 1px #3498db; /* Background color */
  /* color: white; */
  text-decoration: none; /* Remove default underline */
  transition: transform 0.3s;
}

a.styled-link:hover {
  transform: scale(1.05); /* Scale up by 5% */
  background-color: #3498db; /* Background color */
  color: white;
}

.team {
  padding: 10px 10px;
  margin-top: 20px;
  height: 280px;
  background-color: #d8d8d82a;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 5px 5px #0000001a;
  position: relative;
  overflow: hidden;
}

.team .picture {
  display: inline-block;
  height: 130px;
  width: 130px;
  margin-bottom: 10px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #1369ce;
  transition: background-color 0.5s ease;
}

.team .picture img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.team:hover {
  bottom: 0;
  background-color: #fdfad3;
}

.team:hover .picture img {
  transform: scale(1.1);
}

.team .contact {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
  background-color: #1369ce;
}

.team:hover .contact {
  bottom: 0;
  padding: 10px;
}

.team .contact li {
  display: inline-block;
}

.team .contact li a {
  display: block;
  padding-bottom: 10px;
  font-size: 12px;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  color: #007bff;
  background-color: #0000001a;
}

.img-sec {
  max-height: 600px !important;
}
