.hover-effect {
    position: relative;
    overflow: hidden;
    display: flex;
}

.hover-effect::after {
    position: absolute;
    width: 200%;
    height: 0;
    left: 50%;
    top: 50%;
    background-color: hsla(0, 0%, 100%, 0.3);
    transform: translate(-50%, -50%) rotate(-45deg);
    content: "";
    z-index: 1;
    transition: all 0.6s linear;
}

.hover-effect:hover::after {
    height: 250%;

    background-color: transparent;
}

.hover-zoom img {
    transition: all 0.6s linear;
}

.hover-zoom:hover img {
    transform: scale(1.09);
}


.common-btn02 {
    display: flex;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--color-1) 55%, var(--color-2) 100%);
    position: relative;
    z-index: 1;
    color: white;
}

.common-btn02::after {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 120px;
    height: 100%;
    background-color: var(--color-3);
    transform: skewX(-45deg);
    z-index: -1;
    transition: all 0.5s ease;
}

.common-btn02:hover::after {
    width: 200%;
    background: linear-gradient(90deg, var(--color-3), var(--color-4));
}

.common-btn02 .btn-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-weight: 700;
    font-size: 14px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    position: relative;
    z-index: 2;
}

.common-btn02 .btn-right {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -15px;
    z-index: 1;
}

.common-btn02 .btn-right i,
.common-btn02 .btn-right svg {
    font-size: 16px;
    color: #fff;
}

.post-wrapper__meta {
    display: flex;
    gap: 30px;
    color: rgb(85, 85, 85);
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;

    & .icon {}

    .icon {
        line-height: 0;
    }
}

/* post-detail-share */
.post-detail-share {
    color: var(--color-1);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 700;
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    padding: 15px 0;
    margin-bottom: 30px;
    margin-top: 20px;

    @media (max-width: 992px) {
        margin-bottom: 20px;
        margin-top: 10px;
    }

    .share-list {
        display: flex;
        align-items: center;
        gap: 10px;

        li {
            list-style: none;
        }
    }

    .share-icon {
        width: 28px;
        height: 28px;
        display: block;
        border-radius: 50%;

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

        span {
            background-color: var(--color-1);
            width: 100%;
            height: 100%;
            mask-size: 100% 100%;
            mask-repeat: no-repeat;
            mask-position: center;
            display: block;

            &.icon-link {
                mask-image: url(../images/icon-share01.png);
            }

            &.icon-zalo {
                mask-image: url(../images/icon-share02.png);
            }

            &.icon-facebook {
                mask-image: url(../images/icon-share03.png);
            }

            &.icon-linkedIn {
                mask-image: url(../images/icon-share04.png);
            }

            &.icon-twitter {
                mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.84 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z'/%3E%3C/svg%3E");
            }
        }

        &:hover {
            span {
                background-color: var(--color-3);
            }
        }
    }
}

/* post-wrapper */
.post-wrapper {
    padding: 50px 0;
    gap: 30px 0;

    @media (max-width: 992px) {
        padding: 30px 0;
    }
}

.post-wrapper__content {


    @media (min-width: 992px) {
        border-right: 1px solid #ececec;
        padding-right: 30px;
    }
}

.post-wrapper__title {
    font-size: 2.8rem;
    color: var(--color-1);
    margin-bottom: 15px;

    @media (max-width: 992px) {
        font-size: 2.4rem;
    }
}

.post-wrapper__excerpt {
    background: #dbdbdb;
    border-radius: 8px;
    padding: 20px 15px;
    margin-bottom: 30px;
    text-align: justify;
}

/* Sidebar Widget Category Custom */

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.sidebar-title::before {
    content: "";
    position: absolute;
    left: 0;
    width: 6px;
    height: 28px;
    background-color: var(--color-3);
    /* Phu Thanh green */
}

.sidebar-widget {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px 15px;
    margin-bottom: 30px;
}

.post-comments {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-1) transparent;
    margin-bottom: 20px;
    padding: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;

    @media (max-width: 992px) {
        max-height: 400px;
    }
}

.comment-item__header {
    gap: 5px;
    margin-bottom: 15px;
}

.comment-item__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;

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

.comment-item__info {
    flex: 1;
    font-size: 14px;
    gap: 12px;
}

.comment-item__stars {
    display: flex;
    gap: 3px;
    align-items: center;
    color: #d1d5db;
    /* Default stroke color */

    .star-icon {
        width: 15px;
        height: 15px;
        fill: #f3f4f6;
        /* Default fill color */

        &.active {
            color: var(--color-2);
            fill: var(--color-2);
        }
    }
}

.post-comment-section {
    .heading__title {
        margin-bottom: 5px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .comment-note {
        margin-bottom: 15px;
    }
}

.post-sidebar {
    position: sticky;
    top: 100px;
}

.widget-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-category-list li {
    border-top: 1px solid #EEEEEE;
}

.widget-category-list li:first-child {
    border-top: none;
}

.widget-category-list li a {
    display: flex;
    align-items: center;
    padding: 5px 0;
    color: #777;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-category-list li a:hover {
    color: var(--color-3);
}

.widget-category-list li a .icon {
    margin-right: 15px;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    transition: all 0.3s ease;
}

.widget-category-list li a:hover .icon {
    color: var(--color-3);
}

.widget-category-list li a .text {
    flex: 1;
}

@media (max-width: 992px) {
    .widget-category-custom {
        padding: 20px;
    }

    .widget-category-custom .widget-title {
        font-size: 20px;
    }

    .widget-category-list li a {
        font-size: 16px;
        padding: 12px 0;
    }
}

/* Sidebar Articles */
.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.sidebar-article {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.sidebar-article:hover {
    transform: translateY(-5px);
}

.sidebar-article__img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sidebar-article__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article__info {
    padding: 20px;
}

.sidebar-article__title {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: 0;
}

.sidebar-article__title a {
    color: var(--color-1);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar-article__title a:hover {
    color: var(--color-3);
}

.sidebar-article__info .line {
    width: 40px;
    height: 2px;
    background-color: #EEEEEE;
}

/* Sidebar CTA */
.sidebar-cta {
    padding: 0 !important;
    background: transparent !important;
}

.cta-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-card__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.cta-card__content {
    position: relative;
    z-index: 1;
}

.cta-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #fff;
}

.cta-card__desc {
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-card .c-btn-01 {
    background: var(--color-3);
    color: #fff;
    border-color: var(--color-3);
}

.cta-card .c-btn-01:hover {
    background: #fff;
    color: var(--color-3);
    border-color: #fff;
}

.cta-card .c-btn-01 .icon {
    background-color: #fff;
}

.cta-card .c-btn-01:hover .icon {
    background-color: var(--color-3);
}