/* =========================================================================
   SWEEPS — DESIGN SYSTEM v2
   A complete visual refresh of the public site. Every class below is
   consumed by existing PHP templates (header/footer, home sections,
   listing/detail pages, blog, account, auth, CMS). No markup or PHP was
   changed to produce this file — only the look.
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
--------------------------------------------------------------------- */

:root {
    /* Brand */
    --sw-primary: #5b3df5;
    --sw-primary-dark: #4326d1;
    --sw-primary-darker: #331c9e;
    --sw-primary-light: #ede9fe;
    --sw-primary-soft: #f4f1ff;

    --sw-accent: #ffb020;
    --sw-accent-dark: #e8930b;
    --sw-accent-soft: #fff4de;

    --sw-success: #16a34a;
    --sw-success-soft: #e8f9ee;
    --sw-danger: #e0324c;
    --sw-danger-soft: #fdeced;
    --sw-info: #2563eb;
    --sw-info-soft: #eaf1ff;

    /* Neutrals */
    --sw-ink: #14122b;
    --sw-ink-soft: #4a4766;
    --sw-body: #6b6885;
    --sw-muted: #8b88a3;
    --sw-line: #e7e5f2;
    --sw-line-soft: #f0eef8;
    --sw-surface: #ffffff;
    --sw-bg: #f8f7fd;
    --sw-bg-tint: #f3f1fc;
    --sw-navy: #16112e;
    --sw-navy-soft: #221b45;

    /* Gradient */
    --sw-gradient: linear-gradient(135deg, #6d3bf5 0%, #9b3df0 52%, #ff5fa2 100%);
    --sw-gradient-soft: linear-gradient(135deg, #f4f1ff 0%, #fdeef8 100%);
    --sw-gradient-dark: linear-gradient(160deg, #1a1436 0%, #241a4d 55%, #33195c 100%);

    /* Shape / motion */
    --sw-radius-sm: 10px;
    --sw-radius: 16px;
    --sw-radius-lg: 22px;
    --sw-radius-pill: 999px;
    --sw-shadow-sm: 0 2px 8px rgba(20, 18, 43, 0.06);
    --sw-shadow: 0 12px 30px -10px rgba(58, 33, 130, 0.18);
    --sw-shadow-lg: 0 30px 60px -20px rgba(35, 20, 90, 0.28);
    --sw-shadow-glow: 0 14px 28px -8px rgba(91, 61, 245, 0.45);
    --sw-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --sw-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
--------------------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--sw-bg);
    color: var(--sw-ink);
    font-family: var(--sw-font);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    /* Safety net: a single element that runs even a little wide (a fixed
       off-canvas panel, an unshrinkable flex row, a long unbroken word)
       forces a horizontal scrollbar - and with it, unwanted side-scroll -
       on the WHOLE page rather than just clipping that one element. */
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    color: var(--sw-ink);
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--sw-primary);
    color: #fff;
}

.sw-container {
    width: calc(100% - 40px);
    max-width: 1280px;
    margin: 0 auto;
}

.sw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Reusable buttons -------------------------------------------------- */

.sw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: var(--sw-radius-pill);
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--sw-ease), box-shadow 0.25s var(--sw-ease), background 0.25s var(--sw-ease), color 0.25s var(--sw-ease);
    white-space: nowrap;
}

.sw-btn-primary {
    background: var(--sw-gradient);
    color: #fff;
    box-shadow: var(--sw-shadow-glow);
}

.sw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -8px rgba(91, 61, 245, 0.55);
}

.sw-btn-light {
    background: #fff;
    color: var(--sw-ink);
    border: 1px solid var(--sw-line);
}

.sw-btn-light:hover {
    border-color: var(--sw-primary);
    color: var(--sw-primary);
    transform: translateY(-2px);
}

/* Chips / badges shared ---------------------------------------------- */

.sw-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sw-accent);
    box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.25);
    display: inline-block;
}

/* Alerts -------------------------------------------------------------- */

.sw-alert {
    padding: 14px 18px;
    border-radius: var(--sw-radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.sw-alert-success {
    background: var(--sw-success-soft);
    color: #0d7a3a;
    border-color: #bdeccd;
}

.sw-alert-danger {
    background: var(--sw-danger-soft);
    color: #b91c34;
    border-color: #f6c3cb;
}

/* Flash banner (dynamic type suffix from PHP) ------------------------- */

.sw-flash-message {
    position: relative;
    padding: 13px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: sw-flash-in 0.35s var(--sw-ease);
}

.sw-flash-message .sw-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.sw-flash-success { background: var(--sw-success-soft); color: #0d7a3a; }
.sw-flash-danger { background: var(--sw-danger-soft); color: #b91c34; }
.sw-flash-warning { background: var(--sw-accent-soft); color: #935c05; }
.sw-flash-info { background: var(--sw-info-soft); color: #1d4ed8; }

.sw-flash-close {
    background: rgba(0, 0, 0, 0.06);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    line-height: 1;
    cursor: pointer;
    font-size: 15px;
}

@keyframes sw-flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   3. TOP BAR
--------------------------------------------------------------------- */

.sw-topbar {
    background: var(--sw-navy);
    color: #c6c2e0;
    font-size: 12.5px;
}

.sw-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sw-topbar-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sw-topbar-message i {
    color: var(--sw-accent);
}

.sw-topbar-links {
    display: flex;
    gap: 22px;
}

.sw-topbar-links a {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.sw-topbar-links a:hover {
    opacity: 1;
    color: var(--sw-accent);
}

/* ---------------------------------------------------------------------
   4. HEADER
--------------------------------------------------------------------- */

.sw-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--sw-line-soft);
}

.sw-header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

/* Logo ----------------------------------------------------------------- */

.sw-logo-area {
    flex: 0 0 auto;
}

.sw-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-logo-image {
    max-height: 60px;
    width: auto;
}

.sw-logo-symbol {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--sw-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--sw-shadow-glow);
}

.sw-logo-text {
    font-size: 21px;
    font-weight: 800;
    color: var(--sw-ink);
    letter-spacing: -0.02em;
}

/* Search ----------------------------------------------------------------- */

.sw-header-search {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.sw-search-form {
    position: relative;
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    background: var(--sw-bg-tint);
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius-pill);
    padding: 4px 4px 4px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sw-search-form:focus-within {
    background: #fff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 4px var(--sw-primary-light);
}

.sw-search-form i {
    color: var(--sw-muted);
    font-size: 14px;
}

.sw-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 10px 10px;
    font-size: 14px;
    color: var(--sw-ink);
}

.sw-search-form input::placeholder {
    color: var(--sw-muted);
}

.sw-search-form button {
    border: none;
    background: var(--sw-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: var(--sw-radius-pill);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.sw-search-form button:hover {
    transform: translateY(-1px);
}

/* Header actions ----------------------------------------------------- */

.sw-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.sw-submit-sweep-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-primary-soft);
    color: var(--sw-primary-dark);
    font-weight: 700;
    font-size: 13.5px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sw-submit-sweep-btn:hover {
    background: var(--sw-primary-light);
    transform: translateY(-1px);
}

.sw-signin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: var(--sw-shadow-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sw-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -8px rgba(91, 61, 245, 0.5);
}

/* Account dropdown ----------------------------------------------------- */

.sw-account-dropdown {
    position: relative;
}

.sw-account-button {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--sw-bg-tint);
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius-pill);
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sw-account-button:hover {
    border-color: var(--sw-primary);
    background: #fff;
}

.sw-account-button img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.sw-account-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sw-ink);
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sw-account-button i {
    font-size: 11px;
    color: var(--sw-muted);
    transition: transform 0.2s ease;
}

.sw-account-dropdown.open .sw-account-button i,
.sw-account-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sw-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 250px;
    background: #fff;
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow-lg);
    border: 1px solid var(--sw-line-soft);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 80;
}

/* JS (assets/js/sweeps.js) toggles the ".open" class on .sw-account-dropdown */
.sw-account-dropdown.open .sw-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sw-account-menu-head {
    padding: 10px 12px 14px;
    border-bottom: 1px solid var(--sw-line-soft);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sw-account-menu-head strong {
    font-size: 14px;
    color: var(--sw-ink);
}

.sw-account-menu-head small {
    color: var(--sw-muted);
    font-size: 12px;
}

.sw-account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sw-ink-soft);
    transition: background 0.15s ease, color 0.15s ease;
}

.sw-account-menu a:hover {
    background: var(--sw-primary-soft);
    color: var(--sw-primary-dark);
}

.sw-account-menu a i {
    width: 16px;
    color: var(--sw-muted);
}

.sw-account-menu-divider {
    height: 1px;
    background: var(--sw-line-soft);
    margin: 8px 4px;
}

.sw-logout-link {
    color: var(--sw-danger) !important;
}

.sw-logout-link i {
    color: var(--sw-danger) !important;
}

/* Mobile menu button --------------------------------------------------- */

.sw-mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sw-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.sw-mobile-menu-button span {
    height: 2px;
    background: var(--sw-ink);
    border-radius: 2px;
    margin: 0 8px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* JS (assets/js/sweeps.js) toggles the ".mobile-open" class on .sw-header */
.sw-header.mobile-open .sw-mobile-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sw-header.mobile-open .sw-mobile-menu-button span:nth-child(2) { opacity: 0; }
.sw-header.mobile-open .sw-mobile-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   5. NAVIGATION
--------------------------------------------------------------------- */

.sw-navigation {
    border-top: 1px solid var(--sw-line-soft);
    background: #fff;
}

.sw-main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sw-main-nav > ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sw-main-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    padding: 15px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sw-ink-soft);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sw-main-nav > ul > li > a:hover {
    color: var(--sw-primary);
}

.sw-main-nav > ul > li.sw-active > a,
.sw-main-nav > ul > li.active > a {
    color: var(--sw-primary-dark);
    border-color: var(--sw-primary);
}

.sw-mobile-search,
.sw-mobile-actions {
    display: none;
}

/* ---------------------------------------------------------------------
   6. RESPONSIVE HEADER / NAV
--------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .sw-header-search { display: none; }
    .sw-account-name { display: none; }
    .sw-mobile-menu-button { display: flex; }

    /* The top row's own "Submit Sweep" pill was never hidden here, so at
       narrow widths it sat alongside the Sign In pill and the hamburger
       button and overflowed the header, pushing the whole page 60-70px
       wider than the viewport (visible as a persistent sliver of clipped
       content down the right edge of every page). It's already
       duplicated inside the slide-out menu as .sw-mobile-submit, so it's
       redundant here once the hamburger button appears. */
    .sw-submit-sweep-btn { display: none; }

    /* A backdrop-filter on an ancestor creates a containing block for
       fixed-position descendants, which would trap the full-screen
       .sw-navigation overlay inside .sw-header's own (much shorter) box
       instead of the viewport. Drop it below desktop so the overlay
       escapes to the viewport as intended. */
    .sw-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    .sw-navigation {
        position: fixed;
        inset: 0;
        top: 0;
        z-index: 90;
        background: #fff;
        transform: translateX(100%);
        transition: transform 0.3s var(--sw-ease);
        overflow-y: auto;
        border-top: none;
    }

    /* JS (assets/js/sweeps.js) toggles the ".mobile-open" class on .sw-header */
    .sw-header.mobile-open .sw-navigation {
        transform: translateX(0);
    }

    .sw-main-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 4px;
    }

    .sw-main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .sw-main-nav > ul > li > a {
        padding: 14px 6px;
        border-bottom: 1px solid var(--sw-line-soft);
        border-left: 3px solid transparent;
    }

    .sw-main-nav > ul > li.sw-active > a {
        border-left-color: var(--sw-primary);
        border-bottom-color: var(--sw-line-soft);
        background: var(--sw-primary-soft);
        padding-left: 12px;
    }

    .sw-mobile-search {
        display: block;
        margin-bottom: 18px;
    }

    .sw-mobile-search form {
        display: flex;
        border: 1px solid var(--sw-line);
        border-radius: var(--sw-radius-pill);
        overflow: hidden;
    }

    .sw-mobile-search input {
        flex: 1;
        border: none;
        padding: 12px 16px;
        outline: none;
    }

    .sw-mobile-search button {
        border: none;
        background: var(--sw-primary);
        color: #fff;
        width: 46px;
    }

    .sw-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid var(--sw-line-soft);
    }

    .sw-mobile-actions a {
        padding: 13px 6px;
        font-weight: 600;
        font-size: 14px;
        color: var(--sw-ink-soft);
    }

    .sw-mobile-submit {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--sw-primary-dark) !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 575.98px) {
    .sw-topbar-message span,
    .sw-topbar-message { font-size: 11.5px; }
    .sw-header-main { min-height: 66px; gap: 12px; }
    .sw-logo-text { font-size: 18px; }
}

/* ---------------------------------------------------------------------
   7. HERO
--------------------------------------------------------------------- */

.sw-hero {
    position: relative;
    overflow: hidden;
    background: var(--sw-gradient-dark);
    padding: 72px 0 56px;
}

.sw-hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    pointer-events: none;
}

.sw-hero-decoration-one {
    width: 420px;
    height: 420px;
    background: #7c3aed;
    top: -160px;
    right: -80px;
}

.sw-hero-decoration-two {
    width: 320px;
    height: 320px;
    background: #ff5fa2;
    bottom: -140px;
    left: -60px;
    opacity: 0.35;
}

.sw-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.sw-hero-content {
    padding: 10px 0;
}

.sw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: var(--sw-radius-pill);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e9e6ff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.sw-hero-title {
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.sw-hero-description {
    font-size: 17px;
    color: #cbc6ea;
    max-width: 540px;
    margin-bottom: 32px;
}

.sw-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.sw-hero .sw-btn-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sw-hero .sw-btn-light:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.sw-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.sw-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #c6c2e0;
    font-weight: 600;
}

.sw-trust-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(22, 195, 106, 0.2);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Hero prize card ------------------------------------------------------ */

.sw-hero-side {
    position: relative;
    z-index: 2;
}

.sw-prize-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--sw-radius-lg);
    padding: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--sw-shadow-lg);
    animation: sw-float 5s ease-in-out infinite;
}

@keyframes sw-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sw-prize-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sw-prize-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--sw-accent);
}

.sw-prize-sparkle {
    color: #fff;
    opacity: 0.8;
}

.sw-hero-custom-image img {
    width: 100%;
    border-radius: var(--sw-radius);
    margin-bottom: 20px;
}

.sw-gift-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.sw-gift-box {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    background: var(--sw-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #fff;
    box-shadow: 0 20px 40px -12px rgba(91, 61, 245, 0.6);
}

.sw-prize-card h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.sw-prize-card > p {
    color: #c6c2e0;
    font-size: 14px;
    margin-bottom: 22px;
}

.sw-mini-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sw-mini-categories span {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--sw-radius-pill);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e9e6ff;
}

.sw-mini-categories i {
    color: var(--sw-accent);
}

/* Hero statistics ------------------------------------------------------ */

.sw-hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 56px;
    padding: 26px 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--sw-radius-lg);
    backdrop-filter: blur(16px);
}

.sw-stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sw-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sw-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.sw-stat-item strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.sw-stat-item span {
    color: #b9b4dc;
    font-size: 12.5px;
}

.sw-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 991.98px) {
    .sw-hero-grid { grid-template-columns: 1fr; }
    .sw-hero-side { max-width: 420px; }
    .sw-hero-stats { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 575.98px) {
    .sw-hero { padding: 48px 0 40px; }
    .sw-hero-stats { padding: 22px 18px; gap: 18px; }
    .sw-stat-divider { display: none; }
}

/* ---------------------------------------------------------------------
   8. GENERAL SECTIONS
--------------------------------------------------------------------- */

.sw-section {
    padding: 68px 0;
}

.sw-featured-section,
.sw-latest-section,
.sw-ending-section,
.sw-category-section,
.sw-related-section,
.sw-blog-section {
    padding: 30px 0;
}

section#latest{
	padding-bottom:65px;
}

.sw-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sw-primary);
    background: var(--sw-primary-soft);
    padding: 6px 14px;
    border-radius: var(--sw-radius-pill);
    margin-bottom: 14px;
}

.sw-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.sw-section-heading h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.sw-section-heading p {
    color: var(--sw-body);
    margin-top: 8px;
    font-size: 15px;
    max-width: 520px;
}

.sw-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--sw-primary-dark);
    white-space: nowrap;
    padding: 10px 4px;
    transition: gap 0.2s ease;
}

.sw-section-link:hover {
    gap: 12px;
    color: var(--sw-primary);
}

/* ---------------------------------------------------------------------
   9. CATEGORY SECTION (home)
--------------------------------------------------------------------- */

.sw-category-section {
    background: var(--sw-surface);
}

.sw-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sw-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sw-bg);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius);
    padding: 24px;
    overflow: hidden;
    transition: transform 0.3s var(--sw-ease), box-shadow 0.3s var(--sw-ease), border-color 0.3s ease;
}

.sw-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sw-shadow);
    border-color: transparent;
}

.sw-category-card-new {
    border-style: dashed;
}

.sw-category-card-image {
    width: 100%;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sw-category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sw-category-card:hover .sw-category-card-image img {
    transform: scale(1.08);
}

.sw-category-icon-wrap {
    margin-bottom: 16px;
}

.sw-category-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--sw-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: var(--sw-shadow-glow);
}

.sw-category-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sw-category-content p {
    font-size: 13px;
    color: var(--sw-body);
    margin-bottom: 12px;
}

.sw-category-count {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--sw-primary-dark);
    background: var(--sw-primary-soft);
    padding: 4px 10px;
    border-radius: var(--sw-radius-pill);
}

.sw-category-go {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--sw-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-muted);
    font-size: 12px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.sw-category-card:hover .sw-category-go {
    background: var(--sw-gradient);
    color: #fff;
    transform: rotate(45deg);
    border-color: transparent;
}

.sw-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
	margin-bottom: 30px;
}

.sw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-bg-tint);
    border: 1px solid var(--sw-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--sw-ink-soft);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sw-chip:hover {
    border-color: var(--sw-primary);
    color: var(--sw-primary-dark);
}

.sw-chip-active {
    background: var(--sw-gradient);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 991.98px) {
    .sw-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .sw-category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .sw-category-card { padding: 16px; }
}

/* ---------------------------------------------------------------------
   10. SWEEP CARDS (grid + card)
--------------------------------------------------------------------- */

.sw-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.sw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--sw-ease), box-shadow 0.3s var(--sw-ease), border-color 0.3s ease;
}

.sw-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sw-shadow-lg);
    border-color: transparent;
}

/* media */

.sw-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sw-bg-tint);
}

.sw-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sw-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--sw-ease);
}

.sw-card:hover .sw-card-image {
    transform: scale(1.08);
}

.sw-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--sw-primary);
    background: var(--sw-gradient-soft);
}

/* badges */

.sw-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.sw-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--sw-radius-pill);
    letter-spacing: 0.01em;
    box-shadow: var(--sw-shadow-sm);
}

.sw-card-badge-featured {
    background: var(--sw-accent);
    color: #5c3a00;
}

.sw-card-badge-ending {
    background: var(--sw-danger);
    color: #fff;
}

/* heart */

.sw-card-heart {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    color: var(--sw-ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--sw-shadow-sm);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sw-card-heart:hover {
    transform: scale(1.1);
}

.sw-card-heart.sw-favorited,
.sw-card-heart.is-favorited {
    background: var(--sw-danger);
    color: #fff;
}

/* body */

.sw-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sw-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sw-primary-dark);
    margin-bottom: 10px;
    width: fit-content;
}

.sw-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-card-title a:hover {
    color: var(--sw-primary);
}

.sw-card-sponsor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--sw-muted);
    margin-bottom: 12px;
}

.sw-card-sponsor strong {
    color: var(--sw-ink-soft);
}

.sw-card-description {
    font-size: 13.5px;
    color: var(--sw-body);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* meta */

.sw-card-meta {
    display: flex;
    gap: 14px;
    margin-top: auto;
    margin-bottom: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--sw-line);
}

.sw-card-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sw-card-meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--sw-bg-tint);
    color: var(--sw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sw-card-meta-item small {
    display: block;
    font-size: 11px;
    color: var(--sw-muted);
    margin-bottom: 2px;
}

.sw-card-meta-item strong {
    font-size: 13px;
    color: var(--sw-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sw-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--sw-bg-tint);
    color: var(--sw-ink);
    font-weight: 700;
    font-size: 13.5px;
    transition: background 0.25s ease, color 0.25s ease;
}

.sw-card:hover .sw-card-button {
    background: var(--sw-gradient);
    color: #fff;
}

@media (max-width: 991.98px) {
    .sw-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .sw-card-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------------------------------------------------------------------
   11. LISTING PAGE (sweepstakes / category / search)
--------------------------------------------------------------------- */

.sw-breadcrumbs {
    padding: 20px 0;
    font-size: 13px;
    color: var(--sw-muted);
}

.sw-breadcrumbs a {
    color: var(--sw-muted);
    font-weight: 600;
}

.sw-breadcrumbs a:hover {
    color: var(--sw-primary);
}

.sw-breadcrumbs span {
    margin: 0 8px;
    opacity: 0.5;
}

.sw-listing-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.sw-listing-heading h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.sw-listing-heading p {
    color: var(--sw-body);
    font-size: 14px;
    margin-top: 6px;
}

.sw-listing-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius);
    padding: 18px 22px;
    margin-bottom: 30px;
}

.sw-listing-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    background: var(--sw-bg-tint);
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius-pill);
    padding: 4px 4px 4px 16px;
}

.sw-listing-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 10px 0;
    font-size: 13.5px;
}

.sw-listing-search button {
    border: none;
    background: var(--sw-primary);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
}

.sw-listing-sort select {
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius-pill);
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    background: var(--sw-bg-tint);
    outline: none;
    cursor: pointer;
}

.sw-empty-state {
    text-align: center;
    padding: 70px 20px;
    background: var(--sw-surface);
    border: 1px dashed var(--sw-line);
    border-radius: var(--sw-radius-lg);
    color: var(--sw-body);
}

.sw-empty-state i {
    font-size: 40px;
    color: var(--sw-muted);
    margin-bottom: 16px;
    display: block;
}

.sw-query-error {
    padding: 20px;
    background: var(--sw-danger-soft);
    color: #b91c34;
    border-radius: var(--sw-radius-sm);
    font-size: 14px;
}

.sw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
    flex-wrap: wrap;
	padding-bottom: 30px;
}

.sw-page-link,
.sw-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
}

.sw-page-link {
    background: var(--sw-surface);
    color: var(--sw-ink-soft);
    border: 1px solid var(--sw-line);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sw-page-link:hover {
    border-color: var(--sw-primary);
    color: var(--sw-primary-dark);
}

.sw-page-current {
    background: var(--sw-gradient);
    color: #fff;
    box-shadow: var(--sw-shadow-glow);
}

@media (max-width: 575.98px) {
    .sw-listing-filters { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------------
   12. SWEEPSTAKES DETAIL PAGE
--------------------------------------------------------------------- */

.sw-detail-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 20px 0 70px;
}

.sw-detail-main {
    min-width: 0;
}

.sw-detail-media {
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--sw-shadow);
}

.sw-detail-image {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.sw-detail-placeholder {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    color: var(--sw-primary);
    background: var(--sw-gradient-soft);
}

.sw-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--sw-primary-dark);
    background: var(--sw-primary-soft);
    padding: 7px 14px;
    border-radius: var(--sw-radius-pill);
    margin-bottom: 16px;
}

.sw-detail-title {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.sw-detail-sponsor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--sw-body);
    margin-bottom: 26px;
}

.sw-detail-sponsor strong {
    color: var(--sw-ink);
}

.sw-detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.sw-detail-fact {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sw-detail-fact i {
    color: var(--sw-primary);
    font-size: 15px;
}

.sw-detail-fact small {
    color: var(--sw-muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sw-detail-fact strong {
    font-size: 14.5px;
    color: var(--sw-ink);
}

.sw-detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sw-ink-soft);
    margin-bottom: 26px;
}

.sw-detail-description p {
    margin-bottom: 16px;
}

.sw-detail-description img { border-radius: var(--sw-radius); }

.sw-detail-disclaimer {
    background: var(--sw-bg-tint);
    border-left: 3px solid var(--sw-accent);
    padding: 16px 20px;
    border-radius: 0 var(--sw-radius-sm) var(--sw-radius-sm) 0;
    font-size: 13px;
    color: var(--sw-body);
}

/* sidebar */

.sw-detail-sidebar {
    position: sticky;
    top: 100px;
}

.sw-detail-cta-card {
    background: var(--sw-gradient-dark);
    border-radius: var(--sw-radius-lg);
    padding: 28px;
    color: #fff;
    box-shadow: var(--sw-shadow-lg);
}

.sw-detail-cta-prize {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sw-detail-cta-prize small {
    display: block;
    color: #b9b4dc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.sw-detail-cta-prize strong {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #ffd98f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sw-detail-cta-ending {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #e9c9d5;
    margin-bottom: 22px;
}

.sw-detail-enter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 12px;
    box-shadow: var(--sw-shadow-glow);
    transition: transform 0.2s ease;
}

.sw-detail-enter-btn:hover {
    transform: translateY(-2px);
}

.sw-detail-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: var(--sw-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.2s ease;
}

.sw-detail-save-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.sw-detail-share {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sw-detail-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sw-detail-share a:hover {
    background: var(--sw-gradient);
    transform: translateY(-2px);
}

.sw-detail-rules-note {
    text-align: center;
    font-size: 12px;
    color: var(--sw-muted);
    margin-top: 16px;
}

@media (max-width: 991.98px) {
    .sw-detail-grid { grid-template-columns: 1fr; }
    .sw-detail-sidebar { position: static; }
}

/* ---------------------------------------------------------------------
   13. BLOG
--------------------------------------------------------------------- */

.sw-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.sw-blog-card {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--sw-ease), box-shadow 0.3s var(--sw-ease);
}

.sw-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sw-shadow);
}

.sw-blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.sw-blog-card > div,
.sw-blog-card .sw-blog-card-body {
    padding: 20px;
}

/* single blog post */

.sw-blog-post {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 0 70px;
}

.sw-blog-post-header {
    text-align: center;
    margin-bottom: 30px;
}

.sw-blog-post-header h1 {
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 800;
    margin-bottom: 14px;
}

.sw-blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--sw-muted);
    font-size: 13px;
}

.sw-blog-post-media {
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--sw-shadow);
}

.sw-blog-post-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--sw-ink-soft);
}

.sw-blog-post-content p { margin-bottom: 18px; }
.sw-blog-post-content img { border-radius: var(--sw-radius); margin: 10px 0; }
.sw-blog-post-content h2,
.sw-blog-post-content h3 { margin: 30px 0 14px; }

.sw-blog-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--sw-line);
}

@media (max-width: 991.98px) {
    .sw-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .sw-blog-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   14. CMS PAGES (about / disclaimer / terms / privacy)
--------------------------------------------------------------------- */

.sw-cms-page {
    padding: 50px 0 80px;
}

.sw-cms-page h1 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    margin-bottom: 26px;
}

.sw-cms-page-media {
    max-width: 820px;
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--sw-shadow);
}

.sw-cms-page-media img {
    width: 100%;
    height: auto;
    display: block;
}

.sw-cms-content {
   /* max-width: 820px; */
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--sw-ink-soft);
}

.sw-cms-content p { margin-bottom: 18px; }
.sw-cms-content h2,
.sw-cms-content h3 { margin: 28px 0 14px; }
.sw-cms-content ul,
.sw-cms-content ol { margin: 0 0 18px 22px; list-style: disc; }

/* ---------------------------------------------------------------------
   14b. PAGE HERO (shared banner: FAQ, Contact, and any future simple page)
--------------------------------------------------------------------- */

.sw-page-hero {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}

.sw-page-hero h1 {
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
}

.sw-page-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}

/* FAQ page ---------------------------------------------------------- */

.sw-faq-wrap {
    max-width: 860px;
    padding: 50px 0 90px;
}

.sw-faq-info-box {
    background: var(--sw-primary-soft);
    border: 1px solid var(--sw-primary-light);
    border-radius: var(--sw-radius-lg);
    padding: 22px 26px;
    margin-bottom: 30px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--sw-ink-soft);
}

.sw-faq-info-box p:last-child { margin-bottom: 0; }

.sw-faq-toc {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    padding: 24px 28px;
    margin-bottom: 34px;
    box-shadow: var(--sw-shadow);
}

.sw-faq-toc h2 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
}

.sw-faq-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 28px;
}

.sw-faq-toc li {
    margin-bottom: 8px;
    font-size: 14px;
    break-inside: avoid;
}

.sw-faq-toc a {
    color: var(--sw-ink-soft);
    text-decoration: none;
}

.sw-faq-toc a:hover { color: var(--sw-primary); }

.sw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-faq-item {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    overflow: hidden;
    scroll-margin-top: 90px;
}

.sw-faq-item.open {
    border-color: var(--sw-primary-light);
    box-shadow: var(--sw-shadow);
}

.sw-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--sw-ink);
    font-family: inherit;
}

.sw-faq-qnum {
    color: var(--sw-primary);
    margin-right: 8px;
}

.sw-faq-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sw-primary-soft);
    color: var(--sw-primary);
    font-size: 16px;
    font-weight: 700;
    transition: transform .2s ease;
}

.sw-faq-item.open .sw-faq-icon {
    transform: rotate(45deg);
}

.sw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.sw-faq-answer-inner {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--sw-ink-soft);
}

.sw-faq-answer-inner p { margin-bottom: 14px; }
.sw-faq-answer-inner p:last-child { margin-bottom: 0; }
.sw-faq-answer-inner ul,
.sw-faq-answer-inner ol { margin: 0 0 14px 20px; list-style: disc; }
.sw-faq-answer-inner a { color: var(--sw-primary-dark); font-weight: 600; text-decoration: underline; }

@media (max-width: 700px) {
    .sw-faq-toc ol { columns: 1; }
}

/* Contact page ---------------------------------------------------------- */
/* Previously reused the narrow 440px .sw-auth-card (built for a
   login/password form) as the outer wrapper for the whole contact page,
   with .sw-contact-card's icon-row flex layout (built for a small "email
   us" snippet) applied on top of it - the two combined squeezed the
   heading into a narrow column beside the fields and left large empty
   margins on wide screens. This is a real two-column contact layout at
   full page width instead. */

.sw-contact-wrap {
    max-width: 1100px;
    padding: 56px 0 90px;
}

.sw-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
}

.sw-contact-info h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sw-contact-info > p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--sw-ink-soft);
    margin-bottom: 26px;
}

.sw-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sw-contact-method {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sw-contact-method i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--sw-primary-soft);
    color: var(--sw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.sw-contact-method strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.sw-contact-method span,
.sw-contact-method a {
    font-size: 13.5px;
    color: var(--sw-muted);
}

.sw-contact-method a { color: var(--sw-primary-dark); font-weight: 600; }

@media (max-width: 860px) {
    .sw-contact-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------------------------------------------------------------------
   15. FORMS (shared: contact, submit, generic)
--------------------------------------------------------------------- */

.sw-form {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    padding: 34px;
    box-shadow: var(--sw-shadow-sm);
}

.sw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sw-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-form-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sw-ink);
}

.sw-required {
    color: var(--sw-danger);
}

.sw-field {
    width: 100%;
    border: 1px solid var(--sw-line);
    border-radius: var(--sw-radius-sm);
    padding: 13px 16px;
    font-size: 14px;
    background: var(--sw-bg-tint);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sw-field:focus {
    background: #fff;
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 4px var(--sw-primary-light);
}

textarea.sw-field {
    resize: vertical;
    min-height: 130px;
}

.sw-field-error {
    color: var(--sw-danger);
    font-size: 12.5px;
    font-weight: 600;
}

.sw-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sw-submit,
.sw-submit-actions {
    padding: 15px 32px;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    border: none;
    cursor: pointer;
    box-shadow: var(--sw-shadow-glow);
    transition: transform 0.2s ease;
}

.sw-submit:hover,
.sw-submit-actions:hover {
    transform: translateY(-2px);
}

@media (max-width: 575.98px) {
    .sw-form { padding: 22px; }
    .sw-form-row { grid-template-columns: 1fr; }
}

/* Contact page ---------------------------------------------------------- */

.sw-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius);
    padding: 22px;
    margin-bottom: 16px;
}

.sw-contact-card i {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--sw-primary-soft);
    color: var(--sw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.sw-contact-alt {
    color: var(--sw-muted);
    font-size: 13.5px;
}

/* ---------------------------------------------------------------------
   16. AUTH (login / register)
--------------------------------------------------------------------- */

.sw-auth-wrap {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at top, var(--sw-primary-soft), var(--sw-bg) 60%);
}

.sw-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    padding: 40px 36px;
    box-shadow: var(--sw-shadow-lg);
}

.sw-auth-card h1 {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.sw-auth-subtitle {
    text-align: center;
    color: var(--sw-body);
    font-size: 14px;
    margin-bottom: 28px;
}

.sw-auth-form .sw-form-group { margin-bottom: 18px; }

.sw-auth-submit {
    width: 100%;
    padding: 15px;
    border-radius: var(--sw-radius-pill);
    background: var(--sw-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    box-shadow: var(--sw-shadow-glow);
    transition: transform 0.2s ease;
    margin-top: 6px;
}

.sw-auth-submit:hover {
    transform: translateY(-2px);
}

.sw-auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--sw-body);
}

.sw-auth-switch a {
    color: var(--sw-primary-dark);
    font-weight: 700;
}

/* ---------------------------------------------------------------------
   17. MY ACCOUNT / MY FAVORITES
--------------------------------------------------------------------- */

.sw-account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0 70px;
    align-items: start;
}

.sw-account-card {
    background: var(--sw-surface);
    border: 1px solid var(--sw-line-soft);
    border-radius: var(--sw-radius-lg);
    padding: 26px;
    box-shadow: var(--sw-shadow-sm);
}

.sw-account-card-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.sw-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--sw-ink-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

.sw-account-link:hover,
.sw-account-link.sw-active {
    background: var(--sw-primary-soft);
    color: var(--sw-primary-dark);
}

.sw-account-link-danger {
    color: var(--sw-danger) !important;
}

@media (max-width: 767.98px) {
    .sw-account-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   18. RESPONSIVE — GLOBAL FALLBACKS
--------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .sw-section,
    .sw-featured-section,
    .sw-latest-section,
    .sw-ending-section,
    .sw-category-section,
    .sw-related-section,
    .sw-blog-section {
        padding: 42px 0;
    }

    .sw-section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------
   19. FOOTER
--------------------------------------------------------------------- */

.sw-footer {
    background: var(--sw-navy);
    color: #b9b4dc;
    margin-top: 40px;
}

/* newsletter */

.sw-footer-newsletter {
    padding-top: 0;
    transform: translateY(-46px);
    margin-bottom: -46px;
}

.sw-newsletter-box {
    background: var(--sw-gradient);
    border-radius: var(--sw-radius-lg);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 30px 60px -18px rgba(91, 61, 245, 0.55);
}

.sw-newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 260px;
}

.sw-newsletter-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}

.sw-newsletter-label {
    display: block;
    color: #ffe1b0;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.sw-newsletter-content h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sw-newsletter-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    max-width: 380px;
}

.sw-newsletter-form-area {
    flex: 0 0 auto;
    min-width: 320px;
}

.sw-newsletter-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: var(--sw-radius-pill);
    padding: 5px 5px 5px 18px;
}

.sw-newsletter-input i {
    color: var(--sw-muted);
}

.sw-newsletter-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 0;
    font-size: 14px;
    min-width: 120px;
}

.sw-newsletter-input button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: var(--sw-ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--sw-radius-pill);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
}

.sw-newsletter-response {
    font-size: 12.5px;
    margin-top: 8px;
    color: #fff;
    font-weight: 600;
}

.sw-newsletter-form-area > form > small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11.5px;
}

.sw-newsletter-form-area > form > small a {
    color: #fff;
    text-decoration: underline;
}

/* main footer */

.sw-footer-main {
    padding: 90px 0 40px;
}

.sw-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.sw-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sw-footer-logo img { max-height: 65px; }

.sw-footer-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--sw-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.sw-footer-logo strong {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
}

.sw-footer-brand > p {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 300px;
}

.sw-footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.sw-footer-social {
    display: flex;
    gap: 10px;
}

.sw-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sw-footer-social a:hover {
    background: var(--sw-gradient);
    transform: translateY(-2px);
}

.sw-footer-column h3 {
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 18px;
}

.sw-footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-footer-column a {
    font-size: 13.5px;
    color: #b9b4dc;
    transition: color 0.2s ease;
}

.sw-footer-column a:hover {
    color: #fff;
}

/* bottom bar */

.sw-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
}

.sw-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #8781a8;
}

.sw-footer-legal {
    display: flex;
    gap: 20px;
}

.sw-footer-legal a {
    color: #8781a8;
    transition: color 0.2s ease;
}

.sw-footer-legal a:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .sw-footer-grid { grid-template-columns: 1fr 1fr; }
    .sw-newsletter-box { padding: 30px; }
}

@media (max-width: 575.98px) {
    .sw-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .sw-footer-newsletter { transform: none; margin-bottom: 0; }
    .sw-newsletter-box { flex-direction: column; align-items: stretch; text-align: center; }
    .sw-newsletter-content { flex-direction: column; text-align: center; }
    .sw-newsletter-form-area { min-width: 0; width: 100%; }
    .sw-footer-bottom-inner { flex-direction: column; text-align: center; }
    .sw-footer-main { padding: 60px 0 30px; }
}

/* ---------------------------------------------------------------
   SEO URLs: tag chips on the sweepstake detail page (/tags/{slug})
   and the intro line on listing pages (/category, /tags, /expiring)
   --------------------------------------------------------------- */
.sw-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 28px;
}

.sw-detail-tags .sw-chip {
    font-size: 13px;
}

.sw-listing-intro {
    margin: 6px 0 0;
    max-width: 720px;
}
