/* library_app/static/library_app/css/style.css */

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Card customization */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Improve jumbotron appearance */
.jumbotron {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #0d6efd;
}

/* Footer links */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

/* Document list styling */
.document-card {
    border-left: 3px solid #0d6efd;
}

/* Event list styling */
.event-card {
    border-left: 3px solid #198754;
}

/* Course list styling */
.course-card {
    border-left: 3px solid #0dcaf0;
}

/* QR code display */
.qr-code-display {
    background-color: white;
    padding: 20px;
    display: inline-block;
    border: 1px solid #dee2e6;
}

/* Pagination styling */
.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Search form styling */
.search-form {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f1f3f5;
    border-radius: 0.25rem;
}

/* Category pills */
.category-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e9ecef;
    border-radius: 50rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

.dedication-image-container {
  height: 100%; /* Fill the entire height of the column */
  overflow: hidden;
}

.dedication-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This maintains aspect ratio while filling the container */
  object-position: center; /* Centers the image */
}

@media (max-width: 767.98px) {
  .dedication-image-container {
    height: 300px; /* Fixed height on mobile */
  }
}