/* ---------- OFFERINGS CAROUSEL BLOCK ---------- */
.offerings-block {
    padding: 80px 0;
    background: #ffffff;
}

/* Header Styling */
.offerings-header {
    text-align: center;
    margin-bottom: 50px;
}

.offerings-eyebrow {
    display: block;
    color: var(--cyan); /* Native Cemetrix Cyan */
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.offerings-heading {
    color: var(--ink); /* Native Cemetrix Dark Blue */
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
}

/* Snap Scrolling Carousel Track */
.offerings-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px; /* Padding allows hover shadows to render without clipping */
    scrollbar-width: none; /* Firefox */
}

.offerings-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Individual Cards */
.offering-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(14, 27, 42, 0.08);
}

/* White Icon Circle */
.oc-icon-circle {
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.oc-icon-circle i {
    font-size: 40px;
    color: var(--cyan);
}

/* Typography & Links */
.oc-title {
    color: var(--ink);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.oc-desc {
    color: var(--steel);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.oc-read-more {
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.oc-read-more:hover {
    color: var(--cyan);
}

/* Update Individual Cards to support absolute positioning */
.offering-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Added to contain the new top background */
    position: relative; 
    overflow: hidden; 
    z-index: 1; 
}

/* NEW: Top Background Image Container */
/* Top Background Image Container */
/* Background Image Container (Now Full Height with Dual-Opacity Mask) */
.oc-top-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Changed from 100px to cover the entire card */
    background-size: cover;
    background-position: center;
    z-index: 1; 
    
    /* Mask: Solid black (100% visible) for the top 100px, then drops to 70% opacity (0.7) for the rest */
    -webkit-mask-image: linear-gradient(to bottom, black 100px, rgba(0, 0, 0, 0.7) 100px);
    mask-image: linear-gradient(to bottom, black 100px, rgba(0, 0, 0, 0.7) 100px);
}

/* Elevate the content to sit above the image */
.oc-icon-circle,
.oc-title,
.oc-desc,
.oc-read-more {
    position: relative;
    z-index: 2; 
}

/* Add styling for the new PNG image icons */
.oc-icon-circle img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .offering-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .offering-card {
        flex: 0 0 100%;
    }
}

/* Card Base Layout */
.offering-card {
    position: relative;
    overflow: hidden;
    padding: 50px 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* Background Image - 95% Fit (Updated for Browser Compatibility) */
.oc-bg-image {
    position: absolute;
    /* Anchoring to all 4 sides bypasses the min-height percentage bug */
    top: 2.5%;
    bottom: 2.5%;
    left: 2.5%;
    right: 2.5%;
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none; /* Prevents the invisible image box from blocking text clicks */
}

/* Foreground Content Layer */
.oc-content-layer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Icon Container */
.oc-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* 95% Icon Fit */
.oc-icon-circle img {
    width: 95%;
    height: 95%;
    object-fit: contain;
}

/* WYSIWYG Spacing Overrides */
.oc-title-wysiwyg > *:first-child,
.oc-desc-wysiwyg > *:first-child {
    margin-top: 0;
}
.oc-title-wysiwyg > *:last-child,
.oc-desc-wysiwyg > *:last-child {
    margin-bottom: 16px;
}