/* Varghese Summersett — Blog Index (home.php)
   Built to the VS Site Style Guide: forest-green accent (#15803d),
   pure black / white, zero border-radius, Lato 300/400/700/900.
   All rules are scoped under .vs-blog-index so nothing leaks to other
   templates. Tokens follow the guide's names (--vs-blue is green, by
   the guide's documented legacy convention). */

.vs-blog-index {
    --vs-black: #000;
    --vs-white: #fff;
    --vs-blue: #15803d;          /* PRIMARY ACCENT — green (guide names it "blue") */
    --vs-blue-dark: #14532d;
    --vs-blue-darker: #0a2e1a;
    --vs-green-bright: #22c55e;  /* highlights & gradients only */
    --vs-gray-dark: #1a1a1a;
    --vs-gray-mid: #6b7280;
    --vs-gray-light: #f9f9f9;
    --vs-ink: #2a2a2a;
    --vs-border: #e5e7eb;
    font-family: 'Lato', 'Lato Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--vs-ink);
    background: var(--vs-white);
}

.vs-blog-index a { text-decoration: none; }

/* Top brand bar — black masthead: white brand on the left (links home),
   Call Now button on the right. Reads as one continuous header block with
   the breadcrumb and hero rather than an isolated white strip. */
.vs-blog-index .main-navigation {
    background: var(--vs-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vs-blog-index .main-navigation .container { padding: 0.6rem 2rem; }
.vs-blog-index .main-navigation .site-title { color: #fff; }

.vs-bi-nav-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.3rem;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.vs-bi-nav-call:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 128, 61, 0.35); }
.vs-bi-nav-call svg { width: 18px; height: 18px; }

/* Narrow phones: keep the brand readable and collapse the button to its
   icon (the aria-label still names it for assistive tech). */
@media (max-width: 600px) {
    .vs-blog-index .main-navigation .site-title { font-size: 1.1rem; }
    .vs-bi-nav-call span { display: none; }
    .vs-bi-nav-call { padding: 0; min-width: 48px; justify-content: center; }
    .vs-bi-nav-call svg { width: 20px; height: 20px; }
}

.vs-bi-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* ============ Breadcrumb ============ */
.vs-bi-breadcrumbs { background: var(--vs-black); }

.vs-bi-breadcrumbs ol {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.vs-bi-breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.vs-bi-breadcrumbs li + li::before { content: '\203A'; color: var(--vs-blue); }
.vs-bi-breadcrumbs a { color: rgba(255, 255, 255, 0.75); }
.vs-bi-breadcrumbs a:hover { color: #fff; }
.vs-bi-breadcrumbs [aria-current="page"] { color: #fff; }

/* ============ Page header (black hero) ============ */
.vs-bi-hero {
    background: var(--vs-black);
    color: var(--vs-white);
    padding: 6rem 3rem 4rem;
    text-align: center;
}

.vs-bi-hero-inner { max-width: 1000px; margin: 0 auto; }

.vs-bi-eyebrow {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--vs-green-bright);
    margin: 0 0 1rem;
}

.vs-bi-h1 {
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
}

.vs-bi-sub {
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #d4d4d4;
    margin: 1rem auto 0;
    max-width: 640px;
    line-height: 1.5;
}

.vs-bi-rule {
    width: 100px;
    height: 3px;
    margin: 1.5rem auto 0;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 50%, #14532d 100%);
}

/* ============ Posts ============ */
.vs-bi-posts {
    padding: 5rem 0;
    background: var(--vs-white);
}

.vs-bi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Light content card (guide §6.4): white, hairline border, left green
   stripe on hover, 4px lift. Sharp corners, no radius. */
.vs-bi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--vs-white);
    border: 1px solid var(--vs-border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.vs-bi-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    z-index: 2;
    background: linear-gradient(135deg, #22c55e, #15803d, #14532d);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vs-bi-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }
.vs-bi-card:hover::before { width: 4px; }

.vs-bi-card-media {
    display: block;
    aspect-ratio: 1.91 / 1;
    overflow: hidden;
    background: var(--vs-gray-light);
}

.vs-bi-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vs-bi-card:hover .vs-bi-card-media img { transform: scale(1.04); }

.vs-bi-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.75rem;
}

.vs-bi-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.vs-bi-cat {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--vs-blue);
}

.vs-bi-date {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--vs-gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vs-bi-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem;
}

.vs-bi-card-title a { color: var(--vs-black); transition: color 0.3s; }
.vs-bi-card-title a:hover { color: var(--vs-blue); }

.vs-bi-card-excerpt {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--vs-ink);
    margin: 0 0 1.5rem;
}

.vs-bi-card-excerpt p { margin: 0; }

.vs-bi-readmore {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vs-blue);
}

.vs-bi-readmore span { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vs-bi-card:hover .vs-bi-readmore span { transform: translateX(6px); }

/* Whole-card click target. The post-title link stretches over the entire card
   via this pseudo-element, so each card exposes exactly ONE descriptive,
   crawlable link (anchored on the post title) instead of three links to the
   same URL with a generic "Read Article" anchor. Better for SEO and a cleaner
   accessibility tree. The category/date are plain text (not links), so there
   are no nested interactive elements under the stretched link. */
.vs-bi-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ============ Empty state ============ */
.vs-bi-empty { text-align: center; padding: 5rem 1.5rem; }

.vs-bi-empty h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vs-black);
    margin: 0 0 1rem;
}

.vs-bi-empty p { font-size: 1.05rem; color: var(--vs-gray-mid); margin: 0; }

/* ============ Pagination (guide §6.14) ============ */
.vs-bi-posts .pagination { margin-top: 4rem; }

.vs-bi-posts .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.vs-bi-posts .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--vs-border);
    background: var(--vs-white);
    color: var(--vs-ink);
    font-weight: 900;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.vs-bi-posts a.page-numbers:hover { border-color: var(--vs-blue); color: var(--vs-blue); }

.vs-bi-posts .page-numbers.current {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 50%, #14532d 100%);
    border-color: var(--vs-blue);
    color: #fff;
}

.vs-bi-posts .page-numbers.dots { border: none; min-width: auto; }

/* ============ CTA banner (guide §6.12) ============ */
.vs-bi-cta {
    background: var(--vs-black);
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem;
}

.vs-bi-cta-inner { max-width: 800px; margin: 0 auto; }

.vs-bi-cta h2 {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin: 0 0 1.5rem;
}

/* Clear the accent rule so it never collides with the button below it. */
.vs-bi-cta .vs-bi-btn { margin-top: 1.5rem; }

.vs-bi-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 1.1rem 2.25rem;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #15803d 0%, #166534 50%, #14532d 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(34, 197, 94, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vs-bi-btn span { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vs-bi-btn:hover { color: #fff; }
.vs-bi-btn:hover span { transform: translateX(6px); }

/* ============ Focus visibility (guide §13) ============ */
.vs-blog-index a:focus-visible,
.vs-blog-index .page-numbers:focus-visible {
    outline: 3px solid rgba(21, 128, 61, 0.4);
    outline-offset: 2px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .vs-bi-container,
    .vs-bi-breadcrumbs ol { padding-left: 1.5rem; padding-right: 1.5rem; }
    .vs-bi-hero { padding: 4.5rem 1.5rem 3.5rem; }
}

@media (max-width: 768px) {
    .vs-bi-posts { padding: 3.5rem 0; }
    .vs-bi-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .vs-bi-hero { padding: 4rem 1.5rem 3rem; }
    .vs-bi-cta { padding: 4rem 1.5rem; }
}

/* ============ Motion (guide §8) ============ */
@media (prefers-reduced-motion: reduce) {
    .vs-blog-index *,
    .vs-blog-index *::before,
    .vs-blog-index *::after {
        animation: none !important;
        transition: none !important;
    }
}
