.obituary-hero {
    position: relative;
    background-image: url('../img/about_hero.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: 10px auto;
    max-width: calc(100% - 20px);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
    color: #444;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.obituary-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.obituary-hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1965c0;
    margin: 0 0 20px 0;
}

.obituary-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    color: #1965c0;
    margin: 15px 0 5px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb-custom {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
}

.breadcrumb-custom a {
    color: #444;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-custom .active {
    color: #1965c0;
    font-weight: 600;
}

.breadcrumb-custom .separator {
    color: #444;
    opacity: 0.5;
    margin: 0 5px;
}

.obituary-section {
    padding: 60px 0;
    width: 100%;
    overflow-x: hidden;
}

.obituary-category-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
}

.obituary-category-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 15px auto;
}

.obituary-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    width: 100%;
    border: none;
    position: relative;
    padding: 0;
    align-items: center;
}

.obituary-img-wrapper {
    width: 220px;
    height: 220px;
    min-width: 220px;
    position: relative;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 15px;
}

/* Golden Ring - Compact Size */
.obituary-img-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.3), 0 0 12px rgba(212, 175, 55, 0.2);
}

.obituary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    z-index: 1;
    border: 2px solid #fff;
}

.floral-ornament {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 220px;
    height: auto;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.1));
    transform: scaleX(-1) rotate(5deg);
}

/* Hover effect removed as per request */
.obituary-card:hover .floral-ornament {
    transform: scaleX(-1) rotate(5deg);
}

.obituary-info {
    padding: 0;
    width: 100%;
    text-align: center;
    display: flex;
    margin-top: 60px;
    flex-direction: column;
    align-items: center;
}

.obituary-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #1965c0;
    margin-bottom: 2px;
    padding-bottom: 25px;
    text-align: center;
    display: block;
}

.obituary-details {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.obituary-details li {
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    color: #444;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(25, 101, 192, 0.05);
    padding-bottom: 10px;
    width: 100%;
    max-width: 270px;
}

.obituary-details li span.label {
    font-weight: 600;
    color: #555;
    text-align: left;
    flex: 0 0 145px;
    display: flex;
    justify-content: space-between;
}

.obituary-details li span.label::after {
    content: ':';
    color: #555;
    font-weight: 600;
}

.obituary-details li span.value {
    color: #333;
    font-weight: 600;
    text-align: left;
    flex: 1;
    padding-left: 10px;
}

.obituary-details li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.death-date {
    color: #d32f2f !important;
    font-weight: 700 !important;
}

.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.show {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

@media (max-width: 991px) {
    .obituary-hero {
        min-height: 400px;
        padding-top: 100px;
    }

    .obituary-hero-title {
        font-size: 42px;
        line-height: 1.1;
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .obituary-section {
        padding: 30px 0;
    }

    .obituary-hero-title {
        font-size: 32px;
    }

    .obituary-card {
        flex-direction: column;
        max-width: 400px;
        margin-inline: auto;
        padding: 20px 15px;
        text-align: center;
        margin-bottom: 30px;
    }

    .obituary-img-wrapper {
        margin-right: 0;
        margin-bottom: 5px;
        width: 180px;
        height: 180px;
        min-width: 180px;
    }

    .floral-ornament {
        width: 150px;
        bottom: -25px;
        left: -25px;
        transform: scaleX(-1) rotate(5deg);
    }

    .obituary-card:hover .floral-ornament {
        transform: scaleX(-1) rotate(5deg);
    }

    .obituary-info {
        width: 100%;
        padding: 0;
        text-align: center;
        margin-top: 35px;
    }

    .obituary-name {
        text-align: center;
        font-size: 1.5rem;
        padding-bottom: 15px;
    }

    .obituary-details li {
        font-size: 14px;
        margin-bottom: 6px;
        padding-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .obituary-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .obituary-hero {
        min-height: 320px;
        padding-top: 40px;
        padding-bottom: 10px;
    }

    .obituary-hero-title {
        font-size: 32px;
    }

    .obituary-hero-subtitle {
        font-size: 1rem !important;
    }

    .breadcrumb-custom {
        font-size: 13px;
        margin-bottom: 15px;
    }
    .obituary-card {
        margin-bottom: 20px;
        padding: 15px 10px;
    }

    .obituary-img-wrapper {
        width: 160px;
        height: 160px;
        min-width: 160px;
        margin-bottom: 0;
    }

    .obituary-info {
        margin-top: 25px;
    }
    
    .obituary-name {
        padding-bottom: 10px;
    }

    .floral-ornament {
        width: 130px;
        bottom: -20px;
        left: -20px;
    }
}