:root {
    --primary-color: rgb(0 159 79);
    --secondary-color: rgb(237 28 36);
    --black: black;
    --white: white;
    --grey: #f8f8f8;
    --darker-green: rgba(1, 104, 57, 1);
    --transition: all 0.5s;
  }

  #testimonial-map {
    background: var(--darker-green);
    padding: 80px 0;
  }

  #testimonial-map h2 {
    color: var(--white);
    font-family: "Barlow", sans-serif;
    margin-bottom: 20px;
  }


#testimonial-map .title-section p {
  font-family: "Barlow", sans-serif;
  color: var(--white);
  }

  .map-container {
    background: var(--darker-green);
    width: 100%;
    height: auto;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
 
  .map-container svg {
margin: 140px 0;
    width: 60%;
    height: auto;
    color: var(--primary-color);
    
}
/* st0 countries */
#Zimbabwe, #Zambia, #South_Africa, #Chad, #Botswana, 
#Lesotho, #Swaziland, #Namibia, #CAR, #Uganda, #Niger, #South_Sudan {
  fill: #00311B; /* Initial color */
  stroke: #04693C; 
  transition: var(--transition);
}

/* st0 Hover */
#Zimbabwe .st0:hover, #Zambia .st0:hover, #South-Africa .st0:hover, 
#Chad .st0:hover, #Botswana .st0:hover, #Lesotho .st0:hover, 
#Swaziland .st0:hover, #Namibia .st0:hover, #CAR .st0:hover, 
#Uganda .st0:hover, #Niger .st0:hover, #South_Sudan .st0:hover {
  fill: var(--primary-color); /* New color on hover */
  stroke: #04FF55; 
}


/* st1 countries */
#DR_Congo, #Angola, #Mozambique, #Tanzania, #Kenya, #Malawi, #Nigeria, #Sudan {
  fill: #00311B; /* Initial color */
  stroke: #04693C; 
  transition: var(--transition);
}


/* st1 Hover */
#DR_Congo .st1:hover, #Angola .st1:hover, #Mozambique .st1:hover, #Tanzania .st1:hover,
#Kenya .st1:hover, #Malawi .st1:hover, #Nigeria .st1:hover, #Sudan .st1:hover {
  fill: var(--primary-color); /* New color on hover */
  stroke: #04FF55; 
}


.map-container.hover-active path {
  fill: var(--primary-color); /* Keep the hover color active on country */
  stroke: #04693C;
}


/************************* Testimonial Card *************************/
.testimonial-card {
    width: 100%;
    max-width: 400px;
    border: 1px solid #ddd;
    padding: 40px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* display: none;  */
    position: absolute;
    top: 0px;
}

.testimonial-card.active {
  display: block; 
}

/* Top Section */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.person-info {
  text-align: left;
  font-family: "Barlow", sans-serif;
}

.person-info h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	color: var(--black);
	font-family: "Barlow", sans-serif;
}

.occupation {
  margin: 0;
  font-size: 14px;
  color: #777;
}

/* Middle Section: Image Gallery */
.testimonial-images {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.testimonial-img {
  object-fit: cover;
  border-radius: 5px;
}

/* Bottom Section */
.testimonial-text {
  text-align: left;
  font-style: italic;
  font-family: "Barlow", sans-serif;
  color: #555;
  font-size: 14px;
}


.testimonial-card {
  position: absolute;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  transition: opacity 0.3s ease-in-out;
  font-family: "Barlow", sans-serif;
}

/* .testimonial-card.hidden {
  display: none;
} */

.testimonial-card .testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card .testimonial-header img {
	width: 50px;
	height: 50px;
  object-fit: contain;
	border-radius: 50%;
	border: 3px solid white;
	-webkit-box-shadow: 0px 0px 15px 0px rgba(219,216,219,1);
	-moz-box-shadow: 0px 0px 15px 0px rgba(219,216,219,1);
	box-shadow: 0px 0px 15px 0px rgba(219,216,219,1);
}

.testimonial-card .testimonial-text {
  font-size: 14px;
  color: #333;
}

/* Testimonial Thumbnail Images */

/* Styling for the testimonial thumbnails */


/* Container for the thumbnails */
.thumbnail-gallery {
	display: flex;
	gap: 0px;
	justify-content: flex-start;
	align-items: center;
	position: relative;
}
/* Individual thumbnail item */
.thumbnail-item {
  width: 50px; 
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  -webkit-box-shadow: 0px 0px 15px 0px rgba(219,216,219,1);
	-moz-box-shadow: 0px 0px 15px 0px rgba(219,216,219,1);
	box-shadow: 0px 0px 15px 0px rgba(219,216,219,1);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease-in-out;
}

/* Make images fit properly */
.thumbnail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlapping effect */
.thumbnail-item:nth-child(n+2) {
  margin-left: -20px; /* Adjust to create the overlap effect */
}

/* Hover effect */
.thumbnail-item:hover {
  transform: scale(1.1);
  z-index: 2;
}


.testimonial-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3px;
}

.more-testimonies a {
	color: var(--darker-green);
	font-size: 13px;
	font-weight: 600;
  transition: 300ms ease-in-out;
}

.more-testimonies a:hover {
	color: var(--secondary-color);
}

/* .testimonial-dot {
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
} */


.map-page.map-container {
	padding: 150px 0;
}


.testimony-grid.testimonial-card {
	position: relative;

}


/* Testimonial Form */

.form-grid {
	display: grid;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 20px 0;
	grid-template-columns: 1fr 1fr 1fr;
}

.testimonial-form-container input,.testimonial-form-container textarea, #testimonial_country  {
	background: transparent;
	border: 2px solid var(--white);
	padding: 15px 20px;
	border-radius: 15px;
	width: 100%;
}

.testimonial-form-container textarea {
  min-height: 150px;
}

input::placeholder, .testimonial-form-container textarea::placeholder, #testimonial_country {
	color: var(--white);
}


#testimonial_country {
  background: var(--darker-green);
}

.flex-fields {
	display: grid;
	align-items: center;
	gap: 20px;
	grid-template-columns: 1fr 2fr;
	margin: 20px 0;
}


.testimony-photo {
	display: flex;
	gap: 5px;
	align-items: center;
}

.testimony-photo label {
	min-width: 145px;
}

input[type="submit"] {
	width: unset;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	display: block;
	margin-top: 50px;
	background: var(--white);
	color: var(--primary-color);
	font-size: 15px;
	font-weight: 500;
	border-radius: 50px;
}


.form-error-msg {
	text-align: center;
}




.testimony-active polygon, .testimony-active path {
	fill: var(--primary-color);
  stroke: #04FF55;
}

polygon, path {
  cursor: pointer;
}

#testimonial-content.hidden {
  display: none;
}
