﻿
.qhse-section {
    padding: 100px 20px;
    background: #f8f8f8;
}


.qhse-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* LEFT */
.qhse-tag {
    font-size: 18px;
    letter-spacing: 2px;
    color: #d32f2f;
    margin-bottom: 20px;
}

.qhse-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    color: #111;
}

    .qhse-title span {
        color: #d32f2f;
        font-style: italic;
        font-weight: 400;
    }

.qhse-desc {
    margin-top: 20px;
    color: #777;
    font-size: clamp(14px, 1.5vw, 18px);
    max-width: 420px;
}

/* RIGHT */
.qhse-right {
    position: relative;
}

/* CERTIFICATE BOX */
.certificate-box {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    background: #fff;
    border: 1px solid #ddd;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .certificate-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }

.year-mark {
    position: absolute;
    bottom: -80px;
    right: 0;
    font-size: clamp(28px, 4vw, 48px);
    color: #ddd;
    font-weight: 600;
}

    .year-mark span {
        display: block;
        font-size: 12px;
        letter-spacing: 2px;
    }

@media (max-width: 992px) {

    .qhse-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .qhse-left {
        order: 1;
    }

    .qhse-right {
        order: 2;
    }

    .certificate-box {
        margin: 0 auto;
        max-width: 400px;
    }
    .qhse-desc {
        max-width: 560px;
        margin: 20px auto 0 auto;
        text-align: center;
    }
    .year-mark {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {

    .qhse-section {
        padding: 60px 15px;
    }

    .qhse-title {
        line-height: 1.2;
    }

    .qhse-desc {
        max-width: 100%;
    }

    .certificate-box {
        max-width: 100%;
        aspect-ratio: auto;
    }

        .certificate-box img {
            height: auto;
        }

    .year-mark {
        font-size: 28px;
    }
}

@media (min-width: 1400px) {
    .certificate-box {
        max-width: 600px;
    }
}
