/* ===========================
   TRANG TIN TỨC - MODERN LANDING STYLE
   =========================== */

/* Import Google Font Philosophy if not already available */
@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Post Page Container */
.post-page {
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
    /* Limit width for better readability */
    margin: 0 auto;
    /* Center the content */
}

/* Tiêu đề bài viết */
.post-page h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    /* Fluid font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--zz-blue);
    margin: 0 0 20px 0;
    text-align: center;
}

.post-page p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--zz-blue-dark);
    font-family: 'Poppins', sans-serif;
}

/* Meta thông tin */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    /* Center meta info */
    padding: 15px 0;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.post-meta .date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.post-meta .categories a {
    background: var(--zz-blue-light);
    color: var(--zz-blue);
    padding: 4px 12px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.post-meta .categories a:hover {
    background: var(--zz-blue);
    color: white;
}


/* Typography & Content */
.post-content {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--zz-blue-dark);
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: 'Philosopher', sans-serif;
    color: var(--zz-blue);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 32px;
}

.post-content h3 {
    font-size: 26px;
}

.post-content h4 {
    font-size: 22px;
}

.post-content p {
    margin-bottom: 24px;
    text-align: justify;
}

/* Highlights */
.post-content strong,
.post-content b {
    font-weight: 700;
    color: var(--zz-blue-dark);
}

/* Modern Lists - Unordered (Feature List Style) */
.post-content ul {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    display: grid;
    gap: 16px;
}

.post-content ul li {
    position: relative;
    padding-left: 36px;
    margin: 0;
}

.post-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--zz-blue-light);
    color: var(--zz-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

/* Modern Lists - Ordered (Step Style) */
.post-content ol {
    counter-reset: post-counter;
    list-style: none;
    padding: 0;
    margin: 32px 0;
    display: grid;
    gap: 24px;
}

.post-content ol li {
    position: relative;
    padding-left: 50px;
    margin: 0;
    counter-increment: post-counter;
}

.post-content ol li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--zz-blue);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 6px -1px rgba(15, 107, 172, 0.3);
}

/* Nested Lists */
.post-content ul ul,
.post-content ol ul,
.post-content ul ol,
.post-content ol ol {
    margin: 16px 0;
    padding-left: 20px;
    border-left: 2px solid #e5e7eb;
}

.post-content ul ul li::before {
    content: "•";
    background: transparent;
    color: var(--zz-blue);
    font-size: 24px;
    width: auto;
    height: auto;
    top: -8px;
    left: -5px;
}

/* Blockquotes (Highlight Box) */
.post-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: var(--zz-blue-light);
    border-left: 4px solid var(--zz-blue);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.post-content blockquote p {
    margin: 0;
    font-size: 20px;
    font-style: italic;
    color: var(--zz-blue-dark);
    font-weight: 500;
    font-family: 'Philosopher', sans-serif;
    text-align: left;
    /* Reset justify for quotes */
}
/* 
.post-content blockquote::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    line-height: 1;
    color: var(--zz-blue);
    opacity: 0.2;
    pointer-events: none;
    font-family: serif;
} */

/* Images & Media */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-content figure {
    margin: 40px 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
    font-style: italic;
}

/* Responsive Iframes (Videos) */
.post-content iframe {
    max-width: 100%;
    margin: 30px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Force scroll on small screens */
}

.post-content th {
    background: var(--zz-blue-light);
    color: var(--zz-blue-dark);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    font-family: 'Philosopher', sans-serif;
}

.post-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.post-content tr:last-child td {
    border-bottom: none;
}

/* Links */
.post-content a {
    color: var(--zz-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    font-weight: 600;
}

.post-content a:hover {
    border-bottom-color: var(--zz-blue);
}

/* Grid Centering Rule */
.post-content .grid,
.post-content [class*="grid-"] {
    display: grid;
    justify-content: center;
    /* Always center grid items */
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-page h1 {
        font-size: 24px;
    }

    .post-page p {
        font-size: 16px;
    }

    .post-content {
        font-size: 16px;
    }

    .post-content h2 {
        font-size: 26px;
    }

    .post-content h3 {
        font-size: 22px;
    }

    .post-content blockquote {
        padding: 20px;
    }

    .post-content blockquote p {
        font-size: 18px;
    }

    .post-content ul,
    .post-content ol {
        gap: 12px;
    }
}