﻿/* ============================================================
   MALWA AGRITECH
   GALLERY PARTIAL
   ============================================================ */

.malwa-gallery-preview {
    width: 100%;
    padding: 90px 0;
    background: linear-gradient( 135deg, #f7fbf8 0%, #ffffff 50%, #f5faf7 100% );
    overflow: hidden;
}

    .malwa-gallery-preview *,
    .malwa-gallery-preview *::before,
    .malwa-gallery-preview *::after {
        box-sizing: border-box;
    }

.malwa-gallery-preview-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   HEADING
   ============================================================ */

.malwa-gallery-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: left;
}

.malwa-gallery-heading-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf6ee;
    color: #116b3a;
    font-size: 22px;
    box-shadow: 0 8px 25px rgba(17,107,58,.10);
}

.malwa-gallery-heading-content {
    flex: 1;
}

.malwa-gallery-eyebrow {
    display: block;
    color: #b08216;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.malwa-gallery-heading h2 {
    margin: 0;
    color: #073b22;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.15;
}

.malwa-gallery-heading p {
    margin: 9px 0 0;
    color: #66736b;
    font-size: 14px;
    line-height: 1.7;
}


/* ============================================================
   GRID
   ============================================================ */

.malwa-gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* ============================================================
   CARD
   ============================================================ */

.malwa-gallery-preview-card {
    background: #ffffff;
    border: 1px solid rgba(17,107,58,.10);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .malwa-gallery-preview-card:hover {
        transform: translateY(-7px);
        border-color: rgba(17,107,58,.25);
        box-shadow: 0 20px 45px rgba(0,0,0,.11);
    }


/* ============================================================
   IMAGE
   ============================================================ */

.malwa-gallery-preview-image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #edf4ef;
}

    .malwa-gallery-preview-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .45s ease;
    }

.malwa-gallery-preview-card:hover
.malwa-gallery-preview-image img {
    transform: scale(1.06);
}


/* ============================================================
   IMAGE HOVER
   ============================================================ */

.malwa-gallery-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.08);
    opacity: 0;
    transition: opacity .3s ease;
}

.malwa-gallery-preview-card:hover
.malwa-gallery-image-overlay {
    opacity: 1;
}

.malwa-gallery-image-overlay span {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #116b3a;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.malwa-gallery-card-content {
    padding: 20px 19px 22px;
}

.malwa-gallery-card-category {
    display: inline-block;
    color: #b08216;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.malwa-gallery-card-content h3 {
    margin: 0;
    color: #073b22;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.malwa-gallery-card-content p {
    margin: 8px 0 0;
    color: #66736b;
    font-size: 12px;
    line-height: 1.7;
}


/* ============================================================
   VIEW MORE
   ============================================================ */

.malwa-gallery-view-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.malwa-gallery-view-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 24px;
    border-radius: 9px;
    background: #116b3a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(17,107,58,.18);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

    .malwa-gallery-view-button:hover {
        color: #073b22;
        background: #d6a72c;
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(17,107,58,.20);
    }

    .malwa-gallery-view-button i {
        font-size: 11px;
        transition: transform .25s ease;
    }

    .malwa-gallery-view-button:hover i {
        transform: translateX(4px);
    }


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    .malwa-gallery-preview {
        padding: 75px 0;
    }

    .malwa-gallery-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .malwa-gallery-preview-image {
        height: 250px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .malwa-gallery-preview {
        padding: 60px 0;
    }

    .malwa-gallery-preview-container {
        width: calc(100% - 28px);
    }

    .malwa-gallery-heading {
        gap: 13px;
        margin-bottom: 30px;
    }

    .malwa-gallery-heading-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 12px;
        font-size: 18px;
    }

    .malwa-gallery-heading h2 {
        font-size: 28px;
    }

    .malwa-gallery-heading p {
        font-size: 12px;
    }

    .malwa-gallery-preview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .malwa-gallery-preview-image {
        height: 230px;
    }
}


/* ============================================================
   SMALL DEVICES
   ============================================================ */

@media (max-width: 420px) {

    .malwa-gallery-preview {
        padding: 48px 0;
    }

    .malwa-gallery-preview-container {
        width: calc(100% - 22px);
    }

    .malwa-gallery-heading {
        align-items: flex-start;
    }

    .malwa-gallery-heading-icon {
        width: 43px;
        height: 43px;
        min-width: 43px;
        font-size: 16px;
    }

    .malwa-gallery-heading h2 {
        font-size: 24px;
    }

    .malwa-gallery-heading p {
        font-size: 11px;
    }

    .malwa-gallery-preview-image {
        height: 205px;
    }

    .malwa-gallery-card-content {
        padding: 17px;
    }

        .malwa-gallery-card-content h3 {
            font-size: 16px;
        }

    .malwa-gallery-view-button {
        width: 100%;
        max-width: 280px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .malwa-gallery-preview *,
    .malwa-gallery-preview *::before,
    .malwa-gallery-preview *::after {
        transition: none !important;
    }
}
