body {
  font-family: "poppins";
  margin: 0;
  overflow-x: hidden;
  padding-top: 66px;
}

html {
  overflow-x: hidden;
}

#top-section, #middle-section {


  h1,
  p {
    font-family: Poppins;
    font-size: 32px;
    font-weight: 600;
    line-height: 42px;
    text-align: center;
    color: #0F3B4D;
    text-transform: uppercase;
  }
  

  p,
  li {
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    font-style: italic;

  }

  img {
    width: 100%;
    height: auto;
  }

}
.banner {
  position: relative;
  bottom: 0;
  background-color: #0F3B4D;
  min-height: 219px;
  padding: 1rem 8rem;

  img {
    width: 49%;
    align-self: end;
  }
  .bgImg {
    position: relative;
  }

  h1 {
    font-family: Poppins;
    font-size: 44px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: 1px;
    color: #A3CD39;
    text-align: left;
    text-transform: uppercase;
  }

  p {
    color: #ffffff;
  }

  button {
    width: 206px;
    height: 53px;
    border-radius: 8px;
    font-family: Poppins;
    font-size: 24px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
    color: #0F3B4D;
    background-color: #A3CD39;
    border: none;
    text-transform: uppercase;
  }

  button:hover {
    background-color: #89B231;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
}

.bg {
  position: relative;

  .banner {
    background-color: rgba(15, 59, 77, 0.8);
    position: absolute;
    bottom: 0;
    z-index: 2;
    width: 100%;
    min-height: 219px;
    padding: 1rem 8rem;
    animation: slideInFromRight 1.5s ease-in-out;

    h1 {
      font-family: Poppins;
      font-weight: 600;
      line-height: 42px;
      font-size: 44px;
      color: #A3CC39 !important;
    }
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}





#bottom-section {

  img {
    width: 100%;
    height: auto;
  }

  display: flex;
  flex-direction: column;
  align-items: center;
  background: #A3CD3933;
  padding: 5rem 0rem;

  p,
  h1 {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 400;
    line-height: 27px;
    letter-spacing: 1px;
    text-align: center;
    color: #0F3B4D;
    text-transform: uppercase;
  }

  h1 {

    font-size: 32px;
    font-weight: 600;
    line-height: 42px;
    text-align: center;

  }

  p {
    max-width: 45rem;
  }


  .card-image img {
    width: 239px;
    height: 152px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;

  }

  .card-content {
    position: relative;
    width: 239px;
    height: 221px;
    border-radius: 12px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px 16px;
    margin-top: -16px;
    z-index: 1;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
  }

  .card-content:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px);
  }

  .card-content h3 {
    font-family: Poppins;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    color: #0F3B4D;
    transition: color 0.3s ease;
  }

  .card-content:hover h3 {
    color: #A3CC39;
  }


  .card-content .tag {
    font-size: 14px;
    font-weight: 500;
    color: #A3CC39;
    text-align: left;
  }


  .card-content .description {
    font-family: Poppins;
    font-size: 8px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 1px;
    text-align: left;
    color: #0F3B4D;
  }


  .card-content .date {
    font-family: Poppins;
    font-size: 8px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 1px;
    text-align: left;
    color: #A3CC39;
  }


  .view-all {
    font-family: Poppins;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: #0F3B4D;
    color: #A3CD39;
    width: 226px;
    height: 40px;
    border-radius: 4px;
    margin-top: 15px;
    text-transform: capitalize;
  }

  .view-all:hover {
    background: #0D2F3E;
    /* Slightly darker shade for hover */
    color: #FFFFFF;
    /* Change text color to white */
    cursor: pointer;
    /* Pointer cursor to indicate interactivity */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for hover effect */
    transition: all 0.3s ease;
    /* Smooth transition */
  }

  .view-all:active {
    background: #0B2735;
    /* Even darker shade for active state */
    color: #A3CD39;
    /* Restore original text color */
    transform: scale(0.98);
    /* Slightly shrink the button on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Reduce shadow for active state */
  }

}


/* Responsive design for small screens */
@media (max-width: 768px) {
  .banner {
    padding: 1.5rem;
    /* display: flex; */
    align-items: end;
    min-height: auto;
  
      h1 {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 1rem;
      }

      p {
        font-size: 12px;
        line-height: 16px;
        margin-bottom: 0.5rem;
      }

      .d-flex span {
        font-size: 10px;
        padding: 0.2rem 0.5rem;
        line-height: 14px;
      }
    
      button {
        width: 120px;
        height: 45px;
        font-size: 16px;
        line-height: 20px;
        padding: 0.5rem;
      }
  }

  .bg {
    .banner {
      padding: 0.5rem;
      display: flex;
      align-items: end;
      min-height: auto;
    }
  }

  #top-section {
    h1 {
      font-size: 28px;
      line-height: 32px;
    }

    button {
      width: 120px;
      font-size: 16px;
      line-height: 20px;
      padding: 0.5rem;
    }
  }

  #bottom-section {

    h1 {
      font-size: 20px;
      line-height: 24px;
      margin-bottom: 1rem;
    }

    p {
      font-size: 12px;
      line-height: 16px;
      margin-bottom: 0.5rem;
    }

    .flex {
      flex-direction: column;
    }

  }
}


@media (max-width: 480px) {
  .bg {
    .banner {
      display: flex;
      align-items: end;
      min-height: auto;

      img {
        width: 80%;
      }
    }
  }

  #top-section {
    h1 {
      font-size: 16px;
      line-height: 20px;
    }


    button {
      width: 100px;
      font-size: 14px;
      line-height: 18px;
      padding: 0.4rem;
    }
  }


  #bottom-section {

    h1 {
      font-size: 18px;
      line-height: 22px;
      margin-bottom: 0.8rem;
    }

    p {
      font-size: 10px;
      line-height: 14px;
      margin-bottom: 0.4rem;
    }

    .flex {
      flex-direction: column;
    }

  }

}




.card-container {
  opacity: 0;
  /* Start hidden */
  transform: translateX(0);
  /* Reset any transforms after animation */
  animation-duration: 5s;
  animation-fill-mode: forwards;
  /* Retain final animation state */
}


.slide-in-left {
  animation-name: slideInLeft;
}


.slide-in-right {
  animation-name: slideInRight;
}


@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


main {
  min-height: 100%;
}