.projects_main_wrapper {
  margin-top: 60px;
  margin-bottom: 100px;
}

.projects-section .category-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.projects-section .projects-filters {
  display: flex;
  margin: 40px 0;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}
h3.campaign-title a {
    color: white;
}
.projects-filters .filter-input {
  width: 309px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 9.2px;
  padding: 0px 16px;
  border-radius: 28px;
 box-shadow: var(--shadow-light);
}
.projects-filters .filter-input input {
  border: none;
  outline: none;
  font-size: var(--h6-size);
  font-weight: var(--h6-weight);
  padding: 14px 0px;
line-height: 24px;
    font-family: 'Mona Sans';
    color: #B4B4B4;
}

.projects-filters .filter-input input::placeholder {
  color: var(--gray-color);
}

/* -------------- right side sort and fiter btns ----  */

.projects-filters-dropdown {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.projects-filters-dropdown .filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white-color);
  border: 1px solid var(--white-color);
  border-radius: 28px;
  padding: 14px 16px;
  white-space: nowrap;
  justify-content: center;
  box-shadow: var(--shadow-light);
  cursor: pointer;
  max-height: 52px;
   user-select: none;
}
.projects-filters-dropdown .filter-btn.active{
  border: 1px solid var(--secondary-color);
}

.filter-btn .filter-label {
  font-size: var(--h6-size);
  font-weight: var(--h6-weight);
  color: var(--gray-color);
  margin: 0 8px;
}

.filter-btn .filter-value {
  color:  var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  margin-right: 12px;
}

.filter-btn .country-filter,
.filter-btn .sort-filter {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-family);
  width: 100%;
  height: 100%;
  font-size: var(--h6-size);
  font-weight: var(--h6-weight);
  opacity: 0;
  cursor: pointer;
  background-color: var(--white-color);
  box-shadow: 0px 8px 40px 0px #bdbdbd47;
}

/* Country Filter Dropdown */
.country-filter-dropdown {
  position: absolute;
  top: 130%;
  left: 0;
  width: 100%;
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  display: none;
  z-index: 10;
  transition: transform 0.3s ease;
}

.country-filter-btn:hover + .country-filter-dropdown,
.country-filter-btn.active + .country-filter-dropdown {
  display: block;
}
.country-filter-btn .country-dropdown-arrow{
  transition: transform 0.3s ease;
}
.country-filter-btn.active .country-dropdown-arrow {
  transform: rotate(180deg);
}
.country-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  transition: background 0.2s ease;
  gap: 8px;
}
.country-option:hover {
  background: #f5f5f5;
}

.country-option.active {
  color: var(--secondary-color);
}

.country-option .flag-wrapper {
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.country-option .country-flag {
  margin-right: 8px; 
  width: 22px;
  height: 16px;

}
.country-option .country-flag img{
  width: 22px;
  height: 16px;
}
.check-icon {
  color: var(--secondary-color);
  font-size: 20px;
  display: none; /* Default hidden */
}

.country-option.active .check-icon {
  display: inline-block; 
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}
.country-filter-dropdown {
  display: none; /* By default, the dropdown is hidden */
}

.country-filter-dropdown.show {
  display: block; /* The dropdown becomes visible when the show class is added */
}



/* =====================   campaigns project sections ====== */

.projects_main_wrapper .campaigns-section {
  background-color: var(--white-color);
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 28px;
  row-gap: 40px;
}

.campaigns-grid .campaign-card {
  background-color: var(--white-color);
  border-radius: 12px;
 box-shadow: var(--shadow-heavy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.campaign-card .campaign-card-image {
  position: relative;
  height: 312px;
}

.campaign-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.campaign-card-image .campaign-card-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #177e38b8;
  padding: 20px;
    border-radius: 12px 12px 0px 0px;
}
.campaign-card-overlay .campaign-title {
  font-size: var(--h3-size);
  color: var(--white-color);
  font-weight: 500;
     line-height: 40px;
    font-family: 'Mona Sans';
}

.campaign-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
}

.campaign-content p{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campaign-description {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.campaign-progress-wrapper .campaign-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.campaign-progress-heading p {
  font-size: 14px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 6px;
}
.campaign-progress-heading strong {
  font-size: 18px;
  font-weight: 500;
  color:  var(--color-primary);
}

.progress_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress_wrapper .campaign-progress {
  margin-top: 0;
}
.campaign-progress {
  background-color: var(--border-color);
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 12px;
  position: relative;
  width: 100%;
}

.campaign-progress .progress-bar {
  background-color: var(--secondary-color);
  height: 100%;
  border-radius: 20px;
  transition: width 0.3s ease-in-out;
}

.campaign-buttons {
  display: flex;
  margin-top: 28px;
  justify-content: space-between;
  gap: 12px;
}

.campaign-view-btn {
  flex: 1;
  color: var(--secondary-color);
  font-weight: 600;
}

.campaign-support-btn {
  flex: 2;
}

.show-more-btn {
  color: var(--secondary-color);
  font-weight: 600;
  margin: 60px auto;
}



@media screen and (max-width: 767px){
.campaigns-grid{
display: block;
}

.projects-section .projects-filters{
display: block;
}

.projects-filters-dropdown,
.projects-section .category-buttons,
.campaign-buttons{
display: block;
}

.projects-filters .filter-input{
width: 100%;
    margin-bottom: 15px;
}

.projects-filters-dropdown{
margin-bottom: 15px;
}

.campaigns-grid .campaign-card{
margin-bottom: 20px;
}

/* .category-buttons button {
    width: 100%;
    margin-bottom: 15px;
    background: white;
    color: #177e38;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
}

button.category-btn.active {
  background: green;
  color: white;
} */
.campaign-support-btn {
    width: 100%;
}
.campaign-view-btn {
    width: 100%;
    margin-bottom: 15px;
}

.category-buttons button{
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

div#dropdownToggle {
  margin-bottom: 20px;
}

.projects-show-more{
  width: 100%;
}

}

.project ul li {
    font-size: 14px;
    line-height: 20px;
    list-style-type: auto;
    padding-left: 5px;
    color: #6E706C;
}
.project ul {
    list-style: circle;
    padding-left: 20px;
}
select#donationType {
    border-right-width: 1px;
    border-color: var(--border-color);
    padding: 16px;
    font-family: var(--font-family);
    color: var(--primary-color);
    border-radius: 28px;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
    appearance: none;
    background-image: url(http://restless.21days.org.uk/wp-content/uploads/2025/01/Icon-Frame.png);
    background-repeat: no-repeat;
    background-position: 95%;
}
select#donationType:focus-visible {
    outline: none;
}


img.gloabl {
    width: 26px !important;
    height: 24px !important;
}