.publications-section {
    background-color: rgb(248, 247, 242);
    padding: 4rem 6rem;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    margin-top: 4rem; 
}

.publications-container {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* space between items */
}

.publication-item {
    display: flex;
    flex-direction: row;
    gap: 2rem;                /* space between columns */
    max-width: 1200px;         /* optional: limit total row width */
}

/* Left column (photo) */
.publication-photo {
    width: 30vw;               /* 30% of viewport width */
    position: relative;
    
    display: flex;          /* make it a flex container */
    justify-content: center; /* optional: horizontal centering */
    align-items: center;     /* vertical centering */
}

.publication-photo img {
    width: 100%;
    display: block;
    border-radius: 10px 0 0 10px;
}

/* Type band */
.publication-type {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(0, 53, 122); /* blue band */
    color: white;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    border-bottom-right-radius: 5px;
}

/* Second column: details */
.publication-details {
    width: 40vw;               /* 20% of viewport width */
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Third column: empty */
.publication-empty {
    width: 30vw;               /* 30% of viewport width */
}

.publication-date {
    color: rgb(80, 80, 80);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.publication-platform {
    font-size: 1rem;
    color: rgb(50, 50, 50);
    margin-bottom: 0.3rem;
    color: rgb(120, 48, 53);
    font-weight: bold;
}

.publication-author {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: rgb(0, 50, 125);
    font-weight: bold;
}

.publication-read-more {
    align-self: start;
    background-color: rgb(220, 220, 220);
    color: rgb(50,50,50);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.publication-read-more:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .publications-section {
    padding: 4rem 3rem;
    }
    .publication-item {
        flex-direction: column;
        gap: 0rem;
    }
    .publication-photo, .publication-details {
        width: 100%;
    }
    .publications-container {
        gap: 1rem; /* space between items */
}

}
