
/* =====================================
   DCPL SOLAR BRAND PARTNERS
===================================== */

.dcpl-brand-section {
    width: 100%;
    padding: 65px 0;
    background: #f7f9f5;
    overflow: hidden;
}

.dcpl-brand-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

/* HEADING */

.dcpl-brand-heading {
    text-align: center;
    padding: 0 18px;
    margin-bottom: 38px;
}

.dcpl-brand-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 30px;
    background: #edf5dc;
    color: #6a9700;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dcpl-brand-heading h2 {
    margin: 15px 0 10px;
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 800;
    color: #17251b;
}

.dcpl-brand-heading h2 span {
    color: #82ad00;
}

.dcpl-brand-heading p {
    max-width: 600px;
    margin: auto;
    color: #6b746d;
    font-size: 14px;
    line-height: 1.7;
}

/* TICKER VIEWPORT */

.dcpl-brand-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
}

/* LEFT AND RIGHT FADE */

.dcpl-brand-viewport::before,
.dcpl-brand-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55px;
    z-index: 2;
    pointer-events: none;
}

.dcpl-brand-viewport::before {
    left: 0;
    background: linear-gradient(to right, #f7f9f5, transparent);
}

.dcpl-brand-viewport::after {
    right: 0;
    background: linear-gradient(to left, #f7f9f5, transparent);
}

/* MOVING TRACK */

.dcpl-brand-grid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: max-content;
    gap: 20px;
    animation: dcplBrandTicker 40s linear infinite;
    will-change: transform;
}

.dcpl-brand-grid:hover {
    animation-play-state: paused;
}

/* BRAND CARD */

.dcpl-brand-card {
    flex: 0 0 190px;
    width: 190px;
    height: 135px;
    box-sizing: border-box;
    padding: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    background: #fff;
    border: 1px solid #e6ebdf;
    border-radius: 13px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
    transition: .3s ease;
}

.dcpl-brand-card:hover {
    border-color: #8bb500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
}

/* LOGO AREA */

.dcpl-brand-logo {
    width: 100%;
    height: 75px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.dcpl-brand-logo img {
    display: block;
    width: 155px;
    height: 65px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.dcpl-brand-fallback {
    display: none;
    font-size: 18px;
    font-weight: 800;
    color: #263b25;
    text-align: center;
}

/* BRAND NAME */

.dcpl-brand-name {
    color: #354335;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* TICKER ANIMATION */

@keyframes dcplBrandTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* FOOTER */

.dcpl-brand-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 27px;
    padding: 0 15px;
    color: #64705e;
    font-size: 12px;
    text-align: center;
}

.dcpl-brand-footer span {
    color: #8bb500;
    font-size: 20px;
}

/* TABLET */

@media (max-width: 768px) {
    .dcpl-brand-section {
        padding: 50px 0;
    }

    .dcpl-brand-grid {
        gap: 15px;
        animation-duration: 35s;
    }

    .dcpl-brand-card {
        flex-basis: 160px;
        width: 160px;
        height: 120px;
    }

    .dcpl-brand-logo img {
        width: 135px;
        height: 58px;
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .dcpl-brand-heading {
        margin-bottom: 25px;
    }

    .dcpl-brand-heading p {
        font-size: 13px;
    }

    .dcpl-brand-grid {
        gap: 12px;
        animation-duration: 32s;
    }

    .dcpl-brand-card {
        flex-basis: 140px;
        width: 140px;
        height: 110px;
        padding: 10px;
    }

    .dcpl-brand-logo {
        height: 60px;
    }

    .dcpl-brand-logo img {
        width: 115px;
        height: 52px;
    }

    .dcpl-brand-name {
        font-size: 11px;
    }

    .dcpl-brand-viewport::before,
    .dcpl-brand-viewport::after {
        width: 25px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .dcpl-brand-grid {
        animation: none;
    }
}
