/* ===================================================
   Offers Section - Home Page
   Primary: #19868b | Secondary: #e1273d | Accent: #eff6f7
   Main Image: 903x1146 (portrait aspect ratio ~0.79:1)
   =================================================== */

/* ===================================================
   Offers Hero Section - Page Banner
   =================================================== */

.offers-hero-section {
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.offers-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.offers-hero-gradient {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 50%, #095456 100%);
}

.offers-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.offers-hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.offers-hero-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.offers-hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.offers-hero-section .breadcrumb-item a:hover {
    color: #ffffff;
}

.offers-hero-section .breadcrumb-item.active {
    color: #ffffff;
}

.offers-hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.offers-hero-title {
    font-size: 52px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.offers-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Hero Section */
@media (max-width: 992px) {
    .offers-hero-title {
        font-size: 40px;
    }
    
    .offers-hero-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .offers-hero-section {
        min-height: 350px;
    }
    
    .offers-hero-content {
        padding: 70px 0;
    }
    
    .offers-hero-title {
        font-size: 32px;
    }
    
    .offers-hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .offers-hero-section {
        min-height: 300px;
    }
    
    .offers-hero-content {
        padding: 50px 0;
    }
    
    .offers-hero-title {
        font-size: 26px;
    }
    
    .offers-hero-subtitle {
        font-size: 14px;
    }
}

/* ===================================================
   End Offers Hero Section
   =================================================== */

/* Section Background */
.offers-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

/* Heading Divider - Matching other sections */
.offers-section .heading-divider {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    margin: 12px 0 15px;
    border-radius: 2px;
}

/* Offer Card Design - Enhanced for visibility */
.offer-card {
    background: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(25, 134, 139, 0.2) !important;
    border-color: rgba(25, 134, 139, 0.2);
}

/* Offer Image - Portrait aspect ratio for 903x1146 */
.offer-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 126.9% !important; /* 1146/903 = 1.269 aspect ratio for portrait - KEEP COMPLETE IMAGE */
    overflow: hidden;
    flex-shrink: 0;
}

.offer-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offer-card:hover .offer-card-image img {
    transform: scale(1.08);
}

/* Gradient Overlay - Stronger for better text visibility */
.offer-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Price Tag - Using Primary Color - Enhanced */
.offer-price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    left: auto;
    bottom: auto;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(25, 134, 139, 0.4);
    z-index: 3;
    backdrop-filter: blur(5px);
}

.offer-price-tag .price-label {
    display: block;
    font-size: 9px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 500;
}

.offer-price-tag .price-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.offer-price-tag .price-emirate {
    display: flex;
    align-items: center;
    font-size: 9px;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: 500;
}

.offer-price-tag .price-emirate::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    margin-right: 4px;
    font-size: 10px;
}

[dir="rtl"] .offer-price-tag .price-emirate::before {
    margin-right: 0;
    margin-left: 4px;
}

/* Badges - Enhanced visibility - Positioned on Right */
.offer-badges {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
    align-items: flex-end;
}

/* Special Offer Badge - Using Secondary Color with animation */
.badge-offer {
    background: linear-gradient(135deg, #e1273d 0%, #c41f33 100%);
    color: #fff;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(225, 39, 61, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(225, 39, 61, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(225, 39, 61, 0.6);
    }
}

.badge-area {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(25, 134, 139, 0.4);
}

/* Media Count - Enhanced - Show on hover only */
.offer-media-count {
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-card:hover .offer-media-count {
    opacity: 1;
}

.offer-media-count .media-item {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 6px 10px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.offer-media-count .media-item i {
    margin-right: 5px;
}

/* Offer Code Badge - Between image and content */
.offer-code-badge {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.offer-code-badge .code-value {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
}

.offer-code-badge .code-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-code-badge .code-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 12px;
}

.offer-code-badge .code-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: #ffffff;
}

.offer-code-badge .copy-code-btn.copied {
    background: #25D366;
}

.offer-code-badge .whatsapp-share-btn:hover {
    background: #25D366;
}

/* Share Slide Out - Horizontal icons appearing from right */
.share-slide-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.share-slide-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    z-index: 2;
    position: relative;
}

.share-slide-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.share-slide-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    margin-right: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.share-slide-wrapper:hover .share-slide-icons {
    opacity: 1;
    visibility: visible;
}

.share-slide-icons .code-action-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.share-slide-icons .facebook-btn {
    background: #3b5998;
}

.share-slide-icons .facebook-btn:hover {
    background: #2d4373;
}

.share-slide-icons .twitter-btn {
    background: #1da1f2;
}

.share-slide-icons .twitter-btn:hover {
    background: #0c85d0;
}

.share-slide-icons .linkedin-btn {
    background: #0077b5;
}

.share-slide-icons .linkedin-btn:hover {
    background: #005885;
}

.share-slide-icons .instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-slide-icons .instagram-btn:hover {
    background: linear-gradient(45deg, #e08323 0%, #d6582c 25%, #cc1733 50%, #bc1356 75%, #ac0878 100%);
}

.share-slide-icons .pinterest-btn {
    background: #e60023;
}

.share-slide-icons .pinterest-btn:hover {
    background: #c5001e;
}

.share-slide-icons .email-btn {
    background: #6c757d;
}

.share-slide-icons .email-btn:hover {
    background: #545b62;
}

/* Keep dropdown styles for other pages */
.share-dropdown {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.share-dropdown-btn {
    background: rgba(255, 255, 255, 0.2) !important;
}

.share-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.share-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    flex-direction: row;
    gap: 6px;
    margin-top: 8px;
    z-index: 999999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
}

.share-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.share-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.share-dropdown:hover .share-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.share-dropdown-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.share-dropdown-item:hover {
    transform: scale(1.1);
    color: #fff;
}

.share-dropdown-item.facebook {
    background: #3b5998;
}

.share-dropdown-item.facebook:hover {
    background: #2d4373;
}

.share-dropdown-item.twitter {
    background: #1da1f2;
}

.share-dropdown-item.twitter:hover {
    background: #0c85d0;
}

.share-dropdown-item.linkedin {
    background: #0077b5;
}

.share-dropdown-item.linkedin:hover {
    background: #005885;
}

.share-dropdown-item.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-dropdown-item.instagram:hover {
    background: linear-gradient(45deg, #e08323 0%, #d6582c 25%, #cc1733 50%, #bc1356 75%, #ac0878 100%);
}

.share-dropdown-item.email {
    background: #6c757d;
}

.share-dropdown-item.email:hover {
    background: #545b62;
}

/* Fix tooltip in offer code badge and slider */
.tooltip {
    z-index: 999999 !important;
}

.tooltip .tooltip-inner {
    max-width: 250px;
    white-space: normal;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    background: #333;
}

/* Ensure slider doesn't clip tooltips */
.offers-slider,
.offers-slider .slick-list,
.offers-slider .slick-track,
.offers-slider .slick-slide,
.offers-slider .box,
.offer-card,
.offer-code-badge {
    overflow: visible !important;
}

.offers-section {
    overflow: visible !important;
}

/* Container overflow fix */
.offers-section .container,
.offers-section .container-xxl {
    overflow: visible !important;
}

/* Force tooltip to show on left for right-side buttons */
.offer-code-badge .code-action-btn[data-toggle="tooltip"] {
    position: relative;
}

/* Custom tooltip styling to prevent clipping */
.bs-tooltip-top,
.bs-tooltip-bottom,
.bs-tooltip-left,
.bs-tooltip-right {
    pointer-events: none;
}

/* Card Body - Enhanced padding and styling */
.offer-card-body {
    position: relative;
    padding: 20px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category text with accent color */
.offer-category .text-accent,
.offer-category .text-primary {
    color: #19868b !important;
}

.offer-category a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.offer-category a:hover {
    color: #0d6b6f !important;
}

/* Category/Subcategory - Simple Text Links (Home Offers) */
.offers-section .offer-category-info {
    font-size: 13px;
    line-height: 1.5;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.offers-section .offer-cat-link,
.offers-section .offer-subcat-link {
    color: #19868b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.offers-section .offer-cat-link:hover,
.offers-section .offer-subcat-link:hover {
    color: #e1273d;
    text-decoration: underline;
}

.offers-section .cat-divider {
    color: #adb5bd;
    margin: 0 6px;
}

/* Title styling */
.offer-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 54px;
    line-height: 1.4;
}

.offer-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.offer-title a:hover {
    color: #19868b;
}

/* Specifications - Enhanced layout */
.offer-specs {
    min-height: 40px;
    flex: 1;
}

.offer-specs .list-inline-item {
    margin-bottom: 8px !important;
}

.spec-item {
    gap: 6px;
}

.spec-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.9;
}

/* Spec Icon Placeholder - Using Primary Color */
.spec-icon-placeholder {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* Card Footer - Enhanced styling */
.offer-card .card-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #fafafa !important;
    padding: 15px 20px !important;
}

/* CTA Button - Using Primary Color */
.btn-offer-view {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border: none;
    transition: all 0.3s ease;
}

/* Hover uses Secondary Color */
.btn-offer-view:hover {
    background: linear-gradient(135deg, #e1273d 0%, #c41f33 100%);
    color: #fff;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(225, 39, 61, 0.3);
}

/* Offers Section - View Button Red Hover (like featured projects) */
.offers-slider .offer-card .btn-primary:hover,
.offers-slider .offer-card .btn-primary:focus {
    background-color: #e1273d !important;
    border-color: #e1273d !important;
    color: #fff !important;
}

/* Slider Dots Customization for Offers - Primary Color */
.offers-slider .slick-dots {
    margin-top: 50px;
    position: relative;
    bottom: auto;
}

.offers-slider .slick-dots li button:before {
    color: #19868b;
    font-size: 10px;
}

.offers-slider .slick-dots li.slick-active button:before {
    color: #19868b;
    opacity: 1;
}

/* Maximum 4 dots only */
.offers-slider .slick-dots li:nth-child(n+5) {
    display: none !important;
}

/* Slider spacing and visibility improvements */
.offers-slider .box {
    padding: 15px 10px !important;
}

.offers-slider .slick-slide {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    height: auto !important;
}

.offers-slider .slick-slide.slick-active {
    opacity: 1;
}

/* Ensure equal height cards in slider */
.offers-slider .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

.offers-slider .slick-slide {
    display: flex !important;
    height: auto !important;
}

.offers-slider .slick-slide > div {
    display: flex;
    width: 100%;
    height: 100%;
}

.offers-slider .box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.offers-slider .offer-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fix tooltip z-index - Ensure tooltips appear above all elements */
.tooltip {
    z-index: 99999 !important;
}

.offers-section .tooltip {
    z-index: 99999 !important;
}

/* Fix overflow on offer card to allow tooltips to show */
.offer-card {
    overflow: visible !important;
}

.offer-card-body {
    overflow: visible !important;
}

/* Keep image overflow hidden for the image zoom effect */
.offer-card-image {
    overflow: hidden !important;
}

/* Ensure slick slides don't clip tooltips */
.offers-slider .slick-list {
    overflow: visible !important;
    padding-top: 40px !important;
    margin-top: -40px !important;
}

.offers-slider .slick-track {
    overflow: visible !important;
}

.offers-slider .slick-slide {
    overflow: visible !important;
}

/* Large Screen Fixes for Offers Section - Equal Height Cards */
@media (min-width: 992px) {
    .offers-slider .slick-track {
        display: flex !important;
        align-items: stretch !important;
    }
    
    .offers-slider .slick-slide {
        display: flex !important;
        height: auto !important;
    }
    
    .offers-slider .slick-slide > div {
        display: flex;
        width: 100%;
    }
    
    .offers-slider .box {
        display: flex;
        width: 100%;
    }
    
    .offers-section .offer-card {
        flex: 1;
        height: 100%;
    }
}

/* RTL Support */
[dir="rtl"] .offer-price-tag {
    right: auto;
    left: 20px;
}

[dir="rtl"] .offer-badges {
    right: auto;
    left: 20px;
    align-items: flex-start;
}

[dir="rtl"] .offer-media-count {
    right: auto;
    left: 20px;
}

[dir="rtl"] .btn-offer-view i {
    margin-left: 0;
    margin-right: 8px;
    transform: scaleX(-1);
}

[dir="rtl"] .btn-offer-view:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .offer-media-count .media-item i {
    margin-right: 0;
    margin-left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .offer-price-tag .price-value {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    /* Keep full portrait image ratio on tablet */
    .offers-section .offer-card-image {
        padding-bottom: 126.9%; /* Keep complete image */
    }
    
    .offers-section .offer-card {
        height: auto;
    }
    
    .offers-section .container-xxl {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .offers-slider .box {
        padding: 10px 8px !important;
    }
}

@media (max-width: 768px) {
    /* Keep full portrait image ratio on mobile */
    .offers-section .offer-card-image {
        padding-bottom: 126.9%; /* Show complete 903x1146 image */
    }
    
    .offers-section .container-xxl {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .offer-price-tag {
        padding: 6px 10px;
        top: 10px;
        right: 10px;
    }
    
    .offer-price-tag .price-value {
        font-size: 14px;
    }
    
    .offer-price-tag .price-label {
        font-size: 8px;
    }
    
    .offer-price-tag .price-emirate {
        font-size: 8px;
    }
    
    .offer-badges {
        top: 10px;
        right: 10px;
        left: auto;
    }
    
    .badge-offer {
        padding: 5px 10px;
        font-size: 9px;
    }
    
    .offer-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .offer-card-body {
        padding: 12px !important;
    }
    
    .offer-card .card-footer {
        padding: 10px 12px !important;
    }
    
    /* Offer code badge on mobile */
    .offer-code-badge {
        padding: 5px 10px;
    }
    
    .offer-code-badge .code-value {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .offer-code-badge .code-action-btn {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    .offer-code-badge .code-actions {
        gap: 3px;
    }
    
    .offers-slider .box {
        padding: 8px 5px !important;
    }
}

@media (max-width: 576px) {
    /* Keep full portrait image ratio on small mobile */
    .offers-section .offer-card-image {
        padding-bottom: 126.9%; /* Show complete 903x1146 image */
    }
    
    .offers-section .container-xxl {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .offer-media-count {
        bottom: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .offer-media-count .media-item {
        font-size: 10px;
        padding: 3px 5px;
    }
    
    .offer-price-tag {
        padding: 5px 8px;
        top: 8px;
        right: 8px;
    }
    
    .offer-price-tag .price-value {
        font-size: 12px;
    }
    
    .offer-title {
        font-size: 13px;
        min-height: 34px;
    }
    
    .offer-card-body {
        padding: 10px !important;
    }
    
    .offer-card .card-footer {
        padding: 8px 10px !important;
    }
    
    .offer-card .card-footer .fs-17 {
        font-size: 13px !important;
    }
    
    .offer-card .card-footer .btn-sm {
        font-size: 10px;
        padding: 4px 8px !important;
    }
    
    .offers-slider .box {
        padding: 5px 3px !important;
    }
    
    /* Category text */
    .offer-category a {
        font-size: 10px !important;
    }
    
    /* Specifications - hide on small mobile to save space */
    .offers-section .offer-specs {
        display: none;
    }
}

/* ===================================================
   Offers Listing Page Styles
   =================================================== */

.offers-page .offer-card {
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 720px;
    display: flex;
    flex-direction: column;
}

.offers-page .offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(25, 134, 139, 0.15);
    border-color: rgba(25, 134, 139, 0.2);
}

/* Grid View - Image Aspect Ratio (903x1146) */
.offers-page #gridView .offer-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 126.9%; /* 1146/903 = 1.269 aspect ratio for portrait */
    overflow: hidden;
}

.offers-page #gridView .offer-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offers-page .offer-card:hover .offer-card-image img {
    transform: scale(1.05);
}

/* List View Image */
.offers-page .offer-card-image-list {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.offers-page .offer-card-image-list img {
    transition: transform 0.5s ease;
}

.offers-page .offer-card:hover .offer-card-image-list img {
    transform: scale(1.05);
}

/* Offer Page Card Body */
.offers-page .offer-card-body {
    padding: 20px !important;
}

.offers-page .offer-title {
    min-height: 50px;
}

/* Offer Page Card Footer */
.offers-page .offer-card .card-footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #fafafa !important;
    padding: 15px 20px !important;
}

/* Offer Page Button Hover - Red */
.offers-page .offer-card .btn-primary:hover,
.offers-page .offer-card .btn-primary:focus {
    background-color: #e1273d !important;
    border-color: #e1273d !important;
    color: #fff !important;
}

/* RTL Support for Offers Page */
[dir="rtl"] .offers-page .offer-price-tag {
    left: auto;
    right: 20px;
}

[dir="rtl"] .offers-page .offer-badges {
    right: auto;
    left: 20px;
    align-items: flex-start;
}

[dir="rtl"] .offers-page .offer-media-count {
    right: auto;
    left: 20px;
}

[dir="rtl"] .offers-page .btn-primary i {
    margin-left: 0;
    margin-right: 8px;
    transform: scaleX(-1);
}

/* Responsive for offers page */
@media (max-width: 992px) {
    .offers-page .offer-card {
        height: 650px;
    }
    
    .offers-page #gridView .offer-card-image {
        padding-bottom: 100%; /* Square on tablets */
    }
    
    .offers-page .offer-card-image-list {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .offers-page .offer-card {
        height: 580px;
    }
    
    .offers-page #gridView .offer-card-image {
        padding-bottom: 80%; /* Landscape on mobile */
    }
    
    .offers-page .offer-card-image-list {
        min-height: 200px;
    }
    
    .offers-page .offer-price-tag {
        padding: 10px 14px;
    }
    
    .offers-page .offer-price-tag .price-value {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .offers-page .offer-card {
        height: 520px;
    }
}

/* ===================================================
   Mobile & Tablet Side Spacing for Home Offers Section
   =================================================== */

@media (max-width: 992px) {
    .offers-section .container,
    .offers-section .container-xxl {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    .offers-slider .slick-list {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .offers-slider .box {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .offers-slider .slick-dots {
        position: relative !important;
        bottom: auto !important;
        margin-top: 25px !important;
        padding-top: 15px !important;
    }
}

@media (max-width: 768px) {
    .offers-section .container,
    .offers-section .container-xxl {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .offers-slider .slick-list {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .offers-slider .box {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    .offers-slider .slick-dots {
        margin-top: 30px !important;
        padding-top: 15px !important;
    }
}

@media (max-width: 576px) {
    .offers-section .container,
    .offers-section .container-xxl {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .offers-slider .slick-list {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .offers-slider .box {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .offers-slider .slick-dots {
        margin-top: 35px !important;
    }
}

@media (max-width: 400px) {
    .offers-section .container,
    .offers-section .container-xxl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .offers-slider .box {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}
