
.nav-links a.publications-active {
    color: red;
    border-bottom: 2px solid rgb(160, 0, 0);
}


/* -------------------- Hero -------------------- */

.publications-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    color: white;

    background:
        linear-gradient(
            rgba(0, 55, 100, 0.78),
            rgba(0, 100, 80, 0.82)
        ),
        url("image_3.jpeg");

    background-size: cover;
    background-position: center;
}

.publications-hero-content {
    max-width: 850px;
}

.publications-label {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: "Tektur", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
}

.publications-hero h1 {
    font-family: "Tektur", sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.publications-hero p {
    max-width: 720px;
    margin: auto;
    line-height: 1.8;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
}


/* -------------------- Main -------------------- */

.publications-section {
    max-width: 1250px;
    margin: auto;
    padding: 5.5rem 6%;
}

.publications-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.publications-heading > div {
    flex: 1;
}

.publications-heading span {
    display: block;
    margin-bottom: 0.6rem;
    color: #1b6ca8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.publications-heading h2 {
    font-family: "Tektur", sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #222;
}

.publications-heading p {
    max-width: 500px;
    color: #666;
    line-height: 1.7;
}


/* -------------------- Search -------------------- */

.publication-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.publication-search input {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.1rem;
    border: 1px solid #d9e1de;
    border-radius: 10px;
    background: white;
    color: #222;
    font: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.publication-search input:focus {
    border-color: #00897b;
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.12);
}

#publicationResultCount {
    min-width: 90px;
    color: #777;
    font-size: 0.9rem;
    text-align: right;
}


/* -------------------- Filters -------------------- */

.publication-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

.filter-button {
    border: 1px solid #d5dedb;
    background: white;
    color: #444;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.25s ease;
}

.filter-button:hover {
    border-color: #00897b;
    color: #00897b;
}

.filter-button.active {
    background: linear-gradient(135deg, #1b6ca8, #00897b);
    border-color: transparent;
    color: white;
}


/* -------------------- Year -------------------- */

.publication-year {
    margin-bottom: 4.5rem;
}

.publication-year-hidden {
    display: none;
}

.year-title {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5ebe9;
}

.year-title h2 {
    font-family: "Tektur", sans-serif;
    font-size: 2.5rem;
    color: #174b3d;
}

.year-title span {
    color: #888;
    font-size: 0.9rem;
}


/* -------------------- List -------------------- */

.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}


/* -------------------- Card -------------------- */

.publication-card {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.7rem;
    padding: 1.8rem 2rem;
    background: white;
    border: 1px solid #e7ecea;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.055);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-4px);
    border-color: #bcdcd2;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.11);
}

.publication-hidden {
    display: none;
}

.publication-number {
    font-family: "Tektur", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 137, 123, 0.24);
}


/* -------------------- Metadata -------------------- */

.publication-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.publication-type {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.journal-type {
    background: #e7f5f1;
    color: #087864;
}

.conference-type {
    background: #e8f0fb;
    color: #1b6ca8;
}

.report-type {
    background: #fff4df;
    color: #9a6410;
}

.patent-type {
    background: #feeceb;
    color: #a63f3b;
}

.book-type {
    background: #f3eafd;
    color: #7444a3;
}

.publication-year-label {
    color: #999;
    font-size: 0.85rem;
}


/* -------------------- Text -------------------- */

.publication-content h3 {
    font-family: "Tektur", sans-serif;
    font-size: 1.27rem;
    line-height: 1.48;
    color: #1d3029;
    margin-bottom: 0.9rem;
}

.publication-authors {
    color: #4f5754;
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0.55rem;
}

.publication-authors span {
    color: #222;
    font-weight: 600;
    margin-right: 0.35rem;
}

.publication-source {
    color: #00897b;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.6;
}


/* -------------------- Link -------------------- */

.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.publication-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.05rem;
    border-radius: 7px;
    background: linear-gradient(135deg, #1b6ca8, #00897b);
    color: white;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.publication-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}


/* -------------------- Empty result -------------------- */

.no-publications {
    display: none;
    padding: 2rem;
    text-align: center;
    color: #666;
    background: white;
    border: 1px solid #e5ebe9;
    border-radius: 14px;
}


/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
    .publications-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .publication-card {
        grid-template-columns: 55px 1fr;
    }
}

@media (max-width: 600px) {
    .publications-hero {
        min-height: 350px;
    }

    .publications-hero h1 {
        font-size: 2.7rem;
    }

    .publications-section {
        padding: 4rem 5%;
    }

    .publication-search {
        align-items: stretch;
        flex-direction: column;
    }

    #publicationResultCount {
        text-align: left;
    }

    .publication-card {
        grid-template-columns: 1fr;
        padding: 1.35rem;
    }

    .publication-number {
        font-size: 1.5rem;
    }

    .publication-top {
        align-items: flex-start;
    }

    .publication-content h3 {
        font-size: 1.12rem;
    }
}
