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

body {
    background: #f8fafc;
    color: #1e293b;
}

/* TOP BANNER */
.top-banner {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.banner-content h1 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.banner-content p {
    color: #3b82f6;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* MAIN CONTAINER */
.main-container {
    padding: 40px 16px;
    background: transparent;
}

.layout {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-box,
.sidebar-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.card-box h3,
.sidebar-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.card-box p,
.checkbox-item {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.card-box .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

.card-box .row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.card-box .row span:first-child {
    color: #64748b;
}

.card-box .row span:last-child {
    font-weight: 600;
    color: #2563eb;
}

.custom-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* COUPON CARD */
.coupon-card {
    background: #fff;
    padding: 20px;
    /* border-radius: 16px; */
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    min-height: 200px;
    height: 80%;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.image-box {
    background: #f0f7ff;
    padding: 20px;
    /* border-radius: 12px; */
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.meta i {
    color: #10b981;
}

.discount {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.coupon-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expiry {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.get-code-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.get-code-btn:hover {
    background: #1d4ed8;
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet View (max-width: 1024px) */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-content h1 {
        font-size: 1.75rem;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 1;
        /* Sidebar at the top */
    }

    .cards-grid {
        order: 2;
        /* Cards below */
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .top-banner {
        min-height: 150px;
        padding: 30px 15px;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .main-container {
        padding: 20px 12px;
    }
}
