/* ==============================
   HOME MENU - Service Navigation
============================== */
.section-home-menu {
    padding: 20px 0;
    /* background: #fff; */
    /* border-bottom: 1px solid #eee; */
}

.home-menu {
    justify-content: center;
    gap: 20px 0;
}

.home-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    text-decoration: none;
    /* color: #333; */
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: white;
    box-shadow: 0 6px 12px rgb(0 0 0 / 6%);
}

.home-menu-item:hover {
    /* color: #1a73b5; */
    transform: translateY(-3px);
}

.home-menu-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.home-menu-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.home-menu-item:hover .home-menu-icon img {
    transform: scale(1.1);
}

.home-menu-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    transition: color 0.3s ease;
}


/* Responsive */
@media (max-width: 767px) {
    .section-home-menu {
        padding: 15px 0;
    }

    .home-menu-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
    }

    .home-menu-name {
        font-size: 11px;
    }

    .home-menu-item {
        padding: 10px 5px;
    }
}

/* ==============================
   HOME SERVICE - Sản phẩm & Dịch vụ Slider
============================== */
.home-service {
    padding: 30px 0;
}

.home-service .home-heading {
    text-align: center;
    margin-bottom: 15px;

    @media (max-width: 992px) {
        text-align: center;
        justify-content: center;
    }
}

.c-title {
    gap: 10px;
    margin: 0;
    display: inline-block;
    /* color: var(--color-2); */

    >* {
        display: block;
    }
}

.c-title-txt {
    font-size: 33px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;

    @media (max-width: 767px) {
        font-size: 24px;
    }
}

.c-title-line {
    position: relative;
    width: 70%;
    height: 2px;
    margin: 0 auto;
}

.c-title-line::before {
    content: "";
    width: calc(100% - 70px);
    height: 2px;
    background-color: var(--color-2);
    position: absolute;
    left: 0;
    top: 0;

}

.c-title-line svg {
    width: 80px;
    height: 2px;
    fill: var(--color-2);
    position: absolute;
    right: 0;
    top: 0;
}



/* ==============================
   HOME EVENT - Tin tức & Sự kiện
============================== */
.home-event {
    padding: 30px 0;
}

.event-heading {
    border-bottom: 1px solid var(--color-2);
    /* flex-wrap: wrap; */
    gap: 10px;

}

.event-heading__title>* {
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    padding: 6px 20px;
    background: var(--color-2);
    border-radius: 5px 5px 0 0;
    margin-right: 20px;
    position: relative;
    line-height: 24px;
    display: inline-block;
    margin-bottom: -1px;
    white-space: nowrap;
}

.event-heading__title>*:after {
    content: '';
    display: block;
    line-height: 36px;
    background: var(--color-2);
    width: 25px;
    height: 36px;
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -10px;
    transform: skewX(21deg);
    border-radius: 0 5px 0 0;
}

/* Heading with category tabs */
.home-heading--between {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.home-heading-category {
    display: flex;
    gap: 15px;
    /* flex-wrap: wrap; */
    padding-bottom: 8px;
    overflow-x: auto;
    max-width: 100%;
}

.home-heading-category__item {
    white-space: nowrap;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #e2e2e2;
    font-weight: 400;
    font-size: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-width: fit-content;
}

.home-heading-category__item:hover {
    color: white;
}

.home-heading-category__item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-2);
    z-index: -1;
    transition: width 0.3s ease;
}

.home-heading-category__item:hover::after {
    width: 100%;
}

/* Event block layout */
.event-block {
    margin-top: 15px;
    gap: 15px 0;
}

/* Featured post - left */
.event-featured__img {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.event-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-featured__img:hover img {
    transform: scale(1.03);
}

.event-featured__content {
    padding: 5px 0;
}

.event-featured__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 10px;
    text-transform: uppercase;
    color: var(--color-3);
}

.event-featured__title a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* .event-featured__title a:hover {
    color: var(--color-1);
} */

.event-featured__time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.event-featured__time svg {
    flex-shrink: 0;
}

.event-featured__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-featured__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-featured__link:hover {
    text-decoration: underline;
}

/* Side list - right */
.event-side-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.event-side-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px dashed #e2e2e2;
    padding-bottom: 15px;
}

.event-side-item:last-child {
    border-bottom: none;
}

.event-side-item__img {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    display: block;
}

.event-side-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-side-item__img:hover img {
    transform: scale(1.05);
}

.event-side-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.event-side-item__title a {
    /* color: var(--color-3); */
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* .event-side-item__title a:hover {
    color: var(--color-1);
} */

/* Responsive */
@media (max-width: 991px) {}

@media (max-width: 767px) {

    .event-heading {
        flex-direction: column;
        align-items: start;
        gap: 10px;
        border-bottom: none;
    }

    .event-heading__title {
        width: 100%;
        border-bottom: 1px solid var(--color-2);
    }

    .home-service {
        padding: 25px 0 0;
    }

    .home-event {}

    .home-heading-category {
        gap: 10px;
    }

    .home-heading-category__item {
        /* font-size: 13px; */
    }

    .event-featured__title {
        /* font-size: 15px; */
    }

    .event-side-item__img {
        width: 100px;
        height: 68px;
    }

    .event-side-item__title {
        font-size: inherit;
    }

    .event-featured__desc {
        font-size: inherit;
    }

    .home-heading--between {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ==============================
   HOME MEMBER - Đơn vị thành viên
============================== */
.home-member {
    padding: 30px 0 50px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.home-member .text-center {
    text-align: center;
}

.home-member .text-center .c-title {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.member-column {
    margin-top: 15px;
    gap: 20px 0;
}

.member-column__item {

    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.member-column__item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.member-column__img {
    margin: 0;
    overflow: hidden;
}

.member-column__img a {
    display: block;
    overflow: hidden;
    position: relative;
    padding-top: calc((250 / 382) * 100%);
}

.member-column__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.member-column__item:hover .member-column__img img {
    transform: scale(1.05);
}

.member-column__title {
    margin: 0;
    padding: 15px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    background-color: color-mix(in srgb, var(--color-2) 50%, transparent);
    color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transition: all 0.3s ease;
}

.member-column__title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-column__item:hover .member-column__title {
    background-color: var(--color-2);
}

/* Responsive */
@media (max-width: 767px) {
    .member-column__title {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ==============================
   HOME GROUP - Văn bản / Tạp chí / Thông báo
============================== */
.home-group {
    padding: 30px 0;
    background: #ededed;
}

.home-group-row {
    gap: 20px 0;
}

.home-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
    /* color: var(--color-2); */

    @media (max-width: 992px) {
        text-align: center;
        justify-content: center;
    }
}

.home-group-box {
    background: white;
    border-radius: 8px;
    padding: 10px;
    height: 100%;
}

.home-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-2);
}

.home-group-title .icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-group-title .icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Document Category List */
.document-category {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-category__item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    /* padding: 10px; */
    /* border-radius: 10px; */
    /* background: #f5f8fc; */
    transition: all 0.3s ease;
}

.document-category__item:hover {
    /* background: #e8f0fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
}

.document-category__img {
    flex-shrink: 0;
    width: 120px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.document-category__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.document-category__item:hover .document-category__img img {
    transform: scale(1.05);
}

.document-category__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-category__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-3);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.document-category__item:hover .document-category__name {
    color: var(--color-2);
}

/* Responsive */
@media (max-width: 767px) {
    .home-group-title {
        font-size: 17px;
        gap: 8px;
    }

    .home-group-title .icon {
        width: 28px;
        height: 28px;
    }

    .document-category__img {
        width: 120px;
        height: 75px;
    }

    .document-category__name {
        /* font-size: 14px; */
    }
}

/* Magazine Card */
.magazine-card {
    text-align: center;
}

.magazine-card__desc {
    font-size: 15px;
    color: var(--color-3);
    margin-bottom: 15px;
    line-height: 1.5;
}

.magazine-card__img {
    display: block;
    /* border-radius: 6px; */
    overflow: hidden;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); */
    /* transition: transform 0.3s ease; */
}

.magazine-card__img:hover {
    transform: scale(1.02);
}

.magazine-card__img img {
    /* width: 100%; */
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 6px;
}

@media (max-width: 992px) {
    .magazine-card__img img {
        max-height: inherit;
    }
}

/* ==============================
   NOTIFICATION - Thông báo
============================== */
.noti-scroll {
    max-height: 220px;
    overflow: hidden;
    margin-bottom: 15px;
    /* border: 1px solid #eee; */
    /* border-radius: 8px; */
    padding: 5px 0;
    position: relative;
}

.noti-scroll:hover .noti-scroll__list {
    animation-play-state: paused;
}

@keyframes notiScrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.noti-scroll::-webkit-scrollbar {
    width: 4px;
}

.noti-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.noti-scroll::-webkit-scrollbar-thumb {
    background: var(--color-1);
    border-radius: 4px;
}

.noti-scroll__list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: notiScrollUp 15s linear infinite;
}

.noti-scroll__list li {
    /* border-bottom: 1px solid #f0f0f0; */
}

.noti-scroll__list li:last-child {
    border-bottom: none;
}

.noti-scroll__list li a {
    display: block;
    padding: 0 0 5px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-3);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.noti-scroll__list li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    mask: url(../images/arrow-right5-svgrepo-com.svg) no-repeat center center;
    background-color: currentColor;
    mask-size: 100%;
}

.noti-scroll__list li a:hover {
    color: var(--color-2);
    /* background: #f5f8fc; */
}

/* Notification categories */
.noti-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noti-categories__item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    /* padding: 8px;
    border-radius: 8px;
    background: #f5f8fc; */
    transition: all 0.3s ease;
}

.noti-categories__item:hover {
    /* background: #e8f0fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

.noti-categories__img {
    flex-shrink: 0;
    width: 100px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.noti-categories__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.noti-categories__name {
    font-size: 15px;
    font-weight: 700;
    /* color: var(--color-3); */
    line-height: 1.4;
    transition: color 0.3s ease;
}

.noti-categories__item:hover .noti-categories__name {
    /* color: var(--color-1); */
}

.section-tienich {
    padding: 40px 0;
}

.tienich-slider a:not([href]) {
    pointer-events: none;
}

.tienich-slider .slick-slide {
    margin: 5px 12px 10px;
}

.tienich-slider .slick-list {
    margin: 0px -12px;
}

.item-tien-ich {
    /* background-color: rgb(247, 247, 247);
    padding: 10px; */
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 6px #0000004d;
    overflow: hidden;
}

.item-tien-ich img {
    /* border-radius: 10px; */
}