* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Public Sans", serif;
}

:root {
  font-size: 14px;
  --colorPrimary: #105693;
  --colorSecondary: #faa61a;
}

body {
  background-color: var(--colorPrimary);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
}

/* ================= HEADER ================= */
header {
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  .logo img {
    width: auto;
  }

  .headerRight {
    display: flex;
    align-items: center;
    column-gap: 1rem;

    img {
      height: 3rem;
      width: 3rem;
    }

    p {
      font-size: 1.2rem;
      color: var(--colorPrimary);
    }

    button {
      min-width: 130px;
      border-radius: 9999px;
      background-color: var(--colorSecondary);
      padding: 0.6rem 1rem;
      border: none;
      color: #fff;
      font-size: 1rem;
    }
  }
}

/* ================= MAIN ================= */
main {
  margin-top: 6rem;
  width: 100%;
  background-color: #fff;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  row-gap: 3rem;

  /* ========== HERO SECTION ========== */
  .heroPage {
    display: flex;
    position: relative;
    border-top: 1px solid var(--colorPrimary);

    .carousel {
      width: 100%;
      background-color: #fff;

      .slides {
        display: flex;
        padding: 1rem;
        transition: transform 0.5s ease-in-out;
      }

      .slidesMobile {
        display: none;
        transition: transform 0.5s ease-in-out;
      }

      img {
        width: 100%;
        height: auto;
        border-radius: 1rem;
      }
    }

    .actionDiv {
      position: absolute;
      top: 2rem;
      right: 2rem;
      width: 25%;
      background-color: var(--colorPrimary);
      border-radius: 2rem;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      row-gap: 1rem;

      .heading {
        color: #fff;
        font-size: 1.5rem;
        text-align: center;
      }

      input,
      select {
        padding: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 1rem;
        border: none;
        font-size: 1rem;
      }

      button {
        background-color: var(--colorSecondary);
        color: #fff;
        border: none;
        border-radius: 9999px;
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
      }
    }
  }

  /* ========== STEP SECTION ========== */
  .divStep {
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 2rem;
    flex-wrap: wrap;
    gap: 2rem;

    .step {
      flex: 1 1 200px;
      text-align: center;
    }

    img {
      width: 100%;
      height: auto;
      border-radius: 1rem;
    }

    p.caption {
      font-size: 1.3rem;
      color: var(--colorPrimary);
      font-weight: bold;
    }
  }

  /* ========== GOLD LOAN CALCULATOR ========== */
  .glc {
    display: flex;
    align-items: center;
    padding: 4rem 8rem;
    border-top: 10px solid var(--colorPrimary);
    flex-wrap: wrap;

    .glcLeft,
    .glcRight {
      flex: 1 1 0;
      background-color: #fff;
      width: 100%;
    }

    .glcLeft img {
      width: 100%;
      height: auto;
      border-radius: 2rem;
    }

    .calc {
      display: flex;
      flex-direction: column;
      align-items: center;
      row-gap: 1rem;
      width: 100%;

      input {
        padding: 1rem;
        border-radius: 9999px;
        border: 1px solid #ddd;
        text-align: center;
        font-size: 1rem;
        width: 70%;
      }

      .output {
        font-size: 1.5rem;
        font-weight: 500;
      }
    }
  }

  /* ========== PERSONAL LOAN SECTION ========== */
  .plc {
    background-color: var(--colorPrimary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4rem 8rem;
    gap: 2rem;

    .plcLeft,
    .plcRight {
      flex: 1 1 0;
    }

    .plcLeft img {
      width: 100%;
      height: auto;
      border-radius: 1rem;
    }

    .plcRight {
      text-align: center;

      h1 {
        color: #fff;
        font-size: 2rem;
      }

      input {
        width: 60%;
        border-radius: 9999px;
        border: 1px solid #ddd;
        padding: 1rem;
        margin: 1rem 0;
        font-size: 1.2rem;
      }

      button {
        background-color: var(--colorSecondary);
        color: #fff;
        padding: 1rem 2rem;
        border: none;
        border-radius: 2rem;
        font-size: 1.1rem;
        text-transform: uppercase;
      }
    }
  }

  /* ========== ABOUT SECTION ========== */
  .aboutPennyWrapper {
    background-color: var(--colorPrimary);
    padding: 3rem 1rem;

    .aboutPenny {
      background-color: var(--colorSecondary);
      width: 60%;
      margin: 0 auto;
      padding: 2rem;
      border-radius: 2rem;
      text-align: center;

      p.heading {
        color: #fff;
        font-size: 2rem;
        margin-bottom: 1rem;
      }

      p.desc {
        color: #fff;
        font-size: 1.1rem;
        line-height: 1.8;
      }
    }
  }
}

/* ========== FOOTER ========== */
footer {
  background-color: #fff;
  color: #333;
  text-align: center;
  padding: 40px 20px 20px;
  border-top: 2px solid var(--colorSecondary);

  .footer-logo img {
    width: 180px;
    margin-bottom: 20px;
  }

  .footer-links {
    a {
      color: #333;
      text-decoration: none;
      margin: 0 8px;
      font-weight: 500;

      &:hover {
        color: var(--colorSecondary);
      }
    }
  }

  .social-icons {
    a {
      display: inline-block;
      background-color: var(--colorSecondary);
      color: #fff;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      line-height: 32px;
      text-align: center;
      margin: 0 5px;
      font-size: 14px;
      transition: 0.3s ease;

      &:hover {
        background-color: #333;
      }
    }
  }

  .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    border-top: 1px solid var(--colorSecondary);
    border-bottom: 1px solid var(--colorSecondary);
    padding: 20px 0;

    .contact-box {
      flex: 1 1 250px;
      margin: 10px;

      i {
        color: var(--colorSecondary);
        font-size: 28px;
      }
    }
  }

  .footer-regions {
    h3 {
      color: var(--colorSecondary);
    }

    a {
      color: #333;
      text-decoration: none;
      margin: 0 5px;

      &:hover {
        color: var(--colorSecondary);
      }
    }
  }

  .footer-bottom {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
  }
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  main {
    .heroPage {
      .actionDiv {
        position: relative;
        width: 80%;
        margin: 1rem auto;
        top: 0;
        right: 0;
      }
    }

    .divStep {
      padding: 2rem;
    }

    .aboutPennyWrapper .aboutPenny {
      width: 80%;
    }

    .glc,
    .plc {
      padding: 2rem;
    }

    .plc .plcRight input {
      width: 80%;
    }
  }
}

@media (max-width: 600px) {
  :root {
    font-size: 12px;
  }

  header {
    padding: 1rem;

    .headerRight p {
      display: none;
    }
  }

  main {
    .heroPage {
      flex-direction: column;

      .carousel {
        .slides {
          display: none;
        }

        .slidesMobile {
          display: flex;
        }
      }

      .actionDiv {
        width: 90%;
      }
    }

    .divStep {
      flex-direction: column;
      align-items: center;
    }

    .glc {
      flex-direction: column;
      row-gap: 2rem;

      .glcRight {
        .calc {
          input {
            width: 100%;
          }
        }
      }
    }

    .plc {
      flex-direction: column;

      .plcRight input {
        width: 90%;
      }
    }

    .aboutPennyWrapper .aboutPenny {
      width: 90%;
    }

    .calc input {
      width: 90%;
    }
  }

  footer {
    font-size: 13px;
  }
}
