/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 1.0.0
Updated: 2026-03-06 06:00:44

*/

/* ============================================
   PUBLICATIONS PAGE
   Add this to your child theme's style.css
   ============================================ */

/* ── Page wrapper ── */
.publications-wrap {
    background: #ffffff;
    max-width: 1140px;
    margin: 0 auto;
    padding: 25px 25px 25px;
    box-sizing: border-box;
    font-family: "Tahoma", Sans-serif;
}

.publications-wrap h1 {
    font-size: 24px;
    font-weight: bold;
    max-width: 1100px;
    margin-bottom: 20px;
    color: #020101;
}

/* ── Year navigation ── */
.pub-year-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;             
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.pub-year-nav a {
    display: inline-block;
    padding: 5px 5px;
    background: none;
    color: #2B353B;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.2s;
}

.pub-year-nav a:hover {
    background: none;
}

.year-range {
    white-space: nowrap;
}

/* ── h5 sub-headers: white text on blue ── */
.publications-wrap h5 {
    background: #2B353B;
    color: #ffffff;
    margin: 10px 0 0 0;
    padding: 5px 5px;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 3px 3px 0 0;
    position: relative;
}

.publications-wrap h5 .back-to-top {
    color: #ffffff;
    font-size: 12px;
    font-weight: normal;
    position: absolute;
    right: 10px;        
    top: 50%;          
    transform: translateY(-50%);
}

.publications-wrap h5 .back-to-top:hover {
    color: #ff9933;       
}


/* ── Covers grid: one row, equal sizes, equidistant ── */
.covers-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #f0f4f9;
    padding: 10px 10px;
    border: none;
    gap: 12px;
    margin-bottom: 8px;
    overflow-x: auto;
}

.covers-grid a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.covers-grid img {
    width: auto;
    height: auto;
    max-width: 100%
    max-height: 220px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.covers-grid a:hover img {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* ── Publication year sections ── */
.pub-year {
    margin-bottom: 8px;
}


/* ── Individual pub entries ── */
.pub-entry {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: none;
}

/* Odd = white, Even = light gray */
.pub-entry:nth-child(even) {
    background: #ffffff;
}

.pub-entry:nth-child(odd) {
    background: #D7D7D7;
}

/* Left column: publication text */
.pub-text {
    flex: 1 1 auto;
    padding: 8px 8px;
    border: none;
}

.pub-text p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    color: #000000;
}

.pub-text a {
    color: #000000;
    word-break: break-all;
}

.pub-text a:hover {
    text-decoration: underline;
}

/* Right column: PDF icon or status */
.pub-file {
    flex: 0 0 70px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 8px;
    gap: 6px;
}

.pub-status {
    font-family: Tahoma, sans-serif
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: none;
    color: #000000;
    line-height: 1;
}

.pub-file a img {
    display: block;
    transition: opacity 0.2s;
}

.pub-file a:hover img {
    opacity: 0.7;
}


.publication-warning {
    background-color: #EEEEEE;
    margin: 20px 0px 0px 0px;
    padding: 5px 10px 5px 10px;
    font-size: 14px;
}



/* ── Responsive ── */
@media (max-width: 768px) {
    .publications-wrap {
        padding: 24px 20px 40px;
    }

    .covers-grid {
        gap: 4px;
        padding: 12px 8px;
    }

    .covers-grid img {
        height: 48px;
    }

    .pub-file {
        flex: 0 0 52px;
        min-width: 52px;
    }
}

@media (max-width: 480px) {
    .covers-grid {
        gap: 3px;
        padding: 12px 8px;
    }
    .covers-grid img {
        max-height: 30px;
    }
}