* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

nav ul li a:hover {
    opacity: 0.8;
}


/* Hero Section */

.hero{
    margin-top: 80px;
    background-image: url("../images/publication_banner.png");
    background-size: cover;
    background-position: center;
    min-height: 400px;
    height: clamp(400px, 60vh, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    padding: 2rem;
}

.hero-content {
    background: rgba(255, 255, 255, 0.5); /* semi‑transparent box */
    padding: 25px 40px;
    border-radius: 10px;
    max-width: 700px;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.95;
}


/* Filter Section */
.filter-section {
    padding: 40px 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.filter-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box svg {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    stroke-width: 2;
}

/* publications Section */
.publications-section {
    padding: 80px 0;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(1200px, 1fr));
    gap: 40px;
}

/* publication Card */
.publication-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.publication-image {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    background: #f5f7fa;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.publication-card:hover .publication-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image svg {
    width: 100%;
    height: 100%;
}

.publication-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.publication-status.ongoing {
    background: #10b981;
    color: white;
}

.publication-status.completed {
    background: #3b82f6;
    color: white;
}

.publication-status.planning {
    background: #f59e0b;
    color: white;
}

/* publication Content */
.publication-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-badge {
    padding: 5px 12px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.date {
    color: #999;
    font-size: 0.9rem;
}

.publication-title {
    font-size: 1.5rem;
    color: #f59e0b;
    margin-bottom: 15px;
    line-height: 1.3;
}

.publication-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.publication-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.tag {
    padding: 4px 12px;
    background: #f3f4f6;
    color: #666;
    border-radius: 12px;
    font-size: 0.85rem;
}

.publication-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.publication-team {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-label {
    font-size: 0.8rem;
    color: #999;
}

.team-name {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* No publications */
.no-publications {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-info {
    padding: 10px 20px;
    color: #666;
    font-weight: 500;
}
/* Pagination */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-link:hover {
    background: #0e7490;
    color: white;
    border-color: #0e7490;
}

.page-link.active {
    background: #0e7490;
    color: white;
    border-color: #0e7490;
    cursor: default;
}

.page-link.disabled {
    background: #e5e7eb;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: default;
}

/* Footer */
footer {
    background:linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fdc50e;
    /* color: black; */
}

.footer-section p,
.footer-section ul {
    color: white;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: gainsboro;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}