/* Feature Section Styles */

/* Main Section */
.main-section-feature {
    position: relative;
    max-width: 1100px;
    margin: 200px auto 300px auto;
}

.main-section-feature:last-child {
    margin-bottom: 200px;
}


/* Feature Section Layout */
.feature-section {
    position: relative;
    width: 90%;
    display: grid;
    grid-template-columns: minmax(280px, 560px) 1fr auto;
    column-gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    isolation: isolate;
}

/* Feature Image */
.feature-image {
    position: relative;
    z-index: 2;
    width: 500px;
    aspect-ratio: 360/480;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Title */
.feature-title {
    font-family: var(--font-noto);
    margin: 0;
}

.feature-title p {
    line-height: 42px;
    font-weight: 600;
    font-size: 27px;
    margin: 0;
}

.feature-desc-card p {
    max-width: 330px;
    width: 100%;
    font-size: 13px;
    line-height: 27px;
    font-weight: 400;
    margin: 0;
    color: #000;
}

.feature-desc-card {
    position: absolute;
    left: 425px;
    top: 159px;
    z-index: 3;
    background-color: #F0F0F0;
    padding: 67px 72.5px;
}

.feature-title-wrap {
    position: absolute;
    right: 200px;
    top: 0;
    z-index: 2;
}

.feature-title-wrap--reverse {
    justify-content: start;
    left: 202px;
}

.feature-label--reverse {
    left: 0;
}

/* Feature Label */
.feature-label {
    font-family: var(--font-poppins);
    display: flex;
    justify-content: start;
    text-orientation: mixed;
    line-height: 100%;
    letter-spacing: 3.2px;
    font-weight: 400;
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 0;
}

.feature-label span {
    writing-mode: vertical-rl;
    transform: rotate(360deg);
    font-size: 16px;
    letter-spacing: 4px;
    line-height: 100%;
    color: #000;
    margin-right: 30px;
    font-family: var(--font-poppins);
}

.feature-label .line {
    width: 1px;
    height: 270px;
    background: #000;
}

/* Reverse variants */
.feature-image--reverse {
    display: flex;
    margin-left: auto;
}

.feature-desc-card--reverse {
    left: 202px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 767px) {
    .main-section-feature {
        margin: 200px 0 0 0;
    }

    .main-section-feature:last-child {
        margin-bottom: 150px;
    }

    .feature-section {
        width: 100%;
        position: relative;
        padding-top: 0;
    }

    .feature-image {
        position: relative;
        z-index: 2;
        width: min(360px, 82%);
    }

    .feature-label {
        position: absolute;
        right: 20px;
        top: 0;
        order: 4;
        writing-mode: horizontal-tb;
        padding-left: 0;
        margin-top: 0;
    }

    .feature-label span {
        font-size: 16px;
        letter-spacing: 3.2px;
        line-height: 100%;
        margin-right: 5px;
    }

    .feature-label .line {
        width: 1px;
        height: 300px;
        background: #000;
    }

    .feature-title {
        display: block;
        margin-bottom: 30px;
        line-height: 30px;
    }

    .feature-title p {
        font-family: var(--font-noto);
        letter-spacing: 0;
        color: #000;
        font-weight: 600;
        font-size: 21px;
        line-height: 30px;
    }

    .feature-desc-card {
        margin: 0 20px;
        margin-top: -130px;
        max-width: 400px;
        padding: 180px 25px 61px 25px;
        z-index: 1;
        position: relative;
        left: 0;
        top: 0
    }

    .feature-desc-card p {
        max-width: 350px;
    }

    .feature-label--reverse {
        left: 20px;
    }

    .feature-title-wrap.pc {
        display: none !important;
    }
}

@media (min-width: 767px) and (max-width: 997px) {
    .main-section-feature {
        margin: 150px auto 200px auto;
        max-width: 97%;
    }

    .feature-image {
        width: 400px;
    }

    .feature-title-wrap {
        display: flex !important;
        justify-content: end;
        width: 355px;
        max-width: 355px;
        left: 335px;
        right: 10%;
    }

    .feature-title p {
        font-size: 20px;
        line-height: 35px;
    }

    .feature-desc-card {
        left: 335px;
        top: 105px;
        padding: 35px;
    }

    .feature-label span {
        font-size: 14px;
        margin-right: 15px;
    }

    .feature-desc-card p {
        max-width: 285px;
    }

    .feature-title-wrap--reverse {
        left: unset;
        right: 335px;
        width: 355px;
        max-width: 355px;
        justify-content: start;
    }

    .feature-desc-card--reverse {
        left: unset;
        right: 335px;
    }
}

@media (min-width: 998px) and (max-width: 1199px) {
    .main-section-feature {
        margin: 150px auto 200px auto;
        max-width: 97%;
    }

    .feature-title-wrap {
        right: 100px;
    }
    .feature-title-wrap {
        display: flex !important;
        justify-content: end;
        max-width: 475px;
        left: 425px;
        right: 100px;
    }

    .feature-title-wrap--reverse {
        left: unset;
        right: 425px;
        width: 475px;
        max-width: 475px;
        justify-content: start;
    }

    .feature-desc-card--reverse {
        left: unset;
        right: 425px;
    }
}

@media screen and (max-width: 767px) {
    .feature-label .line {
        height: 270px;
    }
}
