:root {
    --primary-color: #002e5b;
    --secondary-color: #004080;
    --accent-red: #ff4d4d;
    --accent-blue: #007bff;
    --accent-orange: #ff5e14;
    --text-color: #333;
    --text-muted: #777;
    --bg-color: #ffffff;
    --white: #ffffff;
    --border-color: #eeeeee;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 12px;
    --radius-md: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--text-color);
    background-color: var(--white) !important; /* Force pure white background */
    line-height: 1.6;
}

.deals-container {
    background-color: var(--white) !important; /* Ensure content area is white too */
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.deals-header {
    background-color: var(--white);
    
    color: var(--primary-color);
    padding: 23px 0;
    text-align: center;
}

.deals-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.text-orange {
    color: var(--accent-orange);
}

.deals-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-content-box {
    border-bottom: 1px solid #ff5e14; /* Narrow orange line under content */
    padding: 0 20px 15px 20px; /* Reduced vertical gap */
    display: inline-block;
    max-width: 850px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .deals-header h1 {
        font-size: 32px;
    }

    .deals-header p {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .deals-header {
        padding: 30px 0; /* Reduced padding */
    }

    .hero-content-box {
        padding: 0 10px 10px 10px; /* Further reduce padding for smaller screens */
    }

    .deals-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .deals-header {
        padding: 20px 0;
    }

    .hero-content-box {
        padding: 0 5px 8px 5px;
    }

    .deals-header h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .deals-header p {
        font-size: 15px;
        line-height: 1.4;
    }
}

.container-second {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container-second {
        margin: 20px auto;
    }
}

/* Layout */
.voucher-layout {
    display: flex;
    gap: 30px;
}

@media (max-width: 992px) {
    .voucher-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar {
        order: 2 !important;
    }

    .main-content {
        order: 1 !important;
    }
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .sidebar-card {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        order: 2; /* Main content first on tablet/mobile */
        margin-top: 20px;
    }
}

/* ===============================
   COMMON LIST STYLE
================================ */
.filter-list,
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item,
.categories-list li {
    margin-bottom: 6px;
}

/* ===============================
   FULL CLICKABLE ROW
================================ */
.custom-check {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 12px;
    border-radius: 8px;

    cursor: pointer;
    transition: 0.25s ease;
    user-select: none;

    border: none;
    /* border removed */
}

/* hover effect */
.custom-check:hover {
    background: #e9eef5;
}

/* ===============================
   HIDE DEFAULT CHECKBOX
================================ */
.custom-check input {
    display: none;
}

/* ===============================
   CUSTOM BOX
================================ */
.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #003566;
    border-radius: 5px;
    position: relative;
    flex-shrink: 0;
}

/* ===============================
   CHECKED STATE
================================ */
.custom-check input:checked+.checkmark {
    background: #003566;
}

/* tick */
.custom-check input:checked+.checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: absolute;
    top: -2px;
    left: 3px;
}

/* bold text when selected */
.custom-check input:checked~* {
    font-weight: 600;
}

/* ===============================
   SIDEBAR CARD LOOK (optional)
================================ */
.sidebar-card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 18px;
}



.sidebar-card h3 {
    font-size: var(--h3-size, 24px);
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-all {
    font-size: 12px;
    color: #ff5e14;
    text-decoration: none;
    font-weight: 400;
}

.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .top-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.small-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    padding: 15px;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.small-card-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.small-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-badge-mini {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 4px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-badge-mini img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.small-card-info h4 {
    font-size: var(--body-large, 18px);
    margin-bottom: 8px;
    font-weight: 700;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.old-price {
    text-decoration: line-through;
    color: var(--accent-red);
    font-size: 12px;
}

.new-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.validity {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.deal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-deal-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 480px) {
    .small-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .small-card-img {
        width: 100%;
        max-width: 250px;
        height: 180px;
    }

    .small-card-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .price-row,
    .validity,
    .deal-actions {
        justify-content: center;
        width: 100%;
    }
}

/* Large Card */
.large-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.large-card-main {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.large-card-img {
    width: 220px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.large-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-card-info h3 {
    font-size: var(--h3-size, 24px);
    font-weight: 700;
    margin-bottom: 12px;
}

.large-card-info .desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.large-card-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.brand-logo-large {
    height: 35px;
}

.brand-logo-large img {
    height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.user-count {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    overflow: hidden;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-actions {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
}

.card-actions i {
    cursor: pointer;
    font-size: 20px;
}

@media (max-width: 768px) {
    .large-card-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .large-card-img {
        width: 100%;
        max-width: 350px;
        height: 220px;
    }

    .large-card-footer {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }

    .brand-info,
    .user-count,
    .card-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination */
.pagination-wrapper {
    margin: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-wrapper nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

.pagination-wrapper .page-item a,
.pagination-wrapper .page-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    background: white;
    font-size: 14px;
}

.pagination-wrapper .page-item.active span {
    background: #ff5e14;
    color: white;
}

@media (max-width: 576px) {

    .pagination-wrapper .page-item a,
    .pagination-wrapper .page-item span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container-second {
        margin: 15px auto;
        padding: 0 15px;
    }
    
    .voucher-layout {
        gap: 20px;
    }
    
    .large-card-main {
        padding: 20px;
        gap: 20px;
    }
}

.heart-btn.active {
    color: var(--accent-red) !important;
}

.section-heading {
    font-size: var(--h2-size, 32px);
    font-weight: 700;
    margin: 40px 0 25px;
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 22px;
        text-align: center;
    }
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    background: #f0f4f8;
    color: #446084;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.promo-banner>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 48, 102, 0.9);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}