/* ========================================
   OPTIMIZED PACKAGE SLIDER CSS
   Consolidated and cleaned up styles
   ======================================== */

/* Base Package Container - Using original class names */
.package_slide_wrap {
    position: relative;
    width: 100%;
    background-color: #040402;
    overflow: hidden;
}

.package_slide_wrap .contest {
    max-width: inherit;
    width: auto;
}

/* Contest List - Base Styles */
.contest-list {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #040402;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.contest-list--scrollable {
    /* Inherits from .contest-list */
}

.contest-list__item {
    display: block;
    white-space: normal;
    background-color: #040402;
    margin: 0;
    /* Fix growing box issue */
    max-width: 450px;
    width: 420px;
    box-sizing: border-box;
    flex: 0 0 auto;
}

/* Contest Item Styles */
.contest {
    text-align: left;
    display: block;
    margin: 15px 4px 20px;
    border: 1px solid #e8e8e8;
    min-height: 500px;
    /* Fix growing box issue */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    /* Prevent content from expanding the box */
    overflow: hidden;
    position: relative;
}

/* Single item content */
.contest .single {
    padding: 22px !important;
    
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Section Styling */
.section--contest_table {
    /* Base section styles - inherits from parent section */
}

.section--contest_table.pricing {
    padding-bottom: 10px;
}

/* Package Slider Specific Styles */
.package-slider {
    /* Inherits from .contest-list */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}

.package-slider .contest-list__item {
    white-space: normal;
    display: block;
    flex: 0 0 auto;
}

/* Actions Styling */
.contest-list--scrollable .contest-list__item .contest .actions {
    position: relative;
}

.contest-list--scrollable .contest-list__item .contest .actions::before {
    position: absolute;
    content: "";
    height: 43px;
    background-color: #eee;
    width: 1px;
    left: 52%;
    top: 10px;
}

/* Responsive Adjustments */
@media only screen and (min-width: 1200px) and (max-width: 1920px) {
    .package_slide_wrap .container.make-left h3 {
        margin-top: 30px;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1199px) {
    .contest-list__item input[type=submit] {
        min-width: 100%;
    }
    
    .contest-list--scrollable .contest-list__item .contest .actions a span {
        font-size: 13px;
    }
    
    .package_slide_wrap .container.make-left h3 {
        margin-top: 30px;
    }
}

@media only screen and (min-width: 0px) and (max-width: 1199px) {
    .contest-list--scrollable .contest-list__item .contest .actions::before {
        left: 48%;
    }
}

@media only screen and (min-width: 0px) and (max-width: 601px) {
    .contest-list--scrollable .contest-list__item .contest .actions a span {
        font-size: 12px !important;
        color: #e72627;
    }
}

@media only screen and (min-width: 0px) and (max-width: 480px) {
    .contest-list--scrollable .contest-list__item .contest .best-seller::before {
        width: 138px !important;
        right: -35px !important;
        top: 17px !important;
    }
    
    .contest {
        min-height: 500px;
    }
    
    .package_slide_wrap .sensation-prev,
    .package_slide_wrap .sensation-next {
        display: none !important;
    }
}

/* Navigation Controls */
.package_slide_wrap .sensation-prev,
.package_slide_wrap .sensation-next {
    top: -115px;
}

.package_slide_wrap .sensation-prev {
    left: inherit;
    right: 60px;
}

.package_slide_wrap .sensation-next {
    right: 0px;
}

.package_slide_wrap .sensation-track .btn-line-fill {
    margin-bottom: 0px;
}

/* Container Adjustments */
.package_slide_wrap .container.make-left h3 {
    text-align: center;
    margin-top: 30px;
}

.package_slide_wrap .container.make-left h3::before {
    /* Empty - placeholder for pseudo-element */
}

.package_slide_wrap .container.make-left p {
    text-align: center;
}

.package_slide_wrap .sensation-slide img {
    margin: 0px auto;
}

/* Package Custom Logo Variants */
.package_slide_wrap.package_custom_logo .sensation-prev,
.package_slide_wrap.package_custom_logo .sensation-next {
    top: 50%;
}

.package_slide_wrap.package_custom_logo .sensation-next {
    right: -50px;
}

.package_slide_wrap.package_custom_logo .sensation-prev {
    left: -50px;
    right: inherit;
}

.package_slide_wrap.package_custom_logo .contest {
    max-width: 320px;
}

.package_slide_wrap.package_custom_logo .holder-offer {
    margin-top: 41%;
    margin-bottom: 41%;
}

.package_slide_wrap.package_custom_logo .container.make-left h3 {
    margin-top: 0px;
}

/* Home Package Wrapper */
.packages_wrap_home .contest {
    max-width: inherit;
}

.packages_wrap_home .holder-offer {
    margin-top: 40%;
    margin-bottom: 40%;
}

/* Single Item Styling */
.contest-list--scrollable .contest-list__item .contest .single,
.contest .package-detail .single {
    padding: 22px !important;
}

.contest-list--scrollable .contest-list__item .holder-offer p {
    padding: 0px 50px;
    line-height: normal;
    font-size: 14px;
    text-align: center;
}

/* Action Links */
.contest-list--scrollable .contest-list__item .contest .actions a span {
    font-size: 13px !important;
    color: #e72627 !important;
    letter-spacing: 0.2px;
}

.contest-list--scrollable .contest-list__item .contest .actions a span small {
    color: #7b7b7b !important;
}

#customer_examples .contest-list--scrollable .contest-list__item .contest .actions a span {
    font-size: 13px;
    color: #e72627 !important;
}

/* Form Elements */
.contest input[type=submit] {
    min-width: 100%;
}

/* Utility Classes */
.para_max {
    max-width: 860px;
    margin: 0px auto;
}

/* Animation and Transitions */
.contest-list__item {
    transition: all 0.3s ease;
}

.contest-list__item:hover {
    transform: translateY(-5px);
}

/* Clean up redundant styles */
.package_slide_wrap .pricing {
    /* Empty - inherits from parent */
}

/* Remove duplicate margin declarations */
.contest-list__item .contest {
    margin: 15px 4px 20px;
}

/* Additional fixes for growing box issue - removed flexbox that breaks horizontal scrolling */

/* Ensure content doesn't overflow - removed forced scrollbars */
.contest .wrap {
    /* Let content flow naturally without forced height limits */
}

.contest .wrap ul {
    /* Let content flow naturally without forced height limits */
}

/* Fix for best-seller badge */
.contest .single.best-seller::before {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

/* Consolidate responsive breakpoints */
@media only screen and (max-width: 768px) {
    .contest-list--scrollable .contest-list__item .contest .actions::before {
        left: 48%;
    }
    
    .contest-list--scrollable .contest-list__item .contest .actions a span {
        font-size: 12px;
    }
}

@media only screen and (max-width: 480px) {
    .contest-list--scrollable .contest-list__item .contest .single {
        padding: 23px !important;
    }
    
    .contest-list--scrollable .contest-list__item .contest .best-seller::before {
        width: 138px !important;
        right: -35px !important;
        top: 17px !important;
    }
}
