@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

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

/* Header Styles */
header {
    background-color: #1F1247;
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Main Content */
main {
    padding: 40px 20px;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #1F1247;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #1F1247;
    box-shadow: 0 0 0 3px rgba(201, 233, 117, 0.3);
}

/* Paper Cards */
.papers-list {
    display: grid;
    gap: 30px;
}

.paper-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #1F1247;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(31, 18, 71, 0.2);
    border-color: #C9E975;
}

.paper-title a {
    color: #1F1247;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.paper-title a:hover {
    color: #1F1247;
    text-decoration: underline;
    text-decoration-color: #C9E975;
    text-decoration-thickness: 3px;
}

.paper-authors {
    color: #666;
    font-style: italic;
    margin: 10px 0;
    font-size: 0.95rem;
}

.paper-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.paper-abstract {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #C9E975;
    color: #1F1247;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    /* inherit Montserrat from body */
}

/* Footer */
footer {
    background-color: #1F1247;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .paper-card {
        padding: 20px;
    }

    .paper-title a {
        font-size: 1.3rem;
    }
}