/* Research Publication Banner (Q1-ranked + Scopus-indexed) - #1190 Condition 2.
   Moved here from conf/testing-index.php (approved pilot) so index.php and journal.php share it.
   The artwork layer no longer loads an image. */

/* keep the component self-contained - do not rely on a global border-box reset */
.rpb-banner,
.rpb-media,
.rpb-body,
.rpb-cta,
.rpb-btn {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* ===== Research Publication Banner (Q1-ranked + Scopus-indexed) =====
   Sized to match the legacy img/ASPHER.jpg strip: 1110x239 (~4.6:1),
   capped at 800px wide => ~172px tall on desktop.
   The artwork (img/ISER.jpg) sits on .rpb-media as a blurred, masked
   texture so the headline stays legible whatever the image contains -
   and the banner still reads correctly if the file is missing. */
.rpb-banner {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    min-height: 172px;
    margin: 0 auto;
    padding: 24px 28px 24px 32px;
    overflow: hidden;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    background-color: #0d1c58;
    background-image: linear-gradient(100deg, #08123a 0%, #0d1c58 48%, #14286e 100%);
    -webkit-box-shadow: 0 6px 22px rgba(10, 22, 70, .18);
    box-shadow: 0 6px 22px rgba(10, 22, 70, .18);
    -webkit-transition: -webkit-transform .3s ease, -webkit-box-shadow .3s ease;
    transition: transform .3s ease, box-shadow .3s ease;
}

.rpb-banner:hover,
.rpb-banner:focus {
    color: inherit;
    text-decoration: none;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 12px 28px rgba(10, 22, 70, .30);
    box-shadow: 0 12px 28px rgba(10, 22, 70, .30);
}

.rpb-banner:focus-visible {
    outline: 3px solid #f9a01b;
    outline-offset: 3px;
}

/* artwork layer - blurred + faded towards the headline side */
.rpb-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .24;
    -webkit-filter: blur(4px) saturate(.8);
    filter: blur(4px) saturate(.8);
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
    -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .10) 55%, rgba(0, 0, 0, .9) 100%);
    mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .10) 55%, rgba(0, 0, 0, .9) 100%);
    pointer-events: none;
}

/* orange accent rail on the left edge */
.rpb-banner::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    background: linear-gradient(180deg, #f9a01b 0%, #f4701f 100%);
}

/* soft orange glow behind the CTA, mirrors the legacy artwork */
.rpb-banner::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -40%;
    right: -60px;
    width: 260px;
    height: 180%;
    background: radial-gradient(closest-side, rgba(249, 160, 27, .30) 0%, rgba(249, 160, 27, 0) 100%);
    pointer-events: none;
}

.rpb-body {
    position: relative;
    z-index: 2;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 22px;
}

.rpb-eyebrow {
    display: inline-block;
    margin: 0 0 9px;
    padding: 4px 12px;
    border: 1px solid rgba(249, 160, 27, .55);
    border-radius: 40px;
    background: rgba(249, 160, 27, .15);
    color: #ffc46b;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    line-height: 1.5;
    text-transform: uppercase;
}

.rpb-title {
    display: block;
    margin: 0 0 7px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-shadow: 0 1px 10px rgba(5, 12, 40, .55);
}

.rpb-text {
    display: block;
    margin: 0;
    color: #dfe6ff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(5, 12, 40, .55);
}

.rpb-text strong {
    color: #ffc46b;
    font-weight: 600;
}

.rpb-cta {
    position: relative;
    z-index: 2;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.rpb-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 13px 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f9a01b 0%, #f4701f 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    -webkit-box-shadow: 0 4px 14px rgba(244, 112, 31, .40);
    box-shadow: 0 4px 14px rgba(244, 112, 31, .40);
    -webkit-transition: -webkit-filter .25s ease;
    transition: filter .25s ease;
}

.rpb-btn .rpb-arrow {
    margin-left: 9px;
    font-size: 15px;
    line-height: 1;
}

.rpb-banner:hover .rpb-btn {
    -webkit-filter: brightness(1.08);
    filter: brightness(1.08);
}

/* Tablet */
@media (max-width: 991px) {
    .rpb-banner {
        min-height: 0;
        padding: 22px 22px 22px 26px;
    }

    .rpb-title {
        font-size: 23px;
    }

    .rpb-text {
        font-size: 14px;
    }

    .rpb-body {
        padding-right: 16px;
    }

    .rpb-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
}

/* Phone - stack the CTA under the copy */
@media (max-width: 767px) {
    .iser-banner-wrapper {
        margin: 14px 0;
    }

    .rpb-banner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        padding: 20px 18px 20px 22px;
    }

    .rpb-media {
        opacity: .16;
        -webkit-mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, 1) 100%);
        mask-image: linear-gradient(165deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, 1) 100%);
    }

    .rpb-banner::after {
        display: none;
    }

    .rpb-body {
        padding-right: 0;
        margin-bottom: 16px;
    }

    .rpb-title {
        font-size: 20px;
    }

    .rpb-text {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .rpb-btn {
        width: 100%;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 12px 16px;
    }
}

@media (max-width: 360px) {
    .rpb-title {
        font-size: 18px;
    }

    .rpb-eyebrow {
        font-size: 10px;
        letter-spacing: .05em;
    }
}

@media (prefers-reduced-motion: reduce) {

    .rpb-banner,
    .rpb-btn {
        -webkit-transition: none;
        transition: none;
    }

    .rpb-banner:hover,
    .rpb-banner:focus {
        -webkit-transform: none;
        transform: none;
    }
}
