/* Recent News Page Styles */

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Section */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.news-header .news-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Search and Filter Section */
.news-search-section {
    margin-bottom: 40px;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.filter-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* News Card */
.news-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

/* News Image */
.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* News Image Gallery */
.news-image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 200px;
    background-color: #f5f5f5;
}

.news-image-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image-gallery img {
    transform: scale(1.05);
}

/* News Content */
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-date i {
    color: var(--color-primary);
}

/* Tags */
.tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.tag-conference {
    background-color: #ff6b6b;
}

.tag-presentation {
    background-color: #51cf66;
}

.tag-publication {
    background-color: #3776ab;
}

.tag-workshop {
    background-color: #ff922b;
}

.tag-announcement {
    background-color: #845ef7;
}

.tag-data-release {
    background-color: #28a745;
}

.tag-ai-insights {
    background-color: #4A90E2;
}

/* News Title */
.news-title {
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
}

/* News Description */
.news-content .news-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* News Details */
.news-details {
    margin-bottom: 20px;
}

.news-details p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
}

.news-details p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* News Actions */
.news-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 39, 76, 0.3);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    flex: 1;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results-message p {
    color: #999;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .news-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 30px 15px;
    }

    .news-header h1 {
        font-size: 1.75rem;
    }

    .news-header .news-description {
        font-size: 1rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-image,
    .news-image-gallery {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .search-bar input {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-content {
        padding: 20px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   CONTRIBUTION SECTION
   ======================================== */

.contribute-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-top: 60px;
}

.contribute-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.contribute-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-contribute {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-contribute:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 39, 76, 0.3);
}

@media (max-width: 768px) {
    .contribute-section {
        padding: 40px 20px;
    }

    .contribute-section h2 {
        font-size: 1.75rem;
    }

    .contribute-section p {
        font-size: 1rem;
    }

    .btn-contribute {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
