@import url('../../commons/blocks/quick-cards/quick-cards.css');

.quick-cards-container {
  background: var(--tertiary-white);
  padding-top: 40px;
  padding-bottom: 16px;
  &:has(.two-cards) {
    padding-top: 40px;
    padding-bottom: 16px;

    @media (width >=1024px) {
      padding-top: 80px;
      padding-bottom: 15px;
    }
  }

  .quick-cards-wrapper {
    .quick-cards {
      .card {
        .quick-cards-block {
          background: var(--tertiary-white);
          padding: 16px 23px 24px 16px;
          border: 1px solid var(--light-grey-shade-5);
          margin-bottom: 16px;
          position: relative;
          display: flex;
          flex-direction: column;

          @media (width < 768px) {
            .card:last-child & {
              margin-bottom: 0;
            }
          }

          .quick-heading {
            color: var(--secondary-black);
            font-family: var(--body-font-arena);
            margin-bottom: 8px;
            height: unset;
            font-size: 1.5rem;
            line-height: 1.875rem;
            font-weight: var(--fw-600);
            display: block;

            @media (width >=1024px) {
              margin-bottom: 12px;
              font-size: 2rem;
              line-height: 2.5rem;
              flex: 1;
            }
          }

          .quick-text {
            margin: 0 0 16px;
            font-size: 0.75rem;
            font-weight: 300;
            line-height: 20px;

            @media (width >=1024px) {
              color: var(--tertiary-black);
              width: 400px;
              margin-bottom: 24px;
              font-size: 14px;
            }
          }

          .quick-btn {
            width: fit-content;
            padding: 8px 16px;
            color: var(--primary-blue-700);
            font-size: 0.875rem;
            line-height: 1.125rem;
            height: 34px;
            min-width: 134px;
            border: 1px solid var(--primary-blue-700);
            margin-top: auto;
            
            &:hover {
              background: var(--primary-blue-900);
              color: var(--secondary-gray-10);
            }
            @media (width >=1024px) {
              padding: 12px 24px;
              height: 42px;
            }
          }

          @media (width >=1024px) {
            padding: 24px;
            margin-bottom: 0;
          }
        }
      }
    }
  }

  &::before {
    display: none;
  }
}

.quick-cards-section.dark {
  .g-container {
    padding: 0 24px;
    @media (width >=1024px) {
    padding: 0 56px;
    }
  }

  .quick-cards-wrapper .g-row.justify-content-space-between {
    display: flex;
    flex-direction: column;

  }
  .quick-cards-row:not(.two-cards) {
    flex-direction: row;
    .card {
      width: 296px;
      min-height: 251px;
      .quick-cards-block {
        width: 296px;
        margin-top: 16px;
        padding: 24px 24px 20px;
        margin-bottom: 0;
        min-height: 232px;
        background: linear-gradient(359deg, rgba(225, 95, 103, 0.10) -48.53%, rgba(255, 255, 255, 0.10) 43.7%);

        .quick-heading{
          min-height: 58px;
          @media (width >=1024px) {
            margin-bottom: 16px;
            font-size: 24px;
            line-height: normal;
            font-weight: var(--fw-600);
            letter-spacing: 0;
          }
        }
        .quick-text{
          color: var(--secondary-black);
          line-height: 20px;
          margin-bottom: 16px;
          font-family: var(--body-font-arena);
          width: 249px;
          min-height: 40px;
          font-size: 14px;
          font-weight: 300;

          @media (width >=1024px) {
            margin-bottom: 32px;
            font-size: 16px;
          }
        }
        .quick-btn{
          padding: 8px 16px;
          color: var(--secondary-gray-20);
          background: var(--primary-blue-700);
          height: 34px;
          &:hover {
            background: var(--primary-blue-900);
            color: var(--secondary-gray-10);
          }
          @media (width >=768px) {
            padding: 12px 24px;
            height: 42px;
          }
        }
        @media (width >=1024px) {
          margin-top: 34px;
          padding: 24px 24px 20px;
          width: 295px;
          height: 255px;
        }
      }
      @media (width >=1024px) {
        width: 295px;
      }
      @media (width >=1366px) {
        width: calc(25% - 18px);
        .quick-cards-block {
          width: 100%;
        }
      }
    }
    .card:nth-child(1) {
      border-bottom: 4px solid var(--accent-colours-vibrant-sections-1);
      .quick-cards-block {
        background: linear-gradient(359deg, rgba(252, 190, 98, 0.10) -48.53%, rgba(255, 255, 255, 0.10) 43.7%);
      }
    }

    .card:nth-child(2) {
      border-bottom: 4px solid var(--accent-colours-vibrant-sections-2);/* Customize color */
      .quick-cards-block {
        background: linear-gradient(359deg, rgba(57, 139, 215, 0.10) -48.53%, rgba(255, 255, 255, 0.10) 43.7%);
      }
    }

    .card:nth-child(3) {
      border-bottom: 4px solid var(--accent-colours-vibrant-sections-3);/* Customize color */
      .quick-cards-block {
        background: linear-gradient(359deg, rgba(0, 188, 164, 0.10) -48.53%, rgba(255, 255, 255, 0.10) 43.7%);
      }
    }

    .card:nth-child(4) {
      border-bottom:  4px solid var(--accent-colours-vibrant-sections-4); /* Customize color */
      .quick-cards-block {
        background: linear-gradient(359deg, rgba(225, 95, 103, 0.10) -48.53%, rgba(255, 255, 255, 0.10) 43.7%);
      }
    }
  }

  .heading {
    color: var(--secondary-black);
    width: 200px;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: normal;
    margin-bottom: 8px;
    font-family: var(--body-font-arena);
    text-transform: capitalize;
    letter-spacing: normal;
    margin-top: 0;
    @media (width >=768px) {
      width: fit-content;
    }
    @media (width >=1024px) {
      width: 459px;
      font-size: 2rem;
      margin-bottom: 16px;
    }
  }

  .description {
    width: 242px;
    color: var(--secondary-black);
    @media (width >=768px) {
      width: fit-content;
    }
    @media (width >=1024px) {
      width: 424px;
      font-size: 0.875rem;
    }
  }
}

