/*
 * Vietales Premium Magazine Design System
 */

:root {
    --vt-bg: #f8f6f2;
    --vt-text: #111111;
    --vt-text-light: #555555;
    --vt-accent: #8b1e2d; /* Deep Red */
    --vt-serif:  'Inter', sans-serif;
    --vt-sans: 'Inter', sans-serif;
    --vt-spacing-lg: 100px;
    --vt-spacing-md: 40px;
    --vt-spacing-sm: 30px;
}

body {
    background-color: var(--vt-bg);
    color: var(--vt-text);
    font-family: var(--vt-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vt-serif);
    font-weight: 700;
    color: var(--vt-text);
    margin-bottom: 1rem;
}

/* Typography Scale */
h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.4rem; line-height: 1.3; }

/* Sticky Header */
#masthead {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

#masthead.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.premium-header {
    padding: 25px 0;
    transition: padding 0.4s ease;
}

.scrolled .premium-header {
    padding: 15px 0;
}

.header-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
}

@media (max-width: 991px) {
    .header-flex-container { padding: 0 20px; }
}

#site-branding .site-title a {
    font-family: var(--vt-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--vt-text);
    text-decoration: none;
    letter-spacing: -1px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.main-navigation ul li a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--vt-text);
    text-decoration: none;
}

.main-navigation ul li a:hover {
    color: var(--vt-accent);
}

/* Desktop Search Toggle */
.header-actions {
    position: relative;
    flex-shrink: 0;
}

.desktop-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vt-text);
    font-size: 1.1rem;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.desktop-search-toggle:hover {
    color: var(--vt-accent);
}

/* Search overlay dropdown */
.desktop-search-overlay {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: 320px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 2px solid var(--vt-accent);
    padding: 14px 14px 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.desktop-search-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.desktop-search-overlay .search-form {
    flex: 1;
}

.desktop-search-overlay .search-form label {
    display: block;
    width: 100%;
    margin: 0;
}

.desktop-search-overlay .search-form .screen-reader-text {
    display: none;
}

#masthead .desktop-search-overlay .search-form input[type="search"],
.desktop-search-overlay .search-form input[type="search"] {
    width: 100% !important;
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    border-radius: 0 !important;
    outline: none !important;
    font-size: 0.95rem !important;
    padding: 8px 4px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
}

.desktop-search-overlay .search-form button[type="submit"],
.desktop-search-overlay .search-form input[type="submit"] {
    display: none;
}

.desktop-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    padding: 4px 6px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.desktop-search-close:hover {
    color: var(--vt-accent);
}

/* TOP FEATURED SECTION (65 / 35) */
.featured-layout {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 0;
    background: #fff;
        box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

@media (max-width: 1400px) {
    .main-navigation ul { gap: 15px; flex-wrap: nowrap; }
    .header-flex-container { padding: 0 30px; }
}

@media (max-width: 1199px) {
    #masthead { display: none !important; }
    #masthead-mobile { display: flex !important; }
}

@media (max-width: 991px) {
    .featured-layout { grid-template-columns: 1fr; }
    .featured-left { height: 500px; }
    #footer-widgets .footer-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 40px;
    }
}
@media (max-width: 767px) {
    .featured-left { height: 400px; }
    .featured-left .card-content { padding: 30px; }
    .side-article { padding: 20px; gap: 15px; }
    .side-article .side-image { width: 90px; height: 70px; }
}

/* Left Big Card */
.featured-left {
    position: relative;
    height: 540px;
    overflow: hidden;
    color: #fff;
}

.featured-left .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-left .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-left:hover .card-image img {
    transform: scale(1.05);
}

.featured-left .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.featured-left .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 60px;
    z-index: 2;
    max-width: 90%;
}

.featured-left .category-badge {
    background: var(--vt-accent);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.featured-left .hero-title {
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.featured-left .hero-title a {
    color: #fff;
}
.single .entry-content, .page .entry-content {
    font-size: 25px !important;
    line-height: 1.7 !important;
    color: #333 !important;
}
.single .entry-content p, .page .entry-content p {
    margin-bottom: 2rem !important;
}
.single-style3 .entry-meta{
    text-align: left;
}
.single-style3 .entry-meta .author.vcard a{
    font-weight: 600;
}
.single-style3 .entry-meta .posted-on{
    margin-left: 20px;
}
.single-style3 .entry-meta .posted-on::before{
    content: "";
    display: inline-block;
    background-color: currentColor;
    height: .25rem;
    width: .25rem;
    opacity: .8;
    border-radius: 9999px;
    vertical-align: .1875em;
}
.single-style3 .category-wrapper a {
    padding: 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
    color: #000000 !important;
}

.blog-style3 .thumbnail img{
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.blog-style3 .thumbnail{
    aspect-ratio: 16/9;
}
#footer-widgets{
    padding: 0;
}
/* Right Stacked Cards */
.featured-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eee;
}
.single-style3 .entry-title {
    font-size: 40px;
    text-align: left;
    line-height: 1.5;
}
.side-article {
    flex: 1;
    display: flex;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
    background: #fff;
    transition: background 0.3s ease;
}

.side-article:last-child { border-bottom: none; }
.side-article:hover { background: #fcfcfc; }

.side-article .side-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}

.side-article .side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.side-article .side-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.side-article .side-content h4 a {
    color: inherit;
    text-decoration: none;
}

.side-article .side-content .category {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--vt-accent);
    letter-spacing: 1px;
    font-weight: 700;
}

/* LATEST ARTICLES GRID */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 991px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .latest-grid { grid-template-columns: 1fr; } }

.latest-card {
    background: transparent;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-card .card-image {
    height: 240px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.latest-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-card:hover .card-image img {
    transform: translateY(-5px);
}

.latest-card .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--vt-accent);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.latest-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-card h3 a {
    color: inherit;
    text-decoration: none;
}

.latest-card .excerpt {
    font-size: 0.95rem;
    color: var(--vt-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--vt-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.read-more:hover {
    border-bottom-color: var(--vt-accent);
}

/* Sections */
.home-section {
    padding: 40px 0 40px 0;
}

@media (max-width: 767px) {
    .home-section {
        padding: 40px 0 20px 0;
    }
}

.section-header {
    margin-bottom: var(--vt-spacing-md);
}

.section-header h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vt-text);
    border-bottom: 2px solid var(--vt-text);
    display: inline-block;
    padding-bottom: 12px;
}

/* Footer */
#colophon {
    background: #111;
    color: #888;
    padding: 100px 0 50px;
}

#colophon h3 { color: #fff; margin-bottom: 30px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; }
#colophon a { color: #888; text-decoration: none; transition: color 0.3s ease; }
#colophon a:hover { color: #fff; }

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.8rem;
}

/* Buttons */
.vt-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--vt-accent);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vt-btn:hover {
    background: #000;
    transform: translateY(-2px);
}


@media (min-width: 1200px) {
    .featured-section{
        margin-top: 90px;
    }
}

/* Footer Fixes */

/* Mobile Header Fixes */
#masthead-mobile {
    padding: 15px 20px;
    background: #ffffff;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
#masthead-mobile .toggle-menu-hamburger,
#masthead-mobile .search-toggle {
    color: var(--vt-text);
    font-size: 1.2rem;
}
#site-branding-mobile .site-title a {
    font-family: var(--vt-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--vt-text);
    text-decoration: none;
    letter-spacing: -0.5px;
}
#site-branding-mobile img {
    max-height: 40px;
}
@media (max-width: 767px) {
    .backToTopBtn {
        bottom: 20px !important;
        right: 20px !important;
        transform: scale(0.8);
    }
}

/* ================================================
   RELATED POSTS — Single Post Page
   ================================================ */
.vt-related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e4dc;
}

.vt-related-header {
    margin-bottom: var(--vt-spacing-md);
}

.vt-related-header h3 {
    font-family: var(--vt-serif);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--vt-text);
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vt-text);
    margin: 0;
}

/* 3-column grid */
.vt-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 991px) {
    .vt-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .vt-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Vertical card */
.vt-related-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Image */
.vt-related-card__image {
    display: block;
    height: auto;
    max-height: 240px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    max-width: 100%;
}

.vt-related-card__image img,
.vt-related-card__no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.vt-related-card__no-image {
    background: #e8e4dc;
}

.vt-related-card:hover .vt-related-card__image img {
    transform: translateY(-5px);
}

/* Title */
.vt-related-card__title {
    font-family: var(--vt-serif);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vt-related-card__title a {
    color: var(--vt-text);
    text-decoration: none;
}

.vt-related-card__title a:hover {
    color: var(--vt-accent);
}

/* Excerpt */
.vt-related-card__excerpt {
    font-size: 0.95rem;
    color: var(--vt-text-light);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 1200px) {
    #primary{
        margin-top: 100px;
    }
}

@media (max-width: 560px) {
    .single-style3 .entry-title{
        font-size: 25px;
    }
    .single .entry-content, .page .entry-content{
        font-size: 22px !important;
    }
}