/* File: css/styles.css */
/* Media Releases Plugin Styles */

.media-releases-list-wrapper {
    margin-bottom: 20px;
}

.media-releases-list {
    margin-bottom: 20px;
}

.media-release-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Increased gap for better spacing */
}

.media-release-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.media-release-thumbnail {
    /* The width and flex-basis are now controlled by an inline style from the shortcode */
    /* This ensures the container size respects the user setting */
    flex-shrink: 0; /* Prevent the thumbnail from shrinking if content is long */
}

.media-release-thumbnail img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    border: 1px solid #ddd;
    padding: 2px;
    border-radius: 4px;
}

.media-release-content {
   flex: 1;
   min-width: 200px; /* Allows content to wrap gracefully */
}

.media-release-title {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    line-height: 1.3;
    font-weight: bold;
}

.media-release-title a {
    text-decoration: none;
    color: #333;
}

.media-release-title a:hover {
    text-decoration: underline;
    color: #0073aa;
}

.media-release-excerpt {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.media-release-date {
    margin: 0 0 8px 0; /* Add bottom margin for spacing */
    font-size: 0.85em;
    color: #777;
    font-style: italic;
}

.media-release-read-more {
    white-space: nowrap;
    font-weight: bold;
    color: #0073aa;
}
.media-release-read-more:hover {
    text-decoration: underline;
}


/* --- Responsive Design --- */

@media (min-width: 768px) {
    /* Since thumbnail size is dynamic, fixed media query sizes are less relevant */
    /* The flexbox layout will handle wrapping based on available space */
     .media-release-content {
         min-width: 300px;
    }
     .media-release-title {
        font-size: 1.3em;
    }
}

@media (min-width: 1024px) {
    .media-release-title {
        font-size: 1.4em;
    }
}

/* --- Pagination Styling --- */
.media-releases-pagination {
    margin-top: 20px;
    clear: both;
}

.media-releases-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.media-releases-pagination .page-numbers:hover,
.media-releases-pagination .page-numbers.current:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

.media-releases-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

.media-releases-pagination .dots {
    padding: 8px 6px;
    border: none;
}

.media-releases-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.media-releases-pagination ul li {
    display: inline;
    margin: 0 2px;
}

/* --- "View All" Link Styling --- */
.media-releases-view-all {
    margin-top: 20px;
    text-align: center;
    clear: both;
}

.media-releases-view-all a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s;
}

.media-releases-view-all a:hover {
    background-color: #e9e9e9;
    border-color: #bbb;
}