/* Vireza — homepage (QetBuzz-inspired magazine) */

.vz-home {
    padding-bottom: 0;
    background: #f4f4f4;
}

/* Content + sidebar — posts column alone defines layout height */
.vz-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 30px;
    align-items: start;
    align-content: start;
    padding-top: 24px;
    padding-bottom: 32px;
}

.vz-home-layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.vz-home-main {
    min-width: 0;
    width: 100%;
    grid-column: 1;
    grid-row: 1;
}

.vz-home-main:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   Hero — 70 / 30, equal height
   -------------------------------------------------------------------------- */

.vz-hero {
    padding-top: 16px;
    padding-bottom: 0;
    background: #f4f4f4;
}

.vz-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 14px;
    height: 520px;
}

.vz-hero-grid--solo {
    grid-template-columns: 1fr;
}

.vz-hero-lead,
.vz-hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    isolation: isolate;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.vz-hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    min-width: 0;
    height: 100%;
}

.vz-hero-item {
    min-height: 0;
}

.vz-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vz-hero-img,
.vz-hero-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vz-hero-ph {
    display: block;
    background: linear-gradient(145deg, #222, #444);
}

.vz-hero-lead:hover .vz-hero-img,
.vz-hero-item:hover .vz-hero-img {
    transform: scale(1.06);
}

.vz-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

.vz-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
}

.vz-hero-item .vz-hero-content {
    padding: 20px;
    gap: 8px;
}

.vz-hero-title {
    font-family: var(--vz-display);
    font-size: clamp(1.75rem, 2.8vw, 2.65rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 18ch;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.vz-hero-title a {
    color: #fff;
    transition: opacity 0.2s ease;
}

.vz-hero-title a:hover,
.vz-hero-title a:focus-visible {
    color: #fff;
    opacity: 0.88;
}

.vz-hero-title--sm {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    max-width: none;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.vz-hero .vz-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
}

.vz-hero .vz-meta-author:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Latest — 3-card grid
   -------------------------------------------------------------------------- */

.vz-section-head {
    margin-bottom: 16px;
}

.vz-section-title {
    font-family: var(--vz-display);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--vz-ink);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.vz-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--vz-accent);
    border-radius: 2px;
}

.vz-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.vz-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.vz-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e5e5e5;
}

.vz-card-img,
.vz-card-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.vz-card-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #d6d6d6);
}

.vz-card:hover .vz-card-img {
    transform: scale(1.06);
}

.vz-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 22px;
    flex: 1;
}

.vz-card-title {
    font-family: var(--vz-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.vz-card-title a {
    color: var(--vz-ink);
    transition: color 0.2s ease;
}

.vz-card-title a:hover,
.vz-card-title a:focus-visible {
    color: var(--vz-accent);
}

.vz-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--vz-muted);
}

.vz-card .vz-meta {
    font-size: 0.75rem;
}

.vz-card .vz-cat {
    margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.vz-sidebar {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 100%;
    /* Collapse intrinsic height so the footer follows the posts grid */
    height: 0;
    min-height: 0;
    overflow: visible;
}

.vz-sidebar-inner {
    position: sticky;
    top: calc(var(--vz-header-h) + 20px);
}

.vz-widget {
    margin-bottom: 24px;
    padding: 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.vz-widget:last-child {
    margin-bottom: 0;
}

.vz-widget-title {
    font-family: var(--vz-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--vz-accent);
}

.vz-side-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vz-side-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: start;
}

.vz-side-thumb {
    display: block;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e5e5;
}

.vz-side-thumb img,
.vz-side-ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vz-side-item:hover .vz-side-thumb img {
    transform: scale(1.06);
}

.vz-side-ph {
    display: block;
    background: linear-gradient(135deg, #ececec, #d0d0d0);
}

.vz-side-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--vz-ink);
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.vz-side-title:hover {
    color: var(--vz-accent);
}

.vz-side-body time,
.vz-side-list--plain time {
    display: block;
    font-size: 0.72rem;
    color: var(--vz-muted);
}

.vz-side-list--plain {
    gap: 14px;
}

.vz-side-list--plain li {
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.vz-side-list--plain li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vz-side-list--plain a {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 3px;
    transition: color 0.2s ease;
}

.vz-cat-list li {
    border-bottom: 1px solid #eee;
}

.vz-cat-list li:last-child {
    border-bottom: 0;
}

.vz-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.vz-cat-list .count {
    font-size: 0.72rem;
    color: var(--vz-muted);
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Newsletter — simple centered block
   -------------------------------------------------------------------------- */

.vz-newsletter {
    padding: 40px 0;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.vz-newsletter-inner {
    max-width: 560px;
    margin-inline: auto;
}

.vz-newsletter-title {
    font-family: var(--vz-display);
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.vz-newsletter-text {
    font-size: 0.975rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.vz-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin-inline: auto;
}

.vz-newsletter-input {
    flex: 1;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.vz-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.vz-newsletter-btn {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--vz-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vz-newsletter-btn:hover {
    background: var(--vz-accent-dark);
    transform: translateY(-1px);
}

.vz-home .vz-hero-img,
.vz-home .vz-card-img {
    max-width: none;
}

/* Homepage pagination (matches archive pagination styles) */
.vz-home .vz-pagination {
    margin-top: 40px;
}

.vz-home .vz-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.vz-home .vz-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--vz-line);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vz-ink);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vz-home .vz-pagination a.page-numbers:hover {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    color: #fff;
}

.vz-home .vz-pagination .page-numbers.current {
    background: var(--vz-accent);
    border-color: var(--vz-accent);
    color: #fff;
}

.vz-home .vz-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.vz-home .vz-pagination .prev,
.vz-home .vz-pagination .next {
    min-width: auto;
    padding: 0 16px;
}

/* Kill forced empty height on homepage */
body.home .site-main,
body.front-page .site-main {
    min-height: 0;
}
