/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
}

/* HERO SECTION */
.card-hero {
    background: url('./credit.webp')
        center/cover no-repeat;
    height: 50vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.card-hero .hero-content {
    position: relative;
    color: #fff;
    text-align: center;
}

.card-hero h1 {
    font-size: 40px;
    letter-spacing: 1px;
}

.card-hero p {
    font-size: 18px;
    margin-top: 10px;
}

/* CARD DETAILS SECTION */
.card-info-section {
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.card-box, .limit-box {
    flex: 1 1 300px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.credit-card {
    background: linear-gradient(120deg, #6a5acd, #836fff, #7db0f7);
    padding: 20px;
    color: #fff;
    border-radius: 15px;
    margin-top: 10px;
}

.credit-card .number {
    font-size: 20px;
    margin: 10px 0;
}

.credit-card .row {
    display: flex;
    justify-content: space-between;
}

/* TRANSACTION LIST */
.transactions {
    padding: 50px 10%;
}

.transactions h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.transaction-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.transaction-card {
    background: linear-gradient(135deg, #fff, #f8f8ff);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transaction-card .title {
    font-size: 18px;
    font-weight: bold;
}

.transaction-card .amount {
    color: #d9534f;
    font-size: 20px;
    margin: 8px 0;
}

.transaction-card .time {
    font-size: 14px;
    opacity: 0.7;
}

/* ⭐ MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .card-hero h1 {
        font-size: 28px;
    }
    .card-info-section {
        flex-direction: column;
    }
    .credit-card .number {
        font-size: 18px;
    }
}

/* ⭐ SMALL MOBILE */
@media (max-width: 480px) {
    .card-hero {
        height: 40vh;
    }
    .card-hero h1 {
        font-size: 22px;
    }
    .card-hero p {
        font-size: 14px;
    }
}


* { margin: 0; padding: 0; box-sizing: border-box; font-family: Poppins, sans-serif; }

.offers-hero {
    height: 45vh;
    background: url('./credit1.webp')
        center/cover no-repeat;
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.hero-content { position: relative; text-align: center; color: #fff; }

.hero-content h1 { font-size: 36px; }
.hero-content p { margin-top: 10px; font-size: 16px; opacity: 0.8; }

.offers-grid {
    padding: 50px 9%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 25px;
}

.offer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-align: center;
}

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

.offer-card h3 {
    font-size: 20px; margin: 15px 0 8px;
}

.offer-card p {
    padding: 0 15px 20px; font-size: 14px; opacity: 0.7;
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px; }
}
