﻿.home-about {
    position: relative;
    overflow: hidden;
    padding-bottom: 32px;
    background: #FFFBE8;
    padding-top: 37px;
}

.slogan-about-home span {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: var(--default-color-3);
    font-family: 'K2D-SemiBOLD';
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    padding: 15px 0;
    display: none;
}

.home-about-right .top .heading h1 img {
    width: 28px;
    height: 28px;
    aspect-ratio: 1/1;
}

.slogan-about-home {
    background: #f0e193;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.25);
}

.home-about .grid.wide {
    position: relative;
}

.home-about-hotline {
    display: flex;
    align-items: center;
}

.home-about-link {
    background: #051550;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
    padding: 11px 15px 12px 15px;
    user-select: none;
}

.home-about-hotline .icon {
    width: 46px;
    height: 46px;
    background: var(--default-gradient);
    border-radius: 50%;
}

.home-about-hotline .content {
    padding-left: 9px;
}

    .home-about-hotline .content h3 {
        margin: 0;
        font-family: anyR;
        color: #333333;
        text-transform: uppercase;
        font-size: 15px;
        line-height: 117.2%;
    }

.home-about-hotline span {
    font-family: 'anySB';
    font-size: 29px;
    background: linear-gradient(134deg, #FF1A1A 2.01%, #B00202 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1px;
    display: block;
}

.home-about-container {
    display: flex;
    position: relative;
    padding-bottom: 0;
    padding-left: 0;
}

.home-about-left {
    width: 43%;
    position: relative;
    display: flex;
    z-index: 1;
}

    .home-about-left .img a {
        height: 100%;
    }

    .home-about-left .img img {
    }

    .home-about-left .img {
        width: 100%;
        height: 499px;
        position: relative;
        left: 0;
        bottom: 0;
    }

    .home-about-left section:nth-child(2) .img {
        transform: translate3d(-94px, -54px, 0);
        width: 377px;
        height: 466px;
    }

    .home-about-left section:nth-child(3) .img {
        transform: translate3d(94px, 71px, 0);
        width: 377px;
        height: 455px;
    }

.home-about-right {
    flex: 1;
    position: relative;
    padding-left: 62px;
    padding-right: 0;
}

    .home-about-right .top {
    }

        .home-about-right .top .heading h1,
        .home-about-right .top .heading h2 {
            margin: 0;
        }

        .home-about-right .top .heading h1 {
            position: relative;
            color: #202020;
            font-family: K2D-Light;
            font-size: 16px;
            font-style: normal;
            font-weight: 300;
            line-height: normal;
            display: inline-flex;
            align-items: center;
        }

        .home-about-right .top .heading h2 {
            margin-top: 2px;
            color: #051550;
            font-family: K2D-Medium;
            font-size: 24px;
            font-style: normal;
            font-weight: 500;
            line-height: normal;
            text-transform: capitalize;
        }

.home-about-slogan {
    display: block;
    margin-top: 3px;
    color: #1B295D;
    font-family: 'Inter_24pt-Medium';
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    width: 401px;
}

.home-about-right .top .heading h1 svg {
    margin-right: 7px;
}

.home-about .p-decor {
    width: 100%;
}

.home-about-right .top .heading h2 span {
    color: var(--default-color-1);
    font-family: UTM;
    font-size: 48.84px;
    line-height: 54px;
}

.home-about-link span {
    color: #FFF;
    font-family: 'K2D-MEDIUM';
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
}

.home-about-right .top .heading h2 strong {
    margin-top: -7px;
    display: block;
    color: #711A28;
    font-family: 'K2D-BOLD';
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
}

.home-about-right .top .description {
    margin-top: 15px;
    z-index: 2;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    font-size: 15px;
    color: #353535;
    font-family: 'Inter_24pt-Regular';
    font-style: normal;
    font-weight: 400;
    line-height: 129.591%; /* 16.847px */
    border-left: 3px solid #711A28;
    padding-left: 12px;
}

    .home-about-right .top .description a {
        display: inline-block;
    }

    .home-about-right .top .description p {
        margin: 23px 0;
        font-family: 'Inter_24pt-Regular';
        color: #202020;
        font-size: 15px;
    }

        .home-about-right .top .description p:first-child {
            margin-top: 0;
        }

        .home-about-right .top .description p:last-child {
            margin-bottom: 0;
        }

.home-about-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.home-about-text {
    position: relative;
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    margin-top: 24px;
    column-gap: 30px;
    row-gap: 13px;
    grid-template-columns: repeat(3,minmax(0,1fr));
}

/* ================================================
   ================================================ */

.p-ser-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #711A28;
    padding: 12px 26px 12px 15px;
}

    .p-ser-link:hover {
        transform: translateY(-10px);
        color: #2c2c2c;
    }

/* Phần hình ảnh */
.p-ser-img {
    position: relative;
    background: #711A28;
    width: 45.37px;
    height: 45.37px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-ser-link:nth-child(1) .p-ser-img img {
    position: relative;
}

.p-ser-img img {
    object-fit: cover; /* Giữ nguyên icon SVG không bị méo */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.p-ser-link:hover .p-ser-img img {
    transform: scale(1.15) rotate(8deg); /* Hiệu ứng zoom + xoay nhẹ rất đẹp với icon */
    filter: brightness(1.1);
}

/* Phần chữ */
.p-ser-link > :last-child { /* Chọn trực tiếp text "Thử tải Cấp chứng chỉ" */
    transition: all 0.4s ease;
}

.p-ser-link:hover > :last-child {
    color: #035B8F;
    transform: scale(1.03);
}

.home-about-text h3 {
    margin: 0;
    flex: 1 1 0;
    position: relative;
    display: flex;
    margin-left: 10px;
    color: #051550;
    font-family: 'K2D-BOLD';
    font-size: 16.374px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.p-ser-link:nth-child(5) {
    padding: 12px 9px 12px 15px;
}

.d1-a {
    position: absolute;
    left: 0;
    top: 0;
    height: 26px;
}

.d2-a {
    position: absolute;
    right: 0;
    top: 0;
    height: 26px;
}

.d3-a {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 26px;
}

.d4-a {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 26px;
}

.home-about-rating {
    display: flex;
    align-items: center;
}

.home-about-link:hover {
    background: #711a28;
}

.home-about-text p a {
    color: #fff;
    text-decoration: none;
}

.home-about-rating .rating-img {
    display: flex;
    align-items: center;
    margin-left: 46px;
}

.home-about-rating .rating-img-item {
    width: 45px;
    height: 45px;
    position: relative;
    border-radius: 50%;
    padding: 3px;
    background-color: #fff;
    transition: all linear .2s;
}

    .home-about-rating .rating-img-item img {
        overflow: hidden;
        border-radius: 50%;
    }

    .home-about-rating .rating-img-item:first-child {
        z-index: 3;
    }

.home-about-rating .rating-img:hover .rating-img-item {
    margin: 0;
    transition: 0.8s cubic-bezier(.3,2,.3,1);
}

.home-about-rating .rating-img-item:nth-child(2) {
    z-index: 2;
    margin-left: -11px;
}

.home-about-rating .rating-img-item:last-child {
    z-index: 1;
    margin-left: -22px;
}

.home-about-rating .rating-content {
    padding-left: 8px;
}

.home-about-rating .rating-number {
    font-family: 'plusB';
    font-size: 24.47px;
    color: var(--default-color-1);
    margin: 0;
}

.home-about-rating .rating-content p {
    margin: 0;
    font-size: 15px;
    color: rgb(51 51 51 / 55%);
}

.home-about-number {
    display: flex;
    align-items: baseline;
    position: absolute;
    right: 0;
}

    .home-about-number .number-item {
        font-family: 'plusB';
        font-size: 60px;
        -webkit-background-clip: text;
        background-clip: text;
        background-image: url('../../../Design/img/bg-slogan_02-min.png');
        color: transparent;
        background-size: cover;
        background-position: center center;
    }

    .home-about-number span {
        font-family: plusSB;
        color: #333333;
        font-size: 26px;
        display: block;
    }

@media(min-width:1390px) {
    section.home-about-text:before {
        content: "";
        position: absolute;
        background: url(/Design/img/DongXuyen/b-b.png) no-repeat;
        background-size: cover;
        right: -386px;
    }
}

@media(max-width:1023px) {
    .home-about-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .home-about {
        padding-bottom: 53px;
    }

    .home-about-left {
        width: 100%;
    }

        .home-about-left .img {
            position: relative;
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
        }

    .home-about-right .top {
        padding: 0;
    }

        .home-about-right .top .heading h2 strong {
            font-size: 36px;
        }

    .home-about .grid.wide::before {
        display: none;
    }

    .home-about-container {
        padding: 0;
    }

    .slogan-about-home span {
        font-size: 18px;
    }

    .home-about-right {
        padding: 25px 0;
    }
}

@media(min-width:740px) and (max-width:1023px) {
    .home-about-left:before {
        content: "";
        position: absolute;
        background: url(/Design/img/DongXuyen/t-b.png);
        background-size: cover;
        left: 0;
        top: 0;
        width: 91%;
        height: 633px;
    }

    .home-about-slogan {
        width: 100%;
    }

    .home-about-left .img {
        position: relative;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
}

@media(max-width: 739px) {
    .home-about-table {
        padding: 14px 8px;
    }

    .home-about-text h3 {
        font-size: 15px;
        margin-left: 5px;
    }

    .p-ser-link:nth-child(1) {
        padding: 12px 23px 12px 15px;
    }

    .p-ser-link:nth-child(3) {
        padding: 12px 23px 12px 15px;
    }

    .p-ser-link:nth-child(6) {
        padding: 12px 15px 12px 15px;
    }

    .p-ser-link {
        padding: 12px 8px 12px 15px;
    }

    .slogan-about-home span {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .home-about-number .number-item {
        font-size: 42px;
    }

    .home-about-rating .rating-number {
        font-size: 20px;
    }

    .home-about-rating .rating-content p {
        font-size: 12px;
    }

    .home-about-table .table-top-item span {
        font-size: 12px;
    }

    .home-about {
        padding: 25px 0;
        padding-bottom: 55px;
    }

    .home-about-container {
    }

    .home-about-right {
        padding: 9px 0;
        padding-top: 2px;
    }

        .home-about-right .top .heading h2 {
            font-size: 18px;
            margin-top: 8px;
        }

            .home-about-right .top .heading h2 strong {
                font-size: 32px;
                margin-top: 0;
            }

    .home-about-decor {
        position: absolute;
        right: -66px;
        top: -378px;
        pointer-events: none;
    }

    .home-about-right .top .heading h1 {
        font-size: 16px;
    }

    .home-about-slogan {
        font-size: 17px;
        line-height: 150%;
        text-align: justify;
        text-transform: unset;
        display: none;
    }

    .home-about-right .top .description {
        line-height: 160%;
        font-size: 15px;
        margin-top: 11px;
        text-align: justify;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 15;
    }

        .home-about-right .top .description p, .home-about-right .top .description p span {
            font-size: 15px;
            text-align: justify;
        }

    .home-about-text p {
        font-size: 14px;
    }

    .home-about-text {
        padding: 18px 0px;
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        margin-top: 0;
        column-gap: 10px;
        row-gap: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 31px;
    }

    section.home-about-text:before {
        width: 118%;
        height: 100%;
        left: -11px;
        margin: 0;
        bottom: 0;
    }

    .home-about-text p::after,
    .home-about-text p::before {
        font-size: 9px;
    }

    .home-about-btn {
        padding-bottom: 66px;
        justify-content: space-between;
        flex-direction: column-reverse;
        padding-bottom: 0;
        align-items: unset;
        margin-bottom: 23px;
    }

    .home-about-link {
        font-size: 16px;
        padding: 10px 6px;
        margin-top: 2px;
        width: 110px;
        height: 42px;
    }

        .home-about-link span {
            position: relative;
            top: -1px;
        }

    .home-about-number {
        position: relative;
    }

    .home-about-rating .rating-img {
        margin-left: 0;
    }

    .home-about-rating {
        margin-top: 10px;
        margin-bottom: 20px;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .p-ser-img img {
    }

    .p-ser-img {
        width: 40.37px;
        height: 40.37px;
    }
}