/* BASE & TYPOGRAPHY */
body {
    margin: 96px auto;
    max-width: 640px;
    padding: 0 clamp(18px, 4vw, 32px);
    background: 
        radial-gradient(circle at top left, rgba(122,162,255,0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(214,185,140,0.08), transparent 25%),
        #081120;
    color: #F5F7FA;
    font-family: 'Inter', sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.25;
}
h1 {
    font-size: clamp(34px, 5vw, 44px);
    margin-bottom: 20px;
}
h2 {
    font-size: clamp(22px, 3.5vw, 26px);
    margin: 12px 0;
}
h3 {
    font-size: clamp(17px, 2.5vw, 20px);
    font-weight: 400;
    margin: 8px 0 20px;
}
p {
    font-size: clamp(15px, 2.2vw, 16px);
    margin-bottom: 20px;
    letter-spacing: -0.005em;
}

/* NAVIGATION & FOOTER */
nav {
    margin-bottom: 72px;
    backdrop-filter: blur(10px);
    background: rgba(8,17,32,0.6);
    border: 1px solid rgba(255,255,255,0.06);
}
nav ul,
footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    
}
nav ul {
    gap: clamp(14px, 3.5vw, 28px);
    margin-bottom: 20px;
}
footer ul {
    gap: clamp(14px, 3.5vw, 32px);
}
nav a,
footer a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}
nav a:hover,
footer a:hover,
.cta:hover {
    opacity: 0.5;
    color: #7AA2FF;
    transform: translateY(-2px);
}
footer {
    margin-top: 120px;
    margin-bottom: 60px;
}

/* COMPONENTS */
hr {
    display: none;
}
.cta {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    font-style: bold;
    text-decoration: none;
    color: #1a1a1a;
    border-bottom: 1px solid rgba(26, 26, 26, 0.3);
    transition: border-color 0.3s;
}
.features {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 36px);
    padding: 16px 0;
    color: #777;
}
.features figure {
    width: clamp(60px, 14vw, 80px);
    text-align: center;
    margin: 0;
    text-transform: uppercase;
}
.features img {
    width: 100%;
    border-radius: 10px;
}

:root {
    --text-primary: #1c1c1c;
    --text-secondary: #555;
    --text-muted: #7a7a7a;

    --border-subtle: rgba(0, 0, 0, 0.06);

    --fs-heading: 32px;
    --fs-title: 22px;
    --fs-body: 16px;
    --fs-small: 13px;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.posts,
.post-container {
    max-width: 680px;
    margin: 0 auto;
}

.post-date {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

/* unified link underline system */
.post-title a,
.post-category a,
.post-content a,
.post-footer a,
.more-item a {
    color: inherit;
    text-decoration: none;
    position: relative;
}

.post-title a::after,
.post-category a::after,
.post-content a::after,
.post-footer a::after,
.more-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.post-title a:hover::after,
.post-category a:hover::after,
.post-content a:hover::after,
.post-footer a:hover::after,
.more-item a:hover::after {
    width: 100%;
}

.post-item {
    margin-bottom: 44px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
    margin-top: 44px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.post-item:hover {
    transform: translateY(-2px);
}

.post-item:hover ~ .post-item {
    opacity: 0.55;
}

.post-title {
    font-size: var(--fs-title);
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.post-header {
    margin-bottom: 48px;
}

.post-heading {
    font-size: var(--fs-heading);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.post-meta {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.post-meta span {
    margin-right: 6px;
}

.post-featured-image {
    margin-bottom: 36px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.post-content {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: #222;
}

.post-content p {
    margin-bottom: 20px;
}

.post-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.post-footer p {
    font-style: italic;
    font-size: var(--fs-body);
}

/* FEATURED IMAGE */
.post-featured-image {
    margin-bottom: 36px;
}
.post-featured-image img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}
.image-caption {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}
/* CONTENT */
.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}

.post-content p {
    margin-bottom: 20px;
}

/* FOOTER */

.post-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-style: italic;
}
.post-footer p {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 16px;
}
.post-footer a {
    position: relative;
    color: inherit;
    text-decoration: none;
}
.post-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.post-footer a:hover::after {
    width: 100%;
}
/* MORE POSTS */

.more-posts {
    margin-top: 90px;
}
.more-title {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
}
.more-list {
    list-style: none;
    padding: 0;
}
.more-item {
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}
.more-item:hover ~ .more-item {
    opacity: 0.6;
}
.more-item a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
}
.more-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}
.more-item a:hover::after {
    width: 100%;
}
body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 32px;
}
.category-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
    border-color: #e5e5e5;
}
.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.category-card:hover .category-image {
    transform: scale(1.02);
}
.category-content h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: #222;
    margin-top: 0;
    padding: 10px 0 0 20px;
    font-weight: bold;
}
.category-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1;
    padding: 10px 0 25px 20px;
}

/* PAGINATION BUTTONS */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.nav-btn {
    padding: 6px 14px;
    border: 1px solid #1a1a1a;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}
.nav-btn:hover:not(:disabled) {
    background: #1a1a1a;
    color: #fff;
}
.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.nav-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
#page-number {
    font-size: 13px;
    font-weight: 500;
}
.hidden {
  display: none;
}

/* PORTFOLIO CONTAINER */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}
.project-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
    border-color: #e5e5e5;
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card:hover img {
    transform: scale(1.02);
}
.project-card h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: #222;
    margin-top: 0;
    padding: 10px 0 0 20px;
    font-weight: bold;
}
.project-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1;
    padding: 10px 0 25px 20px;
}
@media (max-width: 768px) {
    .portfolio-grid {
        gap: 20px;
    }
    .project-card img {
        height: 180px;
    }
}

.lang-switch {
    margin-top: 8px;
    font-size: 14px;
}
.lang-switch a {
    text-decoration: none;
    color: #6b7280; /* xám nhẹ */
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}
.lang-switch a:hover {
    color: #111827; /* gần đen */
    border-bottom: 1px solid #111827;
}
