:root {
  --primary-blue: #074e8c;
  --light-blue: #e5f0f9;
  --text-dark: #1a1a1a;
  --dark-blue: #1a4a73;
  --teal: #067577;
  --teal-dark: #044c4e;
  --teal-gradient-start: #1d9097;
  --teal-gradient-end: #092f31cc;
}

/* Header Styles */
.header {
  text-align: center;
  color: #0f395c;
  margin: 3rem auto 3rem;
}

.header h1 {
  font-weight: 700;
  font-size: 46px;
}

/* Grid Container for Cards */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 910px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%; /* Make all cards the same height */
}

.card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-content {
  padding: 20px 20px 30px 20px;
  background-color: #e6f0f9;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: var(--dark-blue);
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

/* List Styles */
ul {
  list-style-position: inside;
  margin-left: 5px;
  padding-left: 0rem;
}

.card-content li {
  color: var(--dark-blue);
  font-size: 16px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 5px;
}

.card-content li::marker {
  content: "• ";
  color: var(--dark-blue);
  font-weight: bold;
}

.card-content p:last-child,
.card-content ul:last-child,
.card-content li:last-child {
  margin-bottom: 0;
}

/* Features Grid Styles */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 29px;
  margin: 4rem auto;
  max-width: calc(950px + 29px); /* 475px * 2 + 29px gap */
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-card {
  position: relative;
  width: 475px;
  height: 305px;
  padding: 30px 20px 20px 20px;
  margin-top: 45px;
  display: flex;
  flex-direction: column;
  background-color: #9fccf180;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-card img {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
}

.text-card .subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.text-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.text-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.text-card ul li:last-child {
  margin-bottom: 0;
}

.text-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
}

/* Wave Section Styles */
.wave-container {
  height: 1380px;
  margin-top: 5rem;
}

#waveSection {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.3) 80%,
      rgba(255, 255, 255, 0.7) 90%,
      rgba(255, 255, 255, 1) 100%
    ),
    url("/static/images/about_us/wave-image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  width: 100%;
  color: white;
  background-blend-mode: normal;
}

/* About Section Styles */
.about-section {
  text-align: center;
  margin: 0;
  padding: 4rem 0;
  position: relative;
  z-index: 3;
}

.about-section h1 {
  margin-top: 7rem;
  color: #0f395c;
  font-weight: bold;
}

.image-with-text {
  display: flex;
  margin: 3rem auto;
  justify-content: center;
  gap: 2.5rem;
}

.image-aboutus {
  padding: 30px 50px 30px 40px;
  border-radius: 10px;
  width: 200px;
  height: 200px;
  box-shadow: 0px 4px 50px 0px #0f395c4d;
  background-color: #f9f9f9;
}

.title {
  margin: 15px auto;
  color: var(--teal);
}

.about-us-description {
  width: 70%;
  margin: 0 auto;
  color: var(--teal-dark);
}

.about-us-description h2 {
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 42px;
  text-align: center;
  line-height: 55px;
  color: #1a629e;
}

.about-us-description p {
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 26px;
  line-height: 30px;
}

.description {
  margin-bottom: 5rem;
}

.text {
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 20px;
  line-height: 24px;
}

/* Button Styles */
.btn-class {
  display: flex;
  justify-content: center;
}

#buildMyCampaign-1 {
  color: white;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  margin-top: auto;
  align-self: center;
  width: 30%;
  transition: background 0.3s ease, transform 0.2s ease;
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 0.8) 100%);
  border-color: unset;
}

#buildMyCampaign-1:hover {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 1) 100%);
  transform: scale(1.05);
}

.wave-container .dropdown-menu {
  background: #1d9097;
  border-radius: 8px; /* Rounded corners for the dropdown */
  padding: 10px 0; /* Padding around the menu */
  width: 200px;
}

.wave-container .btn-group a {
  text-decoration: none;
  color: white;
  margin: 0 10px;
  padding: 5px 15px;
  display: block; /* Make the link take up full width */
  transition: background 0.3s ease;
}

.wave-container .btn-group a:hover {
  color: #0f395c;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .text-card {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-top: 30px;
  }

  .text-card img {
    width: 50px;
    height: 50px;
    top: -40px;
  }

  .text-card .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .text-card ul li {
    font-size: 0.95rem;
  }

  .image-with-text {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .text-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 25px 15px;
    margin-top: 20px;
  }

  .text-card img {
    width: 50px;
    height: 50px;
    top: -35px;
  }

  .text-card .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .text-card ul li {
    font-size: 0.9rem;
  }

  .image-with-text {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .about-us-description {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .text-card .subtitle {
    font-size: 1rem;
  }

  .text-card ul li {
    font-size: 0.85rem;
  }

  .about-us-description {
    width: 90%;
  }
}
