@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

.grid {
    background-color: #13272C;
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 1.5rem;
  color: white;
  padding: 50px;
}

.one {
  border: 1px solid rgba(255, 255, 255, 0.196);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.two {
  background-color: #7eda07;
  background-image: url("images/arrow.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.196);
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.three {
  background: #dbe1d2;
  grid-row: span 2;
  border: 1px solid rgba(255, 255, 255, 0.196);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: black;
}
.three img {
  padding-bottom: 8rem;
  max-width: 100%;
  height: auto;
}

.four {
  background-color: #dbe1d2;
  grid-column: span 2;
  border: 1px solid rgba(255, 255, 255, 0.196);
  display: flex;
  justify-content: space-between;
  color: black;
}
.left-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tagsrow {
  display: flex;
  flex-flow: wrap;
  grid-column-gap: 1.5rem;
  grid-row-gap: 1rem;
  color: black;
}

.bodytinyhighlight {
  border: #13272d 1px solid;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.four img {
  max-width: 100%;
  height: auto;
}

.items {
  padding: 20px;
  display: flex;
}

 .mobile.machine {
    display: none;
  }
.first_section {
  padding: 0 5rem;
}

.first_section h1{
    color: #DBE1D2;
    padding: 1rem;
    line-height: 99px;
    font-weight: 400;
    font-size: 5rem;
}

  .first_section p{
    color: #BDFF69;
    padding: 1rem;
    line-height: 114px;
    font-weight: 400;
    font-size: 7.12rem;
  }

@media (max-width: 480px) {
  .tagsrow {
    grid-column-gap: 3px;
  }
  .grid {
    grid-template-columns: 1fr; /* single column stack */
    padding: 0.8rem;
  }

  /* reset all spans on narrow screens */
  .three,
  .four {
    grid-row: auto !important;
    grid-column: auto !important;
  }
  .four {
    flex-direction: column;
  }

  /* increase spacing/padding on small devices if you want */
  .item,
  .three,
  .four {
    padding: 16px;
  }

  .first_section{
   padding: 0rem 1rem !important; 
  }
  .first_section h1 {
    color: #DBE1D2;
    padding: 1rem;
    line-height: 1.8rem;
    font-weight: 400;
    font-size: 1.5rem;
  }
    .first_section p {
    color: #BDFF69;
    padding: 1rem;
    line-height: 1.8rem;
    font-weight: 400;
    font-size: 2rem;
  }

}

@media (min-width: 481px) and (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns (matrix) */
    grid-auto-rows: auto;
  }

  /* Reset spanning on tablet so items flow into 2x2 naturally */
  .three,
  .four {
    grid-row: auto !important;
    grid-column: auto !important;
  }
  .three {
    flex-wrap: wrap;
  }
  .mobile.machine {
    display: initial;
  }
  .desktop_machine {
    display: none;
  }



  .first_section h1 {
    color: #DBE1D2;
    padding: 1rem;
    line-height: 1.8rem;
    font-weight: 400;
    font-size: 1.5rem;
  }
  .first_section p {
    color: #BDFF69;
    padding: 1rem;
    line-height: 1.8rem;
    font-weight: 400;
    font-size: 2rem;
  }
}

.first_section{
    /* padding: 0rem  5rem!important; */
    /* height: 100vh;
    width: 100vw; */
    background-color: #001214;
}


.card-two
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
}

.left-2-box img{
    padding: 2rem;
    background: #DAE1D3;
    border-radius: 2rem;
}
.right-2-box img{
    padding: 2rem;
    background: #DAE1D3;
    border-radius: 2rem;
}



/* Tablet and below */
@media (max-width: 992px) {
    .first_section {
        padding: 3rem 2rem;
    }

    .first_section h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .first_section p {
        font-size: 3rem;
        line-height: 1.2;
    }

    .card-two {
        gap: 2rem;
    }

    .left-2-box img,
    .right-2-box img {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .first_section {
        padding: 2.5rem 1.5rem;
    }

    .first_section h1 {
        font-size: 2.3rem;
        line-height: 1.3;
        padding: 0 0 1.5rem 0;
    }
    .first_section h1 {
        font-size: 2.3rem;
        line-height: 1.3;
        padding: 0 0 1.5rem 0;
    }

    .card-two {
        flex-direction: column;
        gap: 1.5rem;
    }

    .left-2-box,
    .right-2-box {
        width: 100%;
    }

    .left-2-box img,
    .right-2-box img {
        padding: 1.2rem;
        border-radius: 1.25rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .first_section {
        padding: 2rem 1rem;
    }

    .first_section h1 {
        font-size: 2rem;
    }
    .first_section p {
      font-size: 3rem;  
    }


    .left-2-box img,
    .right-2-box img {
        padding: 1rem;
        border-radius: 1rem;
    }
}


/* ----------------- APPROACH SECTION ----------------- */

.approach-section{
    background-color: #DBE1D2;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: #001214;
}

.approach-heading{
    flex-direction: row;
    justify-content: space-between;
}

.approach-heading h1{
    line-height: 99px;
    font-weight: 400;
    font-size: 4rem;
}

.approach-section img {
    height: 25rem;
    justify-self: end;
}

.approach-img {
    justify-self: end;
}

.full-streach{
    grid-column-start: 1;
    grid-column-end: 3;
}

.divider-lines {
    width: 100%;
    background: rgba(0,0,0,0.445);
    height: 1px;
}

.tec-box{
    display: flex;
    flex-direction: row; 
    justify-content: space-around; 
    padding: 50px;
}

/* -------- Responsive Rules for Approach Section -------- */

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    .approach-section {
        padding: 3rem 2rem;
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .approach-heading h1 {
        font-size: 3rem;
        line-height: 1.2;
    }

    .approach-section img {
        height: auto;
        max-width: 100%;
        justify-self: start;
    }

    .full-streach {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .tec-box {
        padding: 30px;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .tec-box h2 {
        font-size: 1.3rem;
    }

    .tec-box p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 100%;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .approach-section {
        padding: 2.5rem 1.5rem;
    }

    .approach-heading h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .tec-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: .75rem;
    }

    .tec-box h2 {
        font-size: 1.1rem;
        margin-bottom: .25rem;
    }

    .tec-box p {
        font-size: .95rem;
    }

    .divider-lines {
        margin: .5rem 0;
    }
}

/* Extra Small (≤ 480px) */
@media (max-width: 480px) {
    .approach-section {
        padding: 2rem 1rem;
    }

    .approach-heading h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .tec-box {
        padding: 16px;
        gap: .6rem;
    }

    .tec-box h2 {
        font-size: 1rem;
    }

    .tec-box p {
        font-size: .9rem;
    }
}
