@font-face {
  font-family: 'Mistral';
  src: url('/fonts/Mistral.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.color-white{
	color: #fff;
}

.mb-0 {
	margin-bottom: 0;
}

.font-24 {
	font-size: 24px;
}

.border-rounded {
	border-radius: 10px;
}

.with-underline {
	border-bottom: 3px solid var(--primary-color);
    padding-bottom: 5px;
}

.align-left {
	align-items: flex-start !important;
}

.events-video-section {
  background: #f7f9fc;
  padding: 40px 0;
}

/* Cards */
.events-card,
.video-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.video-card .section-header {
	margin-top: 10px;
}

.section-header h4,
.section-header h5 {
  margin: 0;
}

.subtitle {
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

/* Event Item */
.event-item {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.event-date {
  width: 70px;
  text-align: center;
  border-radius: 8px;
  padding: 5px;
  margin-right: 10px;
  color: #fff;
  min-width: 70px;
}

.event-date span {
  display: block;
  font-size: 12px;
}

.event-date strong {
  font-size: 30px;
}

.event-date.blue {
  background: #2ea3f2;
}

.event-date.green {
  background: #27ae60;
}

.event-info h6 {
  margin: 0 0 5px;
  font-size: 14px;
}

.event-info p, .event-info i {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.tag {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  background: #2ea3f2;
  color: #fff;
  font-size: 11px;
  border-radius: 20px;
}

.tag.green {
  background: #27ae60;
}

/* Video */
.featured-video {
  position: relative;
  margin-bottom: 30px;
  border-radius: 10px;
}

.featured-video iframe, .featured-video img, .featured-video .splide__video__wrapper {
  width: 100%;
  border-radius: 8px;
}

.featured-video .video-desc {
	position: absolute;
    z-index: 999999;
    color: #FFF;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 20px 20px 0px 30px;
    height: 120px;
}

.featured-video .video-desc h6 {
	font-size: 20px;
    font-weight: 500;
    margin-bottom: 0px;
}

.featured-video .is-playing .video-desc {
	display: none;
}

/* Responsive */
@media screen and (max-width: 640px) {
  .event-item {
    flex-direction: column;
  }

  .event-date {
    margin-bottom: 8px;
  }
}

.owl-carousel .item {
    height: 180px; /* Adjust as needed */
}
.owl-carousel .item img {
    height: 100%;
    object-fit: cover; /* Ensures images fill area without stretching */
}

.cur_aff .affair_title h3 {
	animation: blinker 1s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}
.button.link-anchor{
	background-color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
  min-width: 200px;
  text-indent: inherit;
  height: inherit;
  background-image: none;
  border-radius: 10px; 
  display: inline-block;
  text-wrap: nowrap;
}

.fstp-content {
  padding: 80px 0 40px 0;
}

.fstp-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 50vh;
}

.fstp-column {
  padding: 10px;
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  flex: 1;
}

.no-bg-border {
  background-color: #FFF !important;
  border: none !important;
}

.fstp-right-column {
  background-color: #e1f5fe;
  position: relative;
}

.fstp-right-column .image-container {
  position: relative;
  width: 100%;
}

.fstp-right-column .image-container img {
  height: auto;
}

.fstp-right-column .image-container .download-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: end;
  align-items: center;
}

.fstp-right-column .image-container .download-overlay span {
  margin-right: 45px;
}

.download-container {
  position: absolute;
  bottom: 15px;  
  right: 15px;
}

.fstp-left-column {
  background-color: #fff3e0;
  display: flex;
  flex-direction: column;
}

.fstp-left-column table {
  width: 100%;
  border-collapse: collapse;
  flex-grow: 1;
  overflow-y: auto;
}

.fstp-left-column th,
.fstp-left-column td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.home .services h4 {
  min-height: 64px;
}

.home .services .cell {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background-color: rgba(0, 172, 239, .85);
    border-radius: .75rem;
    height: 100%;
    min-height: 435px;
}

.partners .owl-carousel .owl-stage-outer::before {
    left: 0;
    background: linear-gradient(90deg, #f6f6f3, rgba(0, 0, 0, 0));
}
.partners .owl-carousel .owl-stage-outer::after {
    right: 0;
    background: linear-gradient(to left,#f6f6f3,rgba(0,0,0,0));
}
.partners .owl-carousel .owl-stage-outer::after, .partners .owl-carousel .owl-stage-outer::before {
    content: "";
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    border-radius: 12px;
}

footer p {
  font-size: 14px;
  font-weight: 500;
}

footer .footer-logo-container {
  background-color: #fff;
  border-radius: 12px;
  margin: 0 1rem;
}

.footer i {
  font-size: 12px;
  padding-right: 5px;
}

.common-back-top {
    z-index: 21;
    position: fixed;
    bottom: 20px;
    right: 50px;
    border-radius: 50%;
    background: rgba(0, 172, 239, 0.6);
}

.common-back-top a {
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.page-template-capacity-building {
		background: #f5f7fa;
		color: var(--primary-color);
	}

	/* Cards */
	.general-card {
		margin-bottom: 20px;
	}

	.general-card h2, .general-card h3  {
		margin-bottom: 10px;
		color: #0077b6;
	}
	
	.general-card .medium-font {
		font-size: 20px;
	}

	.page-template-capacity-building .entry-content h2 {
		color: var(--primary-color);
	}

	.stat-card {
		border-radius: 10px;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
		border: 1px solid #e6e6e6;
		min-height: 180px;
	}

	.stat-card .card-section {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
	}

	.stat-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	}

	.stat-number {
		font-size: 28px;
		color: var(--primary-color);
		margin-bottom: 5px;
	}

	.stat-title {
		font-size: 1.2rem;
		font-weight: 500;
		margin: 5px 0;
	}

	.stat-sub {
		font-size: 14px;
	}
	
	.service-grid .card .min-height-65 {
		min-height: 65px;
	}

	.splide__slide {
		position: relative;
		background-size: cover;
		background-position: center;
	}

	.splide__slide img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* Optional: limit very tall images */
	.splide__slide img {
		max-height: 80vh;
		object-fit: cover;
	}

	/* Overlay content */
	.overlay {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, calc(-50% + 60px));

		text-align: center;
		color: white;
		z-index: 2;
		max-width: 600px;
		width: 90%;

		opacity: 0;
		/* start hidden for animation */
		will-change: transform, opacity;
	}

	@keyframes slideUpFadeIn {
		0% {
			opacity: 0;
			transform: translate(-50%, calc(-50% + 60px));
		}

		100% {
			opacity: 1;
			transform: translate(-50%, -50%);
		}
	}

	/* Reset overlay on non-active slides */
	.splide__slide:not(.is-active) .overlay {
		opacity: 0;
		transform: translate(-50%, calc(-50% + 60px));
		animation: none;
	}

	/* Apply animation when slide becomes active */
	.splide__slide.is-active .overlay {
		animation: slideUpFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}

	.overlay h1 {
		font-size: 48px;
		margin-bottom: 10px;
		line-height: 1.2;
	}

  .page-template-front-page .overlay h1 {
    font-family: 'Mistral', cursive;
    font-size: 60px;
    letter-spacing: 1.2px;
	}

	.overlay p {
		font-size: 20px;
		margin-bottom: 20px;
		line-height: 1.6;
	}

	.btn {
		padding: 12px 25px;
		background: #5ab555;
		color: #FFF;
		text-decoration: none;
		border-radius: 5px;
		display: inline-block;
		font-size: 16px;
		cursor: pointer;
	}

	/* Dark overlay effect */
	.page_heading .splide__slide::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
	}

  /* testimonials section */ 
  .testimonials .testimonial-splide .splide__list .card {
    padding: 50px;
    border-radius: 10px;
  }

  .testimonials .testimonial-splide .splide__list .card .card-body {
    padding: 15px 10px;
  }

  .testimonials .testimonial-splide .splide__list .card .card-name {
    padding: 15px 10px;
    font-weight: 600;
    font-size: 14px;
  }
  
  .testimonials .testimonial-splide .splide__list img {
    border-radius: 10px;
    width: 200px;
    height: auto;
  }

  /* Responsive Styles */
  /* ── Responsive: Tablet (≤ 1024px) ── */
  @media screen and (max-width: 1024px) {
    .home .services .cell {
      width: 100%;
      margin: 12px 0;
    }
    .services .service_image_container img {
      width: 75px;
      min-height: 130px;
    }
    .fstp-container {
      flex-direction: column;
    }

    .fstp-column {
      width: 100%;
      min-height: auto;
    }

    .fstp-left-column table {
      max-height: 300px;
    }
  }

	/* ── Responsive: Tablet (≤ 768px) ── */
	@media (max-width: 768px) {
		.splide__slide img {
			max-height: 55vh;
		}

		.overlay {
			max-width: 90%;
		}

		.overlay h1 {
			font-size: 30px;
		}

		.overlay p {
			font-size: 15px;
			margin-bottom: 14px;
		}

		.btn {
			padding: 10px 20px;
			font-size: 14px;
		}
	}

  /* ── Responsive: Tablet (≤ 640px) ── */
	@media (max-width: 640px) {
		.testimonials .testimonial-splide .splide__list .card {
      padding: 25px;
    }
	}

	/* ── Responsive: Mobile (≤ 480px) ── */
	@media (max-width: 480px) {
		.splide__slide img {
			max-height: 45vh;
		}

		.overlay h1 {
			font-size: 22px;
			margin-bottom: 6px;
		}

		.overlay p {
			font-size: 13px;
			margin-bottom: 10px;
		}

		.btn {
			padding: 8px 16px;
			font-size: 13px;
		}

		.fstp-left-column table {
			font-size: 12px;
		}

		.featured-video .video-desc {
			display: none;
		}
	}

	/* ── Responsive: Small Mobile (≤ 360px) ── */
	@media (max-width: 360px) {
		.overlay h1 {
			font-size: 18px;
		}

		.overlay p {
			font-size: 12px;
		}
	}