/* ==========================================================================
   INGREDIENTS PORTFOLIO PAGE STYLES (ingredients.php)
   ========================================================================== */

/* Main Portfolio Discovery Section */
.portfolio-discovery-sec {
    padding: 70px 0 90px;
    background: #ffffff;
}

/* Top Header Row (Centered Layout) */
.portfolio-header-row {
    text-align: center;
    margin-bottom: 50px;
}


.portfolio-badge-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #21b8c9;
    display: block;
    margin-bottom: 10px;
}

.portfolio-main-title span {
    color: #21b8c9;
    font-family: 'Dancing Script', cursive;
    font-size: 1.15em;
    font-weight: 600;
}

.portfolio-header-right {
    color: #64748b;
    margin-top: 10px;
}

/* 4-Column Category Cards Grid */
.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.category-column-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(6, 36, 52, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.category-column-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(6, 36, 52, 0.12);
    border-color: #cbd5e1;
}

/* Top Color Block Header with Photography Background */
.card-color-block {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.card-color-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 36, 52, 0.25) 0%, rgba(6, 36, 52, 0.85) 100%);
    transition: opacity 0.35s ease;
    z-index: 1;
}

.category-column-card:hover .card-color-block::before {
    background: linear-gradient(180deg, rgba(6, 36, 52, 0.15) 0%, rgba(33, 184, 201, 0.85) 100%);
}

.category-column-card:hover .card-color-block {
    transform: scale(1.03);
}

.card-color-block .block-category-name {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Category Background Photography Images */
.block-spices {
    background-image: url('../images/cat_spices.jpg');
}

.block-coconut {
    background-image: url('../images/cat_coconut.jpg');
}

.block-nuts {
    background-image: url('../images/cat_nuts.jpg');
}

.block-coffee {
    background-image: url('../images/cat_coffee.jpg');
}

/* Subtle overlay icon inside color block */
.card-color-block .block-bg-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    transition: transform 0.35s ease, color 0.35s ease;
}

.category-column-card:hover .block-bg-icon {
    transform: scale(1.15) rotate(-5deg);
    color: rgba(255, 255, 255, 0.25);
}

/* Bottom White Content Body */
.card-body-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background: #ffffff;
}

.card-desc-text {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-explore-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #21b8c9;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.category-column-card:hover .card-explore-link {
    color: #062434;
}

.card-explore-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.category-column-card:hover .card-explore-link i {
    transform: translateX(6px);
}

/* Bottom Horizontal Callout Banner */
.portfolio-callout-banner {
    background: #eaf6fa;
    border: 1px solid #bce3eb;
    border-radius: 16px;
    padding: 36px 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.callout-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #062434;
    margin-bottom: 8px;
}

.callout-desc {
    font-size: 1.02rem;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

.btn-callout-action {
    background: #062434;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(6, 36, 52, 0.15);
}

.btn-callout-action:hover {
    background: #21b8c9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(33, 184, 201, 0.25);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .portfolio-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-header-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 35px;
    }

    .portfolio-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-callout-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .btn-callout-action {
        width: 100%;
        justify-content: center;
    }
}