/* Shared Styles for News and Publications Pages */

/* Hero Section */
.publications-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #2d2d30 0%, #1a1a1d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    overflow: hidden;
}

.publications-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/CSE-Building-cropped-2.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(45, 45, 48, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    opacity: 0.9;
}

/* Main Container */
.publications-container {
    padding: 60px 20px;
    max-width: 1200px;
}

/* Filter Section */
.filter-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2d2d30;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-buttons:last-child {
    margin-bottom: 0;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #555;
}

.filter-btn:hover {
    border-color: #8B4513;
    color: #8B4513;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border-color: #8B4513;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* Year Section */
.year-section {
    margin-bottom: 60px;
}

.year-heading {
    font-size: 36px;
    font-weight: 700;
    color: #8B4513;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #8B4513;
    position: relative;
}

.year-heading::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #A0522D, transparent);
}

/* Publication Card */
.publication-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.publication-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-left-color: #8B4513;
}

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

.pub-type {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.pub-type.conference {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.pub-type.journal {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.pub-type.preprint {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.pub-type.announcement {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
}

.pub-type.grant {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: white;
}

.pub-type.award {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.pub-venue {
    color: #666;
    font-style: italic;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.pub-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d2d30;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
}

.pub-authors {
    color: #555;
    font-size: 15px;
    margin-bottom: 12px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
}

.pub-abstract {
    color: #777;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
    text-align: justify;
}

.pub-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f1f1;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.pub-link:hover {
    background: #8B4513;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.pub-link .glyphicon {
    font-size: 12px;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #2d2d30, #1a1a1d);
    padding: 50px 30px;
    border-radius: 15px;
    margin-top: 60px;
    margin-bottom: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #8B4513;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #8B4513;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 16px;
    color: #f1f1f1;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .publications-hero {
        height: 300px;
    }

    .publications-container {
        padding: 40px 15px;
    }

    .filter-section {
        padding: 20px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .year-heading {
        font-size: 28px;
    }

    .pub-title {
        font-size: 18px;
    }

    .pub-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .publication-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .pub-links {
        flex-direction: column;
    }

    .pub-link {
        width: 100%;
        justify-content: center;
    }
}