/* ================================================================
   BROWSE PROMOTIONS PAGE
   Design pattern aligned with store.css / about-us.css.
   Class names intentionally avoid "ad"/"ads" prefixes so that
   browser ad-blockers don't hide the section for some users.
   ================================================================ */

.promo-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ── Hero ─────────────────────────────────────────── */
.promo-hero {
    text-align: center;
    padding: 60px 24px 48px;
    margin-bottom: 48px;
    position: relative;
}

.promo-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #E8BA00, #F5D442);
    border-radius: 2px;
}

.promo-hero-label {
    display: inline-block;
    font-family: 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #E8BA00;
    background: rgba(232, 186, 0, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.promo-hero-title {
    font-family: 'Rubik', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 14px;
    line-height: 1.25;
}

.promo-hero-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6B7280;
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.6;
}

/* ── Filter Tabs ──────────────────────────────────── */
.promo-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.promo-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #6B7280;
    background: #fff;
    border: 1px solid #F3F4F6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.promo-tab i {
    font-size: 14px;
}

.promo-tab:hover {
    color: #111827;
    border-color: rgba(232, 186, 0, 0.4);
    background: rgba(232, 186, 0, 0.03);
    text-decoration: none;
}

.promo-tab.is-active {
    background: linear-gradient(135deg, #E8BA00, #F5D442);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(232, 186, 0, 0.25);
}

.promo-tab.is-active:hover {
    color: #fff;
}

/* ── Grid ─────────────────────────────────────────── */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ── Card ─────────────────────────────────────────── */
.promo-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(232, 186, 0, 0.3);
}

.promo-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #F3F4F6;
    background-size: cover;
    background-position: center;
}

.promo-card-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 20px;
}

.promo-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.promo-card-title {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card-desc {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #6B7280;
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
}

.promo-card-date {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #9CA3AF;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-card-date i {
    color: #E8BA00;
}

.promo-card-link {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #345830;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.promo-card:hover .promo-card-link {
    gap: 10px;
}

/* ── Empty State ──────────────────────────────────── */
.promo-empty {
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border: 1px dashed #E5E7EB;
    border-radius: 20px;
}

.promo-empty-icon {
    font-size: 56px;
    color: #D1D5DB;
    display: block;
    margin-bottom: 18px;
}

.promo-empty-title {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 6px;
}

.promo-empty-text {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #6B7280;
    margin: 0;
}

/* ── Pagination ───────────────────────────────────── */
.promo-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.promo-pagination .pagination {
    gap: 6px;
}

.promo-pagination .page-item .page-link {
    border-radius: 10px;
    border: 1px solid #F3F4F6;
    color: #6B7280;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.promo-pagination .page-item .page-link:hover {
    color: #111827;
    border-color: rgba(232, 186, 0, 0.4);
    background: rgba(232, 186, 0, 0.05);
}

.promo-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #E8BA00, #F5D442);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 186, 0, 0.25);
}

.promo-pagination .page-item.disabled .page-link {
    color: #D1D5DB;
    background: #FAFAFA;
}

/* ── Modal ────────────────────────────────────────── */
#promoInfoModal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

#promoInfoModal .modal-body {
    border-radius: 24px;
    overflow: hidden;
}

/* ── RTL tweaks ───────────────────────────────────── */
.promo-page.rtl .promo-hero-title,
.promo-page.rtl .promo-hero-subtitle {
    direction: rtl;
}

.promo-page.rtl .promo-card-title,
.promo-page.rtl .promo-card-desc {
    text-align: right;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
    .promo-page {
        padding: 20px 16px 60px;
    }

    .promo-hero {
        padding: 30px 16px 36px;
        margin-bottom: 32px;
    }

    .promo-hero-title {
        font-size: 26px;
    }

    .promo-hero-subtitle {
        font-size: 14px;
    }

    .promo-tabs {
        gap: 8px;
        margin-bottom: 28px;
    }

    .promo-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .promo-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-hero-title {
        font-size: 22px;
    }
}
