/* Modern Deal Styles */
:root {
    --deal-primary-color: #1a1a1a;
    --deal-accent-color: #bfa37d; /* Sophisticated gold */
    --deal-bg-white: #ffffff;
    --deal-transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.deal-section {
    background-color: #ffffff; 
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.deal-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--deal-bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--deal-transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.deal-image-wrapper {
    position: relative;
    width: 100%;
    flex: 1; /* Take remaining space */
    aspect-ratio: 1 / 1.1; /* Shorter initial view to reduce total card height */
    overflow: hidden;
    background-color: #f0f0f0;
}

.deal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Start from top to show logos */
    transition: object-position 1.2s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.deal-content {
    position: relative; 
    width: 100%;
    background: var(--deal-bg-white);
    padding: 15px 20px; /* Reduced vertical padding */
    transition: var(--deal-transition-smooth);
    z-index: 2;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Hover Effects */
.deal-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.deal-item:hover .deal-image-wrapper img {
    transform: scale(1.05); /* Smaller scale to keep more of the image visible */
    object-position: center bottom; /* Reveal the bottom part of the poster on hover */
}

.deal-item:hover .deal-content {
    background: #fafafa; /* Subtle change on hover */
}

.deal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem; /* Slightly smaller to fit better */
    color: var(--deal-primary-color);
    margin-bottom: 6px;
    line-height: 1.3;
    /* Ensure uniform height for titles */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em; 
    transition: var(--deal-transition-smooth);
}

.deal-period {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px; /* Reduced to save vertical space */
    display: flex;
    align-items: center; 
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-period i {
    margin-top: -1px; /* Fine-tune icon centering */
}

.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: var(--theme-primary-btn-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: var(--deal-transition-smooth);
    opacity: 0.7;
}

.view-details-btn .arrow-icon {
    transition: var(--deal-transition-smooth);
    font-size: 1.1rem;
}

.deal-item:hover .view-details-btn {
    opacity: 1;
    color: var(--theme-primary-btn-hover-color);
}

.deal-item:hover .view-details-btn .arrow-icon {
    transform: translateX(12px); /* Arrow points further on hover */
}

/* Subtle overlay on image to separate from content box if needed */
.deal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .deal-content {
        padding: 20px;
        transform: translateY(55px);
    }
}

@media (max-width: 767px) {
    .deal-content {
        position: relative;
        transform: translateY(0) !important;
        box-shadow: none;
        border-top: 1px solid #eee;
    }
    
    .deal-image-wrapper {
        aspect-ratio: 4 / 5; /* More standard ratio for mobile to save space if needed, or keep 9:16 */
    }

    .deal-item:hover .view-details-btn .arrow-icon {
        transform: translateX(5px);
    }
}

