/* ============================================================
   homenew.css — Home3 page styles
   ============================================================ */


/* --- Showcase sections --- */
.home3-showcase {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background: #fff;
}

.home3-showcase.chl-launch {
    min-height: 600px;
    padding: 78px 0 70px;
    background: url(/images/Kworth-website/chk_bg.webp);
    background-size: cover;
    background-position: center;
}

.chl-launch .container {
    max-width: 1200px;
}

.chl-launch-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(600px, 600px);
    gap: 44px;
    align-items: center;
    justify-content: center;
    margin: 0px auto;
}

.chl-launch::before {
    content: none;
}

.chl-launch::after {
    content: none;
}

.chl-launch-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin-left: -8px;
    color: #fff;
}

.chl-logo {
    display: block;
    width: 188px;
    height: auto;
    margin-bottom: 16px;
}

.chl-launch-content h2 {
    margin: 0 0 14px;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 32px;
    line-height: 1.22;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.chl-launch-content p {
    margin: 0;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    line-height: 1.58;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.chl-launch-media {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 560px;
}

.chl-car-image {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 14px 34px rgba(20, 32, 58, 0.18);
}

/* --- CHL right-side slideshow --- */
.chl-slideshow {
    position: relative;
    width: 100%;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: none !important;
    background: transparent !important;
    height: 500px;
}

.chl-slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.chl-slideshow-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
}

.chl-slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.chl-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.chl-slide-dot.active {
    background: #fff;
}

/* --- CHL icon link buttons --- */
.chl-link-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.chl-link-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 22px 8px 18px;
    background: rgba(220, 220, 220, 0.55) !important;
    border: 1px solid rgba(180, 180, 180, 0.4) !important;
    border-radius: 6px !important;
    color: #2a2a2a !important;
    text-decoration: none !important;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    line-height: 1.3;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chl-link-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2a2a2a !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.chl-link-btn img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(0.2);
}

.chl-link-btn:hover img {
    filter: brightness(0) invert(0.2);
}

/* --- Showcase background variants --- */
.home3-showcase.new-forklift {
    background: url('/images/background/ForkliktNew.png') center/100% 100% no-repeat;
    background-position: top;

}

.home3-showcase.used-forklift {
    background: url('/images/background/ForkliktOld.png') center/100% 100% no-repeat;
    background-position: top;
}

.home3-showcase.battery-products {
    background: url('/images/background/Lead-Acid%20Battery.png') center/cover no-repeat;
    background-position: top;
}

/* --- Section heading --- */
.home3-section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    text-align: center;
}

.home3-section-heading .kicker {
    margin-bottom: 8px;
    color: #f58220;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home3-section-heading h2 {
    margin: 0;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    text-transform: uppercase;
    font-size: 80px;
    line-height: 1;
    font-weight: 600;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#battery-products .home3-section-heading h2 {
    color: #1a2e5a;
}

.home3-section-heading p {
    max-width: 720px;
    margin: 12px auto 0;
    color: #4d5668;
    font-size: 17px;
    line-height: 1.7;
}

.chl-launch .home3-section-heading {
    text-align: left;
    margin-bottom: 0;
}

.chl-launch .home3-section-heading h2,
.chl-launch .home3-section-heading p,
.chl-launch .home3-section-heading .kicker {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* --- Action buttons --- */
.home3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 24px;
    background: #f58220;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(245, 130, 32, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home3-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(245, 130, 32, 0.35);
    text-decoration: none;
}

.home3-btn.secondary {
    background: #24345d;
    box-shadow: 0 8px 18px rgba(36, 52, 93, 0.22);
}

/* --- Product carousel --- */
.home3-carousel-wrap {
    position: relative;
    max-width: 1124px;
    margin: 0 auto;
    padding: 0 72px;
}

.home3-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 18px;
    scrollbar-width: none;
}

.home3-carousel::-webkit-scrollbar {
    display: none;
}

.home3-product-card {
    flex: 0 0 calc((100% - 44px) / 3);
    scroll-snap-align: start;
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 16px 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    color: #1f1f1f;
    text-decoration: none;
}

.home3-product-card:hover {
    color: #1f1f1f;
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
    text-decoration: none;
}

.home3-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 8px 0 20px;
}

.home3-product-image img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.home3-product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: center;
}

.home3-product-title {
    text-align: center;
    font-weight: 800;
    color: #1f1f1f;
    font-size: 1.3rem;
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}

.home3-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.home3-spec-item {
    background: #f4f4f4;
    border-radius: 14px;
    padding: 12px 10px;
    font-size: 0.88rem;
    color: #444;
    text-align: center;
    line-height: 1.4;
}

.home3-card-cta {
    display: block;
    margin-top: auto;
    text-align: center;
    padding: 14px 20px;
    background: linear-gradient(90deg, #F18E53 0%, #FFB217 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(241, 142, 83, 0.3);
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home3-card-cta:hover {
    filter: brightness(1.05);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 178, 23, 0.4);
}

.home3-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #24345d;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(20, 32, 58, 0.2);
    transform: translateY(-50%);
    cursor: pointer;
}

.home3-carousel-btn.prev {
    left: 4px;
}

.home3-carousel-btn.next {
    right: 4px;
}

.home3-view-all {
    text-align: center;
    margin-top: 18px;
}

/* --- Tablet: 2 cards per row --- */
@media (max-width: 991px) and (min-width: 768px) {
    .home3-carousel-wrap {
        padding: 0 52px;
    }

    .home3-product-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }
}

/* --- Mobile: 1 card slideshow --- */
@media (max-width: 767px) {
    .home3-carousel-wrap {
        padding: 0 44px;
        overflow: hidden;
    }

    .home3-carousel {
        flex-direction: row;
        gap: 0;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding: 6px 0 14px;
    }

    .home3-product-card {
        flex: 0 0 100%;
        width: 100%;
        border-radius: 20px;
        padding: 16px 16px 16px;
        scroll-snap-align: center;
    }

    .home3-product-image {
        min-height: 180px;
        padding: 8px 0 16px;
    }

    .home3-product-image img {
        max-height: 180px;
    }

    .home3-product-title {
        font-size: 1.1rem;
        margin: 0 0 12px;
    }

    /* Spec: 2 columns */
    .home3-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }

    .home3-spec-item {
        padding: 10px 8px;
        font-size: 0.88rem;
        border-radius: 12px;
        text-align: center;
    }

    .home3-card-cta {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .home3-carousel-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .home3-carousel-btn.prev {
        left: 2px;
    }

    .home3-carousel-btn.next {
        right: 2px;
    }
}

.home3-view-all .home3-btn {
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    background: url('/images/images/background/CHL/button2.png') center/100% 100% no-repeat;
    box-shadow: none;
}

.home3-intro-image {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Battery tab buttons --- */
.battery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.battery-tab-btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2.5px solid #24345d;
    background: #fff;
    color: #24345d;
    transition: background 0.2s, color 0.2s;
}

.battery-tab-btn.active {
    background: #24345d;
    color: #fff;
}

.battery-tab-btn:not(.active):hover {
    background: rgba(36, 52, 93, 0.08);
}

.battery-tab-panel {
    display: none;
}

.battery-tab-panel.active {
    display: block;
}

/* --- Battery catalog section --- */
.home3-book-section {
    padding: 78px 0 82px;
    background: linear-gradient(180deg, #e8f4fc 0%, #f0f8ff 60%, #ffffff 100%);
}

.home3-book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.home3-book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    box-shadow: 0 4px 24px rgba(25, 100, 180, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home3-book-title {
    margin-bottom: 20px;
    color: #3bb3f0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
}

.home3-book-title span {
    display: block;
    margin-top: 2px;
    color: #1a1a2e;
    font-size: 22px;
}

.home3-book-item img {
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.home3-book-item:hover {
    text-decoration: none;
    box-shadow: 0 12px 36px rgba(25, 100, 180, 0.16);
    transform: translateY(-4px);
}

.home3-book-item:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 8px 14px rgba(25, 39, 63, 0.12));
}

.home3-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 14px 36px;
    background: #3bb3f0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.4px;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
    max-width: 220px;
}

.home3-book-btn i {
    font-size: 18px;
}

.home3-book-item:hover .home3-book-btn {
    background: #1a96d4;
}

/* --- Listmenu section --- */
#listmenu .parallax-box img {
    max-width: 100%;
    height: auto !important;
}


/* --- About section --- */
.about-section .paragraph {
    line-height: 1.65;
    font-family: 'Noto Sans Thai';
    font-size: 16px;
}

.about-section .about-image img {
    max-width: 100%;
    height: auto !important;
}

/* --- Responsive: Tablet (≤991px) --- */
@media (max-width: 991px) {
    .home3-showcase.chl-launch {
        padding: 56px 0;
    }

    .chl-launch-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .chl-launch-content {
        max-width: none;
        margin-left: 0;
    }

    .chl-slideshow,
    .chl-slideshow-track img {
        height: 380px;
    }
}

/* --- Responsive: Mobile (≤767px) --- */
@media (max-width: 767px) {
    .home3-showcase {
        padding: 40px 0;
    }

    .home3-section-heading h2 {
        font-size: 40px;
    }

    /* CHL section */
    .home3-showcase.chl-launch {
        padding: 40px 0;
    }

    .chl-launch-content {
        text-align: center;
    }

    .chl-launch-content h2 {
        font-size: 22px;
    }

    .chl-launch-content p {
        font-size: 13px;
    }

    .chl-logo {
        width: 140px;
        margin: 0 auto 14px;
        display: block;
    }

    .chl-link-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .chl-link-btn {
        padding: 16px 6px 14px;
        font-size: 12px;
    }

    .chl-link-btn img {
        width: 34px;
        height: 34px;
    }

    .chl-slideshow,
    .chl-slideshow-track img {
        height: 240px;
    }

    /* General */
    .home3-actions {
        justify-content: center;
    }

    /* Battery */
    .home3-book-section {
        padding: 42px 0;
    }

    .home3-book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .home3-book-item {
        padding: 20px 16px 20px;
    }

    .home3-book-title {
        font-size: 15px;
    }

    .home3-book-title span {
        font-size: 14px;
    }

    .home3-book-btn {
        font-size: 13px;
        padding: 11px 20px;
    }

    .battery-tab-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
}

/* --- Responsive: Small mobile (≤480px) --- */
@media (max-width: 480px) {
    .home3-section-heading h2 {
        font-size: 32px;
    }

    .home3-book-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .battery-tabs {
        flex-direction: column;
        align-items: center;
    }
}
