/* Card Slider Styles with ctm- prefix to avoid conflicts */

.ctm-card-slider-container {
    display: block;
    width: 100%;
    max-width: 800px;
    background-color: #0f753b; /* Exact green from image */
    padding: 20px;
    border-radius: 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    position: relative;
    margin: 20px auto;
}

.ctm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px; /* Space for the decorative bar */
}

.ctm-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #f0a500; /* Orange accent color */
    border-radius: 2px;
}

.ctm-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.ctm-header a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
}

.ctm-slider-container {
    position: relative; /* Positioning context for nav buttons */
}

.ctm-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 15px;
    margin: 0 -10px; /* Adjust for card margin */
}

.ctm-slider::-webkit-scrollbar {
    display: none;
}

.ctm-card {
    flex: 0 0 auto;
    width: 110px; /* Adjusted width */
    margin: 0 5px; /* Spacing between cards */
    scroll-snap-align: start;
    text-align: center;
    padding: 10px;
}

.ctm-card img {
    width: 100px;
    height: 100px;
    border-radius: 22px; /* App icon-style rounded corners */
    border: none; /* Remove previous border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ctm-bet-button, .ctm-promo-button {
    display: block;
    width: 100%;
    padding: 8px 5px;
    border: none;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    text-decoration: none;
    text-align: center;
}

.ctm-bet-button {
    background-color: #d9534f; /* Red from image */
    color: white;
}

.ctm-bet-button:hover {
    background-color: #c9302c;
    color: white;
}

.ctm-promo-button {
    background-color: #5cb85c; /* Green from image */
    color: white;
}

.ctm-promo-button:hover {
    background-color: #449d44;
    color: white;
}

.ctm-nav-button {
    position: absolute;
    top: 50px; /* Centered with the image */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 6px; /* Squarish buttons */
    width: 30px;
    height: 40px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.ctm-nav-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.ctm-prev-button {
    left: -5px;
}

.ctm-next-button {
    right: -5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ctm-card-slider-container {
        margin: 10px;
        padding: 15px;
    }
    
    .ctm-header h2 {
        font-size: 1.1em;
    }
    
    .ctm-header a {
        font-size: 0.9em;
    }
    
    .ctm-card {
        width: 100px;
        padding: 8px;
    }
    
    .ctm-card img {
        width: 90px;
        height: 90px;
    }
    
    .ctm-bet-button, .ctm-promo-button {
        padding: 6px 4px;
        font-size: 0.8em;
    }
    
    .ctm-nav-button {
        width: 25px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ctm-card-slider-container {
        margin: 5px;
        padding: 10px;
    }
    
    .ctm-card {
        width: 90px;
        padding: 6px;
    }
    
    .ctm-card img {
        width: 80px;
        height: 80px;
    }
    
    .ctm-bet-button, .ctm-promo-button {
        padding: 5px 3px;
        font-size: 0.75em;
    }
}