/* =========================================
   OFFERS PAGE CLEAN BOOTSTRAP OVERRIDES
   ========================================= */

/* Theme Colors Utility Extensions */
.bg-light-blue {
    background-color: #e8f2fb;
}

.text-primary-dark {
    color: #0d6efd;
}

/* ─── Hero Banner Graphic ──────────────── */
.offers-header-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 110px 0 100px;
    position: relative;
}

.offers-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: rgba(0, 30, 80, 0.42); */
    z-index: 0;
}

.offers-page-title {
    font-size: 3rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ─── Content Section Area ─────────────── */
.offers-grid-gradient {
    background: linear-gradient(180deg, rgba(165, 199, 240, 0.39) 99.99%);
}

/* ─── Card Interactive Behaviours ──────── */
.offer-card {
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #E5E9F0 !important;
}

.offer-card:hover {
    box-shadow: 0 8px 24px rgba(5, 158, 255, 0.15) !important;
    transform: translateY(-4px);
    border-color: #0d6efd !important;
}

/* Horizontal image structure rules */
.offer-img-container {
    min-height: 100%;
}

.img-animate {
    transition: transform 0.5s ease;
}

.offer-card:hover .img-animate {
    transform: scale(1.06);
}

/* Action Links Transition triggers */
.offer-link-action {
    transition: color 0.2s ease-in-out;
}

.offer-link-action:hover {
    color: #059EFF !important;
}

/* ─── Responsive Viewport Adaptations ──── */
@media (max-width: 767.98px) {
    .offers-header-banner {
        padding: 80px 0;
    }
    .offers-page-title {
        font-size: 2rem;
    }
    .offer-img-container {
        height: 200px;
        width: 100%;
    }
}




/* Card Base Styles */
.custom-offer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* shadow-sm */
    border-radius: 0.5rem; /* rounded-3 */
    overflow: hidden;
    background-color: #ffffff;
}

/* Row Layout (Mobile: Column, Desktop: Row) */
.custom-offer-row {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0; /* g-0 */
}

@media (min-width: 576px) {
    .custom-offer-row {
        flex-direction: row;
    }
}

/* Image Column */
.custom-offer-img-col {
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 576px) {
    .custom-offer-img-col {
        width: 33.333333%; /* col-sm-4 */
        flex: 0 0 auto;
    }
}

/* Image Styling & Animation */
.custom-offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease; /* img-animate base */
}

.custom-offer-card:hover .custom-offer-img {
    transform: scale(1.05); /* img-animate hover effect */
}

/* Discount Badge */
.custom-offer-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    /* Note: The dynamic {{ $offer['badge_bg'] }} class will still apply the background color */
}

/* Content Column */
.custom-offer-content-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem; /* p-4 */
}

@media (min-width: 576px) {
    .custom-offer-content-col {
        width: 66.666667%; /* col-sm-8 */
        flex: 0 0 auto;
    }
}

/* Typography */
.custom-offer-title {
    font-size: 1.1rem; /* h6 */
    font-weight: 700;
    color: #212529; /* text-dark */
    margin: 0 0 0.5rem 0; /* mb-2 */
}

.custom-offer-text {
    color: #6c757d; /* text-muted */
    font-size: 0.875rem; /* small */
    margin: 0 0 1rem 0; /* mb-3 */
    flex-grow: 1;
}

/* Link */
.custom-offer-link {
    color: #0a58ca; /* text-primary-dark */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem; /* small */
    align-self: flex-start;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.custom-offer-link:hover {
    color: #004085;
    text-decoration: underline;
}

.offer-badge--red {
    background: #e02020;
}

.offer-badge--green {
    background: #1a9e3f;
}