/* Publications Portal Styles */

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.filter-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 250px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--vast-primary);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Publications Grid */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }
}

/* WHO-style Publication Card */
.publication-card {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-date {
    background-color: var(--vast-primary);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.5rem;
}

.publication-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vast-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.publication-title a {
    color: var(--vast-secondary);
    text-decoration: none;
}

.publication-title a:hover {
    color: var(--vast-primary);
}

.publication-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.year-badge,
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
}

.year-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge {
    background: #f3e5f5;
    color: #7b1fa2;
}

.publication-summary {
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-primary {
    background: var(--vast-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.btn-primary:hover {
    background: var(--vast-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--vast-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vast-primary);
}

.btn-outline:hover {
    background: var(--vast-primary);
    color: white;
    transform: translateY(-1px);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.125rem;
    display: none;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Publication Thumbnail Styles - Modern Compact Design */
.publication-thumbnail {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.publication-thumbnail:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.publication-thumbnail-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    padding: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
}

.publication-thumbnail:hover .publication-thumbnail-img {
    transform: scale(1.08);
}

/* Featured publication card styling */
.publication-card:has(.publication-thumbnail) {
    border: 1px solid rgba(40, 167, 69, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
}

.publication-card:has(.publication-thumbnail):hover {
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.publication-card:has(.publication-thumbnail) .card-date {
    background: linear-gradient(135deg, var(--vast-primary), #20c997);
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Modern badge for featured publication */
.publication-card:has(.publication-thumbnail)::before {
    content: "FEATURED";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--vast-primary), var(--vast-secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Modern Webinar Styles */
.webinar-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.webinar-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.webinar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 0;
    margin-bottom: 1rem;
}

.webinar-category-tag {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webinar-category-tag.health-taxes {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.webinar-date-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.webinar-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 0 2rem 2rem;
}

.webinar-thumbnail-modern {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
}

.webinar-thumbnail-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.webinar-card:hover .webinar-thumbnail-modern img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webinar-card:hover .image-overlay {
    opacity: 1;
}

.play-button-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.play-button-modern a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button-modern a:hover {
    background: rgba(40, 167, 69, 0.9);
    transform: scale(1.1);
}

.play-button-modern i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.play-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.webinar-info-section {
    padding: 1rem 0;
}

.webinar-title-modern {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.webinar-subtitle-modern {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.webinar-description-modern {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 2rem;
}

.webinar-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.highlight-item i {
    font-size: 1.25rem;
    color: #28a745;
    width: 24px;
    text-align: center;
}

.webinar-health-taxes .highlight-item i {
    color: #dc3545;
}

.highlight-item span {
    font-weight: 500;
    color: #495057;
}

.webinar-actions-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-watch-modern, .btn-download-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-watch-modern {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
}

.btn-watch-modern:hover {
    background: linear-gradient(135deg, #218838, #1aa179);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.webinar-health-taxes .btn-watch-modern {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.webinar-health-taxes .btn-watch-modern:hover {
    background: linear-gradient(135deg, #c82333, #e8590c);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.btn-download-modern {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-download-modern:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .webinar-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .webinar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .webinar-title-modern {
        font-size: 1.5rem;
    }
    
    .webinar-subtitle-modern {
        font-size: 1.1rem;
    }
    
    .webinar-actions-modern {
        flex-direction: column;
    }
    
    .btn-watch-modern, .btn-download-modern {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .webinar-card {
        margin-bottom: 2rem;
    }
    
    .webinar-content-wrapper {
        padding: 0 1rem 1.5rem;
    }
    
    .webinar-header {
        padding: 1rem 1rem 0;
    }
    
    .webinar-thumbnail-modern {
        height: 200px;
    }
    
    .webinar-title-modern {
        font-size: 1.25rem;
    }
    
    .webinar-subtitle-modern {
        font-size: 1rem;
    }
}

/* Publication Details Page Styles */
.publication-details-page .page-title {
    margin-bottom: 0;
}

.publication-details-container {
    padding: 3rem 0;
}

.publication-details-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.publication-details-card .publication-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.publication-details-card .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.publication-details-card .meta-item i {
    color: var(--vast-primary);
}

.publication-details-card .publication-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vast-secondary);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.publication-thumbnail-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 1.5rem;
}

.publication-thumbnail-container img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.publication-abstract h3,
.publication-info h3,
.related-publications h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vast-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.publication-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publication-info-list li {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
}

.publication-info-list li strong {
    min-width: 120px;
    color: #495057;
}

.related-publication-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-publication-thumbnail {
    height: 160px;
    overflow: hidden;
}

.related-publication-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-publication-info {
    padding: 1rem;
}

.related-publication-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .publication-card {
        padding: 1.5rem;
    }
    
    .publication-card .card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .publication-card .card-actions a {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile thumbnail adjustments */
    .publication-thumbnail-img {
        height: 180px;
        padding: 10px;
    }
    
    /* Publication details page thumbnail adjustments */
    .publication-thumbnail-container {
        padding: 15px;
        margin-bottom: 1rem;
    }
    
    .publication-thumbnail-container img {
        max-height: 280px;
        padding: 12px;
    }
    
    .publication-card:has(.publication-thumbnail)::before {
        font-size: 0.7rem;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 1.5rem 1rem;
    }
    
    .publication-card {
        padding: 1.25rem;
    }
    
    .publication-title {
        font-size: 1.125rem;
    }
    
    /* Small mobile thumbnail adjustments */
    .publication-thumbnail {
        margin-bottom: 0.75rem;
    }
    
    .publication-thumbnail-img {
        height: 160px;
        padding: 8px;
    }
    
    /* Publication details page small mobile adjustments */
    .publication-thumbnail-container {
        padding: 12px;
    }
    
    .publication-thumbnail-container img {
        max-height: 240px;
        padding: 10px;
    }
    
    .publication-card:has(.publication-thumbnail)::before {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page Header Adjustments */
.publication-page .page-title {
    margin-bottom: 0;
}

.publication-page .page-title .heading {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.publication-page .page-title h1 {
    color: var(--vast-secondary);
    font-size: 2.5rem;
    margin: 0;
    padding: 2rem 0;
}

.publication-page .page-title nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.publication-page .page-title nav ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.publication-page .page-title nav ol li {
    font-size: 0.95rem;
    color: #6c757d;
}

.publication-page .page-title nav ol li a {
    color: var(--vast-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.publication-page .page-title nav ol li a:hover {
    color: var(--vast-secondary);
    text-decoration: underline;
}

.publication-page main {
    padding: 4rem 0;
}

/* Section Title */
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}