        /* HERO CAROUSEL */
        .hero-banner-carousel {
            position: relative;
            width: 100vw;
            max-width: 100vw;
            height:450px;
            overflow: hidden;
            background: #0f1923;
            display: flex;
            align-items: center;
            justify-content: center;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }

        html,
        body {
            overflow-x: hidden;
        }

        .carousel-container {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: cover;
            background-position: center;
            overflow: hidden;
        }

        .carousel-slide.active {
            opacity: 1;
        }

        /* CAROUSEL BACKGROUND IMAGE */
        .carousel-bg-image {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            will-change: transform;
        }

        .carousel-slide.active .carousel-bg-image {
            animation: backgroundZoom 8s ease-out forwards;
        }

        @keyframes backgroundZoom {
            from {
                transform: scale(1);
            }
            to {
                transform: scale(1.05);
            }
        }

        /* Individual slide background images */
        .slide-image-1 {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%), 
                        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
        }

        .slide-image-2 {
            background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                        linear-gradient(to bottom right, rgba(26, 46, 74, 0.1), transparent);
        }

        .slide-image-3 {
            background: linear-gradient(45deg, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                        linear-gradient(-45deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
        }

        /* IMAGE CONTAINER */
        .carousel-image-container {
            position: absolute;
            right: 0;
            top: 0;
            width: 45%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            z-index: 0;
        }

        .carousel-image-wrapper {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .carousel-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }

        .carousel-image-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to left, rgba(15, 25, 35, 0.3), rgba(15, 25, 35, 0.7));
            z-index: 1;
        }

        .carousel-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1;
        }

        /* HERO CONTENT */
        .hero-content-wrap {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            max-width: 900px;
            padding: 0 40px;
            animation: fadeInUp 0.8s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 400;
            font-style: italic;
            font-family: 'Georgia', 'Garamond', serif;
            color: white;
            margin: 0 0 12px 0;
            letter-spacing: 2px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        .hero-subtitle {
            font-size: 1.1rem;
            font-weight: 700;
            color: #d4af37;
            letter-spacing: 3px;
            margin: 0 0 20px 0;
            text-transform: uppercase;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .hero-divider {
            width: 120px;
            height: 2px;
            background: linear-gradient(to right, transparent, #d4af37, transparent);
            margin: 20px auto;
        }

        .hero-description {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.85);
            font-style: italic;
            margin: 0;
            letter-spacing: 0.5px;
        }

        /* DECORATIONS */
        .hero-decoration {
            position: absolute;
            font-size: 3rem;
            opacity: 0.15;
            z-index: 1;
            animation: float 4s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .hero-decoration-left {
            left: 40px;
            top: 50%;
            transform: translateY(-50%);
        }

        .hero-decoration-right {
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
        }

        /* CAROUSEL DOTS */
        .carousel-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }

        .dot {
            width: 12px;
            height: 12px;
            padding: 0;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.4);
            border: 2px solid #d4af37;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: #d4af37;
            transform: scale(1.2);
        }

        .dot:hover {
            background: rgba(212, 175, 55, 0.7);
        }

        /* CAROUSEL NAVIGATION */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(212, 175, 55, 0.3);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-nav:hover {
            background: #d4af37;
            color: #0f1923;
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-prev {
            left: 30px;
        }

        .carousel-next {
            right: 30px;
        }

        /* TOP GOLD LINE */
        .hero-banner-carousel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #d4af37 0%, #f4e4a6 50%, #d4af37 100%);
            z-index: 20;
        }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .carousel-image-container {
                width: 40%;
            }
        }

        @media (max-width: 768px) {
            .hero-banner-carousel {
                width: 100%;
                max-width: 100%;
                height: 280px;
                left: auto;
                right: auto;
                margin-left: 0;
                margin-right: 0;
            }

            .carousel-image-container {
                width: 35%;
            }

            .hero-title {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 0.95rem;
            }

            .hero-content-wrap {
                padding: 0 30px;
            }

            .carousel-nav {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .carousel-prev {
                left: 15px;
            }

            .carousel-next {
                right: 15px;
            }

            .hero-decoration {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .hero-banner-carousel {
                width: 100%;
                max-width: 100%;
                height: 240px;
                left: auto;
                right: auto;
                margin-left: 0;
                margin-right: 0;
            }

            .carousel-image-container {
                display: none;
            }

            .hero-title {
                font-size: 2rem;
                letter-spacing: 1px;
            }

            .hero-subtitle {
                font-size: 0.85rem;
                letter-spacing: 2px;
            }

            .hero-description {
                font-size: 0.9rem;
            }

            .hero-content-wrap {
                padding: 0 20px;
            }

            .carousel-nav {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }

            .carousel-dots {
                bottom: 15px;
                gap: 8px;
            }

            .dot {
                width: 10px;
                height: 10px;
            }
        }
	  
	    /* OBITUARIES SECTION */
                .obituaries-section {
                    padding: 30px 0;
                }

                .obituaries-list {
                    display: flex;
                    flex-direction: column;
                    gap: 20px;
                    margin-bottom: 30px;
                }

                /* OBITUARY CARD - HORIZONTAL LAYOUT */
                .obituary-card-horizontal {
                    display: block;
                    transition: all 0.3s ease;
                }

                .card-link {
                    text-decoration: none;
                    display: block;
                }

                .card-container {
                    display: flex;
                    align-items: stretch;
                    background: white;
                    border: 2px solid #e5e7eb;
                    border-radius: 12px;
                    overflow: hidden;
                    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
                    transition: all 0.3s ease;
                    position: relative;
                }

                .obituary-card-horizontal:hover .card-container {
                    border-color: var(--color-gold);
                    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
                    transform: translateY(-6px);
                }

                /* PHOTO SECTION - LEFT */
                .card-photo-section {
                    flex: 0 0 140px;
                    overflow: hidden;
                    padding: 12px;
                    background: #f8f7f5;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .photo-wrapper {
                    width: 100%;
                    height: 100%;
                    aspect-ratio: 1;
                    overflow: hidden;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 10px;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                }

                .card-photo {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 8px;
                }

                .card-photo-placeholder {
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 2.5rem;
                    border-radius: 8px;
                }

                /* CONTENT SECTION - RIGHT */
                .card-content-section {
                    flex: 1;
                    padding: 20px 24px;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    background: linear-gradient(135deg, #fafaf9 0%, #ffffff 100%);
                }

                .card-name {
                    margin: 0 0 8px 0;
                    font-size: 1.2rem;
                    font-weight: 700;
                    color: #2563eb;
                    line-height: 1.3;
                    font-family: var(--font-heading, 'Georgia', serif);
                    letter-spacing: 0.3px;
                }

                .card-years {
                    margin: 0 0 12px 0;
                    font-size: 1rem;
                    color: #f59e0b;
                    font-weight: 700;
                    letter-spacing: 0.5px;
                }

                .card-description {
                    margin: 0 0 12px 0;
                    font-size: 0.9rem;
                    color: #555;
                    line-height: 1.6;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                }

                .card-meta {
                    font-size: 0.85rem;
                    color: #888;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }

                .card-date {
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                }

                /* ARROW */
                .card-arrow {
                    position: absolute;
                    right: 24px;
                    top: 50%;
                    transform: translateY(-50%);
                    color: var(--color-gold);
                    font-size: 1.6rem;
                    font-weight: bold;
                    opacity: 0;
                    transition: all 0.3s ease;
                    pointer-events: none;
                }

                .obituary-card-horizontal:hover .card-arrow {
                    opacity: 1;
                    transform: translateY(-50%) translateX(6px);
                }

                /* NO OBITUARIES MESSAGE */
                .no-obituaries-message {
                    text-align: center;
                    padding: 50px 30px;
                    background: #f8f7f5;
                    border: 2px dashed #ddd;
                    border-radius: 8px;
                    color: #666;
                }

                .no-obituaries-message p {
                    margin: 0;
                    font-size: 1rem;
                }

                .no-obituaries-message a {
                    color: var(--color-gold);
                    font-weight: 600;
                    text-decoration: none;
                }

                .no-obituaries-message a:hover {
                    text-decoration: underline;
                }

                /* FOOTER BUTTON */
                .section-footer-btn {
                    text-align: center;
                }

                .btn-view-all {
                    display: inline-block;
                    padding: 14px 36px;
                    background: var(--color-dark);
                    color: var(--color-gold);
                    text-decoration: none;
                    border-radius: 6px;
                    font-weight: 700;
                    font-size: 0.95rem;
                    border: 2px solid var(--color-gold);
                    letter-spacing: 0.5px;
                    transition: all 0.3s ease;
                    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
                }

                .btn-view-all:hover {
                    background: var(--color-gold);
                    color: var(--color-dark);
                    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
                    transform: translateY(-2px);
                }

                /* TRIBUTE FLOWER SLIDER */
                .tribute-featured {
                    display: flex;
                    flex-direction: column;
                    gap: 24px;
                    align-items: stretch;
                }

                .tribute-image-wrap {
                    position: relative;
                    min-height: 330px;
                    border-radius: 12px;
                    overflow: hidden;
                    background: linear-gradient(135deg, #ffffff, #ffffff);
                    
                }

                .tribute-slider {
                    position: relative;
                    width: 100%;
                    height: 100%;
                }

                .tribute-slide {
                    position: absolute;
                    inset: 0;
                    opacity: 0;
                    transition: opacity 0.9s ease;
                }

                .tribute-slide.active {
                    opacity: 1;
                    z-index: 1;
                }

                .tribute-slide img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                    transform: scale(1.02);
                }

                .tribute-slider-dots {
                    position: absolute;
                    left: 50%;
                    bottom: 12px;
                    transform: translateX(-50%);
                    display: flex;
                    gap: 8px;
                    z-index: 2;
                }

                .tribute-slider-dot {
                    width: 9px;
                    height: 9px;
                    border-radius: 999px;
                    border: 1px solid rgba(255, 255, 255, 0.8);
                    background: rgba(255, 255, 255, 0.35);
                }

                .tribute-slider-dot.active {
                    background: #fff;
                }

                /* TRIBUTES & CONDOLENCES STYLES */

                .tribute-section {
                    background: white;
                    border-radius: 10px;
                    padding: 24px;
                }

                .tribute-section h2 {
                    font-size: 1.5rem;
                    font-weight: bold;
                    color: #333;
                    margin-bottom: 10px;
                    word-wrap: break-word;
                }

                .tribute-intro {
                    font-size: 1rem;
                    color: #666;
                    margin-bottom: 20px;
                    line-height: 1.4;
                }

                .tribute-featured {
                    width: 100%;
                }

                .tribute-message-card {
                    display: flex;
                    gap: 15px;
                    align-items: flex-start;
                    background: #f9f9f9;
                    padding: 20px;
                    border-radius: 10px;
                    border: 1px solid #e0e0e0;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
                    transition: box-shadow 0.3s ease;
                }

                .tribute-message-card:hover {
                    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
                }

                .tribute-photo {
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    object-fit: cover;
                    flex-shrink: 0;
                    border: 2px solid #d4af37;
                }

                .tribute-photo-placeholder {
                    width: 60px;
                    height: 60px;
                    border-radius: 50%;
                    background: linear-gradient(135deg, #d4af37, #c29e2e);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 24px;
                    flex-shrink: 0;
                    border: 2px solid #d4af37;
                }

                .tribute-text-wrap {
                    flex: 1;
                    min-width: 0;
                }

                .tribute-name {
                    font-size: 1.1rem;
                    font-weight: bold;
                    color: #333;
                    margin-bottom: 8px;
                    word-wrap: break-word;
                }

                .tribute-name span {
                    font-weight: normal;
                    color: #d4af37;
                    font-size: 0.95rem;
                    display: block;
                    margin-top: 4px;
                }

                .tribute-message {
                    font-size: 0.9rem;
                    color: #666;
                    line-height: 1.6;
                    word-wrap: break-word;
                }

                .tribute-actions {
                    display: flex;
                    gap: 10px;
                    margin-top: 18px;
                    flex-wrap: wrap;
                }

                .btn-condolence, .btn-candle {
                    padding: 11px 20px;
                    border: none;
                    border-radius: 6px;
                    cursor: pointer;
                    font-size: 0.95rem;
                    font-weight: 600;
                    transition: all 0.3s ease;
                    text-align: center;
                    white-space: nowrap;
                    min-height: 44px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex: 1;
                    min-width: 140px;
                }

                .btn-condolence {
                    background: #d4af37;
                    color: white;
                    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
                }

                .btn-condolence:hover {
                    background: #b8952a;
                    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
                    transform: translateY(-2px);
                }

                .btn-condolence:active {
                    transform: translateY(0);
                }

                .btn-candle {
                    background: #fff;
                    color: #d4af37;
                    border: 2px solid #d4af37;
                }

                .btn-candle:hover {
                    background: #d4af37;
                    color: white;
                    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
                }

                .btn-candle:active {
                    transform: scale(0.98);
                }

                /* RESPONSIVE - TABLET & SMALL DEVICES */
                @media (max-width: 768px) {
                    .tribute-section {
                        padding: 18px;
                    }

                    .card-photo-section {
                        flex: 0 0 120px;
                    }

                    .card-content-section {
                        padding: 14px 16px;
                    }

                    .card-name {
                        font-size: 1rem;
                    }

                    .card-description {
                        font-size: 0.8rem;
                    }

                    .card-arrow {
                        right: 14px;
                    }

                    .tribute-message-card {
                        flex-direction: column;
                        text-align: center;
                        padding: 18px;
                        gap: 12px;
                    }

                    .tribute-text-wrap {
                        width: 100%;
                    }

                    .tribute-name {
                        font-size: 1rem;
                    }

                    .tribute-message {
                        font-size: 0.85rem;
                    }

                    .tribute-actions {
                        flex-direction: row;
                        gap: 8px;
                        justify-content: center;
                    }

                    .btn-condolence, .btn-candle {
                        flex: 1;
                        min-width: 120px;
                        padding: 10px 12px;
                        font-size: 0.85rem;
                    }

                    .tribute-section h2 {
                        font-size: 1.25rem;
                        margin-bottom: 8px;
                    }

                    .tribute-intro {
                        font-size: 0.9rem;
                        margin-bottom: 16px;
                    }

                    .tribute-photo {
                        width: 56px;
                        height: 56px;
                    }

                    .tribute-photo-placeholder {
                        width: 56px;
                        height: 56px;
                        font-size: 22px;
                    }
                }

                /* RESPONSIVE - MOBILE PHONES */
                @media (max-width: 640px) {
                    .tribute-section {
                        padding: 16px;
                        margin-top: 16px;
                    }

                    .tribute-section h2 {
                        font-size: 1.15rem;
                        margin-bottom: 10px;
                        line-height: 1.3;
                    }

                    .tribute-intro {
                        font-size: 0.85rem;
                        margin-bottom: 14px;
                    }

                    .tribute-message-card {
                        padding: 16px;
                        gap: 12px;
                    }

                    .tribute-photo {
                        width: 52px;
                        height: 52px;
                    }

                    .tribute-photo-placeholder {
                        width: 52px;
                        height: 52px;
                        font-size: 20px;
                    }

                    .tribute-name {
                        font-size: 0.95rem;
                    }

                    .tribute-name span {
                        font-size: 0.85rem;
                    }

                    .tribute-message {
                        font-size: 0.8rem;
                        line-height: 1.5;
                    }

                    .tribute-actions {
                        flex-direction: column;
                        gap: 8px;
                    }

                    .btn-condolence, .btn-candle {
                        width: 100%;
                        min-width: unset;
                        padding: 12px 16px;
                        font-size: 0.9rem;
                        min-height: 48px;
                    }
                }

                @media (max-width: 480px) {
                    .card-photo-section {
                        flex: 0 0 100px;
                    }

                    .card-content-section {
                        padding: 12px 14px;
                    }

                    .card-name {
                        font-size: 0.95rem;
                    }

                    .card-years {
                        font-size: 0.85rem;
                    }

                    .card-description {
                        font-size: 0.75rem;
                        -webkit-line-clamp: 2;
                    }

                    .card-arrow {
                        display: none;
                    }

                    .tribute-section {
                        padding: 14px;
                        margin-top: 14px;
                    }

                    .tribute-section h2 {
                        font-size: 1.05rem;
                    }

                    .tribute-intro {
                        font-size: 0.8rem;
                        margin-bottom: 12px;
                    }

                    .tribute-message-card {
                        padding: 14px;
                    }

                    .tribute-photo {
                        width: 48px;
                        height: 48px;
                    }

                    .tribute-photo-placeholder {
                        width: 48px;
                        height: 48px;
                        font-size: 18px;
                    }

                    .tribute-name {
                        font-size: 0.9rem;
                    }

                    .tribute-message {
                        font-size: 0.75rem;
                    }

                    .btn-condolence, .btn-candle {
                        padding: 11px 14px;
                        font-size: 0.85rem;
                        min-height: 44px;
                    }
                }

                /* RESPONSIVE - SMALL PHONES */
                @media (max-width: 420px) {
                    .tribute-section {
                        padding: 12px;
                    }

                    .tribute-section h2 {
                        font-size: 0.98rem;
                        margin-bottom: 8px;
                    }

                    .tribute-intro {
                        font-size: 0.75rem;
                        margin-bottom: 10px;
                    }

                    .tribute-message-card {
                        padding: 12px;
                        gap: 10px;
                    }

                    .tribute-photo {
                        width: 45px;
                        height: 45px;
                    }

                    .tribute-photo-placeholder {
                        width: 45px;
                        height: 45px;
                        font-size: 16px;
                    }

                    .tribute-name {
                        font-size: 0.85rem;
                    }

                    .tribute-name span {
                        font-size: 0.8rem;
                    }

                    .tribute-message {
                        font-size: 0.7rem;
                        line-height: 1.4;
                    }

                    .tribute-actions {
                        gap: 6px;
                    }

                    .btn-condolence, .btn-candle {
                        padding: 10px 12px;
                        font-size: 0.8rem;
                        min-height: 42px;
                    }
                }

                /* EXTRA SMALL DEVICES */
                @media (max-width: 360px) {
                    .tribute-section {
                        padding: 10px;
                        margin-top: 10px;
                    }

                    .tribute-section h2 {
                        font-size: 0.92rem;
                    }

                    .tribute-intro {
                        font-size: 0.72rem;
                    }

                    .tribute-message-card {
                        padding: 10px;
                    }

                    .tribute-photo {
                        width: 42px;
                        height: 42px;
                    }

                    .tribute-photo-placeholder {
                        width: 42px;
                        height: 42px;
                        font-size: 14px;
                    }

                    .tribute-name {
                        font-size: 0.8rem;
                    }

                    .tribute-message {
                        font-size: 0.65rem;
                    }

                    .btn-condolence, .btn-candle {
                        padding: 9px 10px;
                        font-size: 0.75rem;
                        min-height: 40px;
                    }
                }

                /* PAGE LAYOUT */
                .content-layout {
                    width: min(1200px, 100% - 32px);
                    margin: 32px auto 40px;
                    display: grid;
                    grid-template-columns: minmax(0, 1fr) 320px;
                    gap: 26px;
                    align-items: start;
                }

                .site-main {
                    min-width: 0;
                }

                .sidebar {
                    min-width: 0;
                }

                @media (max-width: 1024px) {
                    .content-layout {
                        width: min(100%, 100% - 24px);
                        grid-template-columns: minmax(0, 1fr) 290px;
                        gap: 20px;
                    }
                }

                @media (max-width: 900px) {
                    .content-layout {
                        width: min(100%, 100% - 20px);
                        margin-top: 24px;
                        grid-template-columns: 1fr;
                        gap: 18px;
                    }

                    .content-layout > .site-main {
                        order: 1;
                    }

                    .content-layout > .sidebar {
                        order: 2;
                    }
                }

                @media (max-width: 480px) {
                    .content-layout {
                        width: min(100%, 100% - 16px);
                        margin-top: 20px;
                        margin-bottom: 30px;
                    }
                }
      
      @media (max-width: 320px) {
            .content-layout {
                        width: min(100%, 100% - 16px);
                        margin-top: 20px;
                        margin-bottom: 30px;
                    }

            .tribute-section {
                padding: 8px;
            }

            .tribute-section h2 {
                font-size: 0.88rem;
                margin-bottom: 8px;
            }

            .tribute-intro {
                font-size: 0.68rem;
                margin-bottom: 10px;
            }

            .tribute-message-card {
                padding: 10px;
                gap: 8px;
                flex-direction: column;
                align-items: stretch;
                justify-content: center;
                min-width: 0;
            }

            .tribute-photo,
            .tribute-photo-placeholder {
                width: 40px;
                height: 40px;
            }

            .tribute-photo-placeholder {
                font-size: 13px;
            }

            .tribute-name {
                font-size: 0.78rem;
            }

            .tribute-name span {
                font-size: 0.72rem;
            }

            .tribute-message {
                font-size: 0.62rem;
                line-height: 1.35;
            }

            .tribute-actions {
                gap: 6px;
            }

            .btn-condolence,
            .btn-candle {
                width: 100%;
                min-width: unset;
                padding: 9px 10px;
                font-size: 0.75rem;
                white-space: normal;
            }

            .btn-condolence,
            .btn-candle,
            .btn {
                word-break: break-word;
            }

            #condolenceModal,
            #candleModal {
                padding: 6px;
            }

            #condolenceModal > div,
            #candleModal > div {
                padding: 12px;
            }

            #condolenceModal > div h3,
            #candleModal > div h3 {
                font-size: 0.8rem;
            }

            .form-label {
                font-size: 0.72rem;
            }

            .form-control {
                padding: 8px 9px;
                font-size: 15px;
            }

            textarea.form-control {
                min-height: 60px;
            }

            .btn {
                padding: 9px 10px;
                font-size: 0.72rem;
            }
      }

                /* MOBILE / TABLET POLISH */
                .widget-search {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    margin-bottom: 14px;
                }

                .widget-search input[type="search"] {
                    flex: 1;
                    min-width: 0;
                    height: 40px;
                    border: 1px solid #d1d5db;
                    border-radius: 6px;
                    padding: 0 12px;
                    font-size: 0.9rem;
                    box-sizing: border-box;
                }

                .widget-search button {
                    height: 40px;
                    padding: 0 14px;
                    border: 1px solid #d1d5db;
                    border-radius: 6px;
                    background: #111827;
                    color: #fff;
                    font-weight: 600;
                    cursor: pointer;
                }

                .widget-submit,
                .card,
                .tribute-section {
                    border-radius: 10px;
                }

                @media (max-width: 900px) {
                    .hero-banner-carousel {
                        height: 300px;
                    }

                    .hero-content-wrap {
                        max-width: 620px;
                    }

                    .section-heading {
                        font-size: 1.35rem;
                    }

                    .obituaries-list {
                        gap: 14px;
                    }

                    .card-container {
                        border-radius: 10px;
                    }

                    .card-photo-section {
                        flex: 0 0 122px;
                        padding: 10px;
                    }

                    .card-name {
                        font-size: 1rem;
                    }

                    .card-years {
                        font-size: 0.9rem;
                        margin-bottom: 8px;
                    }

                    .card-description {
                        -webkit-line-clamp: 3;
                    }

                    .section-footer-btn .btn-view-all {
                        width: 100%;
                        max-width: 320px;
                    }

                    .sidebar {
                        margin-top: 2px;
                    }
                }

                @media (max-width: 640px) {
                    .hero-banner-carousel {
                        height: 260px;
                    }

                    .hero-content-wrap {
                        padding: 0 18px;
                    }

                    .hero-title {
                        font-size: 1.85rem;
                        line-height: 1.2;
                        margin-bottom: 8px;
                    }

                    .hero-subtitle {
                        font-size: 0.72rem;
                        letter-spacing: 1.4px;
                        margin-bottom: 12px;
                    }

                    .hero-divider {
                        width: 88px;
                        margin: 12px auto;
                    }

                    .hero-description {
                        font-size: 0.82rem;
                    }

                    .carousel-nav {
                        width: 34px;
                        height: 34px;
                        font-size: 0.95rem;
                    }

                    .carousel-prev {
                        left: 10px;
                    }

                    .carousel-next {
                        right: 10px;
                    }

                    .carousel-dots {
                        bottom: 10px;
                        gap: 7px;
                    }

                    .dot {
                        width: 9px;
                        height: 9px;
                    }

                    .obituary-card-horizontal .card-link {
                        display: block;
                    }

                    .card-container {
                        flex-direction: row;
                        align-items: stretch;
                    }

                    .card-photo-section {
                        flex: 0 0 92px;
                        padding: 8px;
                    }

                    .card-content-section {
                        padding: 10px 12px;
                    }

                    .card-name {
                        font-size: 0.92rem;
                        margin-bottom: 6px;
                    }

                    .card-years {
                        font-size: 0.78rem;
                        margin-bottom: 7px;
                    }

                    .card-description {
                        font-size: 0.74rem;
                        line-height: 1.4;
                        margin-bottom: 8px;
                    }

                    .card-meta {
                        font-size: 0.73rem;
                    }

                    .btn-view-all {
                        width: 100%;
                        padding: 12px 16px;
                        font-size: 0.88rem;
                        text-align: center;
                    }

                    .tribute-section {
                        margin-top: 22px !important;
                    }

                    .tribute-actions {
                        flex-direction: column;
                        gap: 8px;
                    }

                    .tribute-actions .btn-condolence,
                    .tribute-actions .btn-candle {
                        width: 100%;
                        white-space: nowrap;
                        font-size: 0.78rem;
                        padding: 9px 8px;
                    }

                    .tribute-image-wrap {
                        min-height: 220px;
                    }
                }

                @media (max-width: 420px) {
                    .hero-banner-carousel {
                        height: 236px;
                    }

                    .hero-title {
                        font-size: 1.65rem;
                    }

                    .hero-subtitle {
                        font-size: 0.68rem;
                        letter-spacing: 1px;
                    }

                    .hero-description {
                        font-size: 0.76rem;
                    }

                    .card-container {
                        border-radius: 8px;
                    }

                    .card-photo-section {
                        flex: 0 0 84px;
                        padding: 7px;
                    }

                    .card-content-section {
                        padding: 9px 10px;
                    }

                    .card-name {
                        font-size: 0.86rem;
                    }

                    .card-years {
                        font-size: 0.72rem;
                    }

                    .card-description {
                        font-size: 0.69rem;
                        -webkit-line-clamp: 2;
                    }

                    .card-meta {
                        font-size: 0.68rem;
                    }

                    .widget-search input[type="search"] {
                        font-size: 0.82rem;
                    }

                    .widget-search button {
                        padding: 0 10px;
                        font-size: 0.78rem;
                    }

                    .tribute-actions {
                        flex-direction: column;
                    }

                    .tribute-image-wrap {
                        min-height: 200px;
                    }
                }

                /* MODAL STYLES */
                #condolenceModal, #candleModal {
                    display: none;
                    position: fixed;
                    inset: 0;
                    z-index: 9999;
                    align-items: center;
                    justify-content: center;
                    padding: 16px;
                    background: rgba(0, 0, 0, 0.6);
                    backdrop-filter: blur(3px);
                }

                #condolenceModal.show, #candleModal.show {
                    display: flex;
                }

                #condolenceModal > div, #candleModal > div {
                    background: white;
                    border-radius: 12px;
                    max-width: 500px;
                    width: 100%;
                    max-height: 90vh;
                    overflow-y: auto;
                    position: relative;
                    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
                    animation: slideUp 0.3s ease-out;
                }

                #candleModal > div {
                    background: linear-gradient(135deg, #1a2332, #243b55);
                    border: 1px solid var(--color-gold);
                }

                @keyframes slideUp {
                    from {
                        opacity: 0;
                        transform: translateY(30px);
                    }
                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }

                /* MODAL CLOSE BUTTON */
                #condolenceModal button[onclick*="closeModals"],
                #candleModal button[onclick*="closeModals"] {
                    position: absolute;
                    top: 16px;
                    right: 16px;
                    background: none;
                    border: none;
                    font-size: 1.5rem;
                    cursor: pointer;
                    color: var(--color-gray-500);
                    padding: 4px 8px;
                    line-height: 1;
                    transition: color 0.2s ease;
                    width: 40px;
                    height: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                #condolenceModal button[onclick*="closeModals"]:hover,
                #candleModal button[onclick*="closeModals"]:hover {
                    color: var(--color-dark);
                }

                #candleModal button[onclick*="closeModals"] {
                    color: rgba(255, 255, 255, 0.6);
                }

                #candleModal button[onclick*="closeModals"]:hover {
                    color: rgba(255, 255, 255, 0.9);
                }

                /* FORM STYLES */
                .form-group {
                    display: grid;
                    gap: 6px;
                    margin-bottom: 16px;
                }

                .form-label {
                    display: block;
                    font-size: 0.9rem;
                    font-weight: 600;
                    color: #333;
                }

                .form-label .required {
                    color: #e74c3c;
                    margin-left: 2px;
                }

                .form-control {
                    width: 100%;
                    padding: 12px 14px;
                    border: 1px solid #d1d5db;
                    border-radius: 6px;
                    font-size: 1rem;
                    line-height: 1.5;
                    color: #1f2937;
                    background: white;
                    font-family: inherit;
                    transition: all 0.2s ease;
                    box-sizing: border-box;
                    appearance: none;
                }

                .form-control:focus {
                    outline: none;
                    border-color: var(--color-gold);
                    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
                }

                .form-control:disabled {
                    background: #f3f4f6;
                    color: #9ca3af;
                    cursor: not-allowed;
                }

                textarea.form-control {
                    resize: vertical;
                    max-height: 300px;
                    min-height: 100px;
                }

                .btn {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    padding: 12px 24px;
                    border: none;
                    border-radius: 6px;
                    font-size: 1rem;
                    font-weight: 600;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    text-decoration: none;
                    min-height: 44px;
                    white-space: nowrap;
                }

                .btn-primary {
                    background: #d4af37;
                    color: white;
                    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
                }

                .btn-primary:hover {
                    background: #b8952a;
                    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
                    transform: translateY(-2px);
                }

                .btn-primary:active {
                    transform: translateY(0);
                }

                .btn-primary:disabled {
                    opacity: 0.6;
                    cursor: not-allowed;
                    transform: none;
                }

                /* MODAL CONTENT PADDING */
                #condolenceModal > div, #candleModal > div {
                    padding: 32px;
                }

                #condolenceModal > div h3, #candleModal > div h3 {
                    font-size: 1.3rem;
                    margin-bottom: 8px;
                    word-wrap: break-word;
                }

                #condolenceModal > div > p, #candleModal > div > p {
                    font-size: 0.85rem;
                    margin-bottom: 20px;
                    line-height: 1.4;
                }

                #candleModal > div {
                    text-align: center;
                }

                #candleModal > div h3 {
                    color: var(--color-gold-light);
                }

                #candleModal > div > p {
                    color: rgba(255, 255, 255, 0.7);
                }

                .candle-emoji {
                    font-size: 3.5rem;
                    margin-bottom: 15px;
                    display: block;
                }

                /* TABLET - MODAL & FORM RESPONSIVENESS */
                @media (max-width: 768px) {
                    #condolenceModal > div, #candleModal > div {
                        max-width: 90vw;
                        max-height: 85vh;
                        padding: 28px;
                    }

                    .form-control {
                        padding: 11px 12px;
                        font-size: 16px;
                    }

                    .form-label {
                        font-size: 0.85rem;
                    }

                    .btn {
                        min-height: 42px;
                        padding: 11px 20px;
                        font-size: 0.95rem;
                    }

                    #condolenceModal > div h3, #candleModal > div h3 {
                        font-size: 1.2rem;
                    }

                    #condolenceModal > div > p, #candleModal > div > p {
                        font-size: 0.8rem;
                    }

                    .candle-emoji {
                        font-size: 3rem;
                    }
                }

                /* MOBILE - MODAL & FORM RESPONSIVENESS */
                @media (max-width: 640px) {
                    #condolenceModal, #candleModal {
                        padding: 12px;
                    }

                    #condolenceModal > div, #candleModal > div {
                        max-height: 95vh;
                        padding: 20px;
                        border-radius: 10px;
                    }

                    #condolenceModal > div h3, #candleModal > div h3 {
                        font-size: 1.1rem;
                        margin-bottom: 6px;
                    }

                    #condolenceModal > div > p, #candleModal > div > p {
                        font-size: 0.75rem;
                        margin-bottom: 16px;
                    }

                    .form-group {
                        margin-bottom: 14px;
                    }

                    .form-label {
                        font-size: 0.8rem;
                        margin-bottom: 4px;
                    }

                    .form-control {
                        padding: 10px 11px;
                        font-size: 16px;
                        border-radius: 5px;
                    }

                    textarea.form-control {
                        min-height: 90px;
                    }

                    .btn {
                        width: 100%;
                        min-height: 44px;
                        padding: 12px 16px;
                        font-size: 0.9rem;
                    }

                    #condolenceModal button[onclick*="closeModals"],
                    #candleModal button[onclick*="closeModals"] {
                        top: 12px;
                        right: 12px;
                        width: 36px;
                        height: 36px;
                        font-size: 1.3rem;
                    }

                    .candle-emoji {
                        font-size: 2.8rem;
                        margin-bottom: 12px;
                    }
                }

                @media (max-width: 480px) {
                    #condolenceModal > div, #candleModal > div {
                        padding: 18px;
                    }

                    #condolenceModal > div h3, #candleModal > div h3 {
                        font-size: 1rem;
                    }

                    #condolenceModal > div > p, #candleModal > div > p {
                        font-size: 0.7rem;
                        margin-bottom: 14px;
                    }

                    .form-group {
                        margin-bottom: 12px;
                    }

                    .form-label {
                        font-size: 0.75rem;
                    }

                    .form-control {
                        padding: 9px 10px;
                        font-size: 16px;
                    }

                    textarea.form-control {
                        min-height: 80px;
                    }

                    .btn {
                        padding: 11px 14px;
                        font-size: 0.85rem;
                    }

                    #condolenceModal button[onclick*="closeModals"],
                    #candleModal button[onclick*="closeModals"] {
                        width: 32px;
                        height: 32px;
                        font-size: 1.2rem;
                    }

                    .candle-emoji {
                        font-size: 2.5rem;
                    }
                }

                @media (max-width: 420px) {
                    #condolenceModal, #candleModal {
                        padding: 8px;
                    }

                    #condolenceModal > div, #candleModal > div {
                        padding: 16px;
                        border-radius: 8px;
                    }

                    #condolenceModal > div h3, #candleModal > div h3 {
                        font-size: 0.95rem;
                        margin-bottom: 4px;
                    }

                    #condolenceModal > div > p, #candleModal > div > p {
                        font-size: 0.65rem;
                        margin-bottom: 12px;
                    }

                    .form-group {
                        margin-bottom: 10px;
                        gap: 4px;
                    }

                    .form-label {
                        font-size: 0.7rem;
                    }

                    .form-control {
                        padding: 8px 9px;
                        font-size: 16px;
                        border-radius: 4px;
                    }

                    textarea.form-control {
                        min-height: 70px;
                    }

                    .btn {
                        padding: 10px 12px;
                        font-size: 0.8rem;
                    }

                    #condolenceModal button[onclick*="closeModals"],
                    #candleModal button[onclick*="closeModals"] {
                        width: 30px;
                        height: 30px;
                        font-size: 1.1rem;
                        top: 10px;
                        right: 10px;
                    }

                    .candle-emoji {
                        font-size: 2.2rem;
                    }
                }

                @media (max-width: 360px) {
                    #condolenceModal > div, #candleModal > div {
                        padding: 14px;
                    }

                    #condolenceModal > div h3, #candleModal > div h3 {
                        font-size: 0.88rem;
                    }

                    .form-control {
                        padding: 8px 8px;
                        font-size: 16px;
                    }

                    textarea.form-control {
                        min-height: 65px;
                    }

                    .btn {
                        padding: 9px 10px;
                        font-size: 0.75rem;
                    }

                    .candle-emoji {
                        font-size: 2rem;
                        margin-bottom: 10px;
                    }
                }

/* ============================================
   HOME CATEGORY SECTIONS & POST CARDS
   ============================================ */
.home-category-section {
    margin-bottom: 35px;
}

.home-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gold);
    flex-wrap: wrap;
    gap: 12px;
}

.home-category-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-category-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.home-category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin: 0;
    line-height: 1.2;
}

.home-category-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
}

.home-category-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-category-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-blue);
    padding: 5px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--color-gray-200);
    background: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.btn-category-view-all:hover {
    border-color: var(--color-blue);
    background: var(--color-gray-50);
}

.btn-category-submit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-navy);
    padding: 5px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-category-submit:hover {
    background: var(--color-blue);
    color: #fff;
}

.home-category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
    gap: 30px 24px;
    align-items: start;
    overflow: visible;
}

@media (min-width: 1024px) {
    .site-main .home-category-posts-grid {
        grid-template-columns: repeat(2, minmax(315px, 1fr));
    }
}

.home-post-frame-item {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    overflow: visible;
}

.home-post-frame-item .im-frame-card,
.home-post-frame-item .memorial-frame-card {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
    overflow: visible;
}

.hero-banner-carousel .carousel-slide {
    background-image: linear-gradient(110deg, rgba(21, 39, 55, .96), rgba(28, 52, 65, .88)) !important;
}
.hero-banner-carousel .carousel-image-container {
    background: url("../img/memorial-floral-wreath.png") center / min(32vw, 340px) no-repeat;
    opacity: .9;
}
.hero-banner-carousel .carousel-overlay { background: rgba(0, 0, 0, .1); }
.hero-banner-carousel .hero-decoration { display: none; }
@media (max-width: 767px) {
    .hero-banner-carousel .carousel-image-container {
        width: 100%;
        display: block;
        opacity: .16;
        background-size: min(65vw, 290px);
    }
}

.home-post-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.home-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-gold);
}

.home-post-photo-link {
    display: block;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    height: 155px;
}

.home-post-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.home-post-card:hover .home-post-photo {
    transform: scale(1.04);
}

.home-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--color-gray-400);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.home-post-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-post-name {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.home-post-name a {
    color: var(--color-dark);
    text-decoration: none;
}

.home-post-name a:hover {
    color: var(--color-blue);
}

.home-post-years {
    font-size: 0.76rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.home-post-loc {
    font-size: 0.74rem;
    color: var(--color-gray-400);
    margin-bottom: 6px;
    display: block;
}

.home-post-excerpt {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.home-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    border-top: 1px solid var(--color-gray-100);
    padding-top: 8px;
    margin-top: auto;
}

.home-post-date {
    color: var(--color-gray-400);
}

.home-post-link {
    color: var(--color-blue);
    font-weight: 600;
    text-decoration: none;
}

.home-post-link:hover {
    color: var(--color-blue-light);
}

.home-category-empty {
    background: #fff;
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    padding: 22px 15px;
    text-align: center;
}

@media (max-width: 992px) {
    .home-category-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .home-category-posts-grid {
        grid-template-columns: 1fr;
    }
}

