/* 1a. Import your font (add to top of the file) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}

/* Header */
.portfolio-header {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.portfolio-header h1 {
    font-size: 28px;
    font-family: 'Poppins', sans-serif;
}

.portfolio-header .subtitle {
    color: #555;
    white-space: nowrap;
    font-weight: normal;
    font-size: 1rem;
}

.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: inline;
        color: #d9534f;
        font-weight: 600;
        margin-left: 6px;
        font-size: 0.95rem;
    }
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Cards Wrapper */
.cards-wrapper {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 40px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 32px;
    padding-inline: 1.5rem;
}

.cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* Offer Card */
.offer-card {
    flex: 0 0 280px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    padding: 16px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    width: 100%;
    height: 160px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 12px;

}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

/* Chip, Number, Expiry, Holder */
.chip {
    width: 40px;
    height: 30px;
    background: gold;
    border-radius: 4px;
}

.number {
    margin-top: 24px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.expiry {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 0.85rem;
}

.holder {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Name & Benefits */
.card-name {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.offer-benefits {
    list-style: none;
    margin-bottom: 6px;
}

.offer-benefits li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.offer-benefits li:before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #00a859;
}

/* Apply Button */
.apply-btn {
    margin-top: auto;
    text-align: center;
    display: block;
    width: 100%;
    padding: 8px 0;
    color: #fff;
    background: linear-gradient(90deg, #FFA500, #FF4081);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.apply-btn:hover {
    background: linear-gradient(90deg, #ff8c00, #e91e63);
    transform: translateY(-2px);
}

/* Navigation Arrows (revamped) */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.nav.prev {
    left: -40px;
}

.nav.next {
    right: -10px;
}

.nav:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f7fa;
    padding: 6px 0;
    z-index: 10;
}

.site-footer ul {
    display: flex;
    gap: 24px;
    justify-content: center;
    list-style: none;
}

.site-footer a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel {
        padding: 0 16px;
    }

    .offer-card {
        flex: 0 0 75vw;
    }

    .nav {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
}

/* Mobile override – buttons sit only 12px outside on small screens */
@media (max-width: 768px) {
    .nav.prev {
        left: -12px;
    }

    .nav.next {
        right: -12px;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

#modal-body p {
    margin: 0.75rem 0;
}

.modal-body {
    overflow-y: auto;
}

.modal-footer {
    margin-top: auto;
}

#modal-ok-btn {
    margin-top: 1.5rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
