﻿/* Unified stylesheet: base + home + articles */

/* ScholarHub Default Template - Base Styles */

:root {
    --rf-deep: #0f2d26;
    --rf-green: #1f6f4a;
    --rf-soft: #f3f7f4;
    --rf-accent: #f4b73f;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: radial-gradient(circle at 10% 0%, #e5f3eb 0, transparent 35%), radial-gradient(circle at 90% 10%, #f8f0da 0, transparent 30%), var(--rf-soft);
    color: #1f2937;
}

/* Site Header */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #d7e7df;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-mark {
    /* width: 55px; */
    padding-left: 1rem;
    padding-right: 1rem;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1f6f4a, #15533b);
    box-shadow: 0 8px 20px rgba(20, 83, 59, 0.26);
}

.brand-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #163a2e;
}

.main-nav a {
    background: #e6f2ec;
    color: #124332;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.2s ease;
}

.main-nav .nav-cta {
    background: linear-gradient(135deg, #1f6f4a, #15533b);
    color: #fff;
    box-shadow: 0 10px 18px rgba(21, 83, 59, 0.25);
}

.main-nav a:hover {
    transform: translateY(-1px);
}

.main-nav .nav-cta:hover {
    color: #fff;
}

/* Shared Header Nav Shell */
.nsbr-nav-wrap li.nav-item {
    margin: 0 3px;
}

.nsbr-nav-wrap .brand-mark {
    min-width: 70px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1f6f4a, #15533b);
    box-shadow: 0 8px 20px rgba(20, 83, 59, 0.26);
}

.nsbr-nav-wrap .brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #173d30;
    letter-spacing: 0.01em;
}

.nsbr-nav-wrap .nav-link {
    color: #1a4938;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
}

.nsbr-nav-wrap .nav-link:hover,
.nsbr-nav-wrap .nav-link:focus,
.nsbr-nav-wrap .nav-link.active {
    color: #0f3528;
    background-color: #eaf5ef;
}

.nsbr-nav-wrap .dropdown-item {
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    color: #1a4938;
}

.dropdown-item {
    margin-bottom: 3px;
}

.nsbr-nav-wrap .dropdown-item:hover,
.nsbr-nav-wrap .dropdown-item:focus,
.nsbr-nav-wrap .dropdown-item.active {
    background-color: #eaf5ef;
    color: #0f3528;
}

.nsbr-nav-wrap .nsh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    border: 1px solid #c5dfd2;
    border-radius: 999px;
    background: #eef7f2;
    color: #14523b;
    box-shadow: 0 6px 14px rgba(20, 83, 59, 0.12);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nsbr-nav-wrap .nsh-btn:hover,
.nsbr-nav-wrap .nsh-btn:focus {
    color: #0f4733;
    background: #e4f2ea;
    border-color: #b7d5c6;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 83, 59, 0.16);
}

.nsbr-nav-wrap .nsh-btn-arrow {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 999px;
    background: rgba(20, 83, 59, 0.12);
    text-align: center;
    line-height: 20px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.nsbr-nav-wrap .nsh-btn:hover .nsh-btn-arrow,
.nsbr-nav-wrap .nsh-btn:focus .nsh-btn-arrow {
    transform: translateX(-2px);
    background: rgba(20, 83, 59, 0.2);
}

@media (max-width: 991.98px) {
    .nsbr-nav-wrap .navbar-collapse {
        margin-top: 0.75rem;
    }

    .nsbr-nav-wrap .nav-link,
    .nsbr-nav-wrap .btn {
        width: 100%;
    }

    .nsbr-nav-wrap .dropdown-menu {
        margin-top: 0.35rem;
    }
}

/* Section Title */
.section-title {
    border-left: 5px solid var(--rf-green);
    padding-left: 14px;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Cards */
.card {
    border: 1px solid #e2ece7;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(11, 43, 34, 0.06);
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(11, 43, 34, 0.08);
    transition: 0.2s ease;
}

/* Article Styles */
.article-title {
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #123529;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.88rem;
    font-weight: 700;
    color: #22543f;
}

.article-meta .meta-part + .meta-part::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8aa99c;
    margin: 0 8px 1px;
    vertical-align: middle;
}

.article-author-venue {
    color: #5b6770;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
}

/* Footer */
footer {
    background: radial-gradient(circle at top right, #264c3f, #0f241f 58%);
    color: #d5e3dc;
}

footer a {
    color: #d5e3dc;
    text-decoration: none;
    transition: 0.2s ease;
}

footer a:hover {
    color: #fff;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    justify-items: center;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-title {
    font-size: 0.95rem;
    color: #f2faf6;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(213, 227, 220, 0.2);
    margin-top: 24px;
    padding-top: 16px;
    font-size: 0.9rem;
    color: #b8cdc3;
}

.recent-chip {
    display: inline-block;
    border-radius: 999px;
    background: #eaf3ee;
    color: #22543f;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== home.css ===== */

/* Home Page Specific Styles */

.hero {
    background: linear-gradient(120deg, var(--rf-deep), var(--rf-green));
    color: #fff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 30%, rgba(244, 183, 63, 0.25), transparent 30%);
    pointer-events: none;
}

.hero-search {
    max-width: 720px;
    margin: 24px auto 0;
}
.hero-search .form-control {
    border: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.hero-search .btn {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.hero-subtitle {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.hero-venue-panel {
    position: relative;
    /* min-height: 360px; */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(8, 33, 25, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-venue-panel img {
    width: 100%;
    /* border-radius: 18px; */
    /* box-shadow: 0 14px 30px rgba(4, 17, 12, 0.45); */
    object-fit: cover;
    aspect-ratio: 4 / 3;

    /* width: 100%;
    height: 100%; */
    /* min-height: 360px; */
    /* min-width: 340px;
    object-fit: cover;
    display: block; */
}

.hero-venue-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(7, 28, 23, 0.1), rgba(7, 28, 23, 0.58)); */
    background: linear-gradient(180deg, rgba(7, 28, 23, 0.1), rgba(7, 28, 23, 0.15));
}

.hero-venue-panel-overlay {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    z-index: 1;
    padding: 12px 14px 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-venue-panel-tag {
    display: inline-block;
    /* margin-bottom: 10px; */
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-copy {
    max-width: 48rem;
}

.hero-venue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-venue-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(244, 183, 63, 0.18);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-venue-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 10px 10px;
    border-radius: 22px;
    background: rgba(7, 28, 23, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    align-items: center;
}

/* .hero-search {
    max-width: 100%;
} */

/* .hero-search .input-group {
    border-radius: 18px;
    overflow: hidden;
}

.hero-search .form-control {
    padding-block: 0.95rem;
} */

.hero-search .btn {
    min-width: 132px;
}

.hero-venue-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.hero-venue-name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
}

.hero-venue-copy {
    color: rgba(255, 255, 255, 0.8);
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Venue Banner */
.venue-banner {
    width: 100%;
    height: 220px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.venue-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
    z-index: -1;
}

.venue-banner::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0) 35%), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 34%), radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 38%);
    mix-blend-mode: screen;
    opacity: 0.75;
    transition: transform 0.7s ease;
    z-index: -1;
}

.venue-banner-label {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
}

#venues .card {
    overflow: hidden;
    border: 1px solid #d7e7df;
    box-shadow: 0 8px 24px rgba(11, 43, 34, 0.08);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease;
}

#venues .venue-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

#venues .venue-card-link:visited,
#venues .venue-card-link:hover,
#venues .venue-card-link:focus,
#venues .venue-card-link:active {
    color: inherit;
    text-decoration: none;
}

#venues .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(11, 43, 34, 0.14);
}

#venues .card:hover .venue-banner::after {
    transform: translateY(-6px) scale(1.05);
}

#venues .card-body {
    background: linear-gradient(180deg, #ffffff, #f7fbf8);
}

#venues .card-body .h5 {
    color: #163a2e;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.venue-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.5s ease;
}

#venues .card:hover .venue-banner img {
    transform: scale(1.06);
}

/* Recent Slider Styles */
.recent-slider {
    display: flex;
    gap: 18px;
    overflow: hidden;
    flex-wrap: wrap;
    padding: 6px 2px 12px;
}

.recent-slider.slick-initialized {
    display: block;
    overflow: visible;
    padding: 6px 0 34px;
}

.recent-slider .slick-slide {
    margin: 0 9px;
    height: inherit;
}

.recent-slider .slick-list {
    margin: 0 -9px;
    padding: 1.5rem 0;
    height: auto !important;
}

.recent-slider .slick-track {
    display: flex;
}

.recent-slider .slick-slide > div {
    height: 100%;
}

.recent-slider .slick-prev:before,
.recent-slider .slick-next:before {
    color: #1f6f4a;
}

.recent-slider .slick-dots li button:before {
    color: #2b6e46;
    font-size: 10px;
    opacity: 0.35;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.recent-slider .slick-dots {
    bottom: 0;
}

.recent-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    transform: scale(1.25);
}

.articles-slide-section {
    /* background-color: #f4f9f5; */
}

.slide-controls .slide-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d4ddd8;
    background: #fff;
    color: #255944;
    font-weight: 700;
    line-height: 1;
    display: inline-grid;
    place-items: center;
    transition: 0.2s ease;
}

.slide-controls .slide-nav-btn:hover {
    background: #eaf4ee;
    border-color: #b9cec4;
}

.recent-slide {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    margin: 0.75rem;
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    transition: 0.2s ease;
    background: #fff;
}

.recent-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px -8px rgba(0, 0, 0, 0.12);
}

.recent-slide-body {
    padding: 1.2rem 1.2rem 1rem;
}

.recent-slide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.7rem;
}

.recent-chip {
    display: inline-block;
    border-radius: 999px;
    background: #eaf3ee;
    color: #22543f;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .venue-banner {
        height: 200px;
    }
    .hero {
        padding: 56px 0;
    }

    .hero-copy {
        max-width: 100%;
    }
    .hero-venue-tags {
        gap: 8px;
    }
    .hero-venue-tag {
        font-size: 0.76rem;
        padding: 5px 10px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-venue-info {
        padding: 16px;
    }
    .hero-venue-panel,
    .hero-venue-panel img {
        min-height: 300px;
    }
}

/* ===== articles.css ===== */

/* Articles List and Detail Page Styles */

/* Articles List - Hero Section */
.hero {
    background: linear-gradient(120deg, var(--rf-deep), var(--rf-green));
    color: #fff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 30%, rgba(244, 183, 63, 0.25), transparent 30%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-search {
    max-width: 720px;
    margin: 24px auto 0;
}

.card-top-border .card {
    border-top: 5px solid #b8d4c8;
}

/* Article Detail - Hero Section */
.article-hero {
    background: linear-gradient(120deg, var(--rf-deep), var(--rf-green));
    color: #fff;
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 30%, rgba(244, 183, 63, 0.25), transparent 30%);
    pointer-events: none;
}

.article-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
}

.hero-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.hero-breadcrumb a {
    color: #d6f5e5;
    text-decoration: none;
}

.hero-breadcrumb .sep {
    opacity: 0.7;
}

.article-hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-journal-image-wrap {
    justify-self: end;
    width: min(100%, 340px);
}

.hero-journal-image {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(4, 17, 12, 0.45);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Article Card */
.article-card {
    background: #fff;
    border: 1px solid #e2ece7;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(11, 43, 34, 0.06);
    padding: 22px;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4b6b5f;
    font-weight: 800;
}

.abstract-text {
    line-height: 1.75;
    color: #374151;
}

.section-divider {
    margin: 1.4rem 0;
}

.author-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #e8f4ee;
    color: #174534;
    padding: 7px 12px;
    font-weight: 700;
    font-size: 0.88rem;
}

.badge-lead {
    background: #f4b73f;
    color: #111827;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.74rem;
    font-weight: 800;
}

.venue-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.venue-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1f6f4a, #15533b);
}

.related-slide {
    border: 1px solid #e2ece7;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.related-slide:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(11, 43, 34, 0.08);
}

.related-slide-title {
    font-weight: 800;
    color: #123529;
    margin-bottom: 5px;
}

.pagination .page-link {
    color: #22543f;
    border-radius: 50%;
    margin: 0 3px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: #22543f;
    border-color: #22543f;
    color: white;
}

.pagination .page-link:hover {
    background-color: #22543f29 !important;
    border-color: #22543f29 !important;
    color: #22543f !important;
}

.pagination .page-item:hover .page-link {
    background-color: #e7f1ff;
}

@media (max-width: 767.98px) {
    .article-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-journal-image-wrap {
        display: none;
    }
}
