/* ---------- SIDE IMAGE CAROUSEL BLOCK ---------- */
.sic-block {
    position: relative;
    padding: 80px 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    background-color: #f9f9f9; /* Fallback if no image */
}

.sic-block-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.sic-container {
    position: relative;
    z-index: 2;
}

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

.sic-eyebrow-pill {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.sic-main-title {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--ink);
    line-height: 1.2;
}

.sic-main-title p {
    margin: 0;
    display: inline;
}

/* ---------- CARDS GRID ---------- */
.sic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Entire Card Link Wrapper */
.sic-card {
    display: flex;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, background-color 0.4s ease, opacity 0.4s ease;
    min-height: 240px;
}

/* Optional Toggle: Fade card background to show block background */
.sic-card.reveal-bg-hover:hover {
    background-color: transparent !important;
    background: transparent !important; /* Overrides gradient */
}

/* Left Image Box with Diagonal Cut */
.sic-card-img {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48%;
    background-size: cover;
    background-position: center;
    /* This creates the slanted diagonal cut on the right side of the image */
    clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
    z-index: 1;
}

/* The Bottom-Left Icon Pill */
.sic-icon-pill {
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 65px;
    height: 60px;
    background-color: var(--pill-bg);
    border-radius: 12px 12px 0 0; /* Flat on bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.sic-icon-pill img {
    width: 30px;
    height: auto;
    /* Replaces icon font with your custom PNG */
    object-fit: contain; 
}

/* Right Content Box */
.sic-card-content {
    margin-left: 45%; /* Pushes text past the diagonal cut */
    padding: 35px 25px 35px 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* WYSIWYG Bold Title Formatting */
.sic-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--ink);
}

.sic-card-title p {
    margin: 0;
}

.sic-card-title strong {
    font-weight: 700;
}

/* WYSIWYG Description Formatting */
.sic-card-desc {
    font-size: 14px;
    color: var(--steel-soft);
    line-height: 1.6;
    margin-bottom: 25px;
}

.sic-card-desc p {
    margin-bottom: 8px;
}
.sic-card-desc p:last-child {
    margin-bottom: 0;
}

/* Read More Link */
.sic-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--rm-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

/* ---------- HOVER EFFECTS ---------- */
.sic-card:hover {
    transform: translateY(-5px);
}

.sic-card:hover .sic-icon-pill {
    background-color: var(--pill-hover);
}

.sic-card:hover .sic-read-more {
    color: var(--rm-hover);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .sic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sic-grid {
        grid-template-columns: 1fr;
    }
    .sic-card-img {
        width: 100%;
        height: 200px;
        position: relative;
        clip-path: none; /* Disables diagonal cut on mobile so it stacks vertically */
    }
    .sic-card-content {
        margin-left: 0;
        padding: 30px;
    }
    .sic-card {
        flex-direction: column;
    }
}

/* ---------- SCROLL ANIMATIONS ---------- */
.sic-slide-card {
    opacity: 0;
    visibility: hidden;
    /* Start shifted to the left */
    transform: translateX(-50px); 
}

.sic-slide-card.is-visible {
    visibility: visible;
    /* Trigger the slide, utilizing the dynamic delay */
    animation: sicSlideInLeft 0.6s ease-out forwards;
    animation-delay: var(--anim-delay);
}

@keyframes sicSlideInLeft {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); }
}