.leadership-section {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 50px;
  background-image: url(../../../images/aboutus/leaders/blue.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Adding an overlay to improve text readability */
.leadership-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(52, 74, 173, 0.779); /* Dark overlay */
  border-radius: 10px;
}

/* Ensure content is above the overlay */
.leader-content,
.leader-image {
  position: relative;
  z-index: 2;
}

/* Leader Image */
.leader-image {
  display: flex;
  justify-content: center;
}

.leader-image img {
  width: 100%;
  padding: 8px;
  background-color: #CEA455;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid white;
}

/* Leader Content */
.leader-content {
  background-color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  padding: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.leader-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.leader-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.leader-description {
  font-size: 17px;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Button */
.know-more-btn {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary-color);
}

.know-more-btn:hover {
  background: #003d82;
  color: white;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .leadership-section {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .leader-image img {
    max-width: 100%;
  }

  .leader-content {
    max-width: 100%;
    padding: 20px;
  }
}

/* Full Section Background */
.leader-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; 
}

/* Leader Image Container */
.our-team {
  display: flex;
  flex-direction: column;
  height: 100%;
  background:white;
  border: 2px solid #3652A5;
  text-align: center;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.our-team:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

/* Image & Hover Effects */
.our-team .pic {
  position: relative;
  overflow: hidden;
  display: flex; /* Centers the image */
  justify-content: center;
  align-items: center;
}

.our-team:hover .pic {
  transform: scale(1.01);
}

.our-team .pic:after {
  content: "";
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 500px rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: -100px;
  right: -100px;
  opacity: 0;
  transform: scale3d(0.5, 0.5, 1);
  transform-origin: 50% 50% 0;
  transition: all 0.35s ease 0s;
}

.our-team:hover .pic:after {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px);
}

.our-team .pic img {
  width: 100%;
  height: auto;
}

.our-team .read-more {
  width: 100px;
  padding: 0 5px 15px 0;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.15px;
  text-align: right;
  text-transform: uppercase;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0;
  z-index: 1;
  transform: translate3d(15px, 15px, 0px);
  transition: all 0.35s ease 0s;
}
.read-more:hover {
  color: #F5A425;
}
.our-team:hover .read-more {
  opacity: 1;
  transform: translate3d(0px, 0px, 0px);
}
/* Team Content */
.our-team .team-content {
  padding: 15px 0; /* Adjust spacing */
}

.our-team .title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.our-team .post {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

/* executive council */
.squishy-candy {
  background: linear-gradient(to bottom right, rgb(242, 99, 173), rgb(239, 95, 95));
  color: white;
  border-radius: 9999px;
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 2px 0 0 #f472b6,
    0 4px 0 0 #f43f5e,
    0 6px 0 0 #e11d48,
    0 8px 0 0 #be123c,
    0 8px 16px 0 rgba(244,114,182,0.5);
  padding: 10px 20px;
  border: 1px solid #f43f5e;
}

.squishy-candy:hover {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.4),
    0 1px 0 0 #f472b6,
    0 2px 0 0 #f43f5e,
    0 3px 0 0 #e11d48,
    0 4px 0 0 #be123c,
    0 4px 8px 0 rgba(244,114,182,0.5);
}

.squishy-candy:hover i {
  animation: pulse 1s infinite;
}
.squishy:hover {
  background-color: #ff9800; /* slightly darker on hover */
  color: #fff; /* text turns white on hover */
  transform: scale(1.05); /* slight zoom effect */
}
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* Ensures equal height */
}

.team-member {
  background: transparent;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  transition: transform 0.3s ease-in-out;
  border: 2px solid #3652A5;
  display: flex;
  flex-direction: column; /* Makes sure inner elements fill the height */
  height: 100%; /* Ensures all members take the same height */
}
.team-member:hover {
  transform: scale(1.05);
}

.team-pic img {
  width: 100%;
  height: auto;
}

.team-info {
  text-align: center;
  flex-grow: 1;
  margin-top: 15px;
}

.team-title {
  color: var(--primary-color);
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-position {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}
/* academic council */

.ag-courses_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 50px 0;
  justify-content: center; 
  align-items: stretch; 
}
.ag-courses_item {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);
  display: flex; /* Allows stretching */
  align-items: stretch; /* Ensures uniform height */
  margin: 0 15px 30px;
  overflow: hidden;
  border-radius: 3px;

}
.ag-courses-item_link {
  flex-grow: 1; /* Ensures equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  padding:10px;
  background-color: transparent;
  overflow: hidden;
border: 1.5px solid #3652A5;
  position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: none;
  cursor: default;

}
/* .ag-courses-item_link:hover .ag-courses-item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
} */
/* .ag-courses-item_date-box:hover{
  color: white;
} */

.ag-courses-item_title {
  height: max-content; /* Adjusts width based on content */
  min-height: 50px;
  margin: 0 0 25px;
  overflow: hidden;
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 500;
  z-index: 2;
  position: relative;

}
.ag-courses-item_date-box {
  font-size: 17px;
  color: var(--text-color);
  z-index: 2;
  position: relative;
}
.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;
  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;
  border-radius: 50%;
  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background-color: #2e9a48; /* Darker Green */
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background-color: #b23602; /* Muted Red-Orange */
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background-color: #4e0199; /* Deep Purple */
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background-color: #a23078; /* Softer Pinkish Purple */
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background-color: #1b779ed0; /* Darker Blue */
}
.ag-courses_item:nth-child(7n) .ag-courses-item_bg {
  background-color: #722e85; /* Muted Violet */
}
.ag-courses_item:nth-child(8n) .ag-courses-item_bg {
  background-color: #127166; /* Darker Teal */
}
.ag-courses_item:nth-child(9n) .ag-courses-item_bg {
  background-color: #616e00; /* Olive Green */
}

.academic-style {
  font-size: 25px;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px
}

.academic-style::after {
  content: "────── ✦ ✧ ✦ ──────";
  font-size: 20px;
  color: #2c3e50;
  display: block;
  margin-top: 10px;
  letter-spacing: 8px;
}
@media only screen and (max-width: 979px) {
  .ag-courses_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }
  .ag-courses-item_title {
    font-size: 20px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

}
@media only screen and (max-width: 639px) {
  .ag-courses_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .ag-courses-item_title {
    min-height: 40px;
    line-height: 1;
    font-size: 17px;
  }
  .ag-courses-item_link {
    padding: 22px 40px;
  }
  .ag-courses-item_date-box {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .our-team .title{
    font-size: 17px;
  }
  .academic-style {
    font-size: 25px;
    letter-spacing: 1.5px;
  }

  .academic-style::after {
    font-size: 17px;
    letter-spacing: 6px;
    content: "───── ✦ ✧ ✦ ─────";
  }
  .our-team {
    margin-bottom: 10px;
}
}

/* Mobile View (480px and below) */
@media (max-width: 480px) {
  .academic-style {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .academic-style::after {
    font-size: 17px;
    letter-spacing: 4px;
    content: "── ✦ ✧ ✦ ──";
  }
}

.banner-image {
  position: relative;
  display: inline-block;
}

.banner-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(54, 54, 54, 0.5); /* Black overlay with 50% opacity */
}
