/* /assets/css/promo-banners-widget.css */
/* FIXED FOR MOBILE STACKING */

.promo-banners-widget .promo-banners-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Default Desktop Layouts */
.promo-banners-grid--cols-1 { grid-template-columns: 1fr; }
.promo-banners-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.promo-banners-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.promo-banner-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: flex;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.promo-banner-card:hover {
    transform: translateY(-5px);
}

.promo-banner-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Color schemes */
.promo-banner-card--color-light .promo-banner-card__title,
.promo-banner-card--color-light .promo-banner-card__subtitle {
    color: #ffffff;
}
.promo-banner-card--color-dark .promo-banner-card__title,
.promo-banner-card--color-dark .promo-banner-card__subtitle {
    color: #1e1e1e;
}

.promo-banner-card__title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.2;
}

.promo-banner-card__subtitle {
    font-size: 16px;
    margin: 0 0 20px;
}

.promo-banner-card__button {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start; 
}

/* Light scheme button */
.promo-banner-card--color-light .promo-banner-card__button {
    background-color: #ffffff;
    color: #1e1e1e;
}

/* Dark scheme button */
.promo-banner-card--color-dark .promo-banner-card__button {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablet (Portrait) - Switch to 2 columns if using 3 */
@media (max-width: 992px) {
    .promo-banners-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - FORCE 1 COLUMN (STACKING) */
@media (max-width: 767px) {
    /* We use !important to override any specific column classes */
    .promo-banners-widget .promo-banners-grid,
    .promo-banners-grid--cols-2,
    .promo-banners-grid--cols-3 {
        grid-template-columns: 1fr !important; 
    }
    
    .promo-banner-card {
        min-height: 220px;
        padding: 20px;
    }
    
    .promo-banner-card__title {
        font-size: 22px;
    }
}