﻿.home-news {
    padding: 2px 0 26px;
}

.home-news-head {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-news-head .title span {
    display: block;
    font-size: 30px;
    line-height: 1.12;
    color: var(--text-heading);
    font-weight: 600;
}

.home-news-head .link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    
    color: var(--color-1);
    font-weight: 600;
}

.home-news-head .link i {
    font-size: 12px;
}

.home-news-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.p-news-item {
    border-radius: 16px;
    border: 1px solid var(--border-card-3);
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(41, 27, 14, 0.03);
    text-decoration: none;
    color: inherit;
    display: block;
}

.p-news-item .img {
    position: relative;
    height: 162px;
    background: linear-gradient(180deg, #fff8f2 0%, #fff 100%);
    overflow: hidden;
}

.p-news-item .img .img-cate {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.p-news-item .img .img-cate span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    display: none;
    min-width: 72px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ff8a3d;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

.p-news-item .img .img-cate.news span {
    background: #ff8a3d;
    color: #fff;
}

.p-news-item .img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.p-news-item .img img[src=""] {
    opacity: 0;
}

.p-news-item .content {
    padding: 14px 14px 16px;
}

.p-news-item .content .title {
    margin-bottom: 8px;
}

.p-news-item .content .title span {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    color: #242424;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.p-news-item .content .description span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}


/* Home news responsive */
@media (max-width: 1023px) {
    .home-news {
        padding: 4px 0 28px;
    }

    .home-news-head {
        margin-bottom: 16px;
    }

    .home-news-head .title span {
        font-size: 28px;
    }

    .home-news-head .link {
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid var(--border-card);
        border-radius: 9px;
        background: var(--white);
    }

    .home-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .p-news-item {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .p-news-item .img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .p-news-item .content {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .home-news {
        padding: 2px 0 24px;
    }

    .home-news-head {
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
    }

    .home-news-head .title span {
        font-size: 24px;
    }

    .home-news-head .link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .home-news-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .p-news-item {
        /* display: grid; */
        /* grid-template-columns: minmax(130px, 40%) minmax(0, 1fr); */
        border-radius: 14px;
        flex-direction: row;
        align-items: unset;
    }

    .p-news-item .img {
        width: 150px;
        height: 100px;
    }

    .p-news-item .img .img-cate {
        top: 10px;
        left: 10px;
    }

    .p-news-item .img .img-cate span {
        min-width: 0;
        height: 22px;
        padding: 0 8px;
        font-size: 10px;
    }

    .p-news-item .content {
        padding: 14px 12px;
        display: flex;
        flex-direction: column;
    }

    .p-news-item .content .title {
        margin-bottom: 6px;
    }

    .p-news-item .content .title span {
        font-size: 15px;
        line-height: 1.4;
    }

    .p-news-item .content .description span {
        font-size: 12px;
        line-height: 1.5;
    }
}

@media (max-width: 479px) {
    .home-news-head {
        align-items: flex-start;
    }

    .home-news-head .title span {
        font-size: 22px;
    }

    .home-news-head .link {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .p-news-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .p-news-item .img {
    }
}

@media (max-width: 374px) {
    .home-news-head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-news-head .link {
        width: fit-content;
    }

    .p-news-item {
        grid-template-columns: 1fr;
    }

    .p-news-item .img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

/* Footer responsive */
@media (max-width: 1023px) {
    footer {
        padding-top: 4px;
    }

    .footer-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        gap: 28px 36px;
        padding: 24px 0;
    }

    .footer-wrap.info {
        max-width: none;
    }

    .footer-wrap.options {
        grid-column: 1 / -1;
        padding-top: 20px;
        border-top: 1px solid var(--border-section);
    }

    .footer-wrap.options .options-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .footer-wrap.options .options-item {
        min-height: 66px;
        padding: 12px;
        border: 1px solid var(--border-section);
        border-radius: 12px;
        background: var(--white);
    }

    .navigation-item .list {
        gap: 4px;
    }

    .navigation-item .list a {
        min-height: 34px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .floating-contact {
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 12px;
        flex-direction: row;
        justify-content: stretch;
        gap: 0;
        padding: 4px;
        overflow: hidden;
        border: 1px solid #ececec;
        border-radius: 18px;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(37, 37, 37, 0.14);
    }

    .floating-contact-item {
        flex: 1;
        width: auto;
        height: 50px;
        border: 0;
        border-radius: 14px;
        gap: 6px;
        background: var(--white);
        color: var(--color-2);
        box-shadow: none;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .floating-contact-item.phone,
    .floating-contact-item.zalo,
    .floating-contact-item.messenger {
        background: var(--white);
        color: var(--color-2);
    }

    .floating-contact-item.phone {
        background: var(--bg-soft-4);
        color: var(--color-1);
    }

    .floating-contact-item:not(:last-child) {
        border-right: 1px solid var(--border-light);
        border-radius: 14px 0 0 14px;
    }

    .floating-contact-item:nth-child(2) {
        border-radius: 0;
    }

    .floating-contact-item i {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-soft-4);
        color: var(--color-1);
        font-size: 13px;
        box-shadow: inset 0 0 0 1px rgba(251, 97, 4, 0.12);
    }

    .floating-contact-item.phone i {
        animation: floating-icon-pulse 2.2s ease-in-out infinite;
    }

    .floating-contact-item.messenger i {
        background: var(--color-2);
        color: var(--white);
        box-shadow: none;
    }

    .floating-contact-item .tooltip {
        position: static;
        display: block;
        padding: 0;
        background: transparent;
        color: inherit;
        font-size: 11px;
        font-weight: 600;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .floating-contact-item:hover,
    .floating-contact-item:active {
        transform: none;
        background: var(--bg-soft-4);
        color: var(--color-1);
        box-shadow: none;
    }

    .floating-contact-item.phone:hover,
    .floating-contact-item.phone:active {
        background: var(--bg-soft-4);
        box-shadow: none;
    }

    .floating-contact-item .zalo-text {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--color-1);
        color: var(--white);
        font-size: 9px;
        font-weight: 700;
        animation: floating-icon-pulse 2.2s 0.35s ease-in-out infinite;
    }

    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 22px 0 18px;
    }

    .footer-wrap.info {
        padding-bottom: 22px;
    }

    .footer-logo {
        margin-bottom: 12px;
    }

    .footer-logo img {
        width: 124px;
    }

    .footer-name span {
        font-size: 17px;
        line-height: 1.45;
    }

    .footer-address p {
        font-size: 14px;
        line-height: 1.55;
    }

    .footer-wrap.navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 22px 0;
        border-top: 1px solid var(--border-section);
    }

    .footer-title span,
    .footer-wrap.options .footer-title {
        font-size: 16px;
    }

    .navigation-item .list a {
        min-height: 40px;
        font-size: 14px;
        line-height: 1.4;
    }

    .footer-wrap.options {
        grid-column: 1;
        padding: 22px 0 0;
    }

    .footer-wrap.options .options-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-wrap.options .options-item {
        min-height: 60px;
        align-items: center;
    }

    .footer-wrap.options .options-item i {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border-radius: 50%;
        background: var(--bg-soft-4);
        margin-top: 0;
    }

    .footer-bottom {
        min-height: 0;
        padding: 16px 0;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .copyright span,
    .design-by span,
    .design-by a {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 479px) {
    .footer-wrap.navigation {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .navigation-item .list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
    }

    .footer-wrap.options .options-item .content .title {
        font-size: 15px;
    }
}

@media (max-width: 374px) {
    .navigation-item .list {
        grid-template-columns: 1fr;
    }

    .footer-name span {
        font-size: 16px;
    }
}
