/* VSE Homepage Content Sections
   Isolated homepage component styles. No selectors target the News plugin. */

.vse-hcs-section {
    --vse-hcs-navy: #07345c;
    --vse-hcs-teal: #00949a;
    --vse-hcs-muted: #707984;
    --vse-hcs-border: #e7ecef;
    --vse-hcs-surface: #ffffff;
    width: 100%;
    padding: 0;
    background: transparent;
}

.vse-hcs-section + .vse-hcs-section {
    padding-top: 22px;
}

.vse-hcs-container {
    /* Match the News homepage component: use the full width supplied by the WPBakery column/row. */
    width: 100%;
    max-width: none;
    margin: 0;
}

.vse-hcs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 30px;
}


/* v1.1.5: headings are managed manually in WPBakery; shortcode headers now contain actions only. */
.vse-hcs-header--actions-only,
.vse-hcs-policy-heading-row--actions-only {
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    text-align: right;
}

.vse-hcs-policy-heading-row--actions-only .vse-hcs-view-all {
    margin-left: auto;
}

.vse-hcs-title {
    margin: 0 !important;
    color: #2f2963 !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.vse-hcs-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding-bottom: 4px;
    color: var(--vse-hcs-teal) !important;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none !important;
}

.vse-hcs-view-all:hover,
.vse-hcs-view-all:focus {
    color: var(--vse-hcs-navy) !important;
}

.vse-hcs-arrow,
.vse-hcs-read-more span {
    display: inline-block;
    transition: transform .2s ease;
}

.vse-hcs-view-all:hover .vse-hcs-arrow,
.vse-hcs-card:hover .vse-hcs-read-more span {
    transform: translateX(4px);
}

.vse-hcs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.vse-hcs-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--vse-hcs-border);
    border-radius: 11px;
    background: var(--vse-hcs-surface);
    box-shadow: 0 4px 16px rgba(5, 42, 72, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.vse-hcs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(5, 42, 72, .12);
}

.vse-hcs-card-link {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 218px;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.vse-hcs-image-wrap {
    position: relative;
    min-height: 218px;
    overflow: hidden;
    background: #e9f1f2;
}

.vse-hcs-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 218px;
    object-fit: cover;
    transition: transform .35s ease;
}

.vse-hcs-card:hover .vse-hcs-image:not(.vse-hcs-image--fallback) {
    transform: scale(1.025);
}

.vse-hcs-image--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #dceced 0%, #eff6f6 55%, #dfe7ef 100%);
}

.vse-hcs-image--fallback span {
    color: var(--vse-hcs-navy);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: .25;
}

.vse-hcs-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 20px 18px;
}

.vse-hcs-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    color: #818a93;
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.vse-hcs-label {
    color: var(--vse-hcs-teal);
}

.vse-hcs-dot {
    color: #a5adb4;
}

.vse-hcs-card-title {
    margin: 0 0 12px !important;
    color: var(--vse-hcs-navy) !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em;
}

.vse-hcs-byline {
    margin: -2px 0 13px;
    color: var(--vse-hcs-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.vse-hcs-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    color: var(--vse-hcs-teal);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 700;
}

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

@media (max-width: 767px) {
    .vse-hcs-section {
        padding: 0;
    }

    .vse-hcs-section + .vse-hcs-section {
        padding-top: 10px;
    }

    .vse-hcs-container {
        width: 100%;
        max-width: none;
    }

    .vse-hcs-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .vse-hcs-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vse-hcs-card-link {
        grid-template-columns: 38% 62%;
        min-height: 190px;
    }

    .vse-hcs-image-wrap,
    .vse-hcs-image {
        min-height: 190px;
    }

    .vse-hcs-card-body {
        padding: 17px 16px 15px;
    }

    .vse-hcs-card-title {
        font-size: 16.5px !important;
    }
}

@media (max-width: 520px) {
    .vse-hcs-card-link {
        display: flex;
        flex-direction: column;
    }

    .vse-hcs-image-wrap,
    .vse-hcs-image {
        min-height: 0;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}

/* =========================================================
   VSE at the EU Policy Table
   Homepage-only policy/publication cards.
========================================================= */
.vse-hcs-policy-table {
    --vse-hcs-policy-soft: #eef6f6;
    --vse-hcs-policy-wash: #f6f9fb;
}

.vse-hcs-policy-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 30px;
}

.vse-hcs-policy-heading-copy {
    max-width: 820px;
}

.vse-hcs-subtitle {
    margin: 10px 0 0 !important;
    color: #888 !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}

.vse-hcs-policy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.vse-hcs-policy-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--vse-hcs-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(5, 42, 72, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}

.vse-hcs-policy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(5, 42, 72, .12);
}

.vse-hcs-policy-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.vse-hcs-policy-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 25px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--vse-hcs-policy-wash), var(--vse-hcs-policy-soft));
}

.vse-hcs-policy-image {
    display: block;
    width: 100% !important;
    height: 230px !important;
    object-fit: cover;
    margin: -25px;
    max-width: calc(100% + 50px) !important;
    width: calc(100% + 50px) !important;
    transition: transform .35s ease;
}

.vse-hcs-policy-card:hover .vse-hcs-policy-image {
    transform: scale(1.025);
}

.vse-hcs-policy-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 6px 9px 5px;
    border-radius: 5px;
    background: var(--vse-hcs-teal);
    color: #fff;
    font-size: 9.5px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.vse-hcs-policy-document {
    position: relative;
    width: min(155px, 72%);
    aspect-ratio: .74;
    padding: 28px 22px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(5, 42, 72, .13);
}

.vse-hcs-policy-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 100%;
    background: var(--vse-hcs-navy);
}

.vse-hcs-policy-document-mark {
    display: block;
    margin: 16px 0 34px;
    color: var(--vse-hcs-navy);
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .06em;
}

.vse-hcs-policy-document-line {
    display: block;
    width: 100%;
    height: 7px;
    margin-top: 9px;
    border-radius: 10px;
    background: #dbe5ea;
}

.vse-hcs-policy-document-line--short {
    width: 67%;
}

.vse-hcs-policy-document-eu {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--vse-hcs-teal);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .06em;
}

.vse-hcs-policy-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 19px 19px;
}

.vse-hcs-policy-year {
    margin: 0 0 9px;
    color: var(--vse-hcs-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vse-hcs-policy-title {
    margin: 0 0 16px !important;
    color: var(--vse-hcs-navy) !important;
    font-size: 18px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    letter-spacing: -.012em;
}

.vse-hcs-policy-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--vse-hcs-teal);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 700;
}

.vse-hcs-policy-read-more span {
    transition: transform .2s ease;
}

.vse-hcs-policy-card:hover .vse-hcs-policy-read-more span {
    transform: translateX(4px);
}

@media (max-width: 1080px) {
    .vse-hcs-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .vse-hcs-policy-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 24px;
    }

    .vse-hcs-policy-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vse-hcs-policy-visual {
        min-height: 220px;
    }
}

/* =========================================================
   In Conversation With + Opinions — image-first reveal cards
   Desktop: featured image fills the card (approx. 510 x 177 at
   the current homepage width). Hover/focus reveals the editorial
   information panel in the same footprint.
   Touch/mobile: image and text remain stacked so content is always
   accessible without relying on hover.
   Policy Table remains unchanged.
========================================================= */
.vse-hcs-conversation .vse-hcs-grid,
.vse-hcs-opinions .vse-hcs-grid {
    align-items: stretch;
}

.vse-hcs-conversation .vse-hcs-card,
.vse-hcs-opinions .vse-hcs-card {
    position: relative;
    display: flex;
    height: 100%;
}

.vse-hcs-conversation .vse-hcs-card-link,
.vse-hcs-opinions .vse-hcs-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    height: 100%;
}

/* Desktop / pointer devices: image-first card with same-size hover panel. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
    .vse-hcs-conversation .vse-hcs-card,
    .vse-hcs-opinions .vse-hcs-card {
        aspect-ratio: 510 / 177;
        min-height: 170px;
    }

    .vse-hcs-conversation .vse-hcs-card-link,
    .vse-hcs-opinions .vse-hcs-card-link {
        display: block;
        overflow: hidden;
    }

    .vse-hcs-conversation .vse-hcs-image-wrap,
    .vse-hcs-opinions .vse-hcs-image-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        background: #e9f1f2;
        transition: opacity .28s ease, transform .35s ease;
    }

    .vse-hcs-conversation .vse-hcs-image,
    .vse-hcs-opinions .vse-hcs-image {
        width: 100% !important;
        height: 100% !important;
        min-height: 0;
        object-fit: cover;
        object-position: center;
        transition: transform .38s ease;
    }

    .vse-hcs-conversation .vse-hcs-card-body,
    .vse-hcs-opinions .vse-hcs-card-body {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
        padding: 19px 20px 17px;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        transform: translateY(5px);
        transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
    }

    .vse-hcs-conversation .vse-hcs-card:hover .vse-hcs-image-wrap,
    .vse-hcs-conversation .vse-hcs-card:focus-within .vse-hcs-image-wrap,
    .vse-hcs-opinions .vse-hcs-card:hover .vse-hcs-image-wrap,
    .vse-hcs-opinions .vse-hcs-card:focus-within .vse-hcs-image-wrap {
        opacity: 0;
        transform: scale(1.015);
    }

    .vse-hcs-conversation .vse-hcs-card:hover .vse-hcs-card-body,
    .vse-hcs-conversation .vse-hcs-card:focus-within .vse-hcs-card-body,
    .vse-hcs-opinions .vse-hcs-card:hover .vse-hcs-card-body,
    .vse-hcs-opinions .vse-hcs-card:focus-within .vse-hcs-card-body {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .vse-hcs-conversation .vse-hcs-card:hover .vse-hcs-image,
    .vse-hcs-conversation .vse-hcs-card:focus-within .vse-hcs-image,
    .vse-hcs-opinions .vse-hcs-card:hover .vse-hcs-image,
    .vse-hcs-opinions .vse-hcs-card:focus-within .vse-hcs-image {
        transform: scale(1.035);
    }

    .vse-hcs-conversation .vse-hcs-card-title,
    .vse-hcs-opinions .vse-hcs-card-title {
        margin-bottom: 8px !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .vse-hcs-conversation .vse-hcs-meta,
    .vse-hcs-opinions .vse-hcs-meta {
        margin-bottom: 10px;
    }

    .vse-hcs-opinions .vse-hcs-byline {
        margin: 0 0 6px;
    }

    .vse-hcs-conversation .vse-hcs-read-more,
    .vse-hcs-opinions .vse-hcs-read-more {
        padding-top: 5px;
    }
}

/* Touch/tablet/mobile fallback: preserve a readable stacked layout. */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .vse-hcs-conversation .vse-hcs-card-link,
    .vse-hcs-opinions .vse-hcs-card-link {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    .vse-hcs-conversation .vse-hcs-image-wrap,
    .vse-hcs-opinions .vse-hcs-image-wrap {
        position: relative;
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        aspect-ratio: 510 / 177;
    }

    .vse-hcs-conversation .vse-hcs-image,
    .vse-hcs-opinions .vse-hcs-image {
        width: 100% !important;
        height: 100% !important;
        min-height: 0;
        object-fit: cover;
    }

    .vse-hcs-conversation .vse-hcs-card-body,
    .vse-hcs-opinions .vse-hcs-card-body {
        position: relative;
        flex: 1 1 auto;
        padding: 18px 18px 17px;
        background: #fff;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Homepage quick links: requested typography alignment */
.vse-home-quick-links h3 {
    font-size: 18px !important;
}

.vse-home-quick-links p {
    text-align: center;
}
