/* Homepage hero and content modules */
.dtp-hero-slider {
    --dtp-slide-gap: 0px;
    background: #d9e6ed;
}

.dtp-hero-slide a, .dtp-hero-slide picture {
    display: block;
    height: 100%;
}

.dtp-hero-slide img {
    width: 100%;
    height: 680px;
    object-fit: cover;
}

.dtp-hero-slider .dtp-slider-controls {
    position: absolute;
    bottom: 22px;
    right: max(32px,calc((100% - 1360px)/2));
    background: rgba(8,35,54,.68);
    padding: 8px 12px;
    border-radius: 40px;
    margin: 0;
}

.dtp-hero-slider .dtp-slider-controls > button {
    background: transparent;
    border-color: rgba(255,255,255,.4);
    color: #fff;
}

.dtp-hero-slider .dtp-slider-dots button {
    background: rgba(255,255,255,.6);
}

.dtp-hero-slider .dtp-slider-dots button[aria-current=true] {
    background: var(--dtp-green);
}

.dtp-hero-slide.dtp-current-slide img {
    animation: dtp-hero-zoom 6s ease-out both;
}

@keyframes dtp-hero-zoom {
    from {
        transform: scale(1.045);
    }

    to {
        transform: scale(1);
    }

}

.dtp-intro-grid {
    display: grid;
    grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
    gap: 46px;
    align-items: center;
}

.dtp-intro-visual {
    min-height: 350px;
    border-radius: var(--dtp-radius);
    background: linear-gradient(145deg,#073a65,#005ca8);
    color: #fff;
    padding: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    gap: 22px;
}

.dtp-intro-visual::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    border: 35px solid rgba(141,187,38,.32);
    transform: rotate(-30deg);
    border-radius: 30px;
    right: -75px;
    bottom: -85px;
    pointer-events: none;
}

.dtp-intro-visual .dtp-eyebrow {
    color: #e8f3ce;
}

.dtp-intro-visual h2 {
    max-width: 400px;
    font-size: 32px;
}

.dtp-intro-accent {
    display: flex;
    gap: 17px;
    align-items: center;
    color: #dcebf4;
    font-weight: 600;
}

.dtp-intro-accent i {
    font-size: 45px;
    color: #bce66c;
}

.dtp-intro-visual .dtp-button {
    border-color: var(--dtp-green);
    background: var(--dtp-green);
    color: #122b0a;
}

.dtp-intro-content h1 {
    margin-bottom: 15px;
}

/* Battery categories */
.dtp-home-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.dtp-home-product-card {
    flex: 0 0 calc((100% - 72px) / 5);
    min-width: 0;
    border: 1px solid var(--dtp-line);
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.dtp-home-product-card:hover {
    transform: translateY(-5px);
    border-color: var(--dtp-blue);
    box-shadow: var(--dtp-shadow);
}

.dtp-home-product-card > a {
    display: block;
    overflow: hidden;
    padding: 14px;
}

.dtp-home-product-card > a img {
    width: 100%;
    aspect-ratio: 1.15;
    object-fit: contain;
    transition: transform .4s;
}

.dtp-home-product-card:hover > a img {
    transform: scale(1.06);
}

.dtp-home-product-copy {
    padding: 15px 16px 18px;
    border-top: 1px solid #edf1f4;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.dtp-home-product-copy h3 {
    font-size: 18px;
    line-height: 1.35;
}

.dtp-home-product-copy p {
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dtp-home-product-copy .dtp-text-link {
    margin-top: auto;
    padding-top: 5px;
    font-size: 13px;
}

/* Compact strengths panel with vertical category tabs */
.dtp-strength-tabs {
    display: grid;
    grid-template-columns: minmax(210px, .24fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.dtp-strength-tabs .dtp-tab-buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
}

.dtp-strength-tabs .dtp-tab-buttons button {
    flex: 1;
    min-height: 59px;
    padding: 12px 14px;
    gap: 11px;
    font-size: 15px;
    text-align: left;
    border-radius: 7px;
    transition: background .2s, border-color .2s, color .2s;
}

.dtp-strength-tabs .dtp-tab-buttons button img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 5px;
    background: #eaf2f8;
    border-radius: 5px;
}

.dtp-strength-tabs .dtp-tab-buttons button[aria-selected=true] img {
    background: #fff;
}

.dtp-strength-tabs .dtp-tab-buttons button:hover:not([aria-selected=true]) {
    border-color: var(--dtp-blue);
    color: var(--dtp-blue);
}

.dtp-strength-tabs .dtp-tab-panels {
    min-width: 0;
}

.dtp-strength-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: 9px;
    overflow: hidden;
    min-height: 282px;
    height: 100%;
}

.dtp-strength-panel > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    aspect-ratio: 1.7;
}

.dtp-strength-copy {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.dtp-strength-copy h3 {
    font-size: 25px;
    margin-bottom: 12px;
}

.dtp-strength-copy .dtp-rich {
    width: 100%;
    font-size: 15px;
}

.dtp-strength-copy .dtp-rich > :last-child {
    margin-bottom: 0;
}

.dtp-strength-copy .dtp-button {
    margin-top: 18px;
}

/* Larger, proportionate application thumbnails */
.dtp-page-index .dtp-solution-feature {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
}

.dtp-page-index .dtp-solution-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 22px;
    background: #fff;
}

.dtp-page-index .dtp-solution-photo img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
}

.dtp-page-index .dtp-solution-copy {
    padding: 30px 34px;
}

.dtp-page-index .dtp-solution-examples a {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr) 16px;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: border-color .2s, background .2s;
}

.dtp-page-index .dtp-solution-examples a:hover {
    background: #f6f9fc;
    border-color: var(--dtp-blue);
}

.dtp-page-index .dtp-solution-examples img {
    width: 100%;
    height: 76px;
    object-fit: contain;
    border-radius: 4px;
    background: #f4f7f9;
}

.dtp-page-index .dtp-solution-examples strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 5px;
}

.dtp-page-index .dtp-solution-examples p {
    line-height: 1.55;
}

.dtp-process-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 15px;
}

.dtp-process-card {
    position: relative;
    padding: 20px 14px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: 8px;
}

.dtp-process-card > span {
    position: absolute;
    top: 12px;
    left: 13px;
    color: var(--dtp-blue);
    font-size: 13px;
    font-weight: 700;
}

.dtp-process-card img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    margin: 12px 0;
}

.dtp-process-card h3 {
    font-size: 15px;
}

.dtp-custom-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 35px;
    margin-top: 24px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: var(--dtp-radius);
    align-items: center;
}

.dtp-custom-grid > img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 7px;
}

.dtp-custom-grid h3 {
    font-size: 25px;
}

.dtp-custom-benefit {
    display: flex;
    gap: 15px;
    align-items: start;
    margin-block: 18px;
}

.dtp-custom-benefit img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.dtp-custom-benefit p {
    font-size: 14px;
    margin-top: 5px;
}

.dtp-review-card {
    background: #fff;
    border: 1px solid var(--dtp-line);
    border-radius: var(--dtp-radius);
    padding: 25px;
}

.dtp-review-person {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: center;
}

.dtp-review-person > img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.dtp-review-person > div {
    display: grid;
    gap: 4px;
}

.dtp-review-person span {
    font-size: 13px;
    color: var(--dtp-muted);
}

.dtp-review-person > div img {
    max-width: 100px;
    max-height: 18px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .dtp-hero-slide img {
        height: 460px;
    }

    .dtp-intro-grid {
        gap: 24px;
    }

    .dtp-home-products {
        gap: 15px;
    }

    .dtp-home-product-card {
        flex-basis: calc((100% - 30px) / 3);
    }

    .dtp-strength-tabs {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dtp-strength-tabs .dtp-tab-buttons {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dtp-strength-tabs .dtp-tab-buttons button {
        font-size: 13px;
        padding: 10px;
    }

    .dtp-strength-copy {
        padding: 23px;
    }

    .dtp-page-index .dtp-solution-copy {
        padding: 24px;
    }

    .dtp-page-index .dtp-solution-examples a {
        grid-template-columns: 90px minmax(0, 1fr) 12px;
        gap: 10px;
    }

    .dtp-page-index .dtp-solution-examples img {
        height: 65px;
    }

    .dtp-process-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

}

@media (max-width: 768px) {
    /* Keep the complete mobile banner at its original aspect ratio. */
    .dtp-hero-slider .dtp-slider-track {
        align-items: flex-start;
    }

    .dtp-hero-slide a,
    .dtp-hero-slide picture {
        height: auto;
    }

    .dtp-hero-slide img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .dtp-hero-slide.dtp-current-slide img {
        animation: none;
        transform: none;
    }

    /* Place controls below the image so they never cover banner content. */
    .dtp-hero-slider .dtp-slider-controls {
        position: static;
        background: transparent;
        border-radius: 0;
        margin: 0;
        padding: 10px 12px;
        gap: 12px;
    }

    .dtp-hero-slider .dtp-slider-controls > button {
        width: 29px;
        height: 29px;
        font-size: 17px;
        background: #fff;
        color: var(--dtp-blue);
        border-color: var(--dtp-line);
    }

    .dtp-hero-slider .dtp-slider-dots button {
        background: #a9bfce;
    }

    .dtp-hero-slider .dtp-slider-dots button[aria-current=true] {
        background: var(--dtp-green);
    }

    .dtp-intro-grid, .dtp-strength-panel, .dtp-custom-grid {
        grid-template-columns: 1fr;
    }

    .dtp-intro-visual {
        min-height: 260px;
        padding: 24px;
    }

    .dtp-intro-visual h2 {
        font-size: 26px;
    }

    .dtp-home-products {
        gap: 12px;
    }

    .dtp-home-product-card {
        flex-basis: calc((100% - 12px) / 2);
    }

    .dtp-strength-tabs .dtp-tab-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .dtp-strength-tabs .dtp-tab-buttons button {
        white-space: normal;
        min-width: 0;
        min-height: 54px;
    }

    .dtp-strength-tabs .dtp-tab-buttons button img {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .dtp-page-index .dtp-solution-feature {
        grid-template-columns: 1fr;
    }

    .dtp-page-index .dtp-solution-photo {
        padding: 12px;
        aspect-ratio: 16/10;
    }

    .dtp-page-index .dtp-solution-photo img {
        height: 100%;
        max-height: none;
    }

    .dtp-page-index .dtp-solution-copy {
        padding: 18px;
    }

    .dtp-page-index .dtp-solution-examples a {
        grid-template-columns: 86px minmax(0, 1fr) 10px;
        padding: 8px;
        gap: 9px;
    }

    .dtp-page-index .dtp-solution-examples img {
        height: 62px;
    }

    .dtp-page-index .dtp-solution-examples strong {
        font-size: 14px;
    }

    .dtp-home-product-card > a {
        padding: 9px;
    }

    .dtp-home-product-copy {
        padding: 12px;
    }

    .dtp-home-product-copy h3 {
        font-size: 16px;
    }

    .dtp-home-product-copy p {
        display: none;
    }

    .dtp-home-product-copy .dtp-text-link {
        font-size: 12px;
    }

    .dtp-strength-panel > img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16/10;
    }

    .dtp-strength-copy {
        padding: 20px;
    }

    .dtp-strength-copy h3 {
        font-size: 23px;
    }

    .dtp-process-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .dtp-custom-grid {
        padding: 16px;
        gap: 15px;
    }

}

/* Highlight the model finder without breaking the five-card layout. */
.dtp-home-product-card[data-category="580"] {
    border-color: #bed69b;
    border-top: 3px solid var(--dtp-green);
}

.dtp-home-product-card[data-category="580"] .dtp-home-product-copy {
    background: #f7faf2;
}

.dtp-home-product-card[data-category="580"] .dtp-text-link {
    color: var(--dtp-green-dark);
    gap: 6px;
}

.dtp-home-product-card[data-category="580"] .dtp-text-link:hover {
    color: var(--dtp-blue);
}
