﻿:root {
    --primary: #8C6A3C;
    --dark: #4B3725;
    --bg: #F9F6F1;
    --white: #fff;
    --text: #5F5247;
    --border: #E9DED0;
    --shadow: 0 14px 35px rgba(140,106,60,.08);
    --hover: 0 24px 55px rgba(140,106,60,.16);
    --radius: 24px;
    --transition: .45s cubic-bezier(.4,0,.2,1);
}

/* =======================
RESET
======================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter',sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =======================
BANNER
======================= */
/* =======================
BREADCRUMB
======================= */

.my-news-breadcum {
    margin-top: -85px;
    position: relative;
    z-index: 9;
}

    .my-news-breadcum .container {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(18px);
        border-radius: 26px;
        padding: 22px 28px;
        box-shadow: var(--shadow);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
    }

.slug {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--dark);
    font-weight: 500;
}

    .slug img {
        width: 18px;
    }

/* =======================
SEARCH
======================= */

.news-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .news-search .input {
        position: relative;
    }

    .news-search input {
        border: none;
        background: #faf7f2;
        border-radius: 999px;
        padding: 14px 22px 14px 52px;
        width: 320px;
        outline: none;
        color: var(--dark);
        font-size: 15px;
    }

    .news-search img {
        width: 18px;
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
    }

/* =======================
MAIN
======================= */

.my-news {
    padding: 50px 0;
    background: linear-gradient(180deg,#fff,#f9f6f1);
}

    /* =======================
TITLE
======================= */

    .my-news h1 {
        font-family: 'BeautiqueDisplay-Bold';
        font-size: 42px;
        text-align: center;
        color: var(--dark);
        margin-bottom: 18px;
        letter-spacing: .5px;
    }

    .my-news h2 {
        max-width: 780px;
        margin: auto;
        text-align: center;
        font-size: 16px;
        color: #7d6f61;
    }

/* =======================
TOP GRID
======================= */

.my-news-top {
    display: grid;
    grid-template-columns: 1.45fr .95fr;
    gap: 28px;
    margin-top: 70px;
}

/* =======================
FEATURED
======================= */

.top-left .item {
    display: block;
    height: 514px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .top-left .item img {
        height: 100%;
        transition: 1s ease;
    }

    .top-left .item:before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,transparent 25%,rgba(75,55,37,.82));
        z-index: 2;
    }

.top-left .content {
    position: absolute;
    inset: auto 0 0;
    padding: 42px;
    z-index: 3;
}

.top-left .title {
    font-family: 'BeautiqueDisplay-Bold';
    font-size: 25px;
    color: #fff;
    margin: 14px 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-left .descript {
    color: #f4efe8;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-left .item:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover);
}

    .top-left .item:hover img {
        transform: scale(1.08);
    }

/* =======================
RIGHT SIDE
======================= */

.top-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .top-right .item {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 120px 1fr;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

        .top-right .item img {
            height: 100%;
        }

    .top-right .content {
        padding: 18px;
    }

    .top-right .title {
        font-family: 'BeautiqueDisplay-Medium';
        font-size: 16px;
        color: var(--dark);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .top-right .date-cate {
        color: var(--primary);
        font-size: 13px;
        margin-bottom: 8px;
    }

    .top-right .item:hover {
        transform: translateX(8px);
        box-shadow: var(--hover);
    }

/* =======================
BOTTOM GRID
======================= */

.my-news-bottom {
    margin-top: 40px;
}

.p-news-list__type2 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}

.p-news-item__type2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.p-news-img__type2 img {
    height: 240px;
}

.p-news-content__type2 {
    padding: 22px;
}

.p-news-date__type2 {
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 12px;
}

.p-news-content__type2 h3 {
    font-family: 'BeautiqueDisplay-Medium';
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-news-content__type2 .descript {
    color: #7d6f61;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-news-item__type2:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover);
}

/* =======================
PAGING
======================= */

.news-add-more,
.page-item {
    border-radius: 999px;
}
/* ==========================
TABLET
========================== */

@media(max-width:1024px) {
    .my-news {
        padding: 70px 20px;
    }

    .my-news-top {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 45px;
    }

    .top-left .item {
        height: 500px;
    }

    .p-news-list__type2 {
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }

    .my-news h1 {
        font-size: 46px;
    }
}

/* ==========================
MOBILE
========================== */

@media(max-width:768px) {
    .p-banner {
        height: 200px;
    }

    .my-news {
        padding: 45px 14px;
    }

    /* breadcrumb */

    .my-news-breadcum {
        margin-top: -32px;
        padding: 0 14px;
    }

        .my-news-breadcum .container {
            padding: 14px;
            border-radius: 18px;
            gap: 14px;
            flex-direction: column;
            align-items: stretch;
        }

    .slug {
        font-size: 13px;
        gap: 8px;
        flex-wrap: wrap;
    }

        .slug img {
            width: 14px;
        }

    /* search */

    .news-search {
        width: 100%;
    }

        .news-search .input {
            width: 100%;
        }

        .news-search input {
            width: 100%;
            height: 46px;
            padding: 0 18px 0 46px;
            font-size: 14px;
        }

        .news-search img {
            width: 16px;
            left: 16px;
        }

    /* title */

    .my-news h1 {
        font-size: 30px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .my-news h2 {
        font-size: 14px;
        line-height: 1.7;
        text-align: justify;
    }

    /* featured */

    .top-left .item {
        height: 300px;
        border-radius: 18px;
    }

    .top-left .content {
        padding: 16px;
    }

    .top-left .title {
        font-size: 20px;
        margin: 8px 0;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .top-left .descript {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* right news */

    .top-right {
        gap: 14px;
    }

        .top-right .item {
            grid-template-columns: 86px 1fr;
            border-radius: 16px;
            min-height: 96px;
        }

        .top-right .content {
            padding: 12px;
        }

        .top-right .title {
            font-size: 15px;
            line-height: 1.5;
        }

        .top-right .date-cate {
            font-size: 11px;
            margin-bottom: 5px;
        }

    /* bottom */

    .my-news-bottom {
        margin-top: 38px;
    }

    .p-news-list__type2 {
        grid-template-columns: repeat(2,1fr);
        gap: 16px;
    }

    .p-news-item__type2 {
        border-radius: 18px;
    }

    .p-news-img__type2 img {
        height: 200px;
    }

    .p-news-content__type2 {
        padding: 16px;
    }

        .p-news-content__type2 h3 {
            font-size: 18px;
            margin-bottom: 8px;
        }

        .p-news-content__type2 .descript {
            font-size: 14px;
        }

    /* disable hover */

    .p-news-item__type2:hover,
    .top-right .item:hover,
    .top-left .item:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* ==========================
SMALL MOBILE
========================== */

@media(max-width:480px) {
    .my-news {
        padding: 38px 12px;
    }

        .my-news h1 {
            font-size: 24px;
        }

        .my-news h2 {
            font-size: 14px;
        }

    .top-left .item {
        height: 250px;
    }

    .top-left .title {
        font-size: 17px;
    }

    .top-right .item {
        grid-template-columns: 76px 1fr;
        min-height: 82px;
    }

    .top-right .title {
        font-size: 14px;
    }

    .p-news-img__type2 img {
        height: 155px;
    }

    .p-news-content__type2 h3 {
        font-size: 14px;
    }
}

/* ==========================
PREMIUM HOVER EFFECTS
========================== */

/* smooth */

.top-left .item,
.top-right .item,
.p-news-item__type2,
.top-left img,
.top-right img,
.p-news-img__type2 img,
.top-left .title,
.top-right .title,
.p-news-content__type2 h3 {
    transition: all .55s cubic-bezier(.4,0,.2,1);
}

    /* ==========================
IMAGE SHINE
========================== */

    .top-left .item:after,
    .top-right .item:after,
    .p-news-item__type2:after {
        content: '';
        position: absolute;
        top: 0;
        left: -140%;
        width: 65%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.28), transparent );
        transform: skewX(-22deg);
        transition: 1.2s;
        z-index: 4;
        pointer-events: none;
    }

    /* ==========================
FEATURED HOVER
========================== */

    .top-left .item:hover img {
        transform: scale(1.09) rotate(.8deg);
        filter: brightness(.92);
    }

    .top-left .item:hover:after {
        left: 160%;
    }

    .top-left .item:hover .title {
        transform: translateY(-4px);
        color: #fff7ef;
        text-shadow: 0 8px 20px rgba(0,0,0,.25);
    }

/* ==========================
RIGHT CARD HOVER
========================== */

.top-right .item {
    position: relative;
}

    .top-right .item:hover img {
        transform: scale(1.08);
    }

    .top-right .item:hover:after {
        left: 160%;
    }

    .top-right .item:hover .title {
        color: var(--primary);
        transform: translateX(4px);
    }

/* ==========================
BOTTOM CARD HOVER
========================== */

.p-news-item__type2 {
    position: relative;
}

    .p-news-item__type2:hover img {
        transform: scale(1.08);
    }

    .p-news-item__type2:hover:after {
        left: 160%;
    }

    .p-news-item__type2:hover h3 {
        color: var(--primary);
        transform: translateY(-3px);
    }

/* underline grow */

.top-right .title,
.p-news-content__type2 h3 {
    position: relative;
}

    .top-right .title:after,
    .p-news-content__type2 h3:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 1px;
        background: var(--primary);
        transition: .45s ease;
    }

.top-right .item:hover .title:after,
.p-news-item__type2:hover h3:after {
    width: 60%;
}

/* ==========================
SEARCH HOVER
========================== */

.news-search input {
    transition: .35s ease;
}

    .news-search input:focus {
        box-shadow: 0 0 0 4px rgba(140,106,60,.08);
        background: #fff;
    }

/* ==========================
BREADCRUMB ICON
========================== */

.slug a img {
    transition: .35s ease;
}

.slug a:hover img {
    transform: translateY(-2px) scale(1.12);
    opacity: .85;
}

/* ==========================
DISABLE MOBILE HEAVY HOVER
========================== */

@media(max-width:768px) {
    .top-left .item:hover img,
    .top-right .item:hover img,
    .p-news-item__type2:hover img {
        transform: none;
        filter: none;
    }

    .top-left .item:hover .title,
    .top-right .item:hover .title,
    .p-news-item__type2:hover h3 {
        transform: none;
        color: inherit;
        text-shadow: none;
    }

    .top-left .item:after,
    .top-right .item:after,
    .p-news-item__type2:after {
        display: none;
    }
}