/**
 * Home page sections (index.php) — tablet & mobile tweaks.
 * Scoped to .page-home so other pages are unchanged.
 */

.page-home {
    overflow-x: clip;
}

/* ----- Shared tablet (768–991px) ----- */
@media (max-width: 991px) {
    .page-home .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-home .section {
        padding: 48px 0;
    }

    .page-home .about-intro {
        padding: 56px 0 60px;
    }

    .page-home .about-intro-title {
        font-size: clamp(1.5rem, 4vw, 1.85rem);
    }

    .page-home .about-intro-desc {
        font-size: 1rem;
        line-height: 1.65;
    }

    .page-home .fluoropolymer-heading {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .page-home .machinery-stats {
        padding: 40px 0 48px;
    }

    .page-home .machinery-stats .section-title {
        font-size: 1.65rem;
        padding: 0 8px;
    }

    .page-home .products-showcase {
        padding: 44px 0 52px;
    }

    .page-home .products-showcase-label,
    .page-home .industries-serve-label,
    .page-home .clients-label {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
        letter-spacing: 0.1em;
    }

    .page-home .products-showcase-wrap {
        padding: 0 36px;
    }

    .page-home .industries-serve {
        padding: 48px 0 64px;
    }

    .page-home .infra-detail-section {
        padding: 48px 0 60px;
    }

    .page-home .infra-detail-title {
        font-size: 1.35rem;
    }

    .page-home .clients-slider {
        padding: 44px 0 52px;
    }
}

/* ----- Mobile (≤767px) ----- */
@media (max-width: 767px) {
    .page-home .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-home .section {
        padding: 40px 0;
    }

    .page-home .section-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .page-home .about-intro {
        padding: 44px 0 48px;
    }

    .page-home .about-intro-title {
        font-size: 1.45rem;
        margin-bottom: 16px;
    }

    .page-home .about-intro-desc {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }

    .page-home .fluoropolymer-section {
        padding: 48px 0 52px;
    }

    .page-home .fluoropolymer-heading {
        font-size: 1.35rem;
        margin-bottom: 28px;
        text-align: center;
    }

    .page-home .machinery-stats {
        padding: 36px 0 40px;
    }

    .page-home .machinery-stat-value {
        font-size: 1.5rem;
    }

    .page-home .machinery-stat-label {
        font-size: 0.88rem;
        padding: 0 4px;
    }

    .page-home .products-showcase-header {
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .page-home .products-showcase-label {
        font-size: 1.25rem;
        letter-spacing: 0.08em;
    }

    .page-home .products-showcase-title {
        font-size: 0.95rem;
    }

    .page-home .products-showcase-wrap {
        padding: 0 12px;
    }

    .page-home .products-showcase-prev,
    .page-home .products-showcase-next {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .page-home .products-showcase-prev {
        left: 4px;
    }

    .page-home .products-showcase-next {
        right: 4px;
    }

    .page-home .products-showcase-card {
        width: min(260px, calc(100vw - 80px));
    }

    .page-home .products-showcase-card h3 {
        font-size: 1rem;
        padding: 0 14px;
    }

    .page-home .products-showcase-link {
        margin: 0 14px 16px;
        font-size: 0.88rem;
    }

    .page-home .industries-serve {
        padding: 40px 0 48px;
    }

    .page-home .industries-serve-label {
        font-size: 1.25rem;
        letter-spacing: 0.08em;
    }

    .page-home .industries-serve-title {
        font-size: 0.95rem;
    }

    .page-home .industries-serve-wrap {
        padding: 0 12px;
    }

    .page-home .industry-card {
        flex: 0 0 min(260px, calc(100vw - 80px));
        max-width: min(260px, calc(100vw - 80px));
    }

    .page-home .infra-detail-section {
        padding: 40px 0 48px;
    }

    .page-home .infra-detail-content {
        padding: 20px 18px 24px;
    }

    .page-home .infra-detail-text {
        font-size: 0.92rem;
    }

    .page-home .clients-label {
        font-size: 1.25rem;
    }

    .page-home .clients-slider .section-title {
        font-size: 0.95rem;
        padding: 0 12px;
    }

    .page-home .client-logo {
        width: 150px;
        height: 68px;
    }

    .page-home .clients-track {
        gap: 20px;
    }

    .page-home .testimonials-section {
        padding: 40px 12px 48px;
        min-height: 0;
    }

    .page-home .testimonials-heading {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }

    .page-home .testimonials-slider-wrap {
        flex-wrap: wrap;
        gap: 12px;
    }

    .page-home .testimonials-track-wrap {
        order: 1;
        flex: 1 1 100%;
        min-height: 160px;
    }

    .page-home .testimonials-prev,
    .page-home .testimonials-next {
        order: 2;
        width: 40px;
        height: 40px;
    }

    .page-home .testimonials-dots {
        order: 3;
        flex: 1 1 100%;
        margin-top: 8px;
    }

    .page-home .testimonial-quote {
        font-size: 0.92rem;
        line-height: 1.65;
        padding: 0 4px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .page-home .products-showcase-card,
    .page-home .industry-card {
        width: min(240px, calc(100vw - 64px));
    }
}
