body {
    background-color: #FAFAFA;
}

.text-secondary-color {
    color: var(--secondary-color);
}

/* Footer */
.footer-logo {
    width: 70px;
}

footer.footer-border-top {
    border-top: unset;
}

/* Buttons */
.btn.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.btn-secondary:hover,
.btn.btn-secondary:focus,
.btn.btn-secondary:active {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
}

.btn.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-text-color);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-text-color);
}

/* Links */
a {
    color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

input[type=radio]:checked:before {
    background-color: var(--primary-color) !important;
}

.retailers-container {
    width: 100%;
}

.retailer-item {
    padding: 0 10px;
}

/* Hide the dots navigation if you don't want it */
.slick-dots {
    display: none !important;
}

.offers-container {
    display: flex;
    overflow-x: auto;
    padding: 20px;
}

.offers-slider {
    display: flex;
    gap: 15px;
}

.offer-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    min-width: 300px;
    min-height: 380px;
    max-height: 380px;
    transition: transform 0.3s;
}

.offer-item:hover {
    transform: scale(1.05);
}

.offer-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.offer-content {
    padding: 15px;
    text-align: center;
}

.offer-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.offer-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.offer-retailer {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.retailer-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.retailer-name {
    font-size: 14px;
    font-weight: bold;
}

.offer-value .value-badge {
    background: var(--secondary-color);
    color: #fff;
    padding: 1px 5px;
    border-radius: 5px;
    font-weight: bold;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.counter-text {
    font-weight: bold;
    color: var(--primary-color);
}

.featured-offer {
    position: relative;
}

.featured-item {
    padding: 0;
}

.featured-item img {
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    filter: brightness(0.8);
}

.erm-1-5 {
    font-size: 1.5rem !important;
}

.featured-slider {
    display: none;
}

.featured-slider.slick-initialized {
    display: block;
}



/* .featured-offer img {
    width: 85vw;
}

.featured-item {
    width: 85vw;
} */

/* Base styles */
.featured-offer {
    width: 100%;
}

.featured-item {
    width: 100%; /* Make items fill their container */
}

.featured-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Media Queries using better breakpoints */
@media (max-width: 1200px) {
    .featured-offer {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .featured-offer {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .featured-offer {
        max-width: 100%;
    }

    .category-name {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    /* .featured-offer,
    .featured-item img {
        width: 90vw;
    } */

    .retailer-image {
        width: 175px !important;
        height: 175px !important;
        margin: 0 auto;
    }

    .home-page .retailer-card {
        /* margin-bottom: 25px; */
    }

    .home-page .retailer-text {
        margin: 0 auto;
    }

    .px-sm-3 {
        padding-right: .7rem !important;
        padding-left: .7rem !important;
    }

    .category-page .retailer-card {
        width: 100%;
    }

    .header.display-5 {
        font-size: 1.5rem !important;
    }
}

.home-page {
    overflow: hidden;
}

.header-container {
    padding: 15px 5px 5px 5px;
}
/* Style for Slick dots */
.slick-dots {
    bottom: -30px;
    position: absolute;
    width: 100%;
    padding: 0;
    list-style: none;
    text-align: center;
    display: block !important;
}

.slick-dots li {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    padding: 0;
    cursor: pointer;
}

.slick-dots li.slick-active button:before {
    color: var(--primary-text-color-2) !important;
}

.slick-dots li button:before {
    font-size: 9px !important;
}

.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 10px;
    height: 10px;
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
}

.slick-dots li button:before {
    content: '•';
    font-size: 30px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    text-align: center;
    opacity: .25;
    color: black;
}

.slick-dots li.slick-active button:before {
    opacity: .75;
}

.category-name {
    background-color: #afbac1;
    color: #fff;
    font-weight: bold;
    border-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 10px;
    height: 85px;
    max-height: 85px;
    min-height: 85px;
    display: grid;
    align-content: center;
    justify-content: center;
}

.category-image {
    background-color: #E0E5DD;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 10px;
    opacity: 0.4;
    display: grid;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 25px;
    height: 25px;
}

.offer-details-container {
    top: 65px;
    left: 30px;
    color: #fff;
}

.categories-slider .slick-slide {
    margin: 0 25px !important;
}

.retailer-image {
    width: 260px;
    height: 260px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 4px 4px #c5c5c5;
    display: grid;
    place-items: center;
    border-radius: 5px;
}

.retailer-image img {
    width: 120px;
    height: 120px;
}

.retailer-name-text {
    color: #696D84;
}

.hours,
.minutes,
.seconds {
    background-color: #fff;
    color: #000;
    padding: 6px;
    border-radius: 10px;
}

.error-page>* {
    color: var(--dark-color) !important;
}

@media (max-width: 576px) {




    .category-page .retailer-card .retailer-link {
        border-radius: 5px;
    }

    .category-page .retailer-card .retailer-image {
        box-shadow: unset;
        border-radius: unset;
    }

    .category-page .retailer-card .retailer-link {
        display: flex;
    }

    .category-page .retailer-card .retailer-image {
        width: 25%;
    }

    .category-page .retailer-card .retailer-text {
        width: 75%;
    }

    .category-page .retailer-card .retailer-text {
        place-content: baseline;
    }

    .category-page .retailer-card .retailer-rate {
        margin-top: 15%;
    }

    .category-page .retailers-container {
        margin: 10px;
        width: fit-content;
    }

    .category-page .retailer-card {
        background-color: #ffff;
        border-radius: 10px;
    }
}

.home-page .retailer-name-text.text-muted {
    display: none;
    /* Hide description on home page */
}

/* Preserve existing mobile styles for category page */
@media (max-width: 576px) {
    .category-page .retailer-card .retailer-link {
        border-radius: 5px;
        display: flex;
    }

    .category-page .retailer-card .retailer-image {
        box-shadow: unset;
        border-radius: unset;
        width: 25%;
    }

    .category-page .retailer-card .retailer-text {
        width: 75%;
        place-content: baseline;
    }

    .category-page .retailer-card .retailer-rate {
        margin-top: 15%;
    }

    .category-page .retailers-container {
        margin: 10px;
        width: fit-content;
    }

    .category-page .retailer-card {
        background-color: #fff;
        border-radius: 10px;
    }

    .offer-item,
    .offers-container {
        margin: 0 auto;
    }
}

.offers-container {
    justify-content: space-between;
}

.offer-item .offer-name,
.offer-item .offer-description,
.offer-item .retailer-name {
    color: var(--primary-dark-color) !important;
}

.text-main {
    color: var(--primary-color) !important;
}

.loading {
    background-image: url("../img/zida/loader.gif");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.offcanvas .list-group-item {
    border: 0 !important;
    border-bottom: 1px solid #cdcdcd !important;
    border-radius: 0;
}

.navbar .container-fluid {
    justify-content: space-around !important;
}

.text-dark a {
    color: var(--primary-dark-color);
}

.avatar-nav {
    width: 50px;
    height: 50px;
    text-align: center;
    margin: 0 auto;
    border-radius: 10px;
}

.avatar-dropdown {
    float: right;
}

.avatar-profile {
    width: 150px;
    height: 150px;
    border-radius: 70px;
    background-color: #fff;
    padding: 15px;
}

.avatar-icon {
    cursor: pointer;
    color: purple;
    font-size: 23px !important;
    position: absolute;
    top: 10px;
    left: 150px;
}

.profile-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

/* .custom-swal-toast .swal2-html-container{
    width: 250px;
} */
.custom-swal-toast .swal2-toast div:where(.swal2-html-container) {
    margin: .5em 0em .5em 1em !important;
    width: 100% !important;
}

.swal2-toast>* {
    grid-column: unset !important;
}

.redeem-card {
    position: fixed;
    background-color: #fff;
    top: 50%;
    left: 50%;
    width: 460px;
    height: 535px;
    border-radius: 15px;
    transform: translate(-50%, -50%);
    box-shadow: 1px 3px 11px #a7a7a7;
}

.redeem-card .redeem-success-img {
    width: 200px;
}

.close-redeem-card {
    position: absolute;
    top: 10px;
    right: 10px;
}

.reward-image {
    text-align: center;
    display: grid;
    place-content: center;
}

.reward-image img {
    width: 50px;
    height: 50px;
}

#qrcode canvas {
    width: 130px !important;
}

.transactions-tabs .tab a.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    font-weight: bold;
}

.transactions-tabs .tab a {
    background-color: var(--primary-text-color) !important;
    color: var(--primary-dark-color) !important;
    font-weight: bold;
    border-radius: 8px;
    height: 25px;
    font-size: 0.8rem;
    padding: 4px 0;
}

.transactions-tabs {
    margin-bottom: 10px;
}

.transactions-container {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
}

/* .transactions-container .list-group .list-group-item {
    margin-bottom: 24px !important;
    border: 1px solid #e7e7e7 !important;
} */

.credit-header {
    background-color: #ffffff70;
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 4px #b3b3b3;
    font-size: 15px;
}

.credit-header img {
    width: 25px;
    height: 25px;
}

.btn-main {
    color: var(--primary-color);
    font-weight: bold;
    background-color: transparent;
    border: 0;
}

.btn-main {}

.qrcode-modal .modal-dialog-centered {
    align-items: baseline;
    margin-top: 150px;
}

.qrcode-modal #qrcode canvas {
    width: 245px !important;
}

.offer-details-image {
    border-radius: 10px;
}

.credit-offer-detail {
    width: fit-content;

}

@media (max-width: 767px) {

    .transaction-image-container {
        width: 100%;
    }

    .transaction-causer-image {
        width: 100%;
    }

    .transaction-point-details {
        width: 100%;
    }

    .causer-name {
        text-align: center;
    }


    /* Offer Page */

    .offer-page .offer-box .retailer-name {
        margin-top: 10px;
    }

    .offer-page .offer-box .redeem-offer {
        width: 100% !important;
        margin-top: 10px;
    }

    .offer-page .offer-box .view-offers {
        width: 100% !important;
        margin-top: 10px;
    }

    .offer-page .header.display-5 {
        display: flex;
        align-items: center;
        font-size: 1rem !important;
    }

    .redeem-card {
        top: 55%;
        width: 90%;
        height: 80%;
        border-radius: 15px;
    }

    .redeem-card .redeem-success-img {
        width: 120px;
    }

    footer .operator {
        display: none;
    }

    footer .copy-rights {
        display: grid!important;
    }
}

/* Buttons */
.btn.btn-second {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--primary-text-color);
}

.btn.btn-second:hover,
.btn.btn-second:focus,
.btn.btn-second:active {
    background-color: var(--secondary-color);
    color: var(--primary-text-color);
}

.slick-dots {
    bottom: 10px !important;
}

.slick-dots li button:before {
    opacity: 0.7 !important;
    color: #FFF !important;
}

.slick-dotted.slick-slider {
    margin-bottom: 0px !important;
}

.categories-slider .slick-list{padding:0 20% 0 0 !important;}

.vouchers-container {

}

/* Voucher Card Styles */
.voucher-card {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 250px;
    margin: 20px auto;
    background: linear-gradient(to bottom, #f75327 9%, #4022df 66%);
    border-radius: 16px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
}

.voucher-card.used {
    background: #ccc;
}

.voucher-bottom.used {
    background: #ccc;
}

.voucher-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    height: 55%;
}

.voucher-info {
    max-width: 70%;
}

.voucher-website {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.voucher-heading {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.voucher-discount {
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-circle {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-circle span {
    font-size: 1.1rem;
    font-weight: bold;
}

.voucher-divider {
    height: 1px;
    width: 100%;
    background: dashed white;
    position: relative;
    border-top: 2px dashed white;
}

.voucher-divider::before,
.voucher-divider::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #FAFAFA;
    border-radius: 50%;
    top: -12px;
}

.voucher-divider::before {
    left: -12px;
}

.voucher-divider::after {
    right: -12px;
}

.voucher-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    height: 45%;
    background:  #4022df;
}

.voucher-countdown {
    display: flex;
    flex-direction: column;
}

.voucher-applies {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.countdown-container {
    display: flex;
    align-items: center;
}

.countdown-digit {
    width: 40px;
    height: 40px;
    background-color: #f3ddce;
    color: #FF6347;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 2px;
}

.countdown-separator {
    font-size: 1.5rem;
    margin: 0 5px;
    font-weight: bold;
}

.voucher-name {
    display: flex;
    flex-direction: column;
}

.name-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.name-value {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.voucher-qr {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Modal QR code styles */
#qrcode {
    margin: 0 auto;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voucher-card {
        height: auto;
        min-height: 220px;
    }
    
    .voucher-heading {
        font-size: 1.2rem;
    }
    
    .discount-circle {
        width: 60px;
        height: 60px;
    }
    
    .discount-circle span {
        font-size: 1.1rem;
    }
    
    .countdown-digit {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}