@charset "utf-8";

:root {
    --primary-color: #0E3B2E;
    --primary-light: #14523F;
    --secondary-color: #D9822B;
    --secondary-hover: #E89A45;
    --accent-color: #1B6B4F;
    --text-color: #17201C;
    --text-light: #F4F1EA;
    --bg-color: #F2EFE8;
    --card-bg: #FFFFFF;
    --card-hover-bg: #EAF3EC;
    --border-light: rgba(14, 59, 46, 0.16);
    --border-strong: rgba(14, 59, 46, 0.4);
    --shadow-sm: 0 2px 8px rgba(14, 59, 46, 0.10);
    --shadow-md: 0 12px 28px rgba(14, 59, 46, 0.18);
    --radius-sm: 4px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
    --logo-h: 84px;
    --header-bg-h: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    overflow-x: hidden;
    font-weight: 400;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

img { display: inline-block; }
a { text-decoration: none; }

h1, h2, h3,
.logo-text-main,
.h-menu-box a,
.ypp-gallery-gallery-title,
.blog-preview-title,
.section-header h2,
.ypp-gallery-footer-links-col h3 {
    font-family: 'Bricolage Grotesque', 'Sora', system-ui, sans-serif;
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--logo-h);
    background: var(--primary-color);
    border-bottom: 1px solid rgba(217, 130, 43, 0.35);
    box-shadow: 0 6px 24px rgba(14, 59, 46, 0.28);
}

#header .page-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--logo-h);
    flex-wrap: nowrap;
}

#header .logo-link {
    position: absolute;
    left: 3%; top: 0;
    height: var(--logo-h);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

#header .logo-link .logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 6px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.3rem;
    box-shadow: 4px 4px 0 var(--accent-color);
    flex-shrink: 0;
    transform: rotate(-3deg);
    transition: var(--transition);
}
#header .logo-link:hover .logo-mark {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0 var(--accent-color);
}

#header .logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

#header .logo-text-main {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #F4F1EA;
    text-transform: lowercase;
    white-space: nowrap;
}
#header .logo-text-main .accent {
    color: var(--secondary-color);
}
#header .logo-text-sub {
    font-family: 'Sora', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.55);
    margin-top: 4px;
}

#header .h-menu-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    flex: 1 1 auto;
}

#header .h-menu-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 1rem;
    height: 36px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(244, 241, 234, 0.88);
    background: transparent;
    border: 1px solid rgba(244, 241, 234, 0.14);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
#header .h-menu-box a:hover,
#header .h-menu-box a.current {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 3px 3px 0 var(--accent-color);
    transform: translate(-1px, -1px);
}
#header .h-menu-box a i {
    font-size: 0.72rem;
    opacity: 0.85;
}
#header .h-menu-box a:hover i,
#header .h-menu-box a.current i {
    opacity: 1;
}

#header .mobile-menu-btn {
    display: none;
    position: absolute;
    top: 50%; right: 3%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    height: 36px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
}
#header .mobile-menu-btn:hover,
#header .mobile-menu-btn.active {
    background: var(--secondary-color);
    color: var(--primary-color);
}

@media (min-width: 1201px) {
    #header .mobile-menu-btn { display: none; }
    #header .h-menu-box {
        padding-left: 300px;
        padding-right: 10px;
    }
}

@media (min-width: 1201px) and (max-width: 1450px) {
    #header .h-menu-box a { font-size: 0.66rem; padding: 0 0.7rem; }
}

@media (max-width: 1200px) {
    #header .mobile-menu-btn { display: inline-flex; }
    #header .h-menu-box { display: none; }

    #header .h-menu-box.show {
        display: flex;
        position: fixed;
        top: var(--logo-h);
        left: 0; width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 1.2rem 5%;
        background: var(--primary-color);
        border-top: 2px solid var(--secondary-color);
        box-shadow: var(--shadow-md);
        z-index: 1500;
    }
    #header .h-menu-box a {
        width: 100%;
        height: 40px;
        font-size: 0.78rem;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    #header .logo-text-main { font-size: 1.2rem; }
    #header .logo-text-sub { font-size: 0.5rem; letter-spacing: 2px; }
    #header .logo-link .logo-mark { width: 38px; height: 38px; font-size: 1rem; }
    #header .logo-link { gap: 9px; }
}

/* ===== CONTENT ===== */
main,
#content {
    margin-top: calc(var(--logo-h) + 30px);
    padding: 0.5rem 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1200px) {
    main, #content { margin-top: calc(var(--logo-h) + 20px); }
}
@media (max-width: 480px) {
    main, #content { margin-top: calc(var(--logo-h) + 15px); }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
    line-height: 1.15;
}

h2 {
    font-size: 1.85rem;
    margin: 2.4rem 0 1.6rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h2 i {
    color: var(--secondary-color);
    margin-right: 6px;
}

.model-info,
.ypp-gallery-info-section {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
    font-size: 0.95rem;
    transition: var(--transition);
}
.model-info:hover,
.ypp-gallery-info-section:hover {
    border-color: var(--border-strong);
    border-left-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.model-info .site-info {
    margin-bottom: 1.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px dashed var(--border-light);
}
.model-info .site-info p {
    margin: 0 0 1rem;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.85;
}
.model-info .site-info p:last-child { margin-bottom: 0; }

.model-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    position: relative;
}
.model-info h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.model-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem 1.4rem;
}
.model-info ul li {
    list-style: none;
    padding: 0.65rem 0.9rem 0.65rem 1.8rem;
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
    line-height: 1.5;
}
.model-info ul li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--secondary-color);
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
}
.model-info ul li:hover {
    background: var(--card-hover-bg);
    border-color: var(--secondary-color);
    transform: translateX(3px);
}
.model-info br { display: none; }

@media (max-width: 768px) {
    .model-info { padding: 1.4rem 1.2rem; }
    .model-info ul { grid-template-columns: 1fr; }
    .model-info h3 { font-size: 1.05rem; }
    .model-info ul li { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .model-info { padding: 1.2rem 1rem; }
    .model-info .site-info p { font-size: 0.9rem; }
}

/* ===== GALLERY CARDS ===== */
.ypp-gallery-gallery-grid {
    column-count: 4;
    column-gap: 20px;
}

.ypp-gallery-gallery-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
    break-inside: avoid;
    border: 2px solid var(--border-light);
    display: inline-block;
    width: 100%;
    position: relative;
}
.ypp-gallery-gallery-card:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ypp-gallery-gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.ypp-gallery-gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    border-bottom: 2px solid var(--border-light);
}
.ypp-gallery-gallery-card:hover .ypp-gallery-gallery-img {
    border-bottom-color: var(--secondary-color);
}

/* Caption under the image, left aligned, with accent bar */
.ypp-gallery-gallery-info {
    padding: 0.85rem 0.9rem 0.85rem 1.1rem;
    text-align: left;
    background: var(--card-bg);
    position: relative;
}
.ypp-gallery-gallery-info::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}
.ypp-gallery-gallery-card:hover .ypp-gallery-gallery-info::before {
    background: var(--accent-color);
    width: 4px;
}

.ypp-gallery-gallery-title {
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    text-transform: capitalize;
    margin: 0;
    padding: 0;
    position: static;
}
.ypp-gallery-gallery-title::after { display: none; }

@media (max-width: 1000px) {
    .ypp-gallery-gallery-grid { column-count: 3; column-gap: 16px; }
}
@media (max-width: 768px) {
    .ypp-gallery-gallery-grid { column-count: 2; column-gap: 14px; }
}
@media (max-width: 480px) {
    .ypp-gallery-gallery-grid { column-count: 1; column-gap: 0; }
}

/* ===== CHIP GRID ===== */
.ypp-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    justify-content: center;
}

.ypp-gallery-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.15rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    flex: 0 1 auto;
    text-align: center;
    border: 1px solid var(--border-light);
    border-bottom: 3px solid var(--secondary-color);
}
.ypp-gallery-item:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ypp-gallery-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    font-size: 0.92rem;
    transition: var(--transition);
}
.ypp-gallery-link:hover { color: var(--secondary-color); }

.ypp-gallery-grid > strong,
.ypp-gallery-grid > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0.5rem 0.3rem;
    padding: 0 0.85rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}
.ypp-gallery-grid > a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.ypp-gallery-grid > strong {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
    font-weight: 800;
}

/* ===== BLOG ===== */
.section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }

.section > h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
    color: var(--primary-color);
}

.article-vietn-blogposts {
    margin-bottom: 60px;
    padding-bottom: 30px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}
.article-vietn-blogposts:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.section-header { padding: 25px 25px 10px 25px; }

.section-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--primary-color);
    border-bottom: none;
    display: block;
    text-align: left;
}
.section-header h2::after { display: none; }

.section-header h2 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}
.section-header h2 a:hover { color: var(--secondary-color); text-decoration: underline; }

.section-header .sub {
    margin: 8px 0 0 0;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
}

.article-thumbs-vietn-blogposts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 25px 20px 25px;
}

.article-thumb {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-color);
    transition: var(--transition);
    border: 2px solid var(--border-light);
}
.article-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}
.article-thumb a { display: block; width: 100%; height: 100%; }
.article-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: var(--transition);
}
.article-thumb img:hover { opacity: 0.92; }

.article-vietn-blogposts p {
    padding: 0 25px 25px 25px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.88;
}
.article-vietn-blogposts p a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted var(--secondary-color);
}
.article-vietn-blogposts p a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

@media (max-width: 900px) {
    .section-header h2 { font-size: 1.45rem; }
    .article-thumbs-vietn-blogposts { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 550px) {
    .article-thumbs-vietn-blogposts { grid-template-columns: 1fr; gap: 12px; }
    .section-header,
    .article-thumbs-vietn-blogposts,
    .article-vietn-blogposts p { padding-left: 15px; padding-right: 15px; }
}

/* ===== FOOTER ===== */
#footer {
    background: var(--primary-color);
    padding: 3rem 5% 1.5rem;
    margin-top: 3rem;
    border-top: 4px solid var(--secondary-color);
    color: var(--text-light);
}

.footer-container-ypp-gallery {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.footer-container-ypp-gallery:last-child {
    display: block;
    grid-template-columns: none;
    margin-top: 2rem;
}

.ypp-gallery-footer-links-col { min-width: 180px; }
.ypp-gallery-footer-links-col:nth-child(1) { text-align: left; }
.ypp-gallery-footer-links-col:nth-child(2) { text-align: center; }
.ypp-gallery-footer-links-col:nth-child(3) { text-align: right; }

.ypp-gallery-footer-links-col h3 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ypp-gallery-footer-links-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 34px; height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.ypp-gallery-footer-links-col:nth-child(1) h3::after { left: 0; transform: none; }
.ypp-gallery-footer-links-col:nth-child(2) h3::after { left: 50%; transform: translateX(-50%); }
.ypp-gallery-footer-links-col:nth-child(3) h3::after { left: auto; right: 0; transform: none; }

.ypp-gallery-footer-links-col h3 i {
    color: var(--secondary-color);
    margin-right: 6px;
}

.ypp-gallery-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}
.ypp-gallery-footer-links-col:nth-child(2) .ypp-gallery-footer-links { align-items: center; }
.ypp-gallery-footer-links-col:nth-child(3) .ypp-gallery-footer-links { align-items: flex-end; }

.ypp-gallery-footer-link {
    color: rgba(244, 241, 234, 0.82);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.ypp-gallery-footer-link:hover {
    color: #FFFFFF;
    background: rgba(217, 130, 43, 0.16);
    border-color: var(--secondary-color);
    transform: translateX(2px);
}
.ypp-gallery-footer-link i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}
.ypp-gallery-footer-link:hover i { color: #FFFFFF; }

.copyright {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.2rem 0.5rem;
    border-top: 1px solid rgba(244, 241, 234, 0.18);
    font-size: 0.75rem;
    color: rgba(244, 241, 234, 0.7);
    text-align: center;
    width: 100%;
}
.copyright p {
    margin: 0.4rem auto;
    line-height: 1.65;
    max-width: 1000px;
    text-align: center;
}

@media (max-width: 1200px) {
    .footer-container-ypp-gallery {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-container-ypp-gallery:last-child { grid-template-columns: none; }

    .ypp-gallery-footer-links-col,
    .ypp-gallery-footer-links-col:nth-child(1),
    .ypp-gallery-footer-links-col:nth-child(2),
    .ypp-gallery-footer-links-col:nth-child(3) {
        text-align: center;
    }
    .ypp-gallery-footer-links,
    .ypp-gallery-footer-links-col:nth-child(2) .ypp-gallery-footer-links,
    .ypp-gallery-footer-links-col:nth-child(3) .ypp-gallery-footer-links {
        align-items: center;
    }
    .ypp-gallery-footer-links-col h3::after,
    .ypp-gallery-footer-links-col:nth-child(1) h3::after,
    .ypp-gallery-footer-links-col:nth-child(2) h3::after,
    .ypp-gallery-footer-links-col:nth-child(3) h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* ===== MISC ===== */
li { list-style: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.ypp-gallery-gallery-card,
.ypp-gallery-item { animation: fadeIn 0.35s ease forwards; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    .footer-container-ypp-gallery { gap: 2rem; }
}

/* ===== BLOG PREVIEWS SECTION ===== */
.blog-previews-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 0.5rem;
    margin: 3rem auto;
    max-width: 1400px;
    padding: 0 5%;
}
.blog-previews-main-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 0.4rem;
}
.blog-previews-main-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.blog-previews-subtitle {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.65;
    margin: 0 0 1rem;
    font-style: italic;
}
.blog-previews-col h2 {
    font-size: 1.55rem;
    margin: 0 0 1rem;
    color: var(--primary-color);
    font-weight: 800;
    text-align: left;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
}
.blog-previews-col h2::after { display: none; }

.blog-preview-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    align-items: start;
}
.blog-preview-item:hover {
    background: var(--card-hover-bg);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.blog-preview-thumb-link {
    display: block;
    width: 90px; height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    flex-shrink: 0;
}
.blog-preview-item:hover .blog-preview-thumb-link { border-color: var(--secondary-color); }
.blog-preview-thumb {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: var(--transition);
}
.blog-preview-thumb-link:hover .blog-preview-thumb { transform: scale(1.05); }

.blog-preview-content { display: flex; flex-direction: column; gap: 0.4rem; }

.blog-preview-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.35;
    margin: 0;
}
.blog-preview-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
.blog-preview-title a:hover { color: var(--secondary-color); text-decoration: underline; }

.blog-preview-excerpt {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 1000px) {
    .blog-previews-section {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 1.5rem;
    }
    .blog-previews-main-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
    .blog-previews-subtitle { margin-bottom: 0.5rem; }
}
@media (max-width: 480px) {
    .blog-preview-item { grid-template-columns: 70px 1fr; padding: 0.8rem; }
    .blog-preview-thumb-link { width: 70px; height: 95px; }
    .blog-preview-title { font-size: 0.88rem; }
    .blog-preview-excerpt { font-size: 0.78rem; }
    .blog-previews-main-title { font-size: 1.4rem; margin-bottom: 0.3rem; }
    .blog-previews-subtitle { margin-bottom: 0.3rem; }
}

/* ===== BLOG POST LINKS ===== */
main a, main a:visited {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--border-strong);
    transition: var(--transition);
}
main a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}
.ypp-gallery-info-section a,
.ypp-gallery-info-section a:visited {
    color: var(--accent-color);
    border-bottom: 1px dotted var(--border-strong);
}
.ypp-gallery-info-section a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* ===== BLOG LISTING ===== */
.blog-previews-listing {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
}
.blog-preview-listing-item {
    grid-template-columns: 180px 1fr;
    align-items: start;
}
.blog-preview-listing-item .blog-preview-thumb-link {
    width: 180px; height: 240px;
}
.blog-preview-date {
    font-size: 0.72rem;
    color: var(--text-color);
    opacity: 0.55;
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}
.blog-preview-listing-item .blog-preview-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
}
.blog-previews-listing + h2,
main > h2 { text-align: center; margin-top: 2rem; }

@media (max-width: 900px) {
    .blog-preview-listing-item { grid-template-columns: 130px 1fr; }
    .blog-preview-listing-item .blog-preview-thumb-link { width: 130px; height: 175px; }
}
@media (max-width: 550px) {
    .blog-preview-listing-item { grid-template-columns: 100px 1fr; }
    .blog-preview-listing-item .blog-preview-thumb-link { width: 100px; height: 135px; }
    .blog-preview-listing-item .blog-preview-excerpt { font-size: 0.82rem; }
}

@media (min-width: 1201px) {
    #header .page-layout { padding: 0 2%; }
    #header .h-menu-box { padding-left: 320px; padding-right: 10px; }
}


/* ===== HOMEPAGE 2-COLUMN LAYOUT ===== */
.hp-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2.5rem;
    align-items: start;
    margin: 2rem 0 3rem;
}

.hp-blog-col,
.hp-cats-col {
    min-width: 0;
}

/* Left column: blog posts stacked vertically */
.hp-blog-col .blog-previews-section {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1rem;
    margin: 0;
    padding: 0;
    max-width: none;
}

.hp-blog-col .blog-previews-main-title,
.hp-blog-col .blog-previews-subtitle {
    text-align: left;
}

.hp-blog-col .blog-previews-main-title::after {
    left: 0;
    transform: none;
}

.hp-blog-col .blog-previews-col h2 {
    text-align: left;
}

/* Right column: categories as thumbnail grid */
.hp-cats-col .ypp-gallery-gallery-grid {
    column-count: 4;
    column-gap: 16px;
    margin-top: 1rem;
}

.hp-cats-col h2 {
    text-align: left;
    margin-top: 0;
}

.hp-cats-col h2::after {
    left: 0;
    transform: none;
}

@media (max-width: 1200px) {
    .hp-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hp-cats-col .ypp-gallery-gallery-grid {
        column-count: 4;
    }
}

@media (max-width: 1000px) {
    .hp-cats-col .ypp-gallery-gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .hp-cats-col .ypp-gallery-gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .hp-cats-col .ypp-gallery-gallery-grid {
        column-count: 2;
        column-gap: 10px;
    }
    .hp-layout {
        gap: 1.5rem;
    }
}


/* ===== HEADER — UNUSUAL DESKTOP VARIANT (CSS ONLY) ===== */
@media (min-width: 1201px) {

    /* Floating slab: header floats over content, no hard bottom border */
    #header {
        background: transparent;
        border-bottom: none;
        box-shadow: none;
        height: calc(var(--logo-h) + 14px);
        pointer-events: none;
        overflow: visible;
    }

    /* The actual slab — a skewed copper wedge behind everything */
    #header::before {
        content: '';
        position: absolute;
        inset: 0 0 14px 0;
        background:
            linear-gradient(135deg, #0E3B2E 0%, #14523F 55%, #0E3B2E 100%);
        clip-path: polygon(
            0 0,
            100% 0,
            100% calc(100% - 18px),
            62% calc(100% - 18px),
            60% 100%,
            0 100%
        );
        box-shadow:
            0 14px 32px rgba(14, 59, 46, 0.35),
            0 2px 0 rgba(217, 130, 43, 0.4);
        pointer-events: auto;
        z-index: 0;
    }

    /* Thin copper hairline along the top of the slab */
    #header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(
            90deg,
            rgba(217, 130, 43, 0.85) 0%,
            rgba(217, 130, 43, 0.85) 38%,
            rgba(217, 130, 43, 0.15) 38%,
            rgba(217, 130, 43, 0.15) 100%
        );
        pointer-events: none;
        z-index: 2;
    }

    /* Page layout keeps the geometry but sits above the slab */
    #header .page-layout {
        position: relative;
        z-index: 3;
        pointer-events: auto;
        padding-bottom: 14px;
        height: calc(var(--logo-h) + 14px);
    }

    /* Logo mark: subtle copper pulse + tilted inner icon */
    #header .logo-link .logo-mark {
        transform: rotate(-4deg);
        box-shadow:
            4px 4px 0 var(--accent-color),
            0 0 0 1px rgba(14, 59, 46, 0.4) inset;
        animation: hp-logo-breathe 6s ease-in-out infinite;
    }

    @keyframes hp-logo-breathe {
        0%, 100% { box-shadow: 4px 4px 0 var(--accent-color),
                               0 0 0 1px rgba(14, 59, 46, 0.4) inset; }
        50%      { box-shadow: 4px 4px 0 var(--accent-color),
                               0 0 22px rgba(217, 130, 43, 0.35),
                               0 0 0 1px rgba(14, 59, 46, 0.4) inset; }
    }

    /* Menu items — glass plates, no rounded pills */
    #header .h-menu-box {
        padding-left: 320px;
        padding-right: 10px;
        gap: 6px;
        align-items: flex-end;
        padding-bottom: 6px;
    }

    #header .h-menu-box a {
        position: relative;
        height: 40px;
        padding: 0 14px;
        background: rgba(244, 241, 234, 0.05);
        border: 1px solid rgba(244, 241, 234, 0.14);
        border-radius: 2px;
        color: rgba(244, 241, 234, 0.9);
        font-size: 0.68rem;
        letter-spacing: 1.1px;
        transition: background 0.25s, border-color 0.25s,
                    color 0.25s, transform 0.25s, box-shadow 0.25s;
    }

    /* Thin copper tick at bottom of each plate, grows on hover */
    #header .h-menu-box a::after {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: -1px;
        height: 2px;
        background: var(--secondary-color);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.3s ease;
    }

    #header .h-menu-box a:hover,
    #header .h-menu-box a.current {
        background: rgba(217, 130, 43, 0.14);
        border-color: rgba(217, 130, 43, 0.6);
        color: #F4F1EA;
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(14, 59, 46, 0.45);
    }

    #header .h-menu-box a:hover::after,
    #header .h-menu-box a.current::after {
        transform: scaleX(1);
    }

    /* Icon nudges slightly on hover */
    #header .h-menu-box a i {
        transition: transform 0.25s;
    }
    #header .h-menu-box a:hover i {
        transform: translateY(-1px) rotate(-8deg);
    }

    /* Content sits a touch lower because header grew by 14px */
    main,
    #content {
        margin-top: calc(var(--logo-h) + 44px);
    }
}

/* Tablets and phones keep the original flat header */
@media (max-width: 1200px) {
    #header {
        height: var(--logo-h);
    }
}




/* ===== BLOG LISTING — 2 POSTS PER ROW ===== */
@media (min-width: 900px) {
    .blog-previews-listing {
        grid-template-columns: 1fr 1fr;
        column-gap: 1.25rem;
        row-gap: 1rem;
        display: grid;
        align-items: stretch;
    }
    .blog-preview-listing-item {
        grid-template-columns: 140px 1fr;
        margin-bottom: 0;
        height: 100%;
    }
    .blog-preview-listing-item .blog-preview-thumb-link {
        width: 140px;
        height: 190px;
    }
    .blog-preview-listing-item .blog-preview-excerpt {
        font-size: 0.84rem;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 1300px) {
    .blog-preview-listing-item {
        grid-template-columns: 160px 1fr;
    }
    .blog-preview-listing-item .blog-preview-thumb-link {
        width: 160px;
        height: 215px;
    }
    .blog-preview-listing-item .blog-preview-excerpt {
        -webkit-line-clamp: 7;
    }
}

@media (max-width: 899px) {
    .blog-previews-listing {
        grid-template-columns: 1fr;
    }
}