/** Shopify CDN: Minification failed

Line 148:23 Expected ":"

**/
/* General styles for the section */
.affinity-partners-section {
    padding: 20px;
    font-family: Helvetica, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f7f7f7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #ffffff;
    color: #0366b0;
    font-weight: bold;
}

/* Style category filter buttons with their respective colors */
.filter-btn.hospitals_clinics { background-color: #28a745; color: #fff; }
.filter-btn.medicines { background-color: #ff6f61; color: #fff; }
.filter-btn.fitness { background-color: #17a2b8; color: #fff; }
.filter-btn.retail { background-color: #ffc107; color: #fff; }
.filter-btn.lifestyle { background-color: #6f42c1; color: #fff; }
.filter-btn.food { background-color: #fd7e14; color: #fff; }
.filter-btn.dental { background-color: #ff8c00; color: #fff; }
.filter-btn.automotive { background-color: #007bff; color: #fff; }

/* Style the counter inside filter buttons */
.filter-btn .count {
    font-weight: bold;
    padding-left: 5px;
}

.filter-btn:hover {
    background-color: #0073e6;
    color: #fff;
    border-color: #0073e6;
}

/* Partners Grid - Keeps 4 per row but centers items when fewer exist */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; /* Reduced gap for better spacing */
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Ensures partner cards have uniform width and do not stretch */
.partners-grid .partner-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(25% - 15px); /* Default: 4 per row */
    max-width: calc(25% - 15px);
    min-width: 250px;
    margin: 5px; /* Adjusted spacing for better layout */
}

/* Partner Card - Default */
.partner-card {
    position: relative;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Keeps layout stable */
    will-change: transform;
}

/* Stronger Glow Per Category */
.partner-card.hospitals_clinics { box-shadow: 0 0 12px rgba(40, 167, 69, 0.8); }
.partner-card.medicines { box-shadow: 0 0 12px rgba(255, 111, 97, 0.8); }
.partner-card.fitness { box-shadow: 0 0 12px rgba(23, 162, 184, 0.8); }
.partner-card.retail { box-shadow: 0 0 12px rgba(255, 193, 7, 0.8); }
.partner-card.lifestyle { box-shadow: 0 0 12px rgba(111, 66, 193, 0.8); }
.partner-card.food { box-shadow: 0 0 12px rgba(253, 126, 20, 0.8); }
.partner-card.dental { box-shadow: 0 0 12px rgba(255, 140, 0, 0.8); }
.partner-card.automotive { box-shadow: 0 0 12px rgba(0, 123, 255, 0.8); }

/* Hover Glow Fix (No Layout Shift) */
.partner-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--glow-color, rgba(255, 255, 255, 0.6));
    outline: 2px solid var(--glow-color, rgba(255, 255, 255, 0.6)); /* Glow outline instead of shadow expansion */
}

/* Assign Glow Color Per Category */
.partner-card.hospitals_clinics:hover { --glow-color: rgba(40, 167, 69, 1); }
.partner-card.medicines:hover { --glow-color: rgba(255, 111, 97, 1); }
.partner-card.fitness:hover { --glow-color: rgba(23, 162, 184, 1); }
.partner-card.retail:hover { --glow-color: rgba(255, 193, 7, 1); }
.partner-card.lifestyle:hover { --glow-color: rgba(111, 66, 193, 1); }
.partner-card.food:hover { --glow-color: rgba(253, 126, 20, 1); }
.partner-card.dental:hover { --glow-color: rgba(255, 140, 0, 1); }
.partner-card.automotive:hover { --glow-color: rgba(0, 123, 255, 1); }

/* Fixes Spacing When Only 1-3 Partners Exist */
.partners-grid:has(.partner-card:nth-child(3)) {
    justify-content: center;
}

/* Offer Valid Until Styling - Darker & Visible */
.offer-valid-until {
    color: #B22222; /* Darker red for contrast */
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    background-color: #ffcccc; /* Darker pastel red to remain visible */
    padding: 5px 10px;
    border-radius: 10px; /* More rounded */
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Desktop: Keeps 4 per row */
@media (min-width: 1024px) {
    .partners-grid {
        justify-content center;
    }
    .partners-grid .partner-card {
        flex: 1 1 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

/* Tablet: Adjusts to 3 per row */
@media (max-width: 1023px) {
    .partners-grid {
        justify-content: center;
    }
    .partners-grid .partner-card {
        flex: 1 1 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }
}

/* Mobile: Adjusts to 2 per row */
@media (max-width: 768px) {
    .partners-grid {
        justify-content: center;
    }
    .partners-grid .partner-card {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* Small Mobile: 1 per row */
@media (max-width: 480px) {
    .partners-grid {
        justify-content: center;
    }
    .partners-grid .partner-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Partner Image Wrapper */
.partner-image-wrapper {
    position: relative;
    overflow: hidden;
}

.partner-image {
    width: 100%;
    object-fit: cover;
    height: 200px;
}

.partner-logo {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 1);
}

/* Partner Details */
.partner-details {
    padding: 15px;
}

.partner-name {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px;
}

.partner-description {
    font-size: 14px;
    color: #666;
    line-height: 1.2;
    white-space: pre-wrap;
    margin: 0;
}

/* Remove underline from all links */
a {
    text-decoration: none;
}

.partner-card.expired {
}