/* assets/css/pages/zacimbe.css */

/* --- SWIPER CONTAINER OVERRIDES --- */
.zacimbe-swiper-container {
    width: 100%;
    padding: 20px 0; /* Reset padding, no longer need bottom space for dots */
    overflow: hidden; /* Swiper needs this for slide clipping */
    position: relative;
}

/* Ensure Swiper doesn't cut off shadows */
.zacimbe-swiper-container .swiper-slide {
    height: auto;
    padding: 10px; /* Space for box-shadow */
}

/* --- SWIPER NAVIGATION ARROWS --- */
.zacimbe-swiper-container .swiper-button-next,
.zacimbe-swiper-container .swiper-button-prev {
    color: #1a1a1a; /* Dark brand color */
    background: rgba(255, 255, 255, 0.9); /* White circle background */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zacimbe-swiper-container .swiper-button-next:after,
.zacimbe-swiper-container .swiper-button-prev:after {
    font-size: 20px; /* Smaller, elegant arrow icon */
    font-weight: bold;
}

/* Hide arrows on mobile if preferred, or keep them. Often kept for clarity if no dots */
@media (max-width: 768px) {
    .zacimbe-swiper-container .swiper-button-next,
    .zacimbe-swiper-container .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .zacimbe-swiper-container .swiper-button-next:after,
    .zacimbe-swiper-container .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Specific sizing for slides based on device */
@media (min-width: 992px) {
    /* Instead of restricting the slide, we restrict the whole Swiper container 
       so Swiper's internal calculations don't get confused and show multiple slides */
    .zacimbe-swiper-container {
        max-width: 600px;
        margin: 0 auto;
        /* Increase padding on desktop to allow arrows to sit outside the card */
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .zacimbe-swiper-container .swiper-slide {
        width: 100%; 
        max-width: none;
        margin: 0;
    }

    /* Position arrows outside the card area on desktop */
    .zacimbe-swiper-container .swiper-button-prev {
        left: 0;
    }
    .zacimbe-swiper-container .swiper-button-next {
        right: 0;
    }
}
@media (max-width: 991px) {
    .zacimbe-swiper-container .swiper-slide {
        width: 100%; /* 1 card on mobile */
    }
}

/* --- THE COLOR-BLOCK CARD (inherits from .restaurant-card usually) --- */
.zacimba-color-card {
    /* Base dimensions matching restaurant-card */
    border-radius: 24px;
    background-color: #ffffff;
    border: 1px solid #E0E6E1;
    height: 525px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zacimba-color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* --- COLOR BLOCK HEADER --- */
.color-block-header {
    position: relative;
    height: 220px; /* Standard image header height */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
    
    /* Subtle dot pattern texture */
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 10px 10px;
}

/* The 5 High-Contrast Gradients */
.bg-gradient-1 {
    background-color: #F3B01A;
    background: linear-gradient(180deg, #FFD15C 0%, #D49000 100%);
}
.bg-gradient-2 {
    background-color: #EB794E;
    background: linear-gradient(180deg, #FFA380 0%, #B8451B 100%);
}
.bg-gradient-3 {
    background-color: #865A7F;
    background: linear-gradient(180deg, #AD7EA5 0%, #4D2D46 100%);
}
.bg-gradient-4 {
    background-color: #4A8B99;
    background: linear-gradient(180deg, #6BBBD0 0%, #20525C 100%);
}
.bg-gradient-5 {
    background-color: #5E9362;
    background: linear-gradient(180deg, #87C28C 0%, #2E5431 100%);
}

/* Background Icon Watermark */
.color-block-bg-icon {
    position: absolute;
    width: 160px;
    height: 160px;
    opacity: 0.12;
    transform: rotate(-15deg);
    right: -20px;
    bottom: -30px;
    pointer-events: none;
    /* In case it's an img tag instead of svg inline */
    object-fit: contain;
    filter: brightness(0) invert(1); /* Force white if it's a black SVG */
}
/* If SVG is used inline */
.color-block-bg-icon svg {
    width: 100%;
    height: 100%;
    fill: white !important;
}

/* Central Pill (Reusing badge-cat-1 style but centered) */
.color-block-pill {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}
.color-block-pill:hover {
    transform: scale(1.05);
    background: #ffffff;
    color: var(--primary-color, #1a1a1a);
}
.color-block-pill .tag-icon-wrapper {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-block-pill .tag-icon-wrapper svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* --- CARD CONTENT (Bottom Half) --- */
.zacimba-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
    text-align: center; /* Added center alignment for the entire body */
}

.zacimba-fact-text {
    font-size: calc(1.2rem - 2px);
    line-height: 1.5;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0 0 20px 0;
    flex-grow: 1;
    overflow-y: auto; /* In case text is unusually long */
    /* Center align the text itself */
    text-align: center;
    /* Custom scrollbar for long text */
    scrollbar-width: thin;
    scrollbar-color: #E0E6E1 transparent;
}
.zacimba-fact-text::-webkit-scrollbar {
    width: 4px;
}
.zacimba-fact-text::-webkit-scrollbar-thumb {
    background-color: #E0E6E1;
    border-radius: 4px;
}

/* Override story-interactions specifically for zacimbe cards to stick to bottom */
.zacimba-color-card .story-interactions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #E0E6E1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}