/* wp-content/themes/baolecat/assets/css/template-chuyen-mon.css */

.custom-category-layout {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.custom-category-layout .entry-header {
    border-bottom: 6px solid #111;
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

.custom-category-layout .entry-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    letter-spacing: -0.02em;
}

/* Page Intro & Hardcoded Content */
.page-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
}

.page-intro h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-intro h2:not(:first-child) {
    margin-top: 3rem;
}

.page-intro img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
}

.custom-gallery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.custom-gallery-links a {
    display: inline-block;
    padding: 5px 10px;
    background: #eee;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-gallery-links a:hover {
    background: #111;
    color: #fff;
}

/* Tag Sections & Post Grid */
.tag-section {
    margin-bottom: 5rem;
}

.tag-section > h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    border-left: 6px solid #111;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

/* Grid is reused from blog-archive.css, but isolated here in case this page loads independently */
.custom-category-layout .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem 2rem;
}

.custom-category-layout .grid-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #111;
    padding-bottom: 2rem;
}

.custom-category-layout .post-thumbnail {
    margin-bottom: 1.5rem;
    aspect-ratio: 3/2;
    overflow: hidden;
    background-color: #f4f4f4;
}

.custom-category-layout .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-category-layout .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-category-layout .post-thumbnail a:hover img {
    transform: scale(1.03);
}

.custom-category-layout .entry-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
    margin-bottom: 0.75rem;
}

.custom-category-layout h3.entry-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

.custom-category-layout h3.entry-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-category-layout h3.entry-title a:hover {
    color: #555;
}

.custom-category-layout .entry-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-top: auto;
}