/* =========================================================
   EMDY NEWS PAGE
   Class riêng .emdy-news-* để không ảnh hưởng CSS cũ
========================================================= */

:root{
    --news-primary: #ff2e74;
    --news-primary-2: #ff7aa5;
    --news-dark: #21151b;
    --news-muted: #7d6871;
    --news-soft: #fff3f8;
    --news-border: rgba(255,46,116,0.16);
    --news-shadow: 0 18px 55px rgba(255,46,116,0.16);
}

.emdy-news-page,
.emdy-news-page *{
    box-sizing: border-box;
    font-family: "Times New Roman", Times, serif;
}

.emdy-news-page{
    background:
        radial-gradient(circle at 12% 18%, rgba(255,122,165,0.22), transparent 28%),
        radial-gradient(circle at 88% 40%, rgba(255,46,116,0.14), transparent 30%),
        linear-gradient(180deg, #fff8fb 0%, #ffffff 44%, #fff3f8 100%);
    color: var(--news-dark);
}

/* =========================================================
   HERO
========================================================= */

.emdy-news-hero{
    min-height: 430px;
    padding: 90px 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../Images/banner/banner 4.jpg');
    background-size: cover;
    background-position: center;
}

.emdy-news-hero-content{
    width: min(920px, 100%);
    text-align: center;
    color: white;
}

.emdy-news-hero-content span{
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.32);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.emdy-news-hero-content h1{
    font-size: 72px;
    line-height: 1.08;
    margin: 0 0 24px;
    font-weight: 800;
    text-shadow: 0 12px 30px rgba(0,0,0,0.26);
}

.emdy-news-hero-content p{
    width: min(720px, 100%);
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
}

/* =========================================================
   LAYOUT
========================================================= */

.emdy-news-layout{
    width: min(1450px, 92%);
    margin: 0 auto;
    padding: 90px 0 110px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 38px;
}

.emdy-news-toolbar{
    margin-bottom: 38px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255,255,255,0.76);
    border: 1px solid var(--news-border);
    box-shadow: 0 12px 34px rgba(255,46,116,0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.emdy-news-toolbar span{
    display: inline-block;
    color: var(--news-primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.emdy-news-toolbar h2{
    margin: 0;
    color: var(--news-dark);
    font-size: 42px;
    line-height: 1.15;
}

.emdy-news-toolbar p{
    margin: 8px 0 0;
    color: var(--news-muted);
    font-size: 17px;
}

/* =========================================================
   SEARCH
========================================================= */

.emdy-news-search{
    display: flex;
    align-items: center;
    width: min(380px, 100%);
    height: 54px;
    border-radius: 999px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--news-border);
    box-shadow: 0 10px 24px rgba(255,46,116,0.08);
}

.emdy-news-search input{
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 18px;
    color: var(--news-dark);
    font-size: 17px;
}

.emdy-news-search button{
    width: 78px;
    height: 100%;
    border: none;
    color: white;
    background: linear-gradient(135deg, var(--news-primary-2), var(--news-primary));
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   GRID
========================================================= */

.emdy-news-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.emdy-news-card{
    overflow: hidden;
    border-radius: 32px;
    background: white;
    border: 1px solid rgba(255,46,116,0.10);
    box-shadow: 0 14px 38px rgba(0,0,0,0.07);
    transition: 0.25s ease;
}

.emdy-news-card:hover{
    transform: translateY(-8px);
    box-shadow: var(--news-shadow);
}

.emdy-news-image{
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    background: var(--news-soft);
}

.emdy-news-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
}

.emdy-news-card:hover .emdy-news-image img{
    transform: scale(1.06);
}

.emdy-news-image span{
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 9px 18px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--news-primary-2), var(--news-primary));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255,46,116,0.25);
}

.emdy-news-content{
    padding: 28px;
}

.emdy-news-content small{
    color: var(--news-muted);
    font-size: 15px;
    font-weight: 700;
}

.emdy-news-content h3{
    min-height: 72px;
    margin: 12px 0 14px;
    font-size: 26px;
    line-height: 1.35;
}

.emdy-news-content h3 a{
    color: var(--news-dark);
    text-decoration: none;
}

.emdy-news-content h3 a:hover{
    color: var(--news-primary);
}

.emdy-news-content p{
    min-height: 82px;
    margin: 0 0 22px;
    color: var(--news-muted);
    font-size: 17px;
    line-height: 1.7;
}

.emdy-read-more{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--news-primary-2), var(--news-primary));
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    transition: 0.25s ease;
}

.emdy-read-more:hover{
    transform: translateY(-3px);
}

/* =========================================================
   SIDEBAR
========================================================= */

.emdy-news-sidebar{
    display: grid;
    gap: 28px;
    align-content: start;
}

.emdy-sidebar-box{
    padding: 28px;
    border-radius: 30px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--news-border);
    box-shadow: 0 12px 34px rgba(255,46,116,0.10);
}

.emdy-sidebar-box h3{
    position: relative;
    margin: 0 0 26px;
    color: var(--news-dark);
    font-size: 28px;
    line-height: 1.2;
}

.emdy-sidebar-box h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--news-primary-2), var(--news-primary));
}

.emdy-sidebar-box > a:not(.emdy-recent-news){
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 16px;
    color: var(--news-muted);
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    background: rgba(255,255,255,0.68);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.25s ease;
}

.emdy-sidebar-box > a:not(.emdy-recent-news):hover,
.emdy-sidebar-box > a.active{
    color: var(--news-primary);
    background: white;
    border-color: var(--news-border);
    box-shadow: 0 10px 24px rgba(255,46,116,0.10);
}

.emdy-sidebar-box small{
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: white;
    background: var(--news-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   RECENT NEWS
========================================================= */

.emdy-recent-news{
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--news-dark);
    transition: 0.25s ease;
}

.emdy-recent-news:hover{
    background: white;
    box-shadow: 0 10px 24px rgba(255,46,116,0.10);
}

.emdy-recent-news img{
    width: 86px;
    height: 74px;
    border-radius: 14px;
    object-fit: cover;
}

.emdy-recent-news strong{
    display: block;
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.emdy-recent-news small{
    display: inline-flex;
    width: auto;
    height: auto;
    color: var(--news-muted);
    background: transparent;
    padding: 0;
}

/* =========================================================
   DETAIL
========================================================= */

.emdy-news-detail-wrap{
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 90px 0 110px;
}

.emdy-news-detail{
    padding: 36px;
    border-radius: 36px;
    background: white;
    border: 1px solid var(--news-border);
    box-shadow: var(--news-shadow);
}

.emdy-news-detail-image{
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    border-radius: 28px;
    margin-bottom: 28px;
}

.emdy-news-detail-meta{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.emdy-news-detail-meta span{
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--news-soft);
    color: var(--news-primary);
    font-size: 15px;
    font-weight: 800;
}

.emdy-news-detail h2{
    margin: 0 0 20px;
    color: var(--news-dark);
    font-size: 52px;
    line-height: 1.16;
}

.emdy-news-detail-summary{
    margin: 0 0 26px;
    color: var(--news-muted);
    font-size: 22px;
    line-height: 1.7;
    font-weight: 700;
}

.emdy-news-detail-content{
    color: var(--news-dark);
    font-size: 20px;
    line-height: 1.9;
}

.emdy-news-back{
    margin-top: 34px;
    display: inline-flex;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--news-primary);
    color: white;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
}

/* =========================================================
   PAGINATION + EMPTY
========================================================= */

.emdy-news-pagination{
    margin-top: 58px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.emdy-news-pagination a{
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--news-primary);
    background: white;
    border: 1px solid var(--news-border);
    box-shadow: 0 10px 24px rgba(255,46,116,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    transition: 0.25s ease;
}

.emdy-news-pagination a:hover,
.emdy-news-pagination a.active{
    color: white;
    background: var(--news-primary);
    transform: translateY(-3px);
}

.emdy-news-empty{
    padding: 70px 30px;
    border-radius: 34px;
    background: white;
    border: 1px solid var(--news-border);
    box-shadow: var(--news-shadow);
    text-align: center;
}

.emdy-news-empty h2{
    margin: 0 0 14px;
    color: var(--news-dark);
    font-size: 38px;
}

.emdy-news-empty p{
    margin: 0 0 28px;
    color: var(--news-muted);
    font-size: 18px;
}

.emdy-news-empty a{
    display: inline-flex;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--news-primary);
    color: white;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1150px){
    .emdy-news-layout{
        grid-template-columns: 1fr;
    }

    .emdy-news-sidebar{
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:800px){
    .emdy-news-hero-content h1{
        font-size: 48px;
    }

    .emdy-news-hero-content p{
        font-size: 18px;
    }

    .emdy-news-layout{
        padding: 65px 0 85px;
    }

    .emdy-news-toolbar{
        flex-direction: column;
        align-items: flex-start;
    }

    .emdy-news-search{
        width: 100%;
    }

    .emdy-news-grid{
        grid-template-columns: 1fr;
    }

    .emdy-news-sidebar{
        grid-template-columns: 1fr;
    }

    .emdy-news-detail h2{
        font-size: 38px;
    }
}

@media(max-width:520px){
    .emdy-news-hero{
        min-height: 350px;
        padding: 70px 5%;
    }

    .emdy-news-hero-content h1{
        font-size: 38px;
    }

    .emdy-news-toolbar h2{
        font-size: 34px;
    }

    .emdy-news-detail{
        padding: 24px;
    }

    .emdy-news-detail h2{
        font-size: 32px;
    }

    .emdy-news-detail-content{
        font-size: 18px;
    }
}
