.preloader {
  height: 100vh;
  display: grid;
  /* align-items: center;
  justify-content: center; */
  background-color: #fff;
  transition: all 1s;
}
.loader {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 8px;
}
.loader div {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
}

.loader div:before,
.loader div:after {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  border-radius: 50%;
  filter: url(#goo);
}
.loader div:before {
  background-color: #fff;
  animation: scale-1 2400ms linear infinite;
}
.loader div:after {
  background-color: #f6da01;
  animation: scale-2 2400ms linear infinite;
}
.loader div:nth-child(2):before,
.loader div:nth-child(2):after {
  background-color: #8e1d36;
  animation-delay: 300ms;
}
.loader div:nth-child(3):before,
.loader div:nth-child(3):after {
  background-color: #8e1d36;
  animation-delay: 600ms;
}
.loader div:nth-child(4):before,
.loader div:nth-child(4):after {
  background-color: #f6da01;
  animation-delay: 900ms;
}
.loader div:nth-child(5):before,
.loader div:nth-child(5):after {
  background-color: #f6da01;
  animation-delay: 1200ms;
}
.loader div:nth-child(6):before,
.loader div:nth-child(6):after {
  background-color: #f6da01;
  animation-delay: 1500ms;
}
.loader div:nth-child(7):before,
.loader div:nth-child(7):after {
  animation-delay: 1800ms;
  background-color: #008244;
}
.loader div:nth-child(8):before,
.loader div:nth-child(8):after {
  background-color: #008244;
  animation-delay: 2100ms;
}
.loader div:nth-child(9):before,
.loader div:nth-child(9):after {
  background-color: #008244;
  animation-delay: 2400ms;
}
@-moz-keyframes scale-1 {
  0% {
    transform: scale(0);
    z-index: 2;
  }
  50%,
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes scale-1 {
  0% {
    transform: scale(0);
    z-index: 2;
  }
  50%,
  100% {
    transform: scale(1);
  }
}
@-o-keyframes scale-1 {
  0% {
    transform: scale(0);
    z-index: 2;
  }
  50%,
  100% {
    transform: scale(1);
  }
}
@keyframes scale-1 {
  0% {
    transform: scale(0);
    z-index: 2;
  }
  50%,
  100% {
    transform: scale(1);
  }
}
@-moz-keyframes scale-2 {
  0%,
  50% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes scale-2 {
  0%,
  50% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@-o-keyframes scale-2 {
  0%,
  50% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes scale-2 {
  0%,
  50% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.news-bottom-overlay {
  display: flex;
  align-items: end;
  padding: 1rem 2rem;
  height: 16em;
  width: 100%;
  background: linear-gradient(0deg, black, transparent);
  position: absolute;
  bottom: 0;
  color: #fff;
}

.news-bottom-overlay .line {
  content: "";
  display: inline-block;
  width: 100%;
  height: 45%;
  left: 16px;
  bottom: 10px;
  position: absolute;
  border: 3px solid #fff;
  -webkit-clip-path: polygon(0 0, 60% 0, 36% 100%, 0 100%);
  clip-path: polygon(0 0, 60% 0, 36% 100%, 0 100%);
}

.advert-banner {
  background: #f4ea00;
  height: 100%;
  margin-bottom: 30px;
  max-height: 540px;
  /* display: flex; */
  /* align-items: center; */
  padding: 1rem;
}

.advert-banner .banner-img {
  max-height: 415px;
  /* height: 100%; */
  margin-bottom: 30px;
}
.bg-eco-red {
  background-color: #8e1d36 !important;
}

.btn-x-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

ul.social-icon-links {
  position: absolute;
  right: 2rem;
  top: 14rem;
  list-style: none;
  /* display: flex
; */
  /* justify-content: center; */
  padding: 0px;
  margin: 0px;
  background-color: #fff;
  border-radius: 10px;
  z-index: 2;
}

ul.social-icon-links li {
  margin: 0px 0.3rem;
  text-align: center;
}

ul.social-icon-links li a {
  font-size: 2rem;
  color: #008f49;
}

.tagline {
  display: flex;
  align-items: center;
  max-width: 500px;
  padding-left: 1em;
  border-left: 1px solid #008c4e;
}

.specialized-portal-posts-slide .spp-item {
  max-height: 120px;
  height: 120px;
}

.specialized-portal-posts-slide .spp-item img {
  object-fit: contain;
  height: 100%;
}

.front-new-banner-slide .owl-nav {
  position: absolute;
  bottom: 0px;
  right: 0px;
}

.front-new-banner-slide {
  max-height: 540px;
  overflow: hidden;
  background: linear-gradient(0deg, black, white);
}

.front-new-banner-slide .owl-item.active h2 a {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-name: fadeInDown;
  animation-delay: 1s;
}

.front-new-banner-slide .owl-item.active .line {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-name: fadeInLeft;
  animation-delay: 0.3s;
}
.front-new-banner-slide .owl-item.active .single-main-news2 a > img {
  -webkit-animation-duration: 5s;
  animation-duration: 5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-name: fadeInRight;
  animation-delay: 0s;
}
/*  */

.h4_category-area {
  /* background-color: #ececf9; */
}

.h4_category-item-icon {
  width: 80px;
  height: 80px;
  background: #9d002d;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  box-shadow: 0px 6px 30px 0px rgba(10, 10, 10, 0.1);
  margin-bottom: 25px;
  -webkit-transition: all 0.3s linear 0s;
  -moz-transition: all 0.3s linear 0s;
  -ms-transition: all 0.3s linear 0s;
  -o-transition: all 0.3s linear 0s;
  transition: all 0.3s linear 0s;
  border: 1px solid transparent;
}

.h4_category-area .row.g-0:nth-child(2) .col-xl-2 .h4_category-item {
  border-width: 0 1px 1px 0;
}

.h4_category-area .row.g-0:nth-child(3) .col-xl-2 .h4_category-item {
  border-width: 0 1px 0 0;
}
.h4_category-area .row.g-0 .col-xl-2:last-child .h4_category-item {
  border-right-width: 0;
}

.h4_category-item:hover {
  border-radius: 10px;
  background: #fff;
  box-shadow: 1px 14px 50px 0px #f6da0129;
  transform: scale(1.03);
}
.h4_category-item {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0 35px;
  border: 0px solid #f4ea00;
  -webkit-transition: all 0.15s linear 0s;
  -moz-transition: all 0.15s linear 0s;
  -ms-transition: all 0.15s linear 0s;
  -o-transition: all 0.15s linear 0s;
  transition: all 0.15s linear 0s;
}
.h4_category-item-content h5 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 5px;
  height: 4rem;
  padding: 0 10px;
}
.h4_category-item-content p {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .h4_category-item{
      border: solid 1px #f4ea00 !important;
  }
}

.section-h-advert {
  background-color: #8e1d36;
}
.section-h-advert .ha-img {
  padding: 1rem;
  border: 1px solid #fff;
  border-bottom-right-radius: 8rem;
}

.section-h-advert h1 {
  color: #fff;
  font-weight: bold;
}
.section-h-advert .ha-content {
  padding: 3rem;
}

.section-h-advert h4 {
  color: #f4ea00;
}
.section-h-advert .ha-img img {
  border-bottom-right-radius: 8rem;
}

/* HERO CSS */
.hero-section {
  position: relative;
}

.hero-single {
  padding-top: 150px;
  padding-bottom: 240px;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-single::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: -0.5px;
  top: 0;
  background: rgba(11, 28, 57, 0.7);
  z-index: -1;
}

.hero-single .hero-content {
  height: 100%;
}

.hero-single .hero-content .hero-title {
  color: #fff;
  font-size: 72px;
  font-weight: 800;
  margin: 20px 0;
  text-transform: capitalize;
}

.hero-single .hero-content .hero-title span {
  color: #f4ea00;
}

.hero-single .hero-content .hero-sub-title {
  display: inline-block;
  color: #f4ea00;
  font-size: 25px;
  letter-spacing: 6px;
  font-weight: 800;
  position: relative;
  text-transform: uppercase;
  border-bottom: 3px solid #f4ea00;
}

.hero-single .hero-content p {
  color: #fff;
  line-height: 30px;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-single .hero-content .hero-btn {
  gap: 1rem;
  display: flex;
  margin-top: 35px;
  justify-content: start;
}

.hero-single .hero-img::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: #008f49;
  right: 100px;
  bottom: 0px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
}

.hero-single .hero-img {
  position: absolute;
  right: 100px;
  bottom: 120px;
  width: 50%;
  z-index: -1;
}

.hero-slider.owl-theme .owl-nav {
  margin-top: 0px;
}

.hero-slider.owl-theme .owl-nav [class*="owl-"] {
  color: #fff;
  font-size: 25px;
  margin: 0;
  padding: 0;
  background: var(--slider-arrow-bg);
  display: inline-block;
  cursor: pointer;
  height: 55px;
  width: 55px;
  line-height: 55px;
  border-radius: 50px;
  text-align: center;
  transition: all 0.5s ease-in-out;
}

.hero-slider.owl-theme .owl-nav [class*="owl-"]:hover {
  background: #fff;
  color: #008f49;
}

.hero-slider.owl-theme .owl-nav .owl-prev {
  left: 40px;
}

.hero-slider.owl-theme .owl-nav .owl-next {
  right: 40px;
}

.hero-slider.owl-theme .owl-nav .owl-prev,
.hero-slider.owl-theme .owl-nav .owl-next {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

@media all and (max-width: 1199px) {
  .hero-single .hero-content .hero-title {
    font-size: 37px;
  }

  .hero-slider.owl-theme .owl-nav .owl-prev,
  .hero-slider.owl-theme .owl-nav .owl-next {
    top: unset;
    bottom: 30px !important;
  }

  .hero-slider.owl-theme .owl-nav .owl-prev {
    left: unset;
    right: 120px;
  }

  .hero-slider.owl-theme .owl-nav .owl-next {
    right: 40px;
  }
}

@media all and (max-width: 991px) {
  .hero-single .hero-content .hero-title {
    font-size: 50px;
  }

  .hero-single .hero-img {
    position: relative;
    width: 100%;
    right: unset;
    bottom: unset;
    margin-top: 50px;
  }

  .hero-single .hero-img::before {
    width: 250px;
    height: 250px;
  }
}

@media all and (max-width: 767px) {
  .hero-single .hero-content .hero-sub-title {
    font-size: 18px;
  }

  .hero-single .hero-content .hero-btn {
    gap: 1rem;
  }
}

/* THEME BTN CSS */

.theme-btn2 {
  background: #fff;
  color: #f4ea00;
}

.theme-btn2::before {
  background: #8e1d36;
}

.theme-btn2:hover {
  color: #fff;
}

/*====================
28. Counter css 
======================*/

.counter-area {
  position: relative;
  background-image: url(../images/commission.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}

.counter-area::before {
  content: "";
  position: absolute;
  background: #008f49;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  z-index: -1;
}

.counter-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.counter-box .icon {
  position: relative;
  text-align: center;
  font-size: 60px;
  width: 100px;
  height: 100px;
  line-height: 88px;
  color: #fff;
  background: #f6da01;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.counter-box .icon img {
  width: 60px;
  /* filter: brightness(0) invert(1); */
  filter: drop-shadow(2px 4px 6px #8e1d36);
}

.counter-box .icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  border: 3px solid #fff;
  transition: all 0.5s ease-in-out;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
}

.counter-box:hover .icon::before {
  left: 0;
  top: 0;
}

.counter-box .counter {
  display: block;
  line-height: 1;
  color: #fff;
  font-size: 50px;
  font-weight: 600;
}

.counter-box .title {
  color: #fff;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

@media all and (max-width: 991px) {
  .counter-area .counter-box {
    margin: 40px 0;
  }
}

/* FOCUS AREA CSS */

.section-focus-area .card {
  border-radius: 0%;
}
.section-focus-area .focus-area-content {
  max-height: 340px;
  border: none;
}
.section-focus-area .focus-area-content:hover {
  transform: scale(1.02);
  transition: all 0.3s;
}
.section-focus-area .col-lg-3:nth-of-type(1) .focus-area-content {
  background-color: #edae49 !important;
}
.section-focus-area .col-lg-3:nth-of-type(2) .focus-area-content {
  background-color: #d1495b !important;
}
.section-focus-area .col-lg-3:nth-of-type(3) .focus-area-content {
  background-color: #00798c !important;
}
.section-focus-area .col-lg-3:nth-of-type(4) .focus-area-content {
  background-color: #30638e !important;
}
.section-focus-area .focus-area-content span {
  margin: 1rem 0;
  text-align: center;
  font-style: italic;
}

.section-focus-area .focus-area-content h4 {
  border-left: 0.5rem solid #ffffff61;
  padding-left: 0.5rem;
  /* margin-bottom: 18px; */
  color: #fff;
  font-weight: bold;
  height: 4rem;
  text-transform: uppercase;
}

.section-focus-area .focus-area-content p {
  color: #fff;
  max-height: 9rem;
  text-overflow: ellipsis;
}

.preloader2 .loader{
  display: none;
}

.preloader2 .loader2{
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader .loader2{
  display: none;
}

/* MultiMedia Section */
.multimedia-section .video-item .video-news-image {
  position: relative;
  /* height: 100%; */
  max-height: 550px;
}
.multimedia-section .video-item-sm .video-news-image {
  position: relative;
  /* height: 100%; */
  max-height: 275px;
}

.multimedia-section .video-item::before {
  height: 100%;
  background-color: #000;
  opacity: .3;
}
.multimedia-section .video-item .video-news-content .badge  {
  background: #f6da01;
  border: none;
  border-radius: 0;
  font-size: 1.2rem;
  margin-bottom: .3rem;
}
.multimedia-section .video-item .video-news-content .badge-image  {
  background-color: #9d002d;
}

.multimedia-section .video-item .video-news-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
}
.multimedia-section .video-item-sm .video-news-content h3 {
  font-size: 1rem !important;
  font-weight: bold;
}

.multimedia-section .col-lg-6{
  border: 1px solid #fff;
}



.badge-image, .badge-video:hover{
  background: #9d002d;
  border: none;
  border-radius: 0;
  font-size: 1.2rem;
  margin-bottom: .3rem;
  color: #fff !important;
}

.badge-video, .badge-image:hover{
  background: #f6da01;
  border: none;
  border-radius: 0;
  font-size: 1.2rem;
  margin-bottom: .3rem;
  color: #000 !important;
}

@media only screen and (max-width: 767px) {
  .multimedia-section .video-item .video-news-content h3 {
      font-size: 1.6rem;
      text-overflow: clip;
  }
}

/* HOMEPAGE ADVERT SECTION */
.section-ecowas-advert{
  text-align: center;
}
.section-ecowas-advert .container{
  max-width: 860px;
}

.section-ecowas-advert .section-title::before{
  left: 50% !important;
  transform: translate(-50%, -50%);
}

/* ECOWAS SINGLE ANNIVERSARY */
.gallery-section .gallery-slides-container .swiper-slide{
  position: relative;
  max-height: 600px;
  overflow: hidden;
}

.gallery-section .gallery-slides-container .swiper-slide img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

  .gallery-section .gallery-slides-container .mySwiper .swiper-slide{
  max-height: 100px;
  overflow: hidden;
}
.gallery-section .gallery-slides-container .swiper {
  height: 100%;
  max-height: 500px;
}
.gallery-section .gallery-slides-container .mySwiper .swiper-slide img{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gallery-section .gallery-slides-container .slide-text{
  position: absolute;
  display: flex;
  /* align-items: end; */
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, black, transparent);
}

.gallery-section .gallery-slides-container .slide-text h3{
  color: #fff;
  font-weight: bold;
  font-size: 2rem;
  
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-name: fadeInUp;
  animation-delay: 1s;
  
  -webkit-animation-fill-mode: both;
  -webkit-animation-duration: 2s;
  -webkit-animation-name: fadeInUp;
  -webkit-animation-delay: 1s;
  
  -moz-animation-fill-mode: both;
  -moz-animation-duration: 2s;
  -moz-animation-name: fadeInUp;
  -moz-animation-delay: 1s;
}

.gallery-section .gallery-slides-container .swiper-slide-thumb-active{
  border: 4px solid #f4ea00;
}
.gallery-section .anniversary-videos-container .video-item{
  height: auto;
}


.swiper {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.mySwiper2 {
  height: 80%;
  width: 100%;
}

.mySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}

.mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}
