/* Product Banners Section */
.sdpb-banners-section {
    margin: 0;
    padding: 70px 0;
    background: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.sdpb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.sdpb-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #154681;
    margin-bottom: 50px;
    position: relative;
}

.sdpb-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #a3d7ff;
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Grid Layout */
.sdpb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Item Sizes */
.sdpb-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    aspect-ratio: 765 / 455; /* 765x455 landscape */
}

.sdpb-item--large { /* no special large tile; keep uniform */
    grid-column: auto;
    grid-row: auto;
}

.sdpb-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.sdpb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.sdpb-image {
    width: 100%;
    height: 100%;
    background-size: contain; /* show the whole 2:3 image */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #f6f8fb; /* subtle backdrop behind transparent areas */
}

/* Overlay */
.sdpb-overlay {
    position: absolute;
    inset: 0;
    background: transparent; /* remove dark cover */
    display: flex;
    align-items: flex-end;
    padding: 18px 18px 46px; /* push content higher on all devices */
    transition: all 0.3s ease;
}

.sdpb-item:hover .sdpb-overlay { background: transparent; }

.sdpb-content {
    width: 100%;
    color: #0f1f2d; /* readable over clear image */
    row-gap: 12px; /* more space between text and button */
}

/* Content alignment and safe width */
.sdpb-content { display: flex; flex-direction: column; max-width: 55%; }
.sdpb-content--left { margin-right: auto; margin-left: 18px; text-align: left; }
.sdpb-content--right { margin-left: auto; margin-right: 18px; text-align: right; align-items: flex-end; }

@media (max-width: 768px) {
    .sdpb-content { max-width: 55%; }
}

/* Prevent button overflow when title wraps */
.sdpb-content .sdpb-cta { align-self: flex-start; }
.sdpb-content--right .sdpb-cta { align-self: flex-end; }

/* Title/CTA positioning for clarity on clear images */
.sdpb-product-title { margin: 0 0 12px; font-size: 1.0rem; font-weight: 700; }
.sdpb-price { margin-bottom: 6px; }
.sdpb-desc { margin: 0 0 8px; font-size: 0.9rem; color: #4b5563; line-height: 1.4; }
.sdpb-cta { margin-top: 12px; }
.sdpb-cta { display: inline-flex; align-items: center; gap: 6px; background: rgba(21,70,129,0.9); color: #fff; padding: 10px 12px; border-radius: 10px; }
.sdpb-item:hover .sdpb-cta { background: #154681; }

/* Responsive: two columns on tablets/phones */
@media (max-width: 1000px) { .sdpb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sdpb-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .sdpb-item { border-radius: 12px; } }

.sdpb-product-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #0f1f2d; /* dark text over clear image */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere; /* allow long words to wrap */
    word-break: break-word;  /* ensure wrap on small screens */
    hyphens: auto;
}

.sdpb-item--large .sdpb-product-title {
    font-size: 1.0rem;
    margin-bottom: 15px;
}

.sdpb-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #154681;
}

.sdpb-item--large .sdpb-price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.sdpb-price del { color: #6b7280; font-weight: 400; margin-right: 8px; }

.sdpb-price ins { text-decoration: none; color: #154681; }

.sdpb-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    padding: 9px 12px;
    background: #154681;
    border: 0;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
}

.sdpb-item:hover .sdpb-cta { background: #0f3564; transform: none; }

.sdpb-cta svg {
    transition: transform 0.3s ease;
}

.sdpb-item:hover .sdpb-cta svg {
    transform: translateX(5px);
}

/* Tablet */
@media (max-width: 1024px) {
    .sdpb-container {
        padding: 0 30px;
    }
    
    .sdpb-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    
    .sdpb-item--large { grid-column: auto; grid-row: auto; }
    
    .sdpb-product-title { font-size: 1.0rem; }
    
    .sdpb-item--large .sdpb-product-title { font-size: 1.0rem; }
}

/* Desktop: bump title size slightly */
@media (min-width: 1025px) {
    .sdpb-product-title { font-size: 1.25rem; }
}

/* Mobile */
@media (max-width: 768px) {
    .sdpb-banners-section {
        padding: 50px 0;
    }
    
    .sdpb-container {
        padding: 0 20px;
    }
    
    .sdpb-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }
    
    .sdpb-title::after {
        width: 80px;
        height: 3px;
    }
    
    .sdpb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    .sdpb-item--large { grid-column: auto; grid-row: auto; }
    
    .sdpb-overlay {
        padding: 12px 8px 56px; /* reduce side padding for more text width */
    }
    .sdpb-content { max-width: 50%; row-gap: 12px; }
    .sdpb-desc { font-size: 0.9rem; }
    
    .sdpb-product-title {
        font-size: 1.0rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .sdpb-item--large .sdpb-product-title { font-size: 1.0rem; }
    
    .sdpb-price {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .sdpb-item--large .sdpb-price {
        font-size: 1.3rem;
    }
    
    .sdpb-cta {
        font-size: 0.9rem;
        padding: 8px 12px;
        margin-top: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sdpb-banners-section {
        padding: 40px 0;
    }
    
    .sdpb-container {
        padding: 0 15px;
    }
    
    .sdpb-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }
    
    .sdpb-grid { grid-template-columns: 1fr; gap: 12px; }
    .sdpb-overlay { padding: 10px 8px 58px; }
    .sdpb-content { max-width: 56%; }
    
    .sdpb-item--large { grid-column: auto; grid-row: auto; }
    
    .sdpb-product-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .sdpb-item--large .sdpb-product-title { font-size: 1.0rem; }
}

