:root {
    --primary-green: #215c2d;
    --dark-green: #1a4a24;
    --light-green: #2a7a3b;
    --white: #ffffff;
    --black: #000000;
    --grey-bg: #f4f4f4;
    --dark-grey: #333333;
    --yellow-btn: #ffcc00;
    --red-btn: #e60000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--grey-bg);
    overflow-x: hidden;
    cursor: pointer; /* Signal that everything is clickable */
}

/* Header */
.top-header {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
    display: block;
    width: 120px;
}

.search-bar {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-grey);
}

.search-bar input {
    width: 100%;
    padding: 8px 10px 8px 35px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
}

.login-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-grey);
    font-size: 12px;
}

.input-group input, .validation-group input {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 12px;
    width: 100px;
}

.validation-group {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    padding: 2px 5px;
    border-radius: 4px;
}

.validation-group input {
    width: 60px;
    border: none;
}

.validation-code {
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.login-btn {
    background-color: var(--red-btn);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.signup-btn {
    background-color: var(--dark-grey);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

/* Sub-header */
.sub-header {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 5px 20px;
    font-size: 13px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-menu li {
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu li.active {
    background-color: var(--light-green);
    border-radius: 4px;
}

.badge {
    background-color: var(--red-btn);
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timezone {
    font-size: 12px;
}

.one-click-bet {
    display: flex;
    align-items: center;
    gap: 5px;
}

.setting-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Banner Slider */
.banner-slider {
    margin-bottom: 20px;
}

.slider-container {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-container img.active {
    opacity: 1;
    position: relative; /* Ensure the first image sets the container height if needed, though height is fixed */
}

.slider-arrows button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
}

.slider-arrows .prev { left: 10px; }
.slider-arrows .next { right: 10px; }

/* Game Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Featured Grid Specifics */
.featured-container {
    grid-template-columns: repeat(5, 1fr) !important;
}

.sports-card .card-img {
    background: #000;
}

.sports-overlay {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-left: 2px solid var(--yellow-btn);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.sport-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
}

.badge-count {
    background: #fff;
    color: #000;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.game-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #eee; /* Placeholder */
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--red-btn);
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
}

.sports-list {
    position: absolute;
    right: 0;
    top: 40px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
}

.sports-list div {
    margin: 3px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.card-footer {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #000, #333);
    color: white;
}

.card-footer .title {
    font-weight: bold;
    font-size: 14px;
}

.play-btn {
    background-color: var(--yellow-btn);
    color: #000;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

/* Floating Widgets */
.floating-widgets {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.bonus-widget {
    width: 150px;
    height: 100px;
    background-color: #333;
    border-radius: 8px;
    position: relative;
}

.bonus-widget .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-widget {
    width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.chat-header {
    padding: 10px;
    font-size: 12px;
}

.chat-header .user-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.chat-input {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex-grow: 1;
    border: none;
    padding: 8px;
    font-size: 12px;
}

.chat-input button {
    background: none;
    border: none;
    padding: 8px;
    color: var(--primary-green);
    cursor: pointer;
}

.whatsapp-float {
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Footer */
.main-footer {
    background-color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-box {
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info {
    max-width: 1000px;
    margin: 0 auto 30px;
    font-size: 12px;
    line-height: 1.6;
    color: #444;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.browser-icons {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #999;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .login-inputs {
        flex-wrap: wrap;
        justify-content: center;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .sub-header .nav-menu {
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

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