/* Additional CSS for the dropdown menu */
.navbar-nav .dropdown-menu {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.navbar-nav .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    color: #86469C;
    text-decoration: none;
    background-color: #f8f9fa;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-nav .dropdown-menu a.dropdown-item {
    padding: 8px 20px;
}

/* Animation for sliding in from the top */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to the section */
#publications-reports {
    animation: slideInFromTop 1s ease-out;
}

#publications-reports .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

#publications-reports .column {
    width: 100%;
    max-width: 45%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#publications-reports .items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#publications-reports .item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#publications-reports .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#publications-reports .preview {
    flex: 0 0 150px;
    height: 210px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#publications-reports .preview:hover {
    transform: scale(1.05);
}

#publications-reports .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

#publications-reports .preview:hover img {
    opacity: 0.8;
}

#publications-reports .description {
    flex: 1;
}

#publications-reports .description h3 {
    margin: 0;
    font-size: 18px;
    transition: color 0.3s ease;
}

#publications-reports .description p {
    margin: 5px 0 0;
    font-size: 20px; /* Font size for description paragraphs */
}

#publications-reports .item:hover .description h3 {
    color: #86469C;
}

#publications-reports h2 {
    border-bottom: 2px solid #86469C;
    padding-bottom: 10px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

#publications-reports h2:hover {
    color: #86469C;
}

@media (max-width: 768px) {
    #publications-reports .container {
        flex-direction: column;
        align-items: center;
    }

    #publications-reports .column {
        width: 100%;
        max-width: 100%;
    }

    #publications-reports .item {
        flex-direction: column;
        align-items: flex-start;
    }

    #publications-reports .preview {
        width: 100%;
        height: auto;
    }

    #publications-reports .description {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    #publications-reports .description h3 {
        font-size: 16px;
    }

    #publications-reports .description p {
        font-size: 12px;
    }
}
