﻿/* ============================================================
   SAMRUDDHI AGRI TECH
   GALLERY PARTIAL
   ============================================================ */

.rds-gp-section {
    width: 100%;
    overflow: hidden;
    background: radial-gradient( circle at 5% 10%, rgba(37,99,235,.06), transparent 25% ), radial-gradient( circle at 95% 70%, rgba(249,115,22,.06), transparent 25% ), #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color: #263244;
}

    .rds-gp-section *,
    .rds-gp-section *::before,
    .rds-gp-section *::after {
        box-sizing: border-box;
    }


/* LANGUAGE */

.rds-gp-mr {
    display: none;
}

.rds-gp-section.rds-gp-marathi .rds-gp-en {
    display: none;
}

.rds-gp-section.rds-gp-marathi .rds-gp-mr {
    display: inline;
}


/* CONTAINER */

.rds-gp-container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    padding: 60px 0;
}


/* HEADER */

.rds-gp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 30px;
}

.rds-gp-heading {
    max-width: 760px;
}

.rds-gp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.rds-gp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
}

.rds-gp-heading h2 {
    margin: 9px 0 10px;
    color: #14213d;
    font-size: clamp(31px, 4vw, 47px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.3px;
}

.rds-gp-heading p {
    max-width: 680px;
    margin: 0;
    color: #687689;
    font-size: 14px;
    line-height: 1.7;
}


/* LANGUAGE */

.rds-gp-language {
    display: flex;
    gap: 4px;
    padding: 5px;
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    box-shadow: 0 9px 24px rgba(20,33,61,.08);
}

.rds-gp-lang {
    min-width: 82px;
    height: 35px;
    border: 0;
    border-radius: 8px;
    background: #f2f5f8;
    color: #667386;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    transition: .25s ease;
}

    .rds-gp-lang.active {
        background: #14213d;
        color: #ffffff;
    }


/* GRID */

.rds-gp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}


/* CARD */

.rds-gp-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 19px;
    box-shadow: 0 9px 27px rgba(20,33,61,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .rds-gp-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 19px 38px rgba(20,33,61,.13);
    }

.rds-gp-card-big {
    grid-column: span 2;
}


/* IMAGE */

.rds-gp-image-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #edf2f7;
}

.rds-gp-card-big .rds-gp-image-box {
    height: 265px;
}

.rds-gp-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.rds-gp-card:hover .rds-gp-image {
    transform: scale(1.06);
}


/* IMAGE LABEL */

.rds-gp-image-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(20,33,61,.86);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}


/* CONTENT */

.rds-gp-card-content {
    position: relative;
    padding: 15px 17px 17px;
}

.rds-gp-number {
    position: absolute;
    top: 13px;
    right: 16px;
    color: #e8edf4;
    font-size: 27px;
    font-weight: 900;
}

.rds-gp-card-content h3 {
    margin: 0 35px 6px 0;
    color: #14213d;
    font-size: 16px;
    font-weight: 850;
}

.rds-gp-card-content p {
    margin: 0;
    color: #728093;
    font-size: 11px;
    line-height: 1.55;
}


/* VIEW MORE */

.rds-gp-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.rds-gp-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 23px;
    border-radius: 12px;
    background: #14213d;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(20,33,61,.18);
    transition: .25s ease;
}

    .rds-gp-more-button:hover {
        background: #2563eb;
        transform: translateY(-2px);
        color: #ffffff;
    }

.rds-gp-arrow {
    font-size: 18px;
    transition: transform .25s ease;
}

.rds-gp-more-button:hover .rds-gp-arrow {
    transform: translateX(4px);
}


/* LANGUAGE ANIMATION */

.rds-gp-section.rds-gp-switching
.rds-gp-heading,
.rds-gp-section.rds-gp-switching
.rds-gp-card-content {
    animation: rdsGpLanguage .3s ease;
}

@keyframes rdsGpLanguage {

    from {
        opacity: .25;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* TABLET */

@media (max-width: 1000px) {

    .rds-gp-container {
        width: calc(100% - 30px);
        padding: 48px 0;
    }

    .rds-gp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rds-gp-card-big {
        grid-column: span 2;
    }
}


/* MOBILE */

@media (max-width: 680px) {

    .rds-gp-container {
        width: calc(100% - 20px);
        padding: 38px 0;
    }

    .rds-gp-header {
        display: block;
    }

    .rds-gp-heading h2 {
        font-size: 31px;
    }

    .rds-gp-heading p {
        font-size: 13px;
    }

    .rds-gp-language {
        width: fit-content;
        margin-top: 17px;
    }

    .rds-gp-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rds-gp-card-big {
        grid-column: span 1;
    }

        .rds-gp-image-box,
        .rds-gp-card-big .rds-gp-image-box {
            height: 225px;
        }
}


/* SMALL MOBILE */

@media (max-width: 380px) {

    .rds-gp-container {
        width: calc(100% - 14px);
        padding: 30px 0;
    }

    .rds-gp-heading h2 {
        font-size: 27px;
    }

    .rds-gp-heading p {
        font-size: 12px;
    }

    .rds-gp-language {
        width: 100%;
    }

    .rds-gp-lang {
        flex: 1;
        min-width: 0;
    }

    .rds-gp-image-box,
    .rds-gp-card-big .rds-gp-image-box {
        height: 205px;
    }

    .rds-gp-card-content {
        padding: 13px;
    }
}
