/* ===== TT-PMH: Trang Tin Tức Phú Mỹ Hưng ===== */
/* Prefix: tt-pmh- */

:root {
    --red-primary: #750e24;
    --red-dark: #4a0816;
    --red-medium: #8c1129;
    --red-light: #a0182f;
    --red-accent: #b32038;
    --gold: #C9A84C;
    --gold-dark: #A68B3C;
    --gold-light: #E8D48B;
    --gold-pale: #FDF8E8;
    --cream: #FFFDF8;
    --dark: #1a0508;
    --dark-medium: #2d080d;
    --text-dark: #1a0508;
    --text-body: #4a1518;
    --text-muted: #7a4048;
    --bg-light: #FDF6F0;
    --bg-white: #FFFFFF;
    --border-color: #F0E0D0;
    --border-gold: rgba(201, 168, 76, 0.3);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== GENERAL RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--bg-white);
    padding-top: 108px;
}
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; line-height: 1.3; }
a { color: var(--red-primary); text-decoration: none; transition: var(--transition-smooth); }
a:hover, a:focus { color: var(--gold); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== SCROLL PROGRESS ===== */
.tt-pmh-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--gold));
    z-index: 99999;
    transition: width .1s linear;
}

/* ===== NEWS SECTION ===== */
.tt-pmh-news-section {
    padding: 60px 0 80px;
    background: var(--bg-white);
}

.tt-pmh-section-heading {
    text-align: center;
    margin-bottom: 50px;
}
.tt-pmh-section-heading .tt-pmh-sub-title {
    font-size: 13px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}
.tt-pmh-section-heading h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}
.tt-pmh-divider-gold {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto 20px;
    border-radius: 2px;
}
.tt-pmh-section-heading p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NEWS GRID ===== */
.tt-pmh-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ===== NEWS CARD ===== */
.tt-pmh-news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}
.tt-pmh-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.tt-pmh-news-card-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.tt-pmh-news-card-wrapper:hover,
.tt-pmh-news-card-wrapper:focus {
    text-decoration: none;
    color: inherit;
}

.tt-pmh-news-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}
.tt-pmh-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tt-pmh-news-card:hover .tt-pmh-news-card-img img {
    transform: scale(1.05);
}
.tt-pmh-news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tt-pmh-news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tt-pmh-news-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.tt-pmh-news-card-meta i {
    color: var(--gold);
    margin-right: 4px;
}
.tt-pmh-news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s;
}
.tt-pmh-news-card:hover .tt-pmh-news-card-title {
    color: var(--red-primary);
}
.tt-pmh-news-card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}
.tt-pmh-news-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .3s;
    margin-top: auto;
}
.tt-pmh-news-card-link:hover {
    color: var(--gold);
    gap: 10px;
}

/* ===== PAGINATION ===== */
.tt-pmh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
/* ===== PAGINATION (WordPress pager) ===== */
ul.pager {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
ul.pager li a,
ul.pager li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all .3s;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
}
ul.pager li a:hover {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--red-primary);
    text-decoration: none;
}

/* Trang hiện tại (li.active) */
ul.pager li.active a {
    background: var(--red-primary);
    color: #fff;
    border-color: var(--red-primary);
}

/* Dấu … */
ul.pager li:not(.active):not(.next_link) {
    border: none;
    background: transparent;
}
ul.pager li:not(.active):not(.next_link):not(:has(a)) {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

/* Các li có link (số trang) - giữ border */
ul.pager li:has(a) {
    border: none;
}
ul.pager li a {
    border: 1px solid var(--border-color);
}

/* Nút Tiếp (next) */
ul.pager li.next_link a {
    width: auto;
    padding: 0 15px;
}


/* ===== BREADCRUMB ===== */
.tt-pmh-breadcrumb-section {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.tt-pmh-breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.tt-pmh-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tt-pmh-breadcrumb li a {
    color: var(--text-muted);
    transition: color .3s;
}
.tt-pmh-breadcrumb li a:hover {
    color: var(--red-primary);
}
.tt-pmh-breadcrumb li.tt-pmh-breadcrumb-active {
    color: var(--red-primary);
    font-weight: 600;
}
.tt-pmh-breadcrumb li .tt-pmh-breadcrumb-sep {
    color: var(--gold);
    font-size: 10px;
}

/* ===== SEO CONTENT BOX ===== */
.tt-pmh-seo-box {
    margin-top: 50px;
    padding: 50px 40px;
    border: 2px dashed var(--gold);
    background: transparent;
    border-radius: var(--radius-md);
    position: relative;
    text-align: center;
}
.tt-pmh-seo-content {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.9;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
    text-align: left;
}
.tt-pmh-seo-content.tt-pmh-seo-expanded {
    max-height: 3000px;
}
.tt-pmh-seo-content:not(.tt-pmh-seo-expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(transparent, var(--bg-white));
    pointer-events: none;
}
.tt-pmh-seo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 500;
    color: var(--red-primary);
    background: transparent;
    border: 1px solid var(--red-primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all .3s;
    letter-spacing: 0.3px;
}
.tt-pmh-seo-toggle:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
}
.tt-pmh-seo-toggle i {
    font-size: 12px;
    transition: transform .3s;
}
.tt-pmh-seo-toggle.tt-pmh-seo-toggle-active i {
    transform: rotate(180deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .tt-pmh-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .tt-pmh-section-heading h2 {
        font-size: 30px;
    }
}
@media (max-width: 575px) {
    .tt-pmh-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tt-pmh-news-section {
        padding: 40px 0 60px;
    }
    .tt-pmh-section-heading h2 {
        font-size: 26px;
    }
}
