/* ============================================================
   ENTRY METADATA BAR (UNDER HERO)
   File: entry-meta.css
============================================================ */

/* ------------------------------
   METADATA BAR WRAPPER
------------------------------ */
.ce-entry-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;

    background-color: #fff;

    border: 3px solid var(--entry-color);
    border-radius: 8px;

    padding: 0.75rem 2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    flex-wrap: nowrap;
    white-space: nowrap;

    max-width: 1200px;
    width: 100%;
    margin: 1.25rem auto 0;
}

/* ============================================================
   LOGO
============================================================ */

.ce-entry-meta-bar__logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ============================================================
   TITLE + HORIZONTAL LINES
============================================================ */

.ce-entry-meta-bar__title {
    font-weight: 600;
    font-size: 22px;
    color: var(--entry-color);
    padding: 0 0.5rem;
}

.ce-entry-meta-bar__hline {
    flex: 1;
    height: 2px;
    background-color: var(--entry-color);
    opacity: 0.5;
}

/* ============================================================
   VERTICAL DIVIDERS — FINAL, CONSISTENT VERSION
============================================================ */

.ce-entry-meta-bar__vline {
    width: 2px;
    height: 28px;
    background-color: var(--entry-color);
    align-self: center;
    transform: translateZ(0);
}

/* Hide empty metadata blocks */
.ce-entry-meta-bar > div:not(:has(*)) {
    display: none;
}

/* Hide divider inside empty blocks */
.ce-entry-meta-bar > div:not(:has(*)) .ce-entry-meta-bar__vline {
    display: none;
}

/* Hide divider on the first visible block */
.ce-entry-meta-bar > div:has(*) .ce-entry-meta-bar__vline {
    display: none;
}

/* Show divider only on blocks AFTER the first visible one */
.ce-entry-meta-bar > div:has(*) + div:has(*) .ce-entry-meta-bar__vline {
    display: block;
}

/* ============================================================
   ICON GROUPS
============================================================ */

.ce-entry-meta-bar__block {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    min-height: 28px;
}

/* ------------------------------
   LANGUAGE ICONS
------------------------------ */
.ce-entry-meta-bar__languages img {
    height: 26px;
    width: auto;
}

/* ------------------------------
   SOCIAL ICONS
------------------------------ */
.ce-entry-meta-bar__social img {
    height: 26px;
    width: auto;
}

.ce-entry-meta-bar__social a {
    display: inline-flex;
}

/* ------------------------------
   ARBITRATION ICON
------------------------------ */
.ce-entry-meta-bar__arbitration img {
    height: 26px;
    width: auto;
}

/* ============================================================
   MEMBER BENEFIT — Unified CE Block (Perfect Match)
============================================================ */

.ce-block--benefit {
    background: #fff;
    border: 3px solid var(--entry-color);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);

    padding: 1.5rem 2rem;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}

/* Header spacing identical to other blocks */
.ce-block--benefit .ce-block__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Title identical to other blocks */
.ce-block--benefit .ce-block__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--entry-color);
    padding: 0 0.5rem;
}

/* ABOUT-style lines ONLY for Member Benefit */
.ce-block--benefit .ce-block__line-left {
    width: 40px;
    height: 2px;
    background-color: var(--entry-color);
    flex-shrink: 0;
    opacity: 0.5;
}

.ce-block--benefit .ce-block__line-right {
    flex-grow: 1;
    height: 2px;
    background-color: var(--entry-color);
    opacity: 0.5;
}

/* Content identical to other blocks */
.ce-block--benefit .ce-block__content {
    font-size: 16px;
    line-height: 1.55;
    color: #333;
    white-space: normal;
    word-break: break-word;
}

/* ============================================================
   MOBILE (PORTRAIT)
============================================================ */
@media (max-width: 600px) and (orientation: portrait) {

    .ce-entry-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.5rem;

        border-width: 2px;
        border-radius: 6px;

        max-width: 100%;
        margin: 1rem 0 0 0;

        flex-wrap: wrap;
        white-space: normal;
    }

    .ce-entry-meta-bar__vline {
        display: none;
    }

    .ce-entry-meta-bar__hline {
        opacity: 0.3;
    }
}
