.firstparahighlight {
  font-size: 24px !important;
}

.text-red {
  color: #ff0000;
}

.banner-about {
  background: url(/wp-content/themes/tally/assets/images/about-us/about-banner-1.svg);
  background-repeat: no-repeat;
  /* background-position: bottom; */
  background-size: cover;
  min-height: 365px;
}
@media (min-width: 1920px) {
  .banner-about {
    min-height: 555px;
  }
}
@media (min-width: 2200px) {
  .banner-about {
    min-height: 740px;
  }
}

.border-1px-grey {
  border: 1px solid #ebecf0;
}

.redBrandLine {
  background: url("/wp-content/themes/tally/assets/images/red-brand-line.png");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position-y: 9rem;
}

/*philosophhy section*/
.philosophydiv {
  background-color: #121212;
  color: white;
  text-align: center;
  padding: 50px 50px 0 50px;
}

.philosophydiv h2 {
  color: red;
  text-align: center;
}

.description {
  margin: 20px 0;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  text-align: left;
  background: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0) 100%);
  border-radius: 20px;
}

.statsnobg {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  text-align: left;
}

.stat {
  margin-bottom: 20px;
}

.stat strong {
  font-size: 17px;
  border-left: 2px solid red;
  padding-left: 10px;
  display: inline-block;
}

.stat p {
  padding: 10px 0 0 13px;
}

.map {
  position: relative;
  /* margin-top: 40px; */
  min-height: 400px;
  z-index: 1;
  color: #000;
  overflow: hidden; /* Ensures background doesn't spill out */
}

.map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/about-us/map.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 85%; /* width: auto, height: 150% */
  opacity: 0.3;
  z-index: -1;
}

.map img {
  width: 100%;
  max-width: 23rem;
  opacity: 0.8;
}

.border-8px {
  border-radius: 8px;
}

@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat {
    width: 100%;
  }
  .banner-about {
    min-height: 200px;
    margin-top: 70px !important;
  }
  .year-box.expanded {
    width: 275px !important;
    height: 300px !important;
  }
}

/*philosophy section end */

/*ourvalues start */
.ourvalues-bg {
  background: url(/wp-content/themes/tally/assets/images/about-us/our-values.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  color: #ffffff;
  border-radius: 20px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 20px;
}

.ourvalues-bg .stat strong {
  font-size: 21px;
  border-left: 2px solid #ffffff;
}

/*ourvalues end */
/*ourvision start */
.ourvision-bg {
  background: url(/wp-content/themes/tally/assets/images/about-us/our-vision.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  border-radius: 20px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video-wrapper iframe {
  width: 100%;
  height: 300px;
}

.hidden-text span {
  opacity: 0.2;
  /* Start with 30% opacity */
  transition: opacity 0.5s ease-out;
}

.visible span {
  opacity: 1;
  /* Transition to full opacity when the word is revealed */
}

.underLineImgRed {
  background: url(/wp-content/themes/tally/assets/images/about-us/border-red.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
  display: inline-block;
  height: 3.8rem;
}

.feature {
  background: #ffffff;
  /*background: linear-gradient(180deg, #FFFFFF 39.61%, #FFFBE5 112.61%);*/
}

.mh-150 {
  min-height: 160px;
}

/* Styling for the video thumbnail container */
.video-container {
  position: relative;
  /* width: 560px;
  height: 315px; */
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 10px 15px;
}
.shadow-container {
  position: relative;
  display: inline-block;
  border-radius: 15px;
  z-index: 0;
}

/* Styling for the rounded thumbnail image */
.shadow-container::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 32px;
  right: -87px;
  bottom: 19px;
  background: url(../images/about-us/about-bg.png) no-repeat center center;
  /* background-size: contain; */
  border-radius: 15px;
  z-index: -1;
  width: 94%;
}
.shadow-left::before {
  left: 4px !important;
}
.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  max-width: 520px;
}

/* Styling for the play button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: url("/wp-content/themes/tally/assets/images/about-us/you-tube-icon.svg")
    no-repeat center;
  background-size: contain;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 600px) {
  .video-container {
    width: 100%;
    height: auto;
  }

  .modal-content {
    width: 90%;
  }
  .shadow-container::before {
    width: 88%;
  }
}

/*timeline styles start */
.year-box {
  width: 70px;
  height: 30px;
  padding: 8px 20px;
  background-color: #4caf50;
  color: #808080;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.8s ease-in-out, height 0.8s ease-in-out;
  transition: all 0.9s ease-in-out;
  margin: 6px;
  display: inline-block;
  background: rgba(255, 255, 255, 1);
  font-size: 20px;
  box-shadow: 0px 5px 9px 0px rgb(0 0 0 / 10%);
}

.expanded-content {
  display: none;
  color: #333;
  font-size: 16px;
  padding: 10px;
  text-align: left;
  transition: opacity 1s ease-in-out;
}

.expanded-content h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.expanded-content p {
  color: #666;
}

.year-box.expanded {
  width: 400px;
  height: 230px;
  box-shadow: 0px 9px 9px 0px rgb(0 0 0 / 10%);
}

.year-box.expanded .expanded-content {
  display: block;
}

.year-box.expanded .year {
  color: #ff0000;
  font-size: 48px;
  font-weight: bold;
  text-align: left;
  padding: 0 10px;
  display: block;
}

.navigationnum {
  text-align: right;
  display: block;
  align-items: center;
  gap: 10px;
}

.nav-button {
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
  background-color: #ffffff;
  color: #ff0000;
  border: none;
  border-radius: 5px;
}

.page-number {
  font-size: 18px;
}

.year-box-container {
  min-height: 17rem !important;
  text-align: center;
  display: flex;
  align-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* management popup */
.popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  display: none;
}

/* Pop-up content sliding from right */
.popover-content {
  position: fixed;
  /*top: 17%;*/
  top: 6%;
  right: -100%;
  /* Start off-screen */
  /*width: 60%;
        height: 80%;*/
  width: 60%;
  height: 94%;
  background: white;
  box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 1000;
  /*transition: right 0.4s ease-in-out;*/
  overflow-y: auto;
}

/* Popover active (Visible state) */
.popover-content.active {
  /*right: 2%;*/
  right: 0%;
  z-index: 99999;
}

/* Close button */
.popover-close {
  display: block;
  text-align: right;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}

.popover-close img {
  width: 20px;
}

/* Card hover effect */
.card {
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0;
}

.card:hover {
  transform: scale(1.05);
}

.card-text {
  color: #7a8ca3;
}

.card-img,
.card-img-top {
  border-radius: 0;
}

.custom-popover-wrapper {
  margin-bottom: 30px;
  height: 100%;
}

.custom-popover-wrapper .card-body {
  min-height: 113px;
}

.popover-body h5 {
  color: #7a8ca3;
}

.team-tab-container {
  display: flex;
  background-color: #f0f0f0;
  border-radius: 20px;
  padding: 5px;
  width: fit-content;
}

.team-tab {
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.team-tab.active {
  background-color: black;
  color: white;
}

.team-tab:not(.active) {
  color: gray;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/*timeline styles end */

/* Navigation Icons inside a Box */
.popover-navigation {
  display: inline-flex;
  gap: 10px;
  padding-top: 20px;
}

.prev-popover,
.next-popover {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #888;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prev-popover:hover,
.next-popover:hover {
  background: #f0f0f0;
  border-color: #555;
}
