body.sweepstakes-home {
    background-color: #283649;
}

.sweepstakes_hero {
    width: 100%;
    min-height: 330px;
    display: flex;
    align-items: center;
    margin: 0 0 28px;
    background-image: linear-gradient(90deg, rgba(8, 21, 39, 0.82) 0%, rgba(8, 21, 39, 0.56) 45%, rgba(8, 21, 39, 0.12) 100%), url('/assets/img/sweeps/sweeps_bg.webp');
    background-position: center;
    background-size: cover;
}

.sweepstakes_hero_content {
    width: 100%;
    max-width: 1070px;
    margin: 0 auto;
    padding: 48px 0;
}

.sweepstakes_hero h1 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 46px;
    line-height: 52px;
}

.sweepstakes_hero p {
    margin: 16px 0 0;
    color: #fff;
    font-size: 21px;
    line-height: 28px;
}

.sweepstakes_hero p.sweepstakes_hero_highlight {
    margin-top: 6px;
    color: #DA3A3A;
    font-family: 'SourceSansPro-Bold';
}

.sweeps_sort_bar {
    width: 100%;
    max-width: 1070px;
    margin: 28px auto 0;
    padding: 18px 22px 18px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #283649;
}

.sweeps_section_title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 32px;
    line-height: 40px;
    text-transform: none;
}

.sweeps_section_title img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.sweeps_sort_bar form {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sweeps_sort_bar form::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-right: 3px solid #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.sweeps_sort_actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.sweeps_sort_bar select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 148px;
    min-width: 0;
    height: 44px;
    margin-bottom: 0;
    padding: 6px 40px 6px 22px;
    border: 0;
    border-radius: 12px;
    background-color: #fff;
    color: #1a1a1a;
    font-family: 'SourceSansPro-Bold';
    font-size: 15px;
    cursor: pointer;
}

.sweep_load_box {
    width: 100% !important;
    max-width: 1070px;
    margin-top: 16px;
    margin-bottom: 28px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 245px));
    gap: 36px 30px;
    justify-content: center;
    overflow: visible;
}

.sweeps_card_column {
    min-width: 0;
}

.sweep_load_box .sweeps_card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 245px;
    margin: 0 auto;
    padding: 14px;
    box-sizing: border-box;
    background: #131c27;
    border: 1px solid #0f1720;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.sweep_load_box .sweeps_entered_badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 5px 28px;
    background: #DA3A3A;
    border-radius: 0 0 10px 0;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sweep_load_box .sweeps_link,
.sweep_load_box .sweeps_link:hover,
.sweep_load_box .sweeps_link:focus {
    color: #fff;
    text-decoration: none;
}

.sweep_load_box .sweeps_card_image_wrap {
    position: relative;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #0c121a;
}

.sweep_load_box .sweeps_card_image {
    width: 100% !important;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.sweep_load_box .sweeps_card_body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0 0;
}

.sweep_load_box .sweeps_card .sweeps_box {
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

.sweep_load_box .sweeps_card_title {
    display: block;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 17px;
    line-height: 21px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sweep_load_box .sweeps_card_prize {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sweep_load_box .sweeps_card_meta {
    padding: 0;
    text-align: left;
}

.sweep_load_box .sweeps_countdown_label {
    display: block;
    margin-bottom: 8px;
    color: #DA3A3A;
    font-family: 'SourceSansPro-Bold';
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sweep_load_box .sweeps_countdown_time {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    color: #F0797A;
}

.sweep_load_box .sweeps_countdown_unit {
    min-width: 0;
    padding: 6px 2px 5px;
    background: #222c39;
    border-radius: 6px;
    text-align: center;
}

.sweep_load_box .sweeps_countdown_value {
    display: block;
    color: #F0797A;
    font-size: 14px;
    line-height: 16px;
}

.sweep_load_box .sweeps_countdown_unit_label {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 7px;
    line-height: 9px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sweep_load_box .sweeps_entries {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #9aa3ad;
}

.sweep_load_box .sweeps_entries_icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #9aa3ad;
}

.sweep_load_box .sweeps_entries_count,
.sweep_load_box .sweeps_entries_label {
    display: inline;
    font-family: 'SourceSansPro-Bold';
    font-size: 14px;
    line-height: 16px;
    text-transform: none;
}

.sweep_load_box .sweeps_card_footer {
    margin-top: auto;
    padding: 10px 0 0;
}

.sweep_load_box .sweeps_card .sweeps_button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background-color: #DA3A3A;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sweep_load_box .sweeps_card .sweeps_button:hover,
.sweep_load_box .sweeps_card .sweeps_button:focus {
    background-color: #b92c2c;
    color: #fff;
    box-shadow: 0 5px 14px rgba(218, 58, 58, 0.35);
    text-decoration: none;
    transform: translateY(-1px);
}

.sweep_load_box .sweeps_card .sweeps_button_entered,
.sweep_load_box .sweeps_card .sweeps_button_entered:hover,
.sweep_load_box .sweeps_card .sweeps_button_entered:focus {
    background-color: #263447;
    color: #fff;
    letter-spacing: 0.08em;
    box-shadow: none;
    cursor: default;
    transform: none;
}

.sweeps_subscribe_cta {
    width: 100%;
    max-width: 1070px;
    margin: 28px auto 42px;
    padding: 38px 24px 42px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, #302a35 0%, #84343f 100%);
    color: #fff;
    text-align: center;
}

.sweeps_subscribe_cta h2 {
    margin: 0;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 34px;
    line-height: 42px;
}

.sweeps_subscribe_cta p {
    max-width: 520px;
    margin: 10px auto 22px;
    color: #fff;
    font-size: 16px;
    line-height: 21px;
}

.sweeps_subscribe_cta_button {
    display: inline-flex;
    min-width: 180px;
    min-height: 38px;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #d9363e;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
}

.sweeps_subscribe_cta_button:hover,
.sweeps_subscribe_cta_button:focus {
    background-color: #c52f37;
    color: #fff;
    text-decoration: none;
}

.previous_winners {
    width: 100%;
    max-width: 1070px;
    margin: 28px auto 42px;
    padding-top: 28px;
    border-top: 1px solid #2a2a2a;
    scroll-margin-top: 24px;
}

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

.previous_winners h2 {
    margin: 0;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 26px;
    text-align: center;
}

.previous_winners_intro {
    width: 100%;
    margin: 6px auto 18px;
    color: #c7c7c7;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
}

.previous_winners_grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.previous_winner_card {
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.previous_winner_image_wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.previous_winner_image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.previous_winner_badge {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 54%;
    padding: 5px 14px;
    box-sizing: border-box;
    border-radius: 10px 0 6px 0;
    background: #DA3A3A;
    color: #fff;
    font-family: 'SourceSansPro-Bold';
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
}

.previous_winner_info {
    padding: 16px 0 6px;
    text-align: left;
}

.previous_winner_title {
    display: block;
    color: #131c27;
    font-family: 'SourceSansPro-Bold';
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.previous_winner_prize {
    display: block;
    margin-top: 4px;
    color: #131c27;
    font-size: 11px;
    line-height: 15px;
}

.previous_winner_person {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px solid #6b6f75;
}

.previous_winner_name,
.previous_winner_location {
    color: #131c27;
    font-family: 'SourceSansPro-Bold';
    font-size: 12px;
    line-height: 16px;
}

@media (min-width: 1400px) {
    .sweepstakes_hero_content,
    .sweeps_sort_bar,
    .sweep_load_box,
    .sweeps_subscribe_cta,
    .previous_winners {
        max-width: 1345px;
    }

    .sweep_load_box {
        grid-template-columns: repeat(5, minmax(0, 245px));
    }
}

@media (max-width: 991px) {
    .sweepstakes_hero {
        min-height: 280px;
    }

    .sweepstakes_hero h1 {
        font-size: 34px;
        line-height: 40px;
    }

    .sweepstakes_hero p {
        font-size: 18px;
        line-height: 24px;
    }

    .sweepstakes_hero_content,
    .sweeps_sort_bar,
    .sweep_load_box,
    .sweeps_subscribe_cta,
    .previous_winners {
        max-width: 520px;
    }

    .sweep_load_box {
        grid-template-columns: repeat(2, minmax(0, 245px));
    }

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

@media (max-width: 575px) {
    .sweepstakes_hero {
        min-height: 250px;
    }

    .sweepstakes_hero_content {
        max-width: 245px;
        padding: 36px 0;
    }

    .sweepstakes_hero h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .sweeps_sort_bar {
        width: calc(100% - 32px);
        max-width: 360px;
        margin-top: 24px;
        padding: 16px;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .sweeps_section_title {
        width: 100%;
        justify-content: center;
        font-size: 30px;
        line-height: 40px;
        text-align: center;
    }

    .sweeps_section_title img {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .sweeps_sort_bar form {
        margin-left: 0;
    }

    .sweeps_sort_actions {
        width: 100%;
        margin-left: 0;
        justify-content: center;
        gap: 10px;
    }

    .sweeps_sort_bar select {
        width: 148px;
        height: 44px;
        flex: 0 0 148px;
    }

    .sweeps_subscribe_cta {
        width: calc(100% - 24px);
        max-width: none;
        padding: 34px 20px 38px;
    }

    .sweeps_subscribe_cta h2 {
        font-size: 29px;
        line-height: 36px;
    }

    .sweeps_subscribe_cta p {
        font-size: 15px;
        line-height: 20px;
    }

    .sweep_load_box,
    .previous_winners {
        max-width: 245px;
    }

    .sweep_load_box {
        grid-template-columns: minmax(0, 245px);
    }

    .previous_winners_grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 340px) {
    .sweeps_sort_actions {
        flex-direction: column;
    }

    .sweeps_sort_bar form,
    .sweeps_sort_bar select {
        width: 100%;
        flex-basis: auto;
    }
}
