/* ==========================================================================
   Journal hero banner (slider.php) — self-contained styles, responsive grid
   ========================================================================== */

.jhero {
    position: relative;
    color: #fff;
    text-align: center;
    margin-top: 69px;
    padding: 0;
}

.jhero-overlay {
    width: 100%;
    background: #fff;
    display: table;
}

.jhero-center {
    position: relative;
    display: table-cell;
    vertical-align: middle;
}

.jhero-bg {
    width: 100%;
    min-height: 180px;
    background: #cde4fd;
    position: relative;
    box-shadow: inset 0 0 10px rgb(5 5 5), inset 0 0 20px rgb(32 115 213), inset 0 0 30px rgb(32 115 213);
    padding: 20px 0;
    display: flex;
    align-items: center;
}

.jhero-slide {
    position: relative;
    width: 100%;
    text-align: center;
}

.jhero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.jhero-main {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 15px;
    margin-bottom: 14px;
}

.jhero-side {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.jhero-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.jhero-logo {
    flex: 0 0 auto;
}

.jhero-logo img {
    width: 135px;
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 5px #0a7ec7;
}

.jhero-info {
    flex: 1 1 auto;
    min-width: 0;
}

.jhero-oa-link {
    display: inline-block;
}

.jhero-oa-img {
    width: 150px;
    height: auto;
    position: relative;
    top: 4px;
}

.jhero-title {
    font-size: 40px;
    font-weight: 600;
    text-align: left;
    margin: 0;
}

.jhero-title-text {
    display: inline-block;
    font-size: 26px;
    margin-top: 8px;
    color: #16539e;
    text-shadow: 2px 3px #cbc8c8;
}

.jhero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.jhero-badge {
    background: #15529c;
    color: #fff;
    padding: 4px 14px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.jhero-badge a {
    color: #fff;
    text-decoration: none;
}

.jhero-badge a:hover {
    color: #fff;
    text-decoration: underline;
}

.jhero-issn {
    color: #fff;
    font-size: 14px;
    margin-top: 6px;
    display: inline-block;
    background: #15529c;
    padding: 2px 10px;
    border: 1px solid #5ac3d7;
    border-radius: 10px;
    margin-bottom: 10px;
}

.jhero-issn a {
    color: #fff;
}

/* Peer-Reviewed pill button */
.jhero-peer-link {
    text-decoration: none;
}

.jhero-peer-btn {
    --border-radius: 30px;
    --button-color: #15529c;

    font-size: 12px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55em 1.1em;
    font-family: "Poppins", "Inter", "Segoe UI", sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, #1a63b8, var(--button-color));
    box-shadow:
        inset 0px 1px 1px rgba(255, 255, 255, 0.25),
        inset 0px 2px 4px rgba(255, 255, 255, 0.12),
        0px 4px 10px rgba(21, 82, 156, 0.35);
    border: solid 1px #fff3;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: box-shadow 0.3s, border 0.3s, background-color 0.3s, transform 0.2s;
}

.jhero-peer-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0px 1px 1px rgba(255, 255, 255, 0.25),
        inset 0px 2px 4px rgba(255, 255, 255, 0.12),
        0px 6px 16px rgba(21, 82, 156, 0.45);
}

.jhero-peer-btn-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jhero-peer-btn-inner i.fa.fa-check {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex: 0 0 auto;
}

.jhero-peer-txt {
    position: relative;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.jhero-peer-txt span {
    font-weight: 600;
}

.jhero-peer-letter {
    position: relative;
    display: inline-block;
    color: #fff5;
    animation: jhero-letter-anim 2s ease-in-out infinite;
    transition: color 0.4s, text-shadow 0.4s, opacity 0.4s;
}

.jhero-peer-letter:nth-child(1) { animation-delay: 0s; }
.jhero-peer-letter:nth-child(2) { animation-delay: 0.08s; }
.jhero-peer-letter:nth-child(3) { animation-delay: 0.16s; }
.jhero-peer-letter:nth-child(4) { animation-delay: 0.24s; }
.jhero-peer-letter:nth-child(5) { animation-delay: 0.32s; }
.jhero-peer-letter:nth-child(6) { animation-delay: 0.4s; }
.jhero-peer-letter:nth-child(7) { animation-delay: 0.48s; }
.jhero-peer-letter:nth-child(8) { animation-delay: 0.56s; }
.jhero-peer-letter:nth-child(9) { animation-delay: 0.64s; }
.jhero-peer-letter:nth-child(10) { animation-delay: 0.72s; }
.jhero-peer-letter:nth-child(11) { animation-delay: 0.8s; }
.jhero-peer-letter:nth-child(12) { animation-delay: 0.88s; }
.jhero-peer-letter:nth-child(13) { animation-delay: 0.96s; }

@keyframes jhero-letter-anim {
    50% {
        text-shadow: 0 0 3px #fff8;
        color: #fff;
    }
}

.jhero-peer-btn:hover {
    border: solid 1px hsla(210deg, 100%, 80%, 40%);
}

.jhero-peer-btn:active {
    border: solid 1px hsla(210deg, 100%, 80%, 70%);
    background-color: hsla(210deg, 50%, 20%, 0.5);
}

/* Editorial Tracker animated button */
.jhero-tracker {
    display: inline-block;
}

.jhero-tracker-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    overflow: hidden;
    height: 4rem;
    background-size: 300% 300%;
    cursor: pointer;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: jhero-gradient 5s ease infinite;
    border: double 4px transparent;
    background-image: linear-gradient(#212121, #212121),
        linear-gradient(137.48deg, #ffdb3b 10%, #fe53bb 45%, #8f51ea 67%, #0044ff 87%);
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.jhero-tracker-btn strong {
    z-index: 2;
    font-size: 12px;
    letter-spacing: 4px;
    color: #ffffff;
}

.jhero-tracker-stars {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
}

.jhero-tracker-stars-inner {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
}

.jhero-tracker-stars-inner::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: jhero-star-rotate 90s linear infinite;
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
}

.jhero-tracker-stars-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: jhero-star 60s linear infinite;
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

.jhero-tracker-glow {
    position: absolute;
    display: flex;
    width: 12rem;
}

.jhero-tracker-glow-circle {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: jhero-pulse 4s infinite;
    z-index: -1;
}

.jhero-tracker-glow-circle:nth-of-type(1) {
    background: rgba(254, 83, 186, 0.636);
}

.jhero-tracker-glow-circle:nth-of-type(2) {
    background: rgba(142, 81, 234, 0.704);
}

.jhero-tracker-btn:hover .jhero-tracker-stars {
    z-index: 1;
    background-color: #212121;
}

.jhero-tracker-btn:hover {
    transform: scale(1.1);
}

.jhero-tracker-btn:active {
    border: double 4px #fe53bb;
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none;
}

.jhero-tracker-btn:active .jhero-tracker-glow-circle {
    background: #fe53bb;
}

@keyframes jhero-star {
    from { transform: translateY(0); }
    to { transform: translateY(-135rem); }
}

@keyframes jhero-star-rotate {
    from { transform: rotate(360deg); }
    to { transform: rotate(0); }
}

@keyframes jhero-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes jhero-pulse {
    0% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Submit Manuscript button with decorative corner dots/lines */
.jhero-submit-wrapper {
    --dot-size: 6px;
    --line-weight: 1px;
    --line-distance: 0.9rem 1.1rem;
    --animation-speed: 0.35s;
    --dot-color: #666;
    --line-color: #999;

    position: relative;
    display: block;
    width: 100%;
    padding: var(--line-distance);
    background-color: #0000;
    transition: background-color 0.3s ease-in-out;
    user-select: none;
}

.jhero-submit-wrapper a {
    text-decoration: none;
    display: inline-block;
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) {
    animation: jhero-submit-bg calc(var(--animation-speed) * 4) ease-in-out forwards;
}

@keyframes jhero-submit-bg {
    80% { background-color: #0000; }
    100% { background-color: #e5ff0055; }
}

.jhero-submit-btn {
    position: relative;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem 1.25rem;
    border: none;
    color: #0008;
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 30% / 200%;
    cursor: pointer;
    box-shadow:
        0 0 0px 1px #0003,
        0px 1px 1px rgba(3, 7, 18, 0.02),
        0px 5px 4px rgba(3, 7, 18, 0.04),
        0px 12px 9px rgba(3, 7, 18, 0.06),
        0px 20px 15px rgba(3, 7, 18, 0.08),
        0px 32px 24px rgba(3, 7, 18, 0.1);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out, border-radius 0.3s ease-in-out, border-color 0.2s ease-in-out;
}

.jhero-submit-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
    border-radius: 10% / 200%;
    text-decoration: none;
}

.jhero-submit-btn:active {
    background-color: #e5ff00;
    transform: scale(0.98);
    border-radius: 20% / 200%;
}

.jhero-submit-svg {
    margin-left: 0.5rem;
    height: 24px;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #0007;
    fill: #fffa;
    transition: all 0.3s ease-in-out;
}

.jhero-submit-btn:hover .jhero-submit-svg {
    stroke: #0008;
    fill: #e5ff00;
}

.jhero-submit-btn:active .jhero-submit-svg {
    stroke: #0009;
    fill: #f1ff76;
}

.jhero-submit-dot {
    position: absolute;
    width: var(--dot-size);
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--dot-color);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-dot.top.left {
    top: 50%;
    left: 20%;
    animation: jhero-dot-tl var(--animation-speed) ease-in-out forwards;
}

@keyframes jhero-dot-tl {
    90% { opacity: 0.6; }
    100% { top: calc(var(--dot-size) * -0.5); left: calc(var(--dot-size) * -0.5); opacity: 1; }
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-dot.top.right {
    top: 50%;
    right: 20%;
    animation: jhero-dot-tr var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 0.6);
}

@keyframes jhero-dot-tr {
    80% { opacity: 0.6; }
    100% { top: calc(var(--dot-size) * -0.5); right: calc(var(--dot-size) * -0.5); opacity: 1; }
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-dot.bottom.right {
    bottom: 50%;
    right: 20%;
    animation: jhero-dot-br var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 1.2);
}

@keyframes jhero-dot-br {
    80% { opacity: 0.6; }
    100% { bottom: calc(var(--dot-size) * -0.5); right: calc(var(--dot-size) * -0.5); opacity: 1; }
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-dot.bottom.left {
    bottom: 50%;
    left: 20%;
    animation: jhero-dot-bl var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 1.8);
}

@keyframes jhero-dot-bl {
    80% { opacity: 0.6; }
    100% { bottom: calc(var(--dot-size) * -0.5); left: calc(var(--dot-size) * -0.5); opacity: 1; }
}

.jhero-submit-line {
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.jhero-submit-line.horizontal {
    height: var(--line-weight);
    width: 100%;
    background-image: repeating-linear-gradient(90deg,
        #0000 0 calc(var(--line-weight) * 2), var(--line-color) calc(var(--line-weight) * 2) calc(var(--line-weight) * 4));
}

.jhero-submit-line.vertical {
    width: var(--line-weight);
    height: 100%;
    background-image: repeating-linear-gradient(0deg,
        #0000 0 calc(var(--line-weight) * 2), var(--line-color) calc(var(--line-weight) * 2) calc(var(--line-weight) * 4));
}

.jhero-submit-line.top {
    top: calc(var(--line-weight) * -0.5);
    transform-origin: top left;
    transform: rotate(5deg) scaleX(0);
}

.jhero-submit-line.bottom {
    bottom: calc(var(--line-weight) * -0.5);
    transform-origin: bottom right;
    transform: rotate(5deg) scaleX(0);
}

.jhero-submit-line.left {
    left: calc(var(--line-weight) * -0.5);
    transform-origin: bottom left;
    transform: rotate(0deg) scaleY(0);
}

.jhero-submit-line.right {
    right: calc(var(--line-weight) * -0.5);
    transform-origin: top right;
    transform: rotate(5deg) scaleY(0);
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-line.top {
    animation: jhero-draw-x var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 0.8);
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-line.bottom {
    animation: jhero-draw-x var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 2);
}

@keyframes jhero-draw-x {
    100% { transform: rotate(0deg) scaleX(1); }
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-line.left {
    animation: jhero-draw-y var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 2.4);
}

.jhero-submit-wrapper:has(.jhero-submit-btn:hover) .jhero-submit-line.right {
    animation: jhero-draw-y var(--animation-speed) ease-in-out forwards;
    animation-delay: calc(var(--animation-speed) * 1.4);
}

@keyframes jhero-draw-y {
    100% { transform: rotate(0deg) scaleY(1); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1250px) {
    .jhero-title {
        font-size: 32px;
    }

    .jhero-title-text {
        font-size: 22px;
    }

    .jhero-logo img {
        width: 100px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .jhero-main,
    .jhero-side {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .jhero-side {
        margin-top: 20px;
    }

    .jhero-identity {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .jhero-logo img {
        width: 90px;
    }

    .jhero-info {
        flex: 1 1 100%;
        text-align: center;
    }

    .jhero-title {
        font-size: 26px;
        text-align: center;
    }

    .jhero-title-text {
        font-size: 24px;
        text-align: center;
        background: #fff;
        padding: 10px;
        margin-top: 12px;
    }

    .jhero-meta {
        justify-content: center;
    }

    .jhero-submit-wrapper {
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 767px) {
    .jhero {
        margin-top: 83px;
    }

    .jhero-bg {
        min-height: 340px;
    }

    .jhero-row {
        flex-direction: column;
    }

    .jhero-main,
    .jhero-side {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .jhero-side {
        margin-top: 15px;
    }

    .jhero-identity {
        flex-direction: column;
        text-align: center;
    }

    .jhero-logo img {
        width: 67px;
    }

    .jhero-info {
        text-align: center;
    }

    .jhero-title-text {
        font-size: 18px;
    }

    .jhero-meta {
        justify-content: center;
        gap: 8px;
    }

    .jhero-badge {
        padding: 6px 10px;
        font-size: 12px;
        gap: 5px;
    }

    .jhero-issn {
        padding: 5px 10px;
    }

    .jhero-tracker-btn {
        padding: 0 20px;
    }

    .jhero-submit-wrapper {
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 480px) {
    .jhero-title-text {
        font-size: 24px;
        text-align: center;
        background: #fff;
        padding: 10px;
        margin-top: 12px;
    }
}

@media (max-width: 320px) {
    .jhero-title-text {
        font-size: 12px;
    }
}
