﻿/* ==========================================
   PLANTSPK - HOME ONLINE TOOLS
========================================== */

.pp-online-tools-section {
    background: linear-gradient( 135deg, #f3faf4 0%, #ffffff 55%, #f1f8f1 100% );
    border-radius: 22px;
    margin: 12px 0;
}

.pp-tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.pp-tools-eyebrow {
    display: inline-block;
    color: #16803c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.pp-tools-heading {
    font-size: 27px;
    font-weight: 800;
    color: #123d20;
    margin-bottom: 8px;
}

.pp-tools-description {
    font-size: 14px;
    color: #65736a;
    margin: 0;
    max-width: 580px;
    line-height: 1.6;
}

.pp-tools-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #16803c;
    color: #126b33;
    border-radius: 25px;
    padding: 9px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s;
}

    .pp-tools-view-all:hover {
        background: #137b38;
        color: #fff;
    }

.pp-tool-card {
    height: 100%;
    min-height: 195px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 12px 17px;
    border: 1px solid #e2eee4;
    background: #fff;
    border-radius: 17px;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.035);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

    .pp-tool-card:hover {
        transform: translateY(-5px);
        border-color: #9fd5aa;
        box-shadow: 0 12px 25px rgba(0, 90, 35, 0.10);
    }

    .pp-tool-card:focus-visible,
    .pp-tools-view-all:focus-visible {
        outline: 3px solid #2f9e55;
        outline-offset: 3px;
    }

.pp-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #eaf7ed;
    font-size: 28px;
    margin-bottom: 15px;
}

.pp-tool-card h3 {
    color: #173e25;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    margin: 0 0 7px;
}

.pp-tool-card p {
    font-size: 11px;
    color: #718076;
    line-height: 1.5;
    margin: 0 0 13px;
}

.pp-tool-link {
    color: #16803c;
    font-size: 11px;
    font-weight: 700;
    margin-top: auto;
}

.pp-tools-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 22px;
    font-size: 12px;
    font-weight: 600;
    color: #31774b;
}

/* TABLET */

@media (max-width: 991px) {
    .pp-tools-heading {
        font-size: 23px;
    }

    .pp-tool-card {
        min-height: 185px;
    }
}

/* MOBILE */

@media (max-width: 575px) {
    .pp-online-tools-section {
        border-radius: 15px;
    }

    .pp-tools-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pp-tools-heading {
        font-size: 21px;
    }

    .pp-tools-description {
        font-size: 12px;
    }

    .pp-tools-view-all {
        font-size: 12px;
        padding: 8px 13px;
    }

    .pp-tool-card {
        min-height: 170px;
        padding: 16px 8px 13px;
        border-radius: 13px;
    }

    .pp-tool-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-bottom: 11px;
    }

    .pp-tool-card h3 {
        font-size: 12px;
    }

    .pp-tool-card p,
    .pp-tool-link {
        font-size: 10px;
    }

    .pp-tools-footer {
        font-size: 10px;
        gap: 9px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-tool-card,
    .pp-tools-view-all {
        transition: none;
    }
}

/* VIEW ALL TOOLS - LAST CARD */

.pp-tool-view-all-card {
    background: linear-gradient(135deg, #e8f7ec, #f6fcf7);
    border: 1px dashed #78bf8c;
}

    .pp-tool-view-all-card .pp-tool-icon {
        background: #d5f0dd;
    }

    .pp-tool-view-all-card h3 {
        color: #087a37;
    }

    .pp-tool-view-all-card:hover {
        background: #e0f4e6;
        border-color: #087a37;
    }

/* ==========================================
   PLANTSPK HOME TOOLS - MOBILE SWIPE SLIDER
========================================== */


/* ==========================================
   PLANTSPK - RESPONSIVE ONLINE TOOLS SLIDER
========================================== */

/* DESKTOP: ALL 7 CARDS IN ONE ROW */

@media (min-width: 992px) {

    .pp-online-tools-section .pp-tools-slider {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 16px;
        margin-left: 0;
        margin-right: 0;
    }

        .pp-online-tools-section .pp-tools-slider > div {
            width: 100%;
            max-width: 100%;
            padding: 0;
            min-width: 0;
        }

    .pp-online-tools-section .pp-tool-card {
        min-height: 195px;
        padding: 18px 8px;
    }
}

/* TABLET: 3 CARDS PER ROW */

@media (min-width: 576px) and (max-width: 991px) {

    .pp-online-tools-section .pp-tools-slider {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        margin-left: 0;
        margin-right: 0;
    }

        .pp-online-tools-section .pp-tools-slider > div {
            width: 100%;
            max-width: 100%;
            padding: 0;
            min-width: 0;
        }
}

/* MOBILE: 2 CARDS + HORIZONTAL SWIPE */

@media (max-width: 575px) {

    .pp-online-tools-section .pp-tools-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        margin-left: 0;
        margin-right: 0;
        padding: 5px 2px 15px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 2px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

        .pp-online-tools-section .pp-tools-slider::-webkit-scrollbar {
            display: none;
        }

        .pp-online-tools-section .pp-tools-slider > div {
            flex: 0 0 calc((100% - 12px) / 2);
            width: calc((100% - 12px) / 2);
            max-width: calc((100% - 12px) / 2);
            min-width: 0;
            padding: 0;
            scroll-snap-align: start;
        }

    .pp-online-tools-section .pp-tool-card {
        height: 100%;
        min-height: 170px;
        padding: 16px 8px 13px;
    }
}

/* SWIPE HINT: MOBILE ONLY */

.pp-tools-swipe-hint {
    display: none;
}

@media (max-width: 575px) {
    .pp-tools-swipe-hint {
        display: block;
        text-align: center;
        color: #16803c;
        font-size: 11px;
        font-weight: 600;
        margin-top: 8px;
    }
}

