/* =========================================
   OFFER DETAIL PAGE CUSTOM STYLES
   ========================================= */

:root {
    --primary: #059EFF;
    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --bg-page: #F8F9FA;
}

.offers-page {
    background-color: var(--bg-page);
    min-height: 100vh;
}

.section-padding {
    padding: 80px 0;
}

.section-padding-bottom {
    padding-bottom: 80px;
}

/* Header Banner */
.offers-header-banner {
    background-color: #ffffff;
    border-bottom: 1px solid #E5E9F0;
    padding: 35px 0;
}

.offers-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offers-page-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.offers-breadcrumb {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-breadcrumb a {
    color: #29C3D4;
    text-decoration: none;
    transition: color 0.3s;
}

.offers-breadcrumb a:hover {
    color: var(--primary);
}

.offers-breadcrumb span {
    color: #000000;
}

/* --- Main Offer Hero --- */
.od-hero-grid {
    display: grid;
    /* Changed from 1fr 1fr to a 70% / 30% split */
    grid-template-columns: 7fr 3fr;
    align-items: center;
    gap: 60px;

    margin: 0 auto;
}

/* Left: Professional Main Image */
.od-image-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.od-main-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.od-main-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.od-main-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    padding: 10px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Right: Text Content */
.od-text-col {
    text-align: left;
}

.od-title {
    color: var(--text-dark);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.od-desc {
    font-size: 18px;
    color: var(--text-body);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.od-claim-btn {
    display: inline-block;
    background-color: #58B2E0;
    color: #fff;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.od-claim-btn:hover {
    background-color: #29C3D4;
    box-shadow: 0 6px 15px rgba(5, 158, 255, 0.3);
    transform: translateY(-2px);
    color: #000000;
}

/* --- Similar Offers Section (Matches Main Page) --- */
.od-similar-section {
    padding-top: 40px;
}

.od-similar-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.od-similar-divider {
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 40px auto;
}

/* Grid & Cards from Main Offers Page */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.offer-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(5, 158, 255, 0.12);
    border-color: #58B2E0;
}

.offer-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.offer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-img-wrapper img {
    transform: scale(1.1);
}

.offer-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.offer-badge {
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    font-weight: 800;
    font-size: 18px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offer-content {
    padding: 30px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-content h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 15px;
    font-weight: 700;
}

.offer-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.offer-footer {
    border-top: 1px dashed #dcdcdc;
    padding-top: 20px;
    margin-top: auto;
}

.offer-btn {
    color: #58B2E0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s;
}

.offer-btn:hover {
    color: var(--text-dark);
}


/* =========================================
   RESPONSIVE SCALING
   ========================================= */

/* Laptops / Smaller Desktops */
@media (max-width: 1024px) {
    .od-hero-grid {
        gap: 40px;
        max-width: 95%;
    }

    .od-title {
        font-size: 32px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-padding-bottom {
        padding-bottom: 60px;
    }

    .od-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .od-text-col {
        text-align: center;
    }

    .od-image-col {
        /* Prevents the image from becoming massively tall when stacked on a tablet */
        max-width: 700px;
        margin: 0 auto;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .section-padding {
        padding: 40px 0;
    }

    .section-padding-bottom {
        padding-bottom: 40px;
    }

    /* Header adjustments */
    .offers-header-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .offers-page-title {
        font-size: 26px;
    }

    /* Main Hero Adjustments */
    .od-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .od-desc {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .od-claim-btn {
        width: 100%;
        padding: 15px 0;
    }

    /* Full width button on mobile */
    .od-main-badge {
        font-size: 18px;
        padding: 8px 15px;
        bottom: 15px;
        right: 15px;
    }

    /* Similar Offers Adjustments */
    .od-similar-title {
        font-size: 22px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offer-img-wrapper {
        height: 200px;
    }

    /* Slightly shorter images on mobile */
}