/**************************/
/* Billify */
/**************************/

.container {
    max-width: 120rem;
    padding: 0 3.2rem;
    margin: 0 auto;
}

.grid {
    display: grid;
    column-gap: 6.4rem;
    row-gap: 9.6rem;
}

.grid:not(:last-child) {
    margin-bottom: 9.6rem;
}

.grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.grid--center-v {
    align-items: center;
}

.section-how {
    padding: 9.6rem 0;
}

.step-number {
    font-size: 8.6rem;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 1.2rem;
}

.step-description {
    font-size: 1.8rem;
    line-height: 1.8;
    text-align: start;
}

.step-img-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-img-box::before,
.step-img-box::after {
    content: "";
    display: block;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-img {
    width: 80%;
    /* width: 50%; */
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    /* color: #45260a; */
    /* color: #343a40; */
}

.heading-primary {
    font-size: 5.2rem;
    line-height: 1.05;
    margin-bottom: 3.2rem;
}

.heading-secondary {
    font-size: 4.4rem;
    line-height: 1.2;
    margin-bottom: 9.6rem;
}

.heading-tertiary {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 3.2rem;
}

.subheading {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    color: #036018;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    letter-spacing: 0.75px;
}

/**************************/
/* HOW IT WORKS SECTION */
/**************************/

.section-how {
    padding: 9.6rem 0;
}

.step-number {
    font-size: 8.6rem;
    font-weight: 600;
    color: #ddd;
    margin-bottom: 1.2rem;
}

.step-description {
    font-size: 1.8rem;
    line-height: 1.8;
    text-align: start;
}

.step-img-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.step-img-box::before,
.step-img-box::after {
    content: "";
    display: block;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-img {
    border-radius: 1rem;
    width: 80%;
}

a {
    font-size: 1.4rem;
}

.btn,
.btn:link,
.btn:visited {
    display: inline-block;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.5rem 3rem;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn--full:link,
.btn--full:visited {
    background-color: #036108;
    color: #fff;
    margin-top: 1rem;
}


/* Container for subsections */

.subsection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    margin-top: 6rem;
    padding-left: 13rem;
    padding-right: 13rem;
    margin-left: 4rem;
    margin-right: 4rem;
    transition: all 0.3s ease;
}

.subsection {
    width: 55%;
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.subsection:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background-color: #e8f5e9;
}

.step-text-box {
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.step-img-box {
    margin-bottom: 2rem;
}

.step-img-sub {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.subsection:hover .step-img-sub {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.step-number-sub {
    text-align: justify;
    color: #ddd;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.heading-tertiary {
    text-align: justify;
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: #036018;
    transition: color 0.3s ease;
}

.step-description {
    font-size: 1.7rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.subsection:hover .step-description {
    color: #333;
}

.know-btn {
    text-decoration: none;
    background-color: #036108;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    display: table;
}

.know-btn:hover {
    background-color: #024a05;
}

.mybiz {
    width: 50%;
}

.heading-tertiary i {
    margin-right: 1rem;
    font-size: 3rem;
    color: #036018; 
}

.step-img-box img {
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
}

.modal-content {
    border-radius: 1rem; 
}

/* Media Query  */

/**************************/
/* BELOW 1344px (Smaller desktops) */
/**************************/

@media (max-width: 84em) {
    .heading-primary {
        font-size: 4.4rem;
    }
}

/**************************/
/* BELOW 1200px (Landscape Tablets) */
/**************************/

@media (max-width: 75em) {
    html {
        /* 9px / 16px  */
        font-size: 56.25%;
    }

    .grid {
        column-gap: 4.8rem;
        row-gap: 6.4rem;
    }

    .heading-secondary {
        font-size: 3.6rem;
    }

    .heading-tertiary {
        font-size: 2.4rem;
    }

    .subsection-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/**************************/
/* BELOW 944px (Tablets) */
/**************************/

@media (max-width: 59em) {
    html {
        /* 8px / 16px = 0.5 = 50% */
        font-size: 50%;
    }

    .subsection-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/**************************/
/* BELOW 704px (Smaller tablets) */
/**************************/

@media (max-width: 44em) {
    .heading-secondary {
        margin-bottom: 4.8rem;
    }
}

/**************************/
/* BELOW 544px (Phones) */
/**************************/

@media (max-width: 34em) {
    .grid {
        row-gap: 4.8rem;
    }

    .grid--2-cols {
        grid-template-columns: 1fr;
    }

    .btn,
    .btn:link,
    .btn:visited {
        padding: 2.2rem 2.6rem;
    }

    .step-img-box:nth-child(2) {
        grid-row: 1;
    }

    .step-img-box:nth-child(6) {
        grid-row: 5;
    }

    .step-img-box {
        transform: translateY(2.4rem);
    }

    .subsection {
        width: 114%;
    }

    .subsection-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
