/* Grid Card Style for Homepage Coupons */
.coupon-grid-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 25px 20px 20px 20px !important;
    background: white !important;
    border: 2px solid #ed174f !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    height: 100% !important;
    min-height: 340px !important;
    max-height: 380px !important;
    margin: 0 5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    min-width: 240px !important;
    max-width: 320px !important;
}

.coupon-grid-card:hover {
    box-shadow: 0 8px 20px rgba(237, 23, 79, 0.25) !important;
    transform: translateY(-4px) !important;
    border-color: #d01445 !important;
}

.coupon-grid-logo {
    width: 140px !important;
    height: 140px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
}

.coupon-grid-store-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #666 !important;
    margin: 0 0 10px 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    padding: 0 5px !important;
    display: block !important;
}

.coupon-grid-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    padding: 0 5px !important;
    min-height: 40px !important;
}

.coupon-grid-badge {
    position: relative;
    width: 90px;
    height: 44px;
    background: linear-gradient(135deg, #ed174f 0%, #d01445 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(237, 23, 79, 0.4);
    animation: swingSign 3s ease-in-out infinite;
    transform-origin: top center;
    z-index: 10;
    margin: 0 auto;
    color: white;
    font-size: 13px;
    font-weight: 700;
    gap: 5px;
}

.coupon-grid-badge::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: #ed174f;
}

.coupon-grid-badge::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ed174f;
    border-radius: 50%;
}

.coupon-grid-badge i {
    font-size: 14px;
}

@keyframes swingSign {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

/* Mobile responsive for grid cards */
@media (max-width: 640px) {
    .coupon-grid-card {
        min-height: 200px;
        padding: 18px 12px 14px 12px;
        margin: 0;
        border-width: 2px;
        min-width: 160px;
    }
    
    .coupon-grid-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }
    
    .coupon-grid-store-name {
        font-size: 11px;
        margin: 0 0 6px 0;
    }
    
    .coupon-grid-title {
        font-size: 13px;
        min-height: 50px;
        margin: 0 0 8px 0;
        -webkit-line-clamp: 3;
        line-height: 1.3;
    }
    
    .coupon-grid-badge {
        width: 70px;
        height: 36px;
        font-size: 10px;
    }
    
    .coupon-grid-badge i {
        font-size: 11px;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 959px) {
    .coupon-grid-card {
        margin: 0;
        border-width: 2px;
        min-height: 220px;
    }
    
    .coupon-grid-logo {
        width: 100px;
        height: 100px;
    }
    
    .coupon-grid-store-name {
        font-size: 12px;
    }
    
    .coupon-grid-title {
        font-size: 14px;
    }
    
    .coupon-grid-badge {
        width: 80px;
        height: 40px;
        font-size: 12px;
    }
    
    .coupon-grid-badge i {
        font-size: 13px;
    }
}

/* ===== COUPON DETAIL PAGE BADGES ===== */
/* Badge styling for coupon detail sections (where Verified/Exclusive appear) */

/* ===== COUPON DETAIL PAGE BADGES ===== */
/* Badge styling for coupon detail sections (where Verified/Exclusive appear) */

/* Animated badge for coupon detail cards */
.tas_card_5 .exclusive,
.tas_card_5 .verified {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #ed174f;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    animation: badgePulse 2s ease-in-out infinite;
}

.tas_card_5 .verified {
    background: #28a745;
}

.tas_card_5 .exclusive i,
.tas_card_5 .verified i {
    font-size: 12px;
    animation: iconSpin 3s linear infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(237, 23, 79, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(237, 23, 79, 0.5);
    }
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile responsive */
@media (max-width: 639px) {
    .tas_card_5 .exclusive,
    .tas_card_5 .verified {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .tas_card_5 .exclusive i,
    .tas_card_5 .verified i {
        font-size: 10px;
    }
}

/* ===== SWIPER SLIDER STYLES FOR COUPON SECTIONS ===== */

.popular-coupons-swiper,
.exclusive-coupons-swiper {
    position: relative;
    padding: 20px 50px 50px 50px;
}

.popular-coupons-swiper .swiper-slide,
.exclusive-coupons-swiper .swiper-slide {
    height: auto;
    display: flex;
    padding: 0 10px !important;
}

.popular-coupons-swiper .swiper-slide > a,
.exclusive-coupons-swiper .swiper-slide > a {
    width: 100%;
    display: flex;
}

.popular-coupons-swiper .coupon-grid-card,
.exclusive-coupons-swiper .coupon-grid-card {
    width: 100%;
    margin: 0 !important;
}

.popular-coupons-swiper .swiper-button-next,
.popular-coupons-swiper .swiper-button-prev,
.exclusive-coupons-swiper .swiper-button-next,
.exclusive-coupons-swiper .swiper-button-prev {
    color: #ed174f;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.popular-coupons-swiper .swiper-button-next:after,
.popular-coupons-swiper .swiper-button-prev:after,
.exclusive-coupons-swiper .swiper-button-next:after,
.exclusive-coupons-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.popular-coupons-swiper .swiper-button-next:hover,
.popular-coupons-swiper .swiper-button-prev:hover,
.exclusive-coupons-swiper .swiper-button-next:hover,
.exclusive-coupons-swiper .swiper-button-prev:hover {
    background: #ed174f;
    color: white;
    transform: scale(1.1);
}

.popular-coupons-swiper .swiper-pagination,
.exclusive-coupons-swiper .swiper-pagination {
    bottom: 10px;
}

.popular-coupons-swiper .swiper-pagination-bullet,
.exclusive-coupons-swiper .swiper-pagination-bullet {
    background: #ed174f;
    opacity: 0.3;
    width: 10px;
    height: 10px;
}

.popular-coupons-swiper .swiper-pagination-bullet-active,
.exclusive-coupons-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Mobile adjustments for swiper */
@media (max-width: 640px) {
    .popular-coupons-swiper,
    .exclusive-coupons-swiper {
        padding: 10px 30px 40px 30px;
    }
    
    .popular-coupons-swiper .swiper-slide,
    .exclusive-coupons-swiper .swiper-slide {
        padding: 0 8px !important;
    }
    
    .popular-coupons-swiper .swiper-button-next,
    .popular-coupons-swiper .swiper-button-prev,
    .exclusive-coupons-swiper .swiper-button-next,
    .exclusive-coupons-swiper .swiper-button-prev {
        width: 28px;
        height: 28px;
    }
    
    .popular-coupons-swiper .swiper-button-next:after,
    .popular-coupons-swiper .swiper-button-prev:after,
    .exclusive-coupons-swiper .swiper-button-next:after,
    .exclusive-coupons-swiper .swiper-button-prev:after {
        font-size: 12px;
    }
    
    .popular-coupons-swiper .swiper-button-next,
    .exclusive-coupons-swiper .swiper-button-next {
        right: 5px;
    }
    
    .popular-coupons-swiper .swiper-button-prev,
    .exclusive-coupons-swiper .swiper-button-prev {
        left: 5px;
    }
}
