/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f3f4f7, #eaeaf0);
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.header-content h1 {
    font-size: 3.5em;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 700;
}

.header-content p {
    font-size: 1.2em;
    margin-top: 10px;
    opacity: 0.9;
}

.filters {
    text-align: center;
    margin: 30px 0;
}

.filters select {
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
}

.filters select:hover {
    transform: scale(1.05);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Card Design */
.article-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateY(0);
    position: relative;
}

.article-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.card-img {
    height: 220px;
    overflow: hidden;
}

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

.article-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h2 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #c00;
}

.card-content p {
    font-size: 1em;
    color: #777;
}

.article-card button {
    background-color: #6a11cb;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-card button:hover {
    background-color: #2575fc;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}