/* Global Styles */
:root {
  --primary-color: #00715d;
  --secondary-color: #e17153;
  --background-color: #f9f5e8;
  --text-color: #242a2e;
  --font-family: "Poppins", Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.navbar-brand {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-image {
  width: 100%;
  padding-bottom: 100%; /* Creates a 1:1 aspect ratio */
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

section h2 {
  font-family: var(--font-family);
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

/* Footer Styles */
footer {
  background-color: var(--background-color);
  text-align: center;
  padding: 20px 0;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transition: background-color 0.3s ease, transform 0.2s ease;
  --bs-btn-active-bg: #e3461b;
  --bs-btn-active-border-color: #e3461b;
}

.btn-outline-primary {
  border-color: var(--secondary-color);
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: var(--secondary-color);
  --bs-btn-active-bg: #e3461b;
  --bs-btn-active-border-color: #e3461b;
}

.btn-outline-primary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: #e3461b;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #e3461b;
  border-color: #e3461b;
  filter: brightness(90%);
  box-shadow: none;
  transform: translateY(-2px);
}

/* Header Styles */
.navbar-custom {
  background-color: var(--background-color);
}

.navbar-custom .navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 400;
  transition: color 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: var(--primary-color);
  font-weight: 400;
}

.navbar-custom .navbar-nav .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .form_container {
    width: 100%;
    max-width: 100%; /* Remove max-width for smaller screens */
    padding: 0 20px; /* Add padding for better spacing */
  }

  /* Stack the donation type buttons vertically on smaller screens */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  /* Ensure the One-Time and Monthly buttons take full width */
  .btn-group .custom-btn-green {
    width: 100%; /* Full width for buttons */
    margin-bottom: 10px; /* Add space between buttons */
  }

  /* Stack the donation amount buttons vertically on smaller screens */
  .amount-options {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Add some space between buttons */
  }

  /* Ensure the donation amount buttons take full width */
  .amount-btn.custom-btn-green {
    width: 100%; /* Full width for buttons */
  }

  /* Adjust custom amount input to take full width */
  .custom-amount {
    width: 100%;
    margin-top: 10px; /* Add space between the amount buttons and custom input */
  }

  /* Adjust the header text to fit smaller screens */
  .donation-header h1 {
    font-size: 1.8rem; /* Adjust font size */
    text-align: center;
  }

  .donation-header p {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Ensure input fields take full width */
  .form-control {
    width: 100%; /* Full width for input fields */
  }

  /* Ensure the selected amount text takes full width and aligns properly */
  /* Align the selected amount text properly */
  .selected-amount-container {
    text-align: center;
    margin-top: 10px;
  }

  #selectedAmount {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #00715d; /* or your primary color */
    margin-left: 5px; /* Space between "Selected Amount:" and amount */
  }

  .selected-amount-label {
    font-size: 18px;
    font-weight: normal;
    color: #333; /* or your preferred label color */
  }
}

/* Stats Section */
.bg-custom-primary {
  background-color: var(--primary-color);
  color: white;
}

/* about us */
.about-us-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.banner {
  position: relative;
  max-height: 450px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.banner-text {
  position: absolute;
  font-size: 48px;
  color: white;
  font-weight: bold;
}

.mission-vision-section {
  display: flex;
  justify-content: space-between;
}

.mv {
  text-align: center;

  margin: 20px 0;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
.mv img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.donate-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color); /* Uses the secondary theme color */
  color: #fff; /* White text for contrast */
  text-decoration: none; /* Removes underline from the link */
  border-radius: 5px; /* Rounded corners for the button */
  font-size: 16px;
}

.projecth2 {
  font-weight: 700;
  font-size: 34px;
}

.donate-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

/* Get Involved Page Styles */
.get-involved-hero {
  background-color: var(--primary-color);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.get-involved-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.donation-form {
  padding: 60px 0;
}

.card {
  height: 100%;
  transition: transform 0.3s ease-in-out;
  background-color: #fefcf3;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
  padding: 20px; /* Consistent padding inside the card */
  border-radius: 10px; /* Rounded corners for a more modern look */
  margin-bottom: 2rem; /* Space between cards */
}

.card:hover {
  transform: translateY(-5px);
}
.card .card-text {
  color: #3d3d3d;
}
form {
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Us Page */

.contact-hero {
  /* display: flex;
    align-items: center;
    justify-content: space-between; */
  /* padding: 60px; */
  margin-top: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* .row {
    margin: 0 auto;
} */

.text_container {
  margin-bottom: 16px;
  /* flex: 1; */
}

.map_container {
  /* flex: 1; */
  margin-top: 16px;
}

.map_container iframe {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.text_container h1 {
  color: var(--secondary-color);
  margin-bottom: 24px;
  font-size: 32px;
  font-weight: 600;
}

.text_container p {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 200;
}

.contact_form_container {
  max-width: 880px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  margin: auto;
}

.get_in_touch {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-color);
  text-align: center;
}

.form-group .formko {
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 4px;
  color: #4e4d4d;
}

.form-control::placeholder {
  color: #999999; /* Change placeholder color to #999999 */
  opacity: 1; /* Ensures full visibility of the color */
}

.form-control,
#message {
  margin-bottom: 10px; /* Add spacing between form elements */
  padding: 10px; /* Increase padding for input fields */
  border-radius: 8px; /* Slightly round input corners */
  border: 1px solid #ccc;
  transition: border-color 0.3s ease; /* Add transition for focus effect */
}

/* Input focus styles */
.form-control:focus,
#message:focus {
  border-color: var(--secondary-color); /* Change border color on focus */
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow on focus */
}

.submit_button {
  width: 100%;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 8px;
  border: none;
  margin-top: 24px;
  height: auto;
  padding: 12px;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 16px;
}

.submit_button:hover {
  background-color: #e3461b;
  /* transform: scale(1.02); */
  color: #ffffff;
}

/* Validation feedback (invalid fields) */
.is-invalid {
  border-color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
  display: block;
  color: #dc3545;
  margin-top: 8px;
  font-size: 14px;
}

/* pop design */

.modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.modal-body {
  color: #4e4d4d;
  font-size: 18px; /* Standard font size */
  font-weight: lighter;
  padding: 24px; /* Add padding for spacing */
}

.modal-footer {
  border-top: none; /* Remove the default border */
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center; /* Center the buttons */
}

.modal-footer .btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
}

.modal-footer .btn-secondary:hover {
  background-color: #e3461b; /* Change to a slightly darker shade on hover */
}

/* Modal Close Button */
.btn-close {
  color: #e02b2b;
  opacity: 1;
}

.btn-close:hover {
  color: #cccccc;
}

.is-valid {
  border-color: #28a745; /* Green border for valid input */
}

.is-valid ~ .invalid-feedback {
  display: none; /* Hide invalid feedback if valid */
}

/* Styling adjustments for the new donation form layout */
/* Styling adjustments for the new donation form layout */
.donation-options {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem; /* Adds spacing between buttons */
  flex-wrap: wrap; /* Ensures that buttons wrap properly on smaller screens */
}

/* Center the donate container and all content */
.donation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 80vh; /* Ensures the form takes up most of the viewport height */
}

.form_container {
  width: 100%;
  max-width: 600px; /* Center and limit the form container width */
  margin: 0 auto; /* Center horizontally */
}

.btn-group .btn {
  width: auto; /* Let the buttons take natural size or apply flex-grow-1 in HTML */
  padding: 10px;
  font-size: 16px;
  border-radius: 8px; /* Rounded corners for buttons */
  transition: background-color 0.3s ease, transform 0.2s ease;
  flex-grow: 1; /* Ensure they distribute evenly */
  margin-right: 10px; /* Ensure space between buttons */
}

.btn-group .btn:last-child {
  margin-right: 0; /* Remove margin from the last button */
}

.btn-group .btn:hover {
  transform: translateY(-3px); /* Slight lift on hover */
  background-color: var(
    --primary-color
  ); /* Hover color to match primary color */
  color: white;
}

/* Hide the spinner on the custom amount field */
.custom-amount::-webkit-outer-spin-button,
.custom-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-header {
  background-color: #00715d; /* Consistent modal header color */
  color: white;
}

.amount-options {
  display: flex;
  gap: 10px;
}

.amount-btn {
  padding: 10px 20px;
  border: var(--primary-color);
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.amount-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

#customAmount {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 150px;
}

#customAmount.is-invalid {
  border-color: red;
}

#customAmount.is-valid {
  border-color: green;
}

.alert {
  color: red;
  font-size: 14px;
}

.alert.d-none {
  display: none;
}

/* Ensure the form group uses relative positioning */
.form-group {
  position: relative;
}

/* Eye Icon Positioning inside CVV input */
.toggle-cvv-eye {
  position: absolute;
  top: 75%;
  right: 10px; /* Positioned inside the input on the right */
  transform: translateY(-50%); /* Ensures vertical alignment */
  cursor: pointer;
  color: black; /* Color of the eye icon */
  z-index: 1; /* Ensure it's on top of the input */
}

/* Adjust the icon size if needed */
.toggle-cvv-eye i {
  font-size: 18px;
}

/* Make sure the input field has padding on the right to fit the icon */
#cvv {
  padding-right: 40px; /* Add space for the eye icon inside the input */
}

/* Responsive Design for donation layout */

.form-group {
  margin-bottom: 2.5rem; /* Adds spacing between form groups */
}

.donation-type {
  margin-bottom: 1.5rem; /* Adds space between the donation type and the amount */
}

.donation-header {
  text-align: center;
  margin: 0 auto; /* Center the container */
  padding: 20px 0; /* Add some padding for spacing */
}

.donation-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(
    --secondary-color
  ); /* Optional: Make sure the color matches your theme */
}

.donation-header p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color); /* Optional: Use your theme's text color */
}

/* Add these styles to your CSS */

/* Ensure buttons are adjacent */
.button-container {
  display: flex;
  gap: 15px; /* Adds space between the two buttons */
  justify-content: center; /* Centers the buttons in their container */
  margin-top: 20px; /* Optional: Space above the buttons */
}

/* Styling for the Volunteer button */
.volunteer-button {
  background-color: var(
    --secondary-color
  ); /* Make the volunteer button a different color */
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.volunteer-button:hover {
  background-color: var(
    --secondary-color
  ); /* Darken the primary color on hover */
}

/* Add these styles to your CSS */

/* Ensure buttons are adjacent */
.button-container {
  display: flex;
  gap: 15px; /* Adds space between the two buttons */
  justify-content: center; /* Centers the buttons in their container */
  margin-top: 20px; /* Optional: Space above the buttons */
}

/* Styling for the Volunteer button */
.volunteer-button {
  background-color: var(
    --secondary-color
  ); /* Make the volunteer button a different color */
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.volunteer-button:hover {
  background-color: var(
    --secondary-color
  ); /* Darken the primary color on hover */
}

.carousel-image-container {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* This creates a 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
}

.carousel-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom button styles */
.custom-btn-green {
  border: 2px solid var(--primary-color); /* Green border */
  background-color: white; /* Default white background */
  color: var(--primary-color); /* Green text */
  padding: 10px;
  cursor: pointer;
  text-align: center;
  width: 100%; /* Ensure full width */
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 10px;
}

.custom-btn-green:hover {
  background-color: var(--primary-color); /* Green background on hover */
  color: white; /* White text on hover */
}

.custom-btn-green.active,
.custom-btn-green:active {
  background-color: var(--primary-color); /* Green background when active */
  color: white; /* White text when active */
}

/* For donation type buttons */
.btn-check:checked + .custom-btn-green {
  background-color: var(
    --primary-color
  ); /* Primary color background when checked */
  color: white; /* White text when active */
}

.custom-btn-green[type="radio"] + label {
  background-color: white; /* Default white background */
  color: var(--secondary-color); /* Grey text */
  border: 2px solid var(--primary-color); /* Green border */
}

.custom-btn-green[type="radio"]:checked + label {
  background-color: var(--primary-color); /* Green background */
  color: white; /* White text when active */
}

.custom-btn-green[type="radio"]:hover + label {
  background-color: var(--primary-color); /* Green background on hover */
  color: white; /* White text on hover */
}

/* Amount buttons specific styles */
.amount-btn.custom-btn-green {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color); /* Default green */
  background-color: white;
}

.amount-btn.custom-btn-green.active {
  background-color: var(--primary-color); /* Green background when active */
  color: white;
}

.amount-btn.custom-btn-green:hover {
  background-color: var(--primary-color); /* Green background on hover */
  color: white; /* White text on hover */
}

/* Align the selected amount text properly */
.selected-amount-container {
  margin-top: 10px;
  margin-bottom: 10px;
}

#selectedAmount {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  color: #00715d; /* or your primary color */
}

.selected-amount-label {
  font-size: 18px;
  font-weight: normal;
  color: #333; /* or your preferred label color */
}

/* Default Styling for larger screens */
.form_container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Donation buttons default styling */
.custom-btn-green {
  border: 2px solid var(--primary-color);
  background-color: white;
  color: var(--primary-color);
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 10px;
}

.custom-btn-green.active {
  background-color: var(--primary-color);
  color: white;
}

/* Amount buttons default styling */
.amount-btn.custom-btn-green {
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: white;
}

.amount-btn.custom-btn-green.active {
  background-color: var(--primary-color);
  color: white;
}

/* Ensure the donation container stays centered */
.donation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 80vh; /* Ensures the form takes up most of the viewport height */
}

/* Hide the spinner on custom amount input field */
.custom-amount::-webkit-outer-spin-button,
.custom-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-img-container {
  height: 220px;
  overflow: hidden;
}

.card-img-container img {
  height: 100%;
  object-fit: cover;
}

.progress-bar.bg-primary {
  background-color: var(--primary-color) !important;
}

.featured-image-container {
  height: 300px; /* Adjust this value to your desired height */
  overflow: hidden;
}
