<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">

<?php
require_once dirname(__DIR__, 1) . '/inc/site.php';

function wsAboutMediaUrl(string $path): string {
    $parts = explode('/', $path);
    $encoded = [];

    foreach ($parts as $part) {
        $encoded[] = rawurlencode($part);
    }

    return implode('/', $encoded);
}

function wsAboutLoadImages(string $relativeDir): array {
    $absDir = SITE_ROOT . '/' . trim($relativeDir, '/');
    if (!is_dir($absDir)) {
        return [];
    }

    $matches = glob($absDir . '/*.{jpg,jpeg,png,JPG,JPEG,PNG,webp,WEBP}', GLOB_BRACE) ?: [];
    natsort($matches);

    $base = trim($relativeDir, '/') . '/';
    $images = [];

    foreach (array_values($matches) as $file) {
        $images[] = [
            'src' => $base . basename($file),
            'alt' => preg_replace('/\s+/', ' ', trim(preg_replace('/[_\-]+/', ' ', pathinfo($file, PATHINFO_FILENAME)))),
        ];
    }

    return $images;
}

function wsAboutChunkSlides(array $images, int $perSlide): array {
    if ($perSlide < 1 || $images === []) {
        return [];
    }

    return array_chunk($images, $perSlide);
}

$wsAboutDealerImages = wsAboutLoadImages('assets/images/about/dealers');
$wsAboutSubscriberImages = wsAboutLoadImages('assets/images/subscribers');
$wsAboutCsrImages = wsAboutLoadImages('assets/images/csr');

// Ensure newest dealer photos are always included in the gallery.
$wsAboutDealerRequired = [
    'Ally Azran Holding Sdn Bhd.jpeg',
    'Bino Car Trading.jpeg',
    'Bukit Jalil Auto City .jpeg',
    'Fz Prestige Auto (M) Sdn Bhd.jpeg',
    'Jaya Wawasan Motor Sdn Bhd.jpeg',
    'JS Car Dealership Sdn Bhd.jpeg',
    'YLT Auto World Sdn Bhd.jpeg',
];

$wsAboutDealerExisting = [];
foreach ($wsAboutDealerImages as $image) {
    $wsAboutDealerExisting[$image['src']] = true;
}

foreach ($wsAboutDealerRequired as $fileName) {
    $relativePath = 'assets/images/about/dealers/' . $fileName;
    if (!is_file(SITE_ROOT . '/' . $relativePath)) {
        continue;
    }
    if (isset($wsAboutDealerExisting[$relativePath])) {
        continue;
    }
    $wsAboutDealerImages[] = [
        'src' => $relativePath,
        'alt' => preg_replace('/\s+/', ' ', trim(preg_replace('/[_\-]+/', ' ', pathinfo($fileName, PATHINFO_FILENAME)))),
    ];
    $wsAboutDealerExisting[$relativePath] = true;
}

$wsAboutDealerSlides = wsAboutChunkSlides($wsAboutDealerImages, 9);
$wsAboutCsrSlides = wsAboutChunkSlides($wsAboutCsrImages, 6);

$translation_script = 'assets/translation/about_translation.js';
ws_include('inc/head.php');
?>

<body id="about_page" class="home page-template page-template-home-panels page-template-home-panels-php page page-id-45 responsive layout-full no-js has-sidebar has-menu-search page-layout-no-sidebar not-default-page mobilenav">

<div id="page-wrapper">
    <?php ws_include('inc/header.php'); ?>

    <div id="banner" class="container-fluid">
        <div class="row">
            <div class="col-md-12 p-0">
                <img src="assets/images/banners/banner-7.jpg" alt="About Warranty Smart">
            </div>
        </div>
    </div>

    <section class="section about-intro">
        <div class="container">
            <header class="ws-section-header ws-section-header--center">
                <h2 class="ws-section-header__title">About <em class="ws-section-header__accent">SMART</em></h2>
            </header>
            <p>
                Warranty Smart is a vehicle warranty company providing extended warranty programs that are underwritten by Pacific &amp; Orient for cars without warranty; be it new, reconditioned or used second hand cars. Established in Malaysia since 2013, we are currently the most extensive vehicle warranty provider in South East Asia with offices and operations in Malaysia &amp; Indonesia. The current head office is situated in Petaling Jaya, Malaysia whereas the other regional office is situated in Jakarta, Indonesia. Alongside with our extended warranty programs, we consistently cater a series of after-sales-services to our car dealers and vehicle owners. These services include 24hrs nationwide towing, call center for technical support, personalized claim advisors, speed claim system and nationwide panel workshops coverage.
            </p>
            <header class="ws-section-header ws-section-header--center about-objective-header">
                <h2 class="ws-section-header__title">Objective &amp; <em class="ws-section-header__accent">GOAL</em></h2>
            </header>
            <div class="about-intro__figure">
                <img
                    src="<?php echo htmlspecialchars(wsAboutMediaUrl('assets/images/about/about-info.jpg'), ENT_QUOTES, 'UTF-8'); ?>"
                    alt="Warranty Smart objective and goal"
                    loading="lazy"
                    decoding="async">
            </div>
        </div>
    </section>

    <section class="section why-section">
        <div class="container">
            <header class="ws-section-header ws-section-header--center">
                <h2 class="ws-section-header__title">Why <em class="ws-section-header__accent">WARRANTY SMART?</em></h2>
            </header>
            <p>Founded in 2013, Warranty Smart has built a reputation as a leader in the warranty industry. With years of experience in the reconditioned and used car market, we understand the importance of comprehensive coverage and reliable service.</p>

            <div class="stats-row">
                <div class="stat-box">
                    <img class="stat-box__icon" src="<?php echo htmlspecialchars(wsAboutMediaUrl('assets/images/about/stats/icon-founded.svg'), ENT_QUOTES, 'UTF-8'); ?>" alt="" width="64" height="64" decoding="async">
                    <div class="stat-box__text">
                        <h3>2013</h3>
                        <p>Firm is founded</p>
                    </div>
                </div>
                <div class="stat-box">
                    <img class="stat-box__icon" src="<?php echo htmlspecialchars(wsAboutMediaUrl('assets/images/about/stats/icon-panels.svg'), ENT_QUOTES, 'UTF-8'); ?>" alt="" width="64" height="64" decoding="async">
                    <div class="stat-box__text">
                        <h3>300+</h3>
                        <p>Panels around Malaysia</p>
                    </div>
                </div>
                <div class="stat-box">
                    <img class="stat-box__icon" src="<?php echo htmlspecialchars(wsAboutMediaUrl('assets/images/about/stats/icon-subscribers.svg'), ENT_QUOTES, 'UTF-8'); ?>" alt="" width="64" height="64" decoding="async">
                    <div class="stat-box__text">
                        <h3>210k+</h3>
                        <p>Warranty subscribers</p>
                    </div>
                </div>
                <div class="stat-box">
                    <img class="stat-box__icon" src="<?php echo htmlspecialchars(wsAboutMediaUrl('assets/images/about/stats/icon-employees.svg'), ENT_QUOTES, 'UTF-8'); ?>" alt="" width="64" height="64" decoding="async">
                    <div class="stat-box__text">
                        <h3>60+</h3>
                        <p>Employees</p>
                    </div>
                </div>
            </div>

            <p>
                At Warranty Smart, we are committed to staying ahead of the curve by embracing new technology, expanding our partner network, and continuously enhancing our coverage offerings. We are proud to lead the way in automotive warranty, setting the standard for protection and customer satisfaction.
            </p>

            <div class="why-section__figure">
                <img
                    src="<?php echo htmlspecialchars(wsAboutMediaUrl('assets/images/about/why.jpg'), ENT_QUOTES, 'UTF-8'); ?>"
                    alt="Why choose Warranty Smart"
                    loading="lazy"
                    decoding="async">
            </div>
        </div>
    </section>

    <section class="section dealer-program">
        <div class="container dealer-grid">
            <div class="dealer-left">
                <header class="ws-section-header">
                    <p class="dealer-program__kicker">Dealers Program</p>
                    <h2 class="ws-section-header__title"><em class="ws-section-header__accent">CUSTOMIZABILITY</em></h2>
                </header>
                <p>
                    Each warranty program has its own benefits to businesses and car owners alike. What sets Warranty Smart apart from everyone else is that we are able to design a custom plan to suit to your business needs.
                </p>
            </div>

            <div class="dealer-right">
                <div class="dealer-item">
                    <span>1</span>
                    <div>
                        <h4>WARRANTY COVERED COMPONENTS</h4>
                        <p>With an extensive coverage parts list, We are able to customize a plan to your needs. Pick and choose what coverage suit your needs the most and We will come up with plans that are suitable for your car dealership.</p>
                    </div>
                </div>

                <div class="dealer-item">
                    <span>2</span>
                    <div>
                        <h4>WARRANTY PERIOD</h4>
                        <p>Generally, all our plans cover a minimum of 1year/30,000km warranty period. We are able to adjust this accordingly to your needs, may it be 2 years, or any period; up to a maximum limit of 15 years age for each vehicle, from its year of make. Unlimited Mileage coverage is available too!</p>
                    </div>
                </div>

                <div class="dealer-item">
                    <span>3</span>
                    <div>
                        <h4>WARRANTY CLAIMS LIMITS</h4>
                        <p>Every extended warranty program has its respective Per Claim &amp; Total Aggregate Claimable amounts. The claims amount is directly dependent on the premium negotiated. As such we are able to adjust the claims limit accordingly.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section class="ws-about-section ws-about-galleries" aria-label="Photo galleries">
        <div class="container content-padding">
            <div class="ws-about-gallery-block ws-about-gallery-block--dealers" aria-labelledby="ws-about-dealers-title">
                <header class="ws-section-header ws-section-header--center">
                    <h2 id="ws-about-dealers-title" class="ws-section-header__title">Trusted by <em class="ws-section-header__accent">NATIONWIDE</em> dealers</h2>
                </header>
                <p class="ws-about-copy">Warranty Smart is the preferred warranty partner for car dealers across Malaysia.</p>
                <p class="ws-about-copy">With over 70% of Malaysia’s dealer network choosing Warranty Smart, our programs are widely recognised for reliability, reflecting strong market confidence and familiarity — giving car buyers added confidence and peace of mind in their warranty choice. Trusted by car dealers across Malaysia, Warranty Smart is a widely adopted warranty solution in the automotive market.</p>

                <?php if (!empty($wsAboutDealerSlides)) : ?>
                <div class="ws-photo-carousel" data-ws-grid-carousel aria-roledescription="carousel" aria-label="Dealer gallery">
                    <div class="ws-photo-carousel__viewport">
                        <div class="ws-photo-carousel__track">
                            <?php foreach ($wsAboutDealerSlides as $slideIndex => $slideImages) : ?>
                            <div
                                class="ws-photo-carousel__slide"
                                role="group"
                                aria-roledescription="slide"
                                aria-label="<?php echo (int) ($slideIndex + 1); ?> of <?php echo count($wsAboutDealerSlides); ?>">
                                <ul class="ws-photo-grid ws-photo-grid--3x3">
                                    <?php foreach ($slideImages as $image) : ?>
                                    <li class="ws-photo-grid__item">
                                        <img
                                            src="<?php echo htmlspecialchars(wsAboutMediaUrl($image['src']), ENT_QUOTES, 'UTF-8'); ?>"
                                            alt="<?php echo htmlspecialchars($image['alt'], ENT_QUOTES, 'UTF-8'); ?>"
                                            loading="lazy"
                                            decoding="async">
                                    </li>
                                    <?php endforeach; ?>
                                </ul>
                            </div>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>
                <?php endif; ?>
            </div>

            <div class="ws-about-gallery-block ws-about-gallery-block--subscribers" aria-labelledby="ws-about-subscribers-title">
                <header class="ws-section-header ws-section-header--center">
                    <h2 id="ws-about-subscribers-title" class="ws-section-header__title">Serving over <em class="ws-section-header__accent">210K+</em> subscribers nationwide</h2>
                </header>

                <?php if (!empty($wsAboutSubscriberImages)) : ?>
                <div class="ws-about-subscribers__marquee ws-dealers__marquee">
                    <div class="ws-about-subscribers__track ws-dealers__track">
                        <?php foreach (array_merge($wsAboutSubscriberImages, $wsAboutSubscriberImages) as $image) : ?>
                        <div class="ws-about-subscribers__slide ws-dealers__slide">
                            <img
                                src="<?php echo htmlspecialchars(wsAboutMediaUrl($image['src']), ENT_QUOTES, 'UTF-8'); ?>"
                                alt="<?php echo htmlspecialchars($image['alt'], ENT_QUOTES, 'UTF-8'); ?>"
                                loading="lazy"
                                decoding="async">
                        </div>
                        <?php endforeach; ?>
                    </div>
                </div>
                <?php endif; ?>
            </div>

            <div class="ws-about-gallery-block ws-about-gallery-block--csr ws-about-csr" aria-labelledby="ws-about-csr-title">
                <header class="ws-section-header ws-section-header--center">
                    <h2 id="ws-about-csr-title" class="ws-section-header__title">Corporate social <em class="ws-section-header__accent">RESPONSIBILITY</em></h2>
                </header>
                <p class="ws-about-copy ws-about-copy--left">
                    At Warranty Smart, we believe in giving back to the community. Each year we organize annual CSR initiatives to support those in need.
                </p>
                <ul class="ws-about-csr__list">
                    <li>Charitable donations to underprivileged communities</li>
                    <li>Volunteering at orphanages and old folks’ homes</li>
                    <li>Supporting children with Down Syndrome organizations</li>
                </ul>

                <?php if (!empty($wsAboutCsrSlides)) : ?>
                <div class="ws-photo-carousel" data-ws-grid-carousel aria-roledescription="carousel" aria-label="Corporate social responsibility gallery">
                    <div class="ws-photo-carousel__viewport">
                        <div class="ws-photo-carousel__track">
                            <?php foreach ($wsAboutCsrSlides as $slideIndex => $slideImages) : ?>
                            <div
                                class="ws-photo-carousel__slide"
                                role="group"
                                aria-roledescription="slide"
                                aria-label="<?php echo (int) ($slideIndex + 1); ?> of <?php echo count($wsAboutCsrSlides); ?>">
                                <ul class="ws-photo-grid ws-photo-grid--3x2">
                                    <?php foreach ($slideImages as $image) : ?>
                                    <li class="ws-photo-grid__item">
                                        <img
                                            src="<?php echo htmlspecialchars(wsAboutMediaUrl($image['src']), ENT_QUOTES, 'UTF-8'); ?>"
                                            alt="<?php echo htmlspecialchars($image['alt'], ENT_QUOTES, 'UTF-8'); ?>"
                                            loading="lazy"
                                            decoding="async">
                                    </li>
                                    <?php endforeach; ?>
                                </ul>
                            </div>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>
                <?php endif; ?>
            </div>
        </div>
    </section>

    <?php ws_include('inc/footer.php'); ?>
</div>

<style>
#about_page #banner.container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
    overflow: hidden;
}

#about_page #banner .row {
    margin-left: 0;
    margin-right: 0;
}

#about_page #banner .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

#about_page #banner img {
    display: block;
    width: 100%;
    height: clamp(150px, 20vw, 280px);
    object-fit: cover;
    object-position: center;
}

#about_page .section {
    padding: clamp(2.5rem, 5vw, 4.375rem) 0;
}

#about_page .section.about-intro,
#about_page .section.why-section {
    padding-top: clamp(2.5rem, 5vw, 4.375rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.375rem);
}

#about_page .section.about-intro .container,
#about_page .section.why-section .container {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 2.75rem);
}

#about_page .section.dealer-program {
    padding-bottom: 36px;
}

#about_page .section .ws-section-header {
    margin-bottom: 0;
}

#about_page .about-intro .container > p,
#about_page .why-section .container > p {
    margin: 0;
}

#about_page .about-objective-header {
    margin-top: 0;
}

#about_page .dealer-program__kicker {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dark-blue, #002245);
}

#about_page .dealer-program .ws-section-header {
    margin-bottom: 16px;
    text-align: left;
}

#about_page .about-intro__figure,
#about_page .why-section__figure {
    text-align: center;
}

#about_page .about-intro__figure img,
#about_page .why-section__figure img {
    width: 100%;
    max-width: 900px;
    height: auto;
}

#about_page .dealer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

#about_page .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0 auto;
    width: 100%;
    max-width: 56rem;
    justify-items: center;
}

#about_page .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0;
    background: transparent;
    text-align: center;
    width: 100%;
    max-width: 12rem;
}

#about_page .stat-box__text {
    text-align: center;
}

#about_page .stat-box__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

#about_page .stat-box__text h3 {
    margin: 0 0 4px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #002245;
}

#about_page .stat-box__text p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(0, 34, 69, 0.78);
}

#about_page .dealer-right {
    position: relative;
    background: #004ea2;
    color: white;
    border-radius: 25px;
    padding: 36px 36px 36px 60px;
}

#about_page .dealer-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

#about_page .dealer-item:last-child {
    margin-bottom: 0;
}

#about_page .dealer-item span {
    flex-shrink: 0;
    position: relative;
    left: -36px;
    margin-right: -20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: #ffc400;
    color: #000;
    font-size: 1.9rem;
    font-weight: 700;
}

#about_page .dealer-item h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

#about_page .dealer-item div p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

#about_page .ws-about-section.ws-about-galleries {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

#about_page .ws-about-gallery-block + .ws-about-gallery-block {
    margin-top: clamp(5.5rem, 10vw, 7.5rem);
    padding-top: clamp(0.5rem, 1vw, 0.75rem);
}

#about_page .ws-about-galleries .ws-section-header {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

#about_page .ws-about-galleries .ws-section-header__title {
    margin-bottom: 0;
}

#about_page .ws-about-galleries .ws-photo-carousel,
#about_page .ws-about-galleries .ws-about-subscribers__marquee {
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

#about_page .ws-about-galleries .ws-about-copy {
    margin-bottom: clamp(0.65rem, 1.25vw, 1rem);
}

#about_page .ws-about-galleries .ws-photo-grid {
    gap: clamp(0.625rem, 1.25vw, 0.9375rem);
}

#about_page .ws-section-header--center {
    text-align: center;
}

#about_page .ws-about-copy {
    max-width: 100%;
    margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);
    font-family: 'Avenir Next LT Pro Regular', Montserrat, Arial, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.65;
    color: rgba(0, 34, 69, 0.78);
    text-align: left;
}

#about_page .ws-about-copy--left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: 100%;
}

#about_page .ws-about-galleries .ws-about-csr .ws-about-copy--left,
#about_page .ws-about-galleries .ws-about-csr__list {
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
}

#about_page .ws-about-galleries .ws-about-csr__list {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding-left: 1.25rem;
    font-family: 'Avenir Next LT Pro Regular', Montserrat, Arial, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.65;
    color: rgba(0, 34, 69, 0.78);
}

#about_page .ws-about-csr__list li {
    margin-bottom: 0.45rem;
}

#about_page .ws-photo-carousel {
    width: 100%;
    margin-top: 0.5rem;
}

#about_page .ws-photo-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

#about_page .ws-photo-carousel__track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#about_page .ws-photo-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
}

#about_page .ws-photo-grid {
    display: grid;
    gap: clamp(0.75rem, 1.5vw, 1.15rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 992px) {
    #about_page .ws-photo-grid--3x3,
    #about_page .ws-photo-grid--3x2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    /* Mobile: 2 columns × 3 rows */
    #about_page .ws-photo-grid--3x3,
    #about_page .ws-photo-grid--3x2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    #about_page .ws-photo-grid--3x3 .ws-photo-grid__item:nth-child(n + 7) {
        display: none;
    }
}

#about_page .ws-photo-grid__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

#about_page .ws-about-subscribers__marquee {
    margin-top: 0.25rem;
}

#about_page .ws-about-subscribers__track {
    gap: clamp(0.625rem, 1.25vw, 0.9375rem);
}

#about_page .ws-dealers__marquee.ws-about-subscribers__marquee .ws-dealers__slide img,
#about_page .ws-about-subscribers__slide img {
    display: block;
    width: auto !important;
    height: clamp(14rem, 26vw, 19rem) !important;
    min-height: 14rem !important;
    max-width: min(34rem, 92vw) !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 6px;
    object-fit: cover !important;
}

@media (max-width: 991px) {
    #about_page #banner.container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #about_page #banner .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #about_page #banner img {
        height: clamp(120px, 28vw, 200px);
    }

    #about_page .dealer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #about_page .dealer-right {
        padding: 1.75rem 1.25rem 1.75rem 3.25rem;
        border-radius: 18px;
    }

    #about_page .dealer-item {
        gap: 1.125rem;
    }

    #about_page .dealer-item span {
        left: -16px;
        margin-right: -4px;
    }

    #about_page .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 28rem;
    }

    #about_page .stat-box {
        max-width: none;
    }
}

@media (max-width: 768px) {
    #about_page .dealer-program__kicker {
        font-size: 0.7rem;
    }

    #about_page .dealer-program__title {
        font-size: 1rem;
    }

    #about_page .stat-value {
        font-size: 2rem;
    }

    #about_page .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    #about_page #banner img {
        height: clamp(105px, 32vw, 165px);
    }

    #about_page .dealer-right {
        padding: 1.5rem 1rem 1.5rem 2.85rem;
    }

    #about_page .dealer-item span {
        left: -12px;
        margin-right: 0;
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.5rem;
    }

    #about_page .section .ws-section-header {
        margin-bottom: 0 !important;
    }

    #about_page .stats-row {
        grid-template-columns: 1fr;
        max-width: 14rem;
    }

    #about_page .ws-dealers__marquee.ws-about-subscribers__marquee .ws-dealers__slide img,
    #about_page .ws-about-subscribers__slide img {
        height: clamp(11rem, 38vw, 15rem) !important;
        min-height: 11rem !important;
        max-width: min(28rem, 92vw) !important;
    }
}

@media (max-width: 480px) {
    #about_page .dealer-grid {
        gap: 12px;
    }

    #about_page .dealer-program__title {
        font-size: 0.9rem;
    }

    #about_page .dealer-cell {
        padding: 10px 8px;
    }
}
</style>

<script>
(function () {
    document.querySelectorAll('[data-ws-grid-carousel]').forEach(function (root) {
        var track = root.querySelector('.ws-photo-carousel__track');
        var slides = track ? Array.prototype.slice.call(track.querySelectorAll('.ws-photo-carousel__slide:not([data-ws-grid-clone])')) : [];
        if (!track || slides.length <= 1) {
            return;
        }

        var clone = slides[0].cloneNode(true);
        clone.setAttribute('data-ws-grid-clone', 'true');
        clone.setAttribute('aria-hidden', 'true');
        track.appendChild(clone);

        var slideCount = slides.length;
        var index = 0;
        var timer = null;
        var isAnimating = false;
        var intervalMs = 3500; /* match homepage featured panels */

        function goTo(nextIndex, animate) {
            isAnimating = animate !== false;
            track.style.transition = animate === false ? 'none' : '';
            index = nextIndex;
            track.style.transform = 'translate3d(-' + (index * 100) + '%, 0, 0)';

            if (animate === false) {
                track.offsetHeight;
                track.style.transition = '';
                isAnimating = false;
            }
        }

        function nextSlide() {
            if (isAnimating || index >= slideCount) {
                return;
            }
            goTo(index + 1, true);
        }

        track.addEventListener('transitionend', function (event) {
            if (event.target !== track || event.propertyName !== 'transform') {
                return;
            }

            isAnimating = false;

            if (index === slideCount) {
                goTo(0, false);
            }
        });

        function startAutoplay() {
            if (timer) {
                window.clearInterval(timer);
            }
            timer = window.setInterval(nextSlide, intervalMs);
        }

        function stopAutoplay() {
            if (timer) {
                window.clearInterval(timer);
                timer = null;
            }
        }

        root.addEventListener('mouseenter', stopAutoplay);
        root.addEventListener('mouseleave', startAutoplay);
        root.addEventListener('focusin', stopAutoplay);
        root.addEventListener('focusout', startAutoplay);

        goTo(0, false);
        startAutoplay();
    });
})();
</script>

<?php ws_include('inc/scroll-to-top.php'); ?>

</body>
</html>
