/* ==========================================================================
   PVM West - Layout & Common Styles
   ========================================================================== */

/* ==========================================================================
   CONTAINER & MAIN
   ========================================================================== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding: 2.2rem 0 2.8rem;
}

.page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.page-card h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-family: "Merriweather", Georgia, serif;
}

.page-card .meta {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.92rem;
}

/* ==========================================================================
   SECTIONS & COMMON LAYOUT
   ========================================================================== */

.page {
    overflow-x: hidden;
}

.section {
    padding: 3rem 0;
}

.section h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.7rem, 2.1vw, 2.05rem);
    line-height: 1.2;
}

.quick-links {
    margin-top: -1.2rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-row a,
.pill-row span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.36rem 0.85rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #455464;
    background: #ffffff;
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.small-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.small-card a {
    display: block;
}

.small-card-media {
    width: 100%;
    aspect-ratio: 5 / 3;
    background: linear-gradient(130deg, #d9eaf6, #c0daee);
}

.small-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.small-card-media:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.small-card:nth-child(2n) .small-card-media {
    background: linear-gradient(130deg, #e8ecf5, #d3dcf0);
}

.small-card:nth-child(3n) .small-card-media {
    background: linear-gradient(130deg, #dce9dd, #c5ddc7);
}

.small-card-body {
    padding: 0.75rem;
}

.small-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.page-subpages {
    margin-top: 2.5rem;
}

/* ==========================================================================
   POST COVER LAYOUT
   ========================================================================== */

.post-cover-layout {
    max-width: 66rem;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: minmax(18rem, 29rem) minmax(0, 1fr);
    gap: clamp(1.4rem, 3vw, 2.8rem);
    align-items: start;
}

.post-cover-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.page-card--post {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 1080px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .section {
        padding: 2.7rem 0;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .topbar-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-actions {
        width: 100%;
    }

    .search-form {
        flex: 1;
    }

    .search-input {
        width: 100%;
        min-width: 0;
    }

    .action-btn {
        width: auto;
    }

    .hero-content h1 {
        max-width: 9ch;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .blog-list-item__link {
        grid-template-columns: 1fr;
    }

    .blog-list-item__media {
        aspect-ratio: 16 / 9;
    }
}


@media (max-width: 860px) {
    .post-cover-layout {
        grid-template-columns: 1fr;
        max-width: 48rem;
    }

    .post-excerpt {
        max-width: none;
    }

    .social-wrap {
        min-height: 7.4rem;
        padding: 0.7rem 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

.news-card--lead {
    overflow: hidden;
    border-radius: 16px;
    padding: 24px;
}

.news-card--lead .news-card-media {
    margin: -24px -24px 24px -24px;
}

.news-card--lead .news-card-media img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}