:root {
    --text-navy: #001d3d;
    --white: #ffffff;
    --text-grey: #666666;
}

.trending-deals {
    padding: 60px 0;
    background-color: var(--white);
    font-family: "DM Sans", sans-serif;
    text-align: center;
}

.trending-deals h2 {
    font-size: 36px;
    font-weight: 500;
    color: var(--brand-dark);
    margin-bottom: 50px;
}

.deals-grid {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.trending-card {
    flex: 0 0 calc(25% - 19px);
    background-color: var(--white);
    border-radius: 15px;
    padding: 50px 25px 30px 25px;
    /* Added more top padding for the badge overlap */
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f5f5f5;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
    margin-top: 20px;
    /* Space for the badge overlap */
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    justify-content: flex-end;
    /* Push text to the right to make room for absolute badge */
    padding-left: 60px;
    /* Room for the badge on the left */
    min-height: 60px;
}

/* The ribbon badge overlapping the top edge */
.company-badge {
    position: absolute;
    top: -15px;
    /* Moves it above the card edge */
    left: 25px;
    background-color: #003566;
    color: white;
    width: 65px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    border-radius: 15px 0 15px 15px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* The folded dog-ear corner */
.company-badge::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, white 50%, #001d3d 50%);
    /* Match section bg / card bg */
    border-bottom-left-radius: 12px;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: left;
    margin-bottom: 10px;
    /* Slight offset for centering look */
}

.deal-text {
    font-size: 14px;
    color: #004e92;
    font-weight: 600;
    margin: 15px 0;
}

.btn-trending-deal {
    background-color: #003566;
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.btn-trending-deal:hover {
    background-color: #001d3d;
}

.btn-trending-deal i {
    font-size: 11px;
}

/* Responsive */
@media (max-width: 1200px) {
    .trending-card {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 600px) {
    .trending-card {
        flex: 0 0 100%;
    }

    .trending-deals h2 {
        font-size: 28px;
    }
}

.top-picks-section {
    padding: 60px 20px;
    max-width: 1250px;
    margin: 0 auto;
}

.top-picks-header {
    margin-bottom: 40px;
    text-align: center;
}

.top-picks-header h2 {
    font-family: "Georgia", serif;
    /* Serif font matching screenshot */
    font-size: 32px;
    font-weight: 600;
    color: var(--text-navy);
    margin: 0 0 10px 0;
}

.top-picks-header p {
    font-size: 15px;
    color: var(--text-navy);
    opacity: 0.85;
    margin: 0;
}

/* Slider Specific Styles */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-window {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.picks-grid {
    display: flex;
    /* Changed from grid to flex for smooth scrolling */
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.pick-card {
    flex: 0 0 calc(20% - 20px);
    /* 5 cards per row with 25px gap (25*4/5 = 20) */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Navigation Arrows */
.slider-nav {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease;
    color: var(--text-navy);
    font-size: 18px;
    flex-shrink: 0;
}

.slider-nav:hover {
    background-color: var(--text-navy);
    color: var(--white);
    border-color: var(--text-navy);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--text-navy);
    width: 20px;
    border-radius: 5px;
}

/* Responsive Slider */
@media (max-width: 1024px) {
    .pick-card {
        flex: 0 0 calc(50% - 13px);
        /* 2 items per view */
    }
}

@media (max-width: 600px) {
    .pick-card {
        flex: 0 0 100%;
        /* 1 item per view */
    }

    .slider-nav {
        display: none;
        /* Swipe is better on mobile */
    }
}

.pick-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo-wrapper {
    background-color: var(--white);
    border-radius: 15px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow like in screenshot */
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-2px);
}

.logo-wrapper.dark {
    background-color: #000;
    /* For Shop Simon logo */
}

.logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pick-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 2px;
    align-items: center;
    text-align: center;
}

.brand-name {
    font-size: 13px;
    color: var(--text-grey);
    text-transform: capitalize;
}

.discount-text {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

.pick-btn {
    background-color: var(--text-navy);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.pick-btn:hover {
    background-color: #2b365f;
}

.expiry-text {
    font-size: 11px;
    color: var(--text-grey);
    text-align: center;
    margin-top: 4px;
    /* Move closer to button */
}

/* Simon Logo Mockup */
.simon-logo-placeholder {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.simon-diamond {
    font-size: 20px;
    line-height: 1;
    margin-bottom: -5px;
}

.simon-text {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Smooth spacing for discount text line */
.brand-name {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.discount-text {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 5px 0;
    font-family: "DM Sans", sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .picks-grid {
        /* Maintain flex for slider */
        display: flex;
    }
}

@media (max-width: 600px) {
    .picks-grid {
        /* Maintain flex for slider */
        display: flex;
    }

    .top-picks-header h2 {
        font-size: 26px;
    }
}

/* Opportunity Section */
.opportunity-section {
    background-color: #002d62;
    /* Precise navy from theme */
    padding: 50px 0;
    /* Increased vertical padding for premium spacing */
    color: white;
}

.opportunity-container {
    max-width: 1300px;
    /* Slightly wider container */
    margin: 0 auto;
    padding: 0 80px;
    /* More horizontal breathing room */
    display: flex;
    flex-direction: column;

    /* Increased gap between rows */
}

.opportunity-row {
    display: flex;
    align-items: center;
    gap: 120px;
    /* Significant gap between text and image */
}

.opportunity-row.reverse {
    flex-direction: row-reverse;
}

.opportunity-text {
    flex: 1;
}

.opportunity-text h2 {
    font-family: "DM Sans", sans-serif;
    font-size: 35px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.15;
}

.opportunity-text p {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.opportunity-image {
    flex: 1.3;
    height: 480px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Precise dimensions for the top right image as requested */
.opportunity-image.top-right-img {
    width: 558px;
    height: 466px;
    flex: none;
}

/* Precise dimensions for the bottom left image as requested */
.opportunity-image.bottom-left-img {
    width: 457px;
    height: 429px;
    flex: none;
}

.opportunity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* View Deal Button */
.view-deal-btn {
    background-color: #00b8c4;
    color: white;
    border: none;
    padding: 8px 8px 8px 25px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: fit-content;
    font-family: "DM Sans", sans-serif;
}

.view-deal-btn:hover {
    background-color: #00d1df;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 184, 196, 0.4);
}

.deal-icon {
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.view-deal-btn:hover .deal-icon {
    transform: rotate(15deg);
}

.deal-icon i {
    color: #00b8c4;
    font-size: 16px;
}

/* ===============================
   RESPONSIVE (Improved)
   =============================== */

/* Large laptop */
@media (max-width: 1200px) {
    .opportunity-container {
        padding: 0 40px;
    }

    .opportunity-row {
        gap: 70px;
    }

    .opportunity-image.top-right-img,
    .opportunity-image.bottom-left-img {
        width: 100%;
        max-width: 520px;
        height: 400px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .opportunity-section {
        padding: 70px 0;
    }

    .opportunity-container {
        padding: 0 25px;
    }

    .opportunity-row,
    .opportunity-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .opportunity-text h2 {
        font-size: 30px;
    }

    .opportunity-text p {
        font-size: 15px;
    }

    .opportunity-image,
    .opportunity-image.top-right-img,
    .opportunity-image.bottom-left-img {
        width: 100%;
        height: 320px;
        flex: none;
        order: -1;
    }

    .view-deal-btn {
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .opportunity-section {
        padding: 55px 0;
    }

    .opportunity-container {
        padding: 0 18px;
    }

    .opportunity-text h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .opportunity-text p {
        font-size: 14px;
    }

    .opportunity-image {
        height: 260px;
        border-radius: 8px;
    }

    .view-deal-btn {
        padding: 10px 10px 10px 20px;
        font-size: 14px;
    }

    .deal-icon {
        width: 30px;
        height: 30px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .opportunity-image {
        height: 210px;
    }

    .opportunity-text h2 {
        font-size: 20px;
    }

    .opportunity-text p {
        font-size: 13px;
    }
}
