﻿.kerala-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

    .kerala-section::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -80px;
        width: 400px;
        height: 400px;
        background: var(--primary-green);
        border-radius: 50%;
        filter: blur(140px);
        opacity: 0.05;
        pointer-events: none;
        animation: blobFloat 20s ease-in-out infinite;
    }

    .kerala-section::after {
        content: '';
        position: absolute;
        bottom: -120px;
        left: -60px;
        width: 350px;
        height: 350px;
        background: var(--accent-gold);
        border-radius: 50%;
        filter: blur(130px);
        opacity: 0.04;
        pointer-events: none;
        animation: blobFloat 20s ease-in-out -7s infinite;
    }

.kerala-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 55px;
    position: relative;
    z-index: 2;
}


/* ===== GRID ===== */
.kerala-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== KERALA CARD ===== */
.kerala-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: cuFadeInUp 0.7s ease-out both;
}

    .kerala-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .kerala-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .kerala-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .kerala-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .kerala-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .kerala-card:nth-child(6) {
        animation-delay: 0.6s;
    }

    .kerala-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.15), transparent);
        z-index: 3;
    }

    .kerala-card:hover {
        border-color: var(--glass-border-hover);
        transform: translateY(-10px);
        box-shadow: rgba(15, 23, 42, 0.08) 0px 24px 48px, rgba(5, 150, 105, 0.08) 0px 0px 0px 1px, rgba(255, 255, 255, 0.5) 0px 1px 0px inset;
    }

/* ===== IMAGE BANNER ===== */
.kerala-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

    .kerala-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

.kerala-card:hover .kerala-image-wrap img {
    transform: scale(1.1);
}

/* Image overlay gradient */
.kerala-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.5) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.kerala-card:hover .kerala-image-wrap::after {
    opacity: 0.8;
}

/* Category badge on image */
.kerala-image-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kerala-card:nth-child(1) .kerala-image-badge {
    color: var(--primary-green);
}

.kerala-card:nth-child(2) .kerala-image-badge {
    color: var(--accent-gold);
}

.kerala-card:nth-child(3) .kerala-image-badge {
    color: var(--stat-purple);
}

.kerala-card:nth-child(4) .kerala-image-badge {
    color: var(--stat-green);
}

.kerala-card:nth-child(5) .kerala-image-badge {
    color: var(--accent-orange);
}

.kerala-card:nth-child(6) .kerala-image-badge {
    color: var(--primary-green);
}

/* ===== CARD CONTENT ===== */
.kerala-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

    /* Left accent bar */
    .kerala-content::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 0;
        width: 3px;
        height: 40px;
        background: linear-gradient(180deg, var(--primary-green), var(--accent-gold));
        border-radius: 0 3px 3px 0;
        opacity: 0;
        transition: opacity 0.4s ease, height 0.4s ease;
    }

.kerala-card:hover .kerala-content::before {
    opacity: 1;
    height: 60px;
}

/* Icon */
.kerala-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .kerala-icon::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 14px;
        opacity: 0.1;
    }

.kerala-card:nth-child(1) .kerala-icon::before {
    background: var(--primary-green);
}

.kerala-card:nth-child(2) .kerala-icon::before {
    background: var(--accent-gold);
}

.kerala-card:nth-child(3) .kerala-icon::before {
    background: var(--stat-purple);
}

.kerala-card:nth-child(4) .kerala-icon::before {
    background: var(--stat-green);
}

.kerala-card:nth-child(5) .kerala-icon::before {
    background: var(--accent-orange);
}

.kerala-card:nth-child(6) .kerala-icon::before {
    background: var(--primary-green);
}

.kerala-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Title */
.kerala-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* Description */
.kerala-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
}

/* Tag */
.kerala-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 14px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.kerala-card:nth-child(2) .kerala-card-tag {
    background: rgba(217, 119, 6, 0.06);
    border-color: rgba(217, 119, 6, 0.12);
    color: var(--accent-gold);
}

.kerala-card:nth-child(3) .kerala-card-tag {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.12);
    color: var(--stat-purple);
}

.kerala-card:nth-child(4) .kerala-card-tag {
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.12);
    color: var(--stat-green);
}

.kerala-card:nth-child(5) .kerala-card-tag {
    background: rgba(234, 88, 12, 0.06);
    border-color: rgba(234, 88, 12, 0.12);
    color: var(--accent-orange);
}

.kerala-card:nth-child(6) .kerala-card-tag {
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.12);
    color: var(--primary-green);
}

/* ===== CTA ===== */
.kerala-cta {
    text-align: center;
    margin-top: 56px;
    animation: cuFadeInUp 0.8s 0.8s ease-out both;
}

    .kerala-cta .btn-view-more {
        background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
        color: #fff;
        border: none;
        padding: 16px 40px;
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        box-shadow: 0 8px 24px rgba(5, 150, 105, 0.25);
    }

        .kerala-cta .btn-view-more::before {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        }

        .kerala-cta .btn-view-more:hover {
            border-color: transparent;
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
        }

/* ===== ANIMATIONS ===== */
@keyframes cuFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes flagWave {
    0% {
        background-position: 0% 40%;
    }

    50% {
        background-position: 60% 40%;
    }

    100% {
        background-position: 0% 40%;
    }
}

@keyframes blobFloat {

    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.98);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .kerala-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kerala-container {
        padding: 0 24px;
    }

    .kerala-section {
        padding: 60px 0;
    }

    .kerala-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kerala-image-wrap {
        height: 180px;
    }

    .kerala-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .kerala-container {
        padding: 0 20px;
    }

    .kerala-image-wrap {
        height: 160px;
    }

    .kerala-content {
        padding: 20px;
    }
}
