﻿/* =========================================
   OFFERS PAGE STYLES
   ========================================= */

:root {
    --primary: #059EFF;
    --primary-dark: #0d6efd;
    --secondary: #DEF3FF;
    --text-dark: #000000;
    --text-body: #4a4a4a;
    --bg-page: #e8f2fb;
    --bg-white: #ffffff;
    --border-color: #E5E9F0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(5,158,255,0.12);
    --radius-card: 14px;
}

* { box-sizing: border-box; }

.offers-page {
    background-color: var(--bg-page);
    min-height: 100vh;
}

.container-1200 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

.section-padding { padding: 70px 0; }

/* ─── Hero Banner ────────────────────────────── */
.offers-header-banner {
    background-image: url('../img/hero section offers.webp');
    background-size: cover;
    background-position: center;
    padding: 110px 0 100px;
    text-align: center;
    position: relative;
}

.offers-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 80, 0.42);
}

.offers-header-flex {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offers-page-title {
    margin: 0;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ─── Offers Grid Section ────────────────────── */
.offers-grid-section {
    padding: 60px 0 70px;
    background: linear-gradient(180deg, rgba(165, 199, 240, 0.39) 99.99%);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ─── Offer Card (horizontal) ────────────────── */
.offer-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.offer-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-dark);
}

/* Image side */
.offer-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    align-self: stretch;
}

.offer-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-img-wrap img {
    transform: scale(1.06);
}

/* Badge pinned to bottom of image */
.offer-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #ffffff;
}

.offer-badge--red   { background: #e02020; }
.offer-badge--green { background: #1a9e3f; }

/* Text side */
.offer-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.offer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.offer-desc {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0 0 14px;
    flex-grow: 1;
}

.offer-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.25s;
    align-self: flex-start;
}

.offer-link:hover {
    color: var(--primary);
}

/* ─── CTA Section ────────────────────────────── */
.sd-cta-section {
    background-color: #E4F6FF;
}

.sd-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.sd-heading span { color: #29C3D4; }

.sd-cta-section p {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background-color: #58B2E0;
    color: #fff;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #29C3D4;
    box-shadow: 0 4px 12px rgba(5, 158, 255, 0.3);
    color: #000000;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .offers-page-title { font-size: 30px; }

    .offers-header-banner { padding: 80px 0; }

    .offer-card {
        flex-direction: column;
    }

    .offer-img-wrap {
        width: 100%;
        height: 200px;
    }

    .sd-heading { font-size: 24px; }

    .section-padding { padding: 50px 0; }
}