﻿/* ==============================
   Posts Page
   Main Color: #e886ae
   Sub Color: #d8759e
================================= */

.posts-page {
    width: 100%;
    padding: 68px 0 82px;
    background: #f3f5f6;
}

.posts-container {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.posts-main {
    flex: 1;
    min-width: 0;
}

.posts-sidebar {
    width: 330px;
    flex-shrink: 0;
    position: sticky;
    top: 155px;
}


/* ==============================
   Section Common
================================= */

.posts-section {
    width: 100%;
    padding: 32px 30px 36px;
    background: #ffffff;
    border: 1px solid #f5d6e3;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(216, 117, 158, 0.08);
}

.posts-section + .posts-section {
    margin-top: 30px;
}

.posts-section-title {
    margin-bottom: 26px;
}

.posts-section-title span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 17px;
    border-radius: 999px;
    background: #fff1f7;
    color: #e886ae;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: myFirstFont1;
}

.posts-section-title h1,
.posts-section-title h2 {
    margin: 0;
    color: #111111;
    font-size: 30px;
    line-height: 1.35;
    font-family: myFirstFont1;
}


/* ==============================
   List Page Simple Posts
================================= */

.posts-list {
    width: 100%;
}

.posts-list-item {
    display: block;
    padding: 24px 0;
    border-bottom: 1px solid #f5d6e3;
    text-decoration: none;
    transition: all .25s ease;
}

.posts-list-item:first-child {
    padding-top: 0;
}

.posts-list-item:last-child {
    border-bottom: none;
}

.posts-list-text {
    position: relative;
    padding-left: 22px;
}

.posts-list-text:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(180deg, #e886ae 0%, #d8759e 100%);
}

.posts-list-text em {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #777777;
    font-size: 13px;
    line-height: 20px;
    font-style: normal;
}

.posts-list-text em i {
    margin-right: 7px;
    color: #e886ae;
}

.posts-list-text h2 {
    margin: 0;
    color: #111111;
    font-size: 22px;
    line-height: 1.45;
    font-family: myFirstFont1;
    transition: all .25s ease;
}

.posts-list-text p {
    max-height: 56px;
    overflow: hidden;
    margin: 10px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 28px;
}

.posts-list-text span {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: #e886ae;
    font-size: 14px;
    line-height: 22px;
    font-family: myFirstFont1;
}

.posts-list-text span i {
    margin-left: 8px;
    transition: all .25s ease;
}

.posts-list-item:hover {
    transform: translateX(5px);
}

.posts-list-item:hover .posts-list-text h2 {
    color: #e886ae;
}

.posts-list-item:hover .posts-list-text span i {
    transform: translateX(4px);
}


/* ==============================
   Recommended Articles
================================= */

.posts-red-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.posts-red-item {
    display: block;
    background: #ffffff;
    border: 1px solid #f5d6e3;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(216, 117, 158, 0.06);
    transition: all .3s ease;
}

.posts-red-item:hover {
    transform: translateY(-6px);
    border-color: #e886ae;
    box-shadow: 0 20px 45px rgba(216, 117, 158, 0.15);
}

.posts-red-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fff8fb;
}

.posts-red-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .45s ease;
}

.posts-red-item:hover .posts-red-img img {
    transform: scale(1.06);
}

.posts-red-text {
    padding: 22px 22px 26px;
}

.posts-red-text em {
    display: flex;
    align-items: center;
    color: #777777;
    font-size: 13px;
    line-height: 20px;
    font-style: normal;
    margin-bottom: 10px;
}

.posts-red-text em i {
    margin-right: 7px;
    color: #e886ae;
}

.posts-red-text h2 {
    height: 58px;
    overflow: hidden;
    margin: 0;
    color: #111111;
    font-size: 20px;
    line-height: 29px;
    font-family: myFirstFont1;
    transition: all .25s ease;
}

.posts-red-text p {
    height: 52px;
    overflow: hidden;
    margin: 12px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 26px;
}

.posts-red-text span {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: #e886ae;
    font-size: 14px;
    line-height: 22px;
    font-family: myFirstFont1;
}

.posts-red-text span i {
    margin-left: 8px;
    transition: all .25s ease;
}

.posts-red-item:hover .posts-red-text h2 {
    color: #e886ae;
}

.posts-red-item:hover .posts-red-text span i {
    transform: translateX(4px);
}


/* ==============================
   Hot Main Articles
================================= */

.posts-hot-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.posts-hot-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    background: #fff8fb;
    border: 1px solid #f5d6e3;
    border-radius: 16px;
    text-decoration: none;
    transition: all .3s ease;
}

.posts-hot-card:hover {
    background: #ffffff;
    border-color: #e886ae;
    box-shadow: 0 18px 38px rgba(216, 117, 158, 0.14);
    transform: translateY(-4px);
}

.posts-hot-card-img {
    width: 100%;
    height: 135px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.posts-hot-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .45s ease;
}

.posts-hot-card:hover .posts-hot-card-img img {
    transform: scale(1.06);
}

.posts-hot-card-text {
    min-width: 0;
}

.posts-hot-card-text em {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #777777;
    font-size: 13px;
    line-height: 20px;
    font-style: normal;
}

.posts-hot-card-text em i {
    margin-right: 7px;
    color: #e886ae;
}

.posts-hot-card-text h3 {
    height: 52px;
    overflow: hidden;
    margin: 0;
    color: #111111;
    font-size: 18px;
    line-height: 26px;
    font-family: myFirstFont1;
    transition: all .25s ease;
}

.posts-hot-card-text p {
    height: 48px;
    overflow: hidden;
    margin: 10px 0 0;
    color: #666666;
    font-size: 14px;
    line-height: 24px;
}

.posts-hot-card:hover .posts-hot-card-text h3 {
    color: #e886ae;
}


/* ==============================
   Sidebar
================================= */

.posts-side-box {
    width: 100%;
    padding: 26px 22px;
    background: #ffffff;
    border: 1px solid #f5d6e3;
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(216, 117, 158, 0.08);
}

.posts-side-box + .posts-side-box {
    margin-top: 24px;
}

.posts-side-box h2 {
    position: relative;
    margin: 0 0 20px;
    padding-left: 15px;
    color: #111111;
    font-size: 22px;
    line-height: 32px;
    font-family: myFirstFont1;
}

.posts-side-box h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: #e886ae;
}


/* Categories */

.posts-category-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.posts-category-list li {
    width: 100%;
    margin-bottom: 10px;
    list-style: none;
}

.posts-category-list li:last-child {
    margin-bottom: 0;
}

.posts-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 15px;
    color: #333333;
    font-size: 15px;
    line-height: 22px;
    background: #fff8fb;
    border: 1px solid #f5d6e3;
    border-radius: 10px;
    text-decoration: none;
    transition: all .25s ease;
}

.posts-category-list li a span {
    flex: 1;
    min-width: 0;
}

.posts-category-list li a i {
    margin-left: 10px;
    color: #e886ae;
    transition: all .25s ease;
}

.posts-category-list li a:hover {
    color: #ffffff;
    background: linear-gradient(270deg, #d8759e 0%, #e886ae 100%);
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(216, 117, 158, 0.18);
    transform: translateX(4px);
}

.posts-category-list li a:hover i {
    color: #ffffff;
}


/* Sidebar Recommended */

.posts-side-article-list {
    width: 100%;
}

.posts-side-article-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f5e3eb;
    text-decoration: none;
    transition: all .25s ease;
}

.posts-side-article-item:first-child {
    padding-top: 0;
}

.posts-side-article-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.posts-side-article-item:hover {
    transform: translateX(3px);
}

.posts-side-article-img {
    width: 92px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff8fb;
}

.posts-side-article-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .4s ease;
}

.posts-side-article-text {
    flex: 1;
    min-width: 0;
}

.posts-side-article-text h3 {
    height: 44px;
    overflow: hidden;
    margin: 0;
    color: #111111;
    font-size: 15px;
    line-height: 22px;
    font-family: myFirstFont1;
    transition: all .25s ease;
}

.posts-side-article-text p {
    height: 20px;
    overflow: hidden;
    margin: 6px 0 0;
    color: #777777;
    font-size: 13px;
    line-height: 20px;
}

.posts-side-article-item:hover .posts-side-article-img img {
    transform: scale(1.08);
}

.posts-side-article-item:hover .posts-side-article-text h3 {
    color: #e886ae;
}


/* ==============================
   Mobile
================================= */

@media screen and (max-width: 991px) {
    .posts-container {
        display: block;
    }

    .posts-sidebar {
        width: 100%;
        margin-top: 24px;
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .posts-page {
        padding: 42px 0 52px;
    }

    .posts-section {
        padding: 24px 20px 28px;
        border-radius: 16px;
    }

    .posts-section + .posts-section {
        margin-top: 20px;
    }

    .posts-section-title {
        margin-bottom: 20px;
    }

    .posts-section-title span {
        font-size: 12px;
        padding: 6px 15px;
    }

    .posts-section-title h1,
    .posts-section-title h2 {
        font-size: 24px;
    }

    .posts-list-item {
        padding: 22px 0;
    }

    .posts-list-text {
        padding-left: 17px;
    }

    .posts-list-text:before {
        top: 8px;
        width: 4px;
        height: 36px;
    }

    .posts-list-text h2 {
        font-size: 19px;
        line-height: 1.45;
    }

    .posts-list-text p {
        max-height: 72px;
        font-size: 13px;
        line-height: 24px;
    }

    .posts-list-text span {
        margin-top: 12px;
    }

    .posts-red-list,
    .posts-hot-card-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .posts-red-img {
        height: 210px;
    }

    .posts-red-text {
        padding: 20px;
    }

    .posts-red-text h2 {
        height: auto;
        font-size: 18px;
        line-height: 1.45;
    }

    .posts-red-text p {
        height: auto;
        max-height: 72px;
        font-size: 13px;
        line-height: 24px;
    }

    .posts-hot-card {
        display: block;
        padding: 16px;
    }

    .posts-hot-card-img {
        height: 210px;
        margin-bottom: 15px;
    }

    .posts-hot-card-text h3 {
        height: auto;
        font-size: 18px;
        line-height: 1.45;
    }

    .posts-hot-card-text p {
        height: auto;
        max-height: 72px;
        font-size: 13px;
        line-height: 24px;
    }

    .posts-list-item:hover,
    .posts-category-list li a:hover,
    .posts-side-article-item:hover {
        transform: none;
    }

    .posts-side-box {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .posts-side-box + .posts-side-box {
        margin-top: 20px;
    }

    .posts-side-box h2 {
        font-size: 20px;
        line-height: 30px;
        margin-bottom: 16px;
    }

    .posts-category-list {
        max-height: 260px;
        overflow-y: auto;
        padding-right: 4px;
    }

    .posts-category-list li a {
        min-height: 42px;
        padding: 9px 13px;
        font-size: 14px;
    }

    .posts-side-article-img {
        width: 86px;
        height: 68px;
    }

    .posts-side-article-text h3 {
        font-size: 14px;
        line-height: 21px;
        height: 42px;
    }
}