@import "./common-var.css";

/* ============================================================
   Banner Section — Investor Relations Hero
   ============================================================ */

.banner-section {
  position: relative;
  background: #164c4f;
  overflow: hidden;
  padding: 120px 0;
  height: 78vh;

  @media (max-width: 1440px) {
    height: 82vh;
  }
  @media (max-width: 992px) {
    padding: 80px 0;
    height: 100vh;
  }

  @media (max-width: 576px) {
    padding: 60px 0;
  }

  /* LEFT CURVE SHAPE */
  &::after {
    content: "";
    position: absolute;
    width: 624px;
    height: 624px;
    background: #1f5d55;
    border-radius: 50%;
    bottom: -300px;
    left: -250px;
    z-index: 0;

    @media (max-width: 992px) {
      width: 420px;
      height: 420px;
      bottom: -150px;
      left: -150px;
    }
  }
  .custom-banner-subttle{
    position: relative;
    padding-left: 20px;
    &::before{
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      transform: translateY(-50%);
      display: block;
      width: 15px;
      height: 1px;
      background-color: var(--secondary-color);
    }
  }

  /* CONTAINER */
  .banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    height: 100%;

    @media (max-width: 991px) {
      
      gap: 40px;
    }
  }

  /* LEFT CONTENT */
  .banner-content {
    max-width: 520px;
    
    p {
      color: var(--secondary-color);
      font-size: 14px;
      letter-spacing: 1px;
    }

    .banner-heading {
      color: var(--grey);
      font-size: 88px;
      font-weight: 800;
      line-height: 1.05;

      @media (max-width: 1400px) {
        font-size: 72px;
      }

      @media (max-width: 992px) {
        font-size: 58px;
      }

      @media (max-width: 576px) {
        font-size: 42px;
      }
    }
  }

  /* CENTER TRANSPARENT LOGO */
  .banner-bg-logo {
    position: absolute;
    left: 53%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;

    @media (max-width: 991px) {
      position: absolute;
      top: 15%;
    }
    @media (max-width: 576px) {
      position: absolute;
      top: 12%;
    }

    svg {
      width: 220px;
      height: 220px;
    }
  }

  .banner-bg-image {
    position: absolute;
    right: -13%;
    top: -200px;
    width: 656px;
    height: 656px;
    border-radius: 50%;
    overflow: hidden;

    @media (max-width: 1660px) {
      width: 440px;
      height: 440px;
      top: -60px;
      right: -5%;
    }
    @media (max-width: 1440px) {
      width: 440px;
      height: 440px;
      top: -90px;
    }

    @media (max-width: 1200px) {
      width: 380px;
      height: 380px;
      top: -50px;
    }

    @media (max-width: 992px) {
      position: absolute;
      top: auto;
      margin: 0 auto;
      right: -38px;
      bottom: -160px;
    }

    @media (max-width: 576px) {
      width: 260px;
      height: 260px;
      top: auto;
      right: 22px;
      bottom: -100px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

[dir="rtl"] {
  .banner-section {
    &::after {
      left: auto;
      right: -250px;

      @media (max-width: 992px) {
        right: -150px;
      }
    }

    .custom-banner-subttle{
      padding-left: unset;
      padding-right: 20px;
      &::before{
        left: unset;
        right: 0;
      }
    }

    /* TEXT ALIGN */
    .banner-content {
      text-align: right;
    }

    /* CENTER LOGO FIX */
    .banner-bg-logo {
      left: 50%;
      transform: translate(-50%, -50%);

      svg {
        transform: scaleX(-1);
      }
    }

    /* IMAGE (MOST IMPORTANT FIX) */
    .banner-bg-image {
      right: auto;
      left: -12%;

      @media (max-width: 1660px) {
        left: -5%;
        right: auto;
      }
      @media (max-width: 992px) {
        right: 0;
        left: -38px;
      }

      @media (max-width: 576px) {
        right: 0;
        left: 22px;
      }
    }
  }
}
