/* Vertical Authority Hub Styles */

:root {
    --vah-primary: #1a1a1a;
    --vah-accent: #0056b3;
    --vah-bg: #ffffff;
    --vah-gray: #f5f5f5;
    --vah-border: #e0e0e0;
    --vah-text: #333333;
    --vah-meta: #666666;
    --vah-font-heading: 'Inter', sans-serif;
    /* Assuming theme loads it or fallback */
    --vah-font-body: 'Inter', sans-serif;
}

/* Image Fade-in */
img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.vah-loaded {
    opacity: 1;
}

.vah-container {

    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--vah-font-body);
    color: var(--vah-text);
}

/* Top Bar */
.vah-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.vah-breadcrumbs-wrapper {
    font-size: 0.9rem;
    color: var(--vah-meta);
}

.vah-badges {
    display: flex;
    gap: 8px;
}

.vah-badge {
    background: var(--vah-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vah-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.vah-badge:hover {
    background: #e0e0e0;
}

/* Header */
.vah-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--vah-border);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.vah-header-content {
    flex: 1;
    min-width: 300px;
}

.vah-title {
    font-family: var(--vah-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.vah-intro {
    font-size: 1.1rem;
    color: var(--vah-meta);
    line-height: 1.6;
    max-width: 800px;
}

/* Editor Card */
.vah-editor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--vah-gray);
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--vah-border);
}

.vah-editor-img {
    width: 40px;
    height: 40px;
    position: relative;
}

.vah-editor-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vah-verified-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #1DA1F2;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.vah-editor-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.vah-editor-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--vah-meta);
    font-weight: 700;
}

.vah-editor-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hero Slider (Replicates Advanced News Homepage) */
.vah-hero-wrapper {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.vah-hero-main {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.vah-hero-slider {
    height: 100%;
}

.vah-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.vah-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.vah-hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.vah-hero-content {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    width: 100%;
    padding: 20px 15px;
    color: #fff;
}


.vah-hero-content h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vah-hero-content h2 a {
    color: #fff;
    text-decoration: none;
}

/* Nav List - Mobile (Horizontal Scroll) */
.vah-hero-nav-list {
    background: #fff;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid #eee;
}

.vah-hero-nav-list::-webkit-scrollbar {
    display: none;
}

.vah-hero-nav-item {
    min-width: 160px;
    padding: 12px 15px;
    border-right: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.vah-hero-nav-item.active {
    background: #f8f9fa;
    border-bottom: 3px solid var(--vah-accent);
}

.vah-nav-index {
    font-weight: 800;
    color: #ddd;
    font-size: 1rem;
}

.vah-hero-nav-item.active .vah-nav-index {
    color: var(--vah-accent);
}

.vah-nav-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vah-hero-nav-item.active .vah-nav-title {
    color: var(--vah-text);
}

/* Desktop Enhancements for Hero */
@media (min-width: 1025px) {
    .vah-hero-wrapper {
        flex-direction: row;
        height: 450px;
    }

    .vah-hero-main {
        flex: 1;
        height: 100%;
    }

    .vah-hero-content {
        padding: 40px 30px;
    }

    .vah-hero-content h2 {
        font-size: 2.2rem;
    }

    .vah-hero-nav-list {
        width: 350px;
        flex-direction: column;
        overflow-y: auto;
        border-top: none;
        border-left: 1px solid #eee;
    }

    .vah-hero-nav-item {
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
        flex-grow: 1;
    }

    .vah-hero-nav-item.active {
        border-bottom: none;
        border-left: 4px solid var(--vah-accent);
    }
}

/* Main Layout */
.vah-main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Bento Grid */
.vah-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.vah-bento-main {
    grid-column: 1 / -1;
    position: relative;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .vah-bento-main {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        margin-bottom: 0;
    }

    .vah-bento-side {
        grid-column: 2 / 3;
    }
}

.vah-bento-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.vah-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.vah-zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vah-bento-link:hover .vah-zoom-img {
    transform: scale(1.05);
}

.vah-bento-content h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.vah-read-time {
    font-size: 0.85rem;
    color: var(--vah-meta);
}

.vah-bento-side {
    background: var(--vah-gray);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vah-bento-side h3 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.vah-excerpt {
    font-size: 0.95rem;
    color: var(--vah-meta);
    margin: 0;
    line-height: 1.5;
}

/* Standard Grid */
.vah-news-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vah-news-card {
    display: flex;
    flex-direction: column;
}

.vah-card-img {
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.vah-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vah-card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
    line-height: 1.4;
}

.vah-meta {
    font-size: 0.8rem;
    color: var(--vah-meta);
}

/* Sidebar */
.vah-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: start;
}

.vah-widget-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--vah-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vah-most-read-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: baseline;
    counter-increment: most-read;
}

.vah-most-read-item .vah-count::before {
    content: counter(most-read);
    font-size: 1.5rem;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 1;
}

.vah-most-read-item a {
    text-decoration: none;
    color: var(--vah-text);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s;
}

.vah-most-read-item a:hover {
    color: var(--vah-accent);
}

/* Footer Semantic */
.vah-footer-semantic {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--vah-border);
}

.vah-expert-article h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.vah-article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    column-count: 2;
    column-gap: 40px;
}

/* Load More */
.vah-load-more {
    text-align: center;
    margin-top: 40px;
}

#vah-load-more-btn {
    background: var(--vah-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

#vah-load-more-btn:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 1024px) {
    .vah-main-layout {
        grid-template-columns: 1fr;
    }

    .vah-article-content {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .vah-title {
        font-size: 2rem;
    }

    .vah-bento-grid {
        grid-template-columns: 1fr;
    }

    .vah-bento-main {
        grid-column: 1;
        grid-row: auto;
    }

    .vah-bento-side {
        grid-column: 1;
    }
}