/* Base card styles - same for all screen sizes */
.card {
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Default shadow on mobile */
}

/* Hover effects for devices that support hover */
@media (hover: hover) {
    .card {
        box-shadow: none; /* Remove shadow by default on desktop */
    }

    .card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
}

/* Focus state */
.card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Button styles remain unchanged */
.align-items-end > a {
    transition: background-color 0.2s ease;
}

.align-items-end > a:hover {
    opacity: 0.9;
}

#abstractModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 2rem 1rem;
}

#abstractModal .modal-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    width: 100%;  /* Add this line */
    display: block;  /* Add this line */
}

#abstractModal .modal-authors {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

#abstractModal .modal-body {
    padding: 1rem;
}

#abstractModal .modal-abstract {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

#abstractModal .modal-dialog {
    max-width: 90%;
    margin: 2rem auto;
}

@media (min-width: 768px) {
    #abstractModal .modal-dialog {
        max-width: 1200px;
    }
}

@media (min-width: 1200px) {
    #abstractModal .modal-dialog {
        max-width: 1400px;
    }
}