.deceased-page {
    padding: 40px 0;
    min-height: 60vh;
}

.deceased-page.with-sidebar {
    margin-left: 280px;
    width: calc(100% - 280px);
}

.deceased-page.with-sidebar .container-fluid {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

.page-title {
    font-family: "Bebas Neue", cursive;
    font-size: 48px;
    color: #224a98;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.deceased-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.deceased-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.deceased-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.deceased-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deceased-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deceased-image img.deceased-logo-fallback {
    object-fit: contain;
    padding: 30px;
    opacity: 0.8;
    filter: grayscale(20%);
}

.deceased-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deceased-name {
    font-family: "Bebas Neue", cursive;
    font-size: 28px;
    color: #224a98;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deceased-dates {
    margin-bottom: 15px;
}

.deceased-dates p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.deceased-dates i {
    color: #224a98;
    width: 20px;
}

.deceased-birthplace {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.deceased-birthplace i {
    color: #224a98;
    width: 20px;
}

.deceased-details {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.deceased-details p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .deceased-page.with-sidebar {
        margin-left: 0;
        width: 100%;
    }
    
    .deceased-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .deceased-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 36px;
    }
}

