﻿/* =========================================================
   MALWA AGRITECH
   TECHNICAL SPECIFICATION CHART
========================================================= */

.malwa-tech-section {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(180deg, #f5fbf7 0%, #ffffff 100%);
    overflow: hidden;
}

.malwa-tech-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.malwa-tech-heading {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 42px;
}

.malwa-tech-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #e6f5eb;
    color: #116b3a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.malwa-tech-heading h2 {
    margin: 16px 0 10px;
    color: #123c28;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
}

.malwa-tech-heading p {
    margin: 0;
    color: #65756d;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   CROP TABS
========================================================= */

.malwa-crop-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.malwa-crop-tab {
    position: relative;
    min-height: 86px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #dbe9df;
    border-radius: 16px;
    background: #ffffff;
    color: #214c35;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 5px 18px rgba(17, 107, 58, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

    .malwa-crop-tab:hover {
        transform: translateY(-3px);
        border-color: #72ad88;
        box-shadow: 0 10px 28px rgba(17, 107, 58, 0.12);
    }

    .malwa-crop-tab.active {
        color: #ffffff;
        border-color: #116b3a;
        background: linear-gradient(135deg, #116b3a, #19804a);
        box-shadow: 0 12px 30px rgba(17, 107, 58, 0.22);
    }

.malwa-tab-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf6ee;
    color: #116b3a;
    font-size: 21px;
}

.malwa-crop-tab.active .malwa-tab-icon {
    background: rgba(255,255,255,.18);
    color: #ffffff;
}

.malwa-tab-content {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
}

    .malwa-tab-content strong {
        font-size: 16px;
        letter-spacing: .7px;
    }

    .malwa-tab-content small {
        margin-top: 3px;
        font-size: 13px;
        opacity: .8;
    }

.malwa-tab-arrow {
    margin-left: auto;
    font-size: 13px;
    opacity: .55;
}

.malwa-crop-tab.active .malwa-tab-arrow {
    opacity: 1;
}


/* =========================================================
   CHART PANEL
========================================================= */

.malwa-chart-panel {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce9e0;
    box-shadow: 0 14px 45px rgba(22, 70, 42, .09);
    animation: malwaChartFade .3s ease;
}

    .malwa-chart-panel[hidden] {
        display: none !important;
    }

@keyframes malwaChartFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   CHART HEADER
========================================================= */

.malwa-chart-header {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #0f6335, #188049);
    color: #ffffff;
}

.malwa-chart-label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    opacity: .75;
}

.malwa-chart-header h3 {
    margin: 0;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
}

    .malwa-chart-header h3 span {
        font-size: .65em;
        font-weight: 500;
        opacity: .85;
    }

.malwa-chart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   TABLE
========================================================= */

.malwa-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.malwa-tech-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
}

    .malwa-tech-table thead th {
        padding: 16px 14px;
        background: #eef7f1;
        color: #174d30;
        border-bottom: 2px solid #cfe4d5;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
        white-space: nowrap;
    }

    .malwa-tech-table tbody td {
        padding: 17px 14px;
        border-bottom: 1px solid #edf1ee;
        color: #46564d;
        font-size: 13px;
        vertical-align: middle;
    }

    .malwa-tech-table tbody tr {
        transition: background .2s ease;
    }

        .malwa-tech-table tbody tr:hover {
            background: #f6fbf8;
        }

        .malwa-tech-table tbody tr:last-child td {
            border-bottom: 0;
        }

    .malwa-tech-table tbody td:first-child {
        color: #116b3a;
        font-weight: 800;
    }

    .malwa-tech-table tbody td strong {
        color: #183d29;
        font-weight: 800;
    }

    .malwa-tech-table tbody td:last-child strong {
        color: #116b3a;
    }

.malwa-variety-hindi {
    display: block;
    margin-top: 4px;
    color: #75827b;
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   NOTE
========================================================= */

.malwa-tech-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f4f8f5;
    color: #64736b;
    font-size: 12px;
    line-height: 1.6;
}

    .malwa-tech-note i {
        flex: 0 0 auto;
        margin-top: 3px;
        color: #116b3a;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .malwa-tech-section {
        padding: 65px 16px;
    }

    .malwa-crop-tabs {
        gap: 12px;
    }

    .malwa-crop-tab {
        padding: 13px;
    }

    .malwa-tab-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .malwa-tab-content {
        margin-left: 10px;
    }

    .malwa-chart-header {
        padding: 22px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .malwa-tech-section {
        padding: 50px 12px;
    }

    .malwa-tech-heading {
        margin-bottom: 28px;
    }

        .malwa-tech-heading p {
            font-size: 14px;
        }

    .malwa-crop-tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 4px 2px 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .malwa-crop-tab {
        min-width: 190px;
        flex: 0 0 190px;
        scroll-snap-align: start;
    }

    .malwa-chart-panel {
        border-radius: 15px;
    }

    .malwa-chart-header {
        min-height: 90px;
        padding: 18px;
        align-items: flex-start;
    }

    .malwa-chart-badge {
        padding: 7px 10px;
        font-size: 10px;
    }

    .malwa-table-wrapper {
        overflow-x: visible;
    }

    /*
       Mobile table becomes card layout
    */

    .malwa-tech-table,
    .malwa-tech-table tbody,
    .malwa-tech-table tr,
    .malwa-tech-table td {
        display: block;
        width: 100%;
    }

    .malwa-tech-table {
        min-width: 0;
    }

        .malwa-tech-table thead {
            display: none;
        }

        .malwa-tech-table tbody {
            padding: 10px;
        }

            .malwa-tech-table tbody tr {
                margin-bottom: 14px;
                padding: 14px;
                border: 1px solid #e1ebe4;
                border-radius: 13px;
                background: #ffffff;
                box-shadow: 0 5px 15px rgba(0,0,0,.04);
            }

                .malwa-tech-table tbody tr:last-child {
                    margin-bottom: 0;
                }

            .malwa-tech-table tbody td {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                gap: 18px;
                padding: 9px 0;
                border-bottom: 1px dashed #e0e8e3;
                text-align: right;
                font-size: 13px;
            }

                .malwa-tech-table tbody td:last-child {
                    border-bottom: 0;
                }

                .malwa-tech-table tbody td::before {
                    content: attr(data-label);
                    flex: 0 0 43%;
                    color: #6b7971;
                    font-size: 11px;
                    font-weight: 700;
                    text-align: left;
                }

                .malwa-tech-table tbody td:first-child {
                    padding-top: 0;
                    color: #116b3a;
                    font-size: 14px;
                }

                    .malwa-tech-table tbody td:first-child::before {
                        color: #116b3a;
                    }

                .malwa-tech-table tbody td strong {
                    text-align: right;
                }

    .malwa-variety-hindi {
        text-align: right;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .malwa-tech-section {
        padding: 40px 9px;
    }

    .malwa-tech-heading h2 {
        font-size: 27px;
    }

    .malwa-tech-heading p {
        font-size: 13px;
    }

    .malwa-crop-tab {
        min-width: 175px;
        flex-basis: 175px;
    }

    .malwa-tab-content strong {
        font-size: 14px;
    }

    .malwa-chart-header {
        flex-direction: column;
        gap: 10px;
    }

    .malwa-chart-badge {
        align-self: flex-start;
    }

    .malwa-tech-note {
        font-size: 11px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .malwa-chart-panel,
    .malwa-crop-tab {
        animation: none;
        transition: none;
    }
}
