/* <!-- ================= Section 1================= --> */

.section-1 {
  display: flex;
  align-items: center;
  background: url(/assets/images/hero/home-hero-cover.png),
    linear-gradient(to bottom, #00172a 0%, #001f3c 50%, var(--darkblue) 100%);

  background-size: 48% auto, 100% 100%;
  background-position: calc(100% + 85px) calc(0% - 150px), center center;
  background-repeat: no-repeat;
}

.hero-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding-top: 50px;
}

.hero-btns > * {
  flex: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  max-width: clamp(400px, 29vw, 600px);
}

.header-logo-text .brand-tagline {
  font-size: clamp(14px, 0.833vw, 16px);
  color: var(--secondary-color);
  position: absolute;
  top: clamp(95px, 7.292vw, 140px);
  left: 50%;
  transform: translateX(-50%);
  margin-left: -1px;
}

@media (max-width: 1024px) {
  .section-1 {
    justify-content: center;
    background-size: 70% auto, 100% 100%;
    background-position: calc(100% + 75px) calc(0% - -35px), center center;
  }

  .hero-content {
    max-width: 90%;
    padding-top: 100%;
  }

  .hero-btns {
    width: 70%;
    padding-top: 30px;
  }
}

@media (max-width: 768px) {
  .section-1 {
    gap: 0;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 100%;
  }

  .header-logo-text .brand-tagline {
    top: clamp(80px, 12.37vw, 95px);
  }
}

@media (max-width: 480px) {
  .section-1 {
    gap: 0;
    background-size: 70% auto, 100% 100%;
    background-position: calc(100% + 40px) calc(0% - -35px), center center;
  }

  .hero-btns {
    width: 100%;
  }
}

/* <!-- ================= Section 2&3 ================= --> */

.section-2,
.section-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(40px, 5.208vw, 70px);
  align-items: center;
  background: var(--darkblue);
}

.section-3 {
  grid-template-columns: 1fr 2fr;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.family-kids-icon {
  height: clamp(60px, 5.729vw, 100px);
  margin: clamp(5px, 0.521vw, 10px) 0;
}

.image-container {
  position: relative;
  border-radius: clamp(25px, 2.604vw, 50px);
  overflow: hidden;
  box-shadow: 0 clamp(10px, 1.042vw, 20px) clamp(30px, 3.125vw, 60px)
    rgba(0, 0, 0, 0.4);
}

.image-container img {
  width: 100%;
  height: clamp(300px, 56.94vh, 615px);
  display: block;
  object-fit: cover;
}


@media (max-width: 1024px) {
  .section-2,
  .section-3 {
    grid-template-columns: 1fr;
    min-height: max-content;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .section-3 .image-container {
    order: 1;
  }

  .section-3 .section-content {
    order: 2;
  }

  .image-container img {
    height: clamp(250px, 45vh, 400px);
  }

}

@media (max-width: 768px) {
  .image-container {
    border-radius: clamp(20px, 2.6vw, 35px);
  }

  .image-container img {
    height: clamp(200px, 40vh, 350px);
  }
}

@media (max-width: 480px) {
  .image-container {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .image-container img {
    height: clamp(180px, 35vh, 280px);
  }

}

/* <!-- ================= Section 4================= --> */
.section-4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(50px, 5.208vw, 100px);
  background: url(/assets/svg/waves-with-boat-and-pot.svg), var(--darkblue);
  background-size: auto 60vh, contain;
  background-repeat: repeat-x, no-repeat;
  background-position: center bottom;
}

.update-section {
  max-width: clamp(600px, 65.104vw, 1250px);
  width: 100%;
}

.firework-icon {
  width: clamp(130px, 12.5vw, 240px);
  height: auto;
  border-radius: 10px;
}

.update-content {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.042vw, 20px);
}

.update-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(5px, 0.521vw, 10px);
  gap: clamp(10px, 1.042vw, 20px);
  flex-wrap: wrap;
}

.update-date {
  font-size: clamp(12px, 0.833vw, 16px);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.view-all-link {
  color: white;
  text-decoration: underline;
  font-size: clamp(12px, 0.833vw, 16px);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.view-all-link:hover {
  opacity: 0.8;
}

/* Committed Section */
.committed-section {
  max-width: clamp(500px, 52.083vw, 1000px);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 3.125vw, 60px) clamp(15px, 1.042vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 2.2vw, 40px);
}

.committed-goal {
  color: var(--pink);
  font-weight: 500;
  display: block;
}

/* Responsive Design */
@media (max-width: 1366px) {
  .update-section {
    max-width: clamp(550px, 73vw, 1100px);
  }

  .committed-section {
    max-width: clamp(450px, 58.5vw, 900px);
  }
}

@media (max-width: 1024px) {
  .section-4 {
    gap: clamp(40px, 5.86vw, 60px);
  }

  .section-card {
    grid-template-columns: 1fr;
    padding: clamp(30px, 3.9vw, 40px);
    text-align: center;
  }

  .firework-icon {
    margin: 0 auto;
  }

  .update-footer {
    gap: clamp(10px, 1.95vw, 15px);
  }

  .update-section,
  .committed-section {
    max-width: 95%;
  }

  .family-kids-icon {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .section-4 {
    gap: clamp(20px, 5.21vw, 40px);
  }

  .section-card {
    padding: clamp(20px, 5.2vw, 30px);
  }

  .committed-section {
    gap: 20px;
  }
}

/* <!-- ================= Section 5 ================= --> */

.section-5 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: clamp(30px, 3.125vw, 60px);
  margin-top: clamp(100px, 10.416vw, 200px);
  background: linear-gradient(
      to bottom,
      #002c53 0%,
      rgba(0, 44, 83, 0.3) 25%,
      rgba(0, 44, 83, 0.3) 75%,
      #002c53 100%
    ),
    url(/assets/images/donate-bg-girls.jpg) center / cover no-repeat;
  border-bottom: 1px solid transparent;
}

/* Action Cards Grid */
.action-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(30px, 2.865vw, 55px);
  /* padding: 0 clamp(20px, 2.1vw, 40px); */
}

.action-card {
  padding: clamp(20px, 1.563vw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 1.563vw, 30px);
  border-radius: clamp(10px, 0.781vw, 15px);
  transition: all 0.3s ease;
  background: transparent;
}

.action-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1366px) {
  .action-cards {
    gap: clamp(25px, 3.22vw, 50px);
  }
}

@media (max-width: 1200px) {
  .action-cards {
    grid-template-columns: repeat(2, 1fr);
    /* padding: 0 clamp(20px, 2.5vw, 30px); */
    /* max-width: 90%; */
    gap: clamp(25px, 3.33vw, 40px);
  }
}

@media (max-width: 1024px) {
  .section-5 {
    padding: clamp(60px, 7.81vw, 80px) 6% clamp(40px, 5.86vw, 60px);
  }

  .protect-page .section-5 {
    margin-top: 0;
  }

  .action-cards {
    gap: clamp(20px, 2.93vw, 30px);
  }

  .action-card {
    padding: clamp(18px, 2.34vw, 24px);
  }
}

@media (max-width: 768px) {
  .section-5 {
    /* padding: clamp(60px, 10.42vw, 80px) clamp(15px, 2.6vw, 20px)
      clamp(40px, 7.81vw, 60px); */
    /* background-attachment: scroll; */
  }

  .action-cards {
    padding: 5px;
    max-width: 95%;
  }

  .action-card {
    padding: clamp(20px, 3.26vw, 25px);
  }
}

@media (max-width: 480px) {
  .action-cards {
    grid-template-columns: 1fr;
  }

  .section-5 {
    padding: clamp(60px, 10.42vw, 80px) 20px clamp(40px, 7.81vw, 60px);
  }
}

/* <!-- ================= Section 6 ================= --> */
.section-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: clamp(50px, 5.208vw, 100px);
  gap: clamp(20px, 2.604vw, 50px);

  background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 50%,
      var(--lightgrey) 95%
    ),
    url(/assets/svg/white-curve-lines.svg),
    linear-gradient(to bottom, var(--darkblue), var(--lightgrey));

  background-size: cover, auto 50vh, cover;
  background-repeat: no-repeat, repeat-x, no-repeat;
  background-position: top center, bottom, bottom center;

}

.candid-icon {
  width: clamp(150px, 15.625vw, 300px);
  height: auto;
  margin-top: clamp(30px, 2.604vw, 50px);
}

/* <!-- ================= Section 7 ================= --> */

.section-7 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(80px, 9.375vw, 180px);
  background: var(--lightgrey);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(40px, 4.167vw, 80px);
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.company-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.full-width-section7 {
  width: 100%;
  text-align: center;
  color: var(--primary-color);
}

@media (max-width: 1200px) {
  .companies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .section-7 {
    /* padding: clamp(40px, 5.86vw, 60px) clamp(20px, 2.93vw, 30px); */
    gap: clamp(60px, 8.79vw, 90px);
  }

  .companies-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .section-7 {
    gap: clamp(40px, 6.51vw, 50px);
  }

  .companies-grid {
    /* grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3.26vw, 25px);
    min-width: 120px;
    place-items: center; */

    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    place-items: center;
  }

  .company-card {
    /* padding: clamp(15px, 2.6vw, 20px); */
    width: 100%;
    max-width: 170px;
    padding: 10px;
  }

  .company-image {
    max-height: clamp(60px, 16vw, 120px);
  }
}

/* <!-- ================= Section 8 ================= --> */
.section-8 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(80px, 9.375vw, 180px);
  background: var(--lightgrey);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 1.563vw, 30px);
  width: 100%;
  padding: 0 clamp(25px, 2.6vw, 50px);
}

.story-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.042vw, 20px);
}

.story-image {
  width: 100%;
  height: clamp(200px, 15.6vw, 300px);

  object-fit: cover;
  border-radius: clamp(25px, 2.604vw, 50px);
  transition: transform 0.3s ease, filter 0.3s ease;
  box-shadow: 0 clamp(5px, 0.521vw, 10px) clamp(20px, 2.083vw, 40px)
    rgba(0, 0, 0, 0.2);
}

.about-content {
  padding: clamp(10px, 1.042vw, 20px) clamp(5px, 0.521vw, 10px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.521vw, 10px);
}

.about-title {
  font-size: clamp(18px, 1.2vw, 25px);
  line-height: 1.4;
  color: #0a3d5f;
  font-weight: 500;
  transition: color 0.3s ease;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1366px) {
  .stories-grid {
    gap: clamp(18px, 2.2vw, 28px);
  }

  .story-image {
    height: clamp(180px, 16.4vw, 260px);
  }

  .story-title {
    font-size: clamp(17px, 1.46vw, 23px);
  }
}

@media (max-width: 1024px) {
  .section-8 {
    padding: clamp(40px, 5.86vw, 60px) clamp(15px, 1.95vw, 20px);
    gap: clamp(60px, 8.79vw, 90px);
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.93vw, 30px);
  }

  .story-image {
    height: clamp(180px, 23.44vw, 240px);
  }

  .story-title {
    font-size: clamp(16px, 1.95vw, 22px);
  }
}

@media (max-width: 768px) {
  .section-8 {
    padding: clamp(60px, 10.42vw, 80px) clamp(15px, 2.6vw, 20px)
      clamp(40px, 7.81vw, 60px);
    gap: clamp(40px, 6.51vw, 50px);
  }

  .story-image {
    border-radius: clamp(20px, 2.6vw, 35px);
    /* aspect-ratio: 16 / 7;
        height: auto; */
  }
}

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