@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    --primary-color: #23245d;
    --secondary-color: #f9df10;
    --accent-red: #d61d4a;
    --bg-color: #efefef;
    --content-bg: #efefef;
    --text-color: #1d2757;
    --muted-text: #717171;
    --white: #ffffff;
    --border-color: #d7d7d7;
    --footer-bg: #020202;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* ===========================
   HEADER
=========================== */

.header{

    background:#23245d;

    height:96px;

    display:grid;

    grid-template-columns:220px 1fr 320px;

    align-items:center;

    padding:0 46px;

    position:relative;
}

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

.header-logo{

    display:flex;

    align-items:center;
}

.header-logo img{

    height:50px;

    display:block;
}

/* ---------------- Time ---------------- */

.header-time{

    justify-self:center;

    color:#fff;

    font-family:"Lato",sans-serif;

    white-space:nowrap;
}

.header-time .date{

    font-size:15px;

    font-weight:700;
}

.header-time .clock{

    font-size:18px;

    font-weight:700;

    margin-left:6px;
}

.header-time .timezone{

    font-size:15px;

    font-weight:700;

    color:#ffd200;

    margin-left:4px;
}

/* ---------------- Right ---------------- */

.header-actions{

    justify-self:end;

    display:flex;

    align-items:center;

    gap:20px;
}

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

.search-box{

    position:relative;
}

.search-box input{

    width:245px;

    height:40px;

    border:1px solid #d8d8d8;

    border-radius:2px;

    background:#fff;

    padding-left:42px;

    padding-right:14px;

    font-family:"Lato",sans-serif;

    font-size:13px;

    color:#666;

    outline:none;
}

.search-box input::placeholder{

    color:#777;

    opacity:1;
}

.search-box i{

    position:absolute;

    left:14px;

    top:50%;

    transform:translateY(-50%);

    color:#888;

    font-size:13px;
}

/* ---------------- Login ---------------- */

.login-btn{

    background:none;

    border:none;

    color:#ffecc6;

    font-family:"Lato",sans-serif;

    font-size:12px;

    font-weight:400;

    cursor:pointer;

    padding:0;
}

/* ---------------- Mobile Icons ---------------- */

.mobile-menu-btn,
.mobile-search-btn{

    display:none;
}

.sub-header-bar {
    height: 56px;
    background-color: var(--white);
    border-top: 1px solid #ececec;
    border-bottom: 1px solid var(--accent-red);
    margin-bottom: 0;
}

.main-container {
    display: grid;
    grid-template-columns: 223px minmax(0, 915px) 390px;
    max-width: 1528px;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    align-items: start;
}

.sidebar-left {
    background-color: var(--white);
    min-height: 720px;
    border-right: 1px solid var(--border-color);
}

.sidebar-left ul {
    list-style: none;
}

.sidebar-left ul li {
    min-height: 76px;
    padding: 0 22px;
    font-weight: 700;
    font-size: 16px;
    color: #27345d;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-left ul li i {
    color: #ffcb11;
    margin-right: 12px;
    font-size: 22px;
}

.center-content {
    background-color: var(--content-bg);
    padding: 8px 26px 38px;
}

.game-slider {
    margin-bottom: 13px;
}

/* ===========================
   DESKTOP SLIDER
=========================== */

.hero-slider{
    overflow:hidden;
    width:100%;
}

.hero-slider-track{
    display:flex;
    gap:6px;
}

.hero-slide{
    flex:0 0 auto;
}

.hero-slide:nth-child(1),
.hero-slide:nth-child(2){
    width:38.1%;
}

.hero-slide:nth-child(3),
.hero-slide:nth-child(4){
    width:23.8%;
}

.hero-slide img{
    width:100%;
    height:134px;
    object-fit:cover;
    display:block;
    border-radius:15px;
}

.hero-slide:nth-child(1),
.hero-slide:nth-child(2) {
    width: 38.1%;
}

.hero-slide:nth-child(3),
.hero-slide:nth-child(4) {
    width: 23.8%;
}

.hero-slide img {
    width: 100%;
    height: 134px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

/* @keyframes scrollSlider {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
} */

.sports-tabs-wrapper {
    margin-bottom: 13px;
}

.sports-tabs{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:2px;
}

.sport-tab{
    position:relative;
    height:42px;
    display:block;
    color:#fff;
    font-family:"Lato",sans-serif;
    cursor:pointer;
    border-radius:2px;
    overflow:hidden;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.sport-tab img{
    position:absolute;
    top:3px;
    left:6px;
    width:22px;
    height:22px;
}

.sport-tab span{
    position:absolute;
    bottom:3px;
    left:6px;
    font-size:12px;
    font-weight:700;
    line-height:1;
    letter-spacing:-0.2px;
    white-space:nowrap;
}

.bg-cricket{
    background-image:url("../images/cricket-bg.png");
}

.bg-football{
    background-image:url("../images/football-bg.png");
}

.bg-tennis{
     background-image:url("../images/tennis-bg.png");
}

.bg-horse{
    background-image:url("../images/horse-bg.png");
}

.bg-greyhound{
    background-image:url("../images/greyhound-bg.png");
}

.grid-2,
.grid-3,
.grid-4,
.grid-6 {
    display: grid;
    gap: 3px;
    margin-bottom: 16px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.game-card {
    background: transparent;
    border: none;
}

.game-card img,
.popular-grid img,
.casino-grid img,
#exchange-games-grid img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.grid-4 img {
    height: 157px;
}

#exchange-games-grid {
    display: grid !important;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(6, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    overscroll-behavior-x: none;
}

#exchange-games-grid::-webkit-scrollbar {
    display: none;
}

#exchange-games-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
}

#exchange-games-grid img {
    height: 118px;
}

.popular-grid img {
    height: 158px;
}

.casino-grid {
    display: grid !important;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(9, calc(30% - 2px));
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: none;
}

.casino-grid::-webkit-scrollbar {
    display: none;
}

.casino-grid.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
}

.casino-grid img {
    height: 106px;
    pointer-events: none;
    scroll-snap-align: none;
}

.casino-grid img:nth-child(1),
.casino-grid img:nth-child(4),
.casino-grid img:nth-child(7) {
    scroll-snap-align: start;
}

.game-card img:hover,
.popular-grid img:hover,
.casino-grid img:hover,
#exchange-games-grid img:hover {
    opacity: 0.88;
}

.category-title {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 26px 0 18px;
    margin-bottom: 12px;
    background: #ffffff;
    font-weight: 700;
    font-size: 18px;
    color: #1f2f69;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #ededed;
}

.title-icon {
    margin-right: 12px;
    font-size: 21px;
}

.exchange-icon {
    color: #e03232;
}

.popular-icon {
    color: #2e9034;
}

.sidebar-right {
    background-color: var(--content-bg);
    min-height: 720px;
    padding: 0 24px 0 22px;
}

.betslip-header-text {
    padding: 0;
    margin-top: 0;
    min-height: 34px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    color: #111;
    border-bottom: 1px solid #bdbdbd;
}

.betslip-tabs {
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 13px 0 0;
    gap: 0;
    width: fit-content;
}

.betslip-tabs button {
    min-width: 108px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    font-weight: 400;
    font-size: 15px;
    color: #111;
    background: #efefef;
}

.betslip-tabs button + button {
    margin-left: 2px;
}

.betslip-tabs button.active {
    background-color: #ffffff;
    color: #111;
    box-shadow: none;
}

.edit-stakes-container {
    padding: 14px 0 0;
    display: flex;
    justify-content: flex-end;
}

.edit-stakes {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 44px 0 0;
    margin-top: 38px;
}

.footer-top {
    display: grid;
    grid-template-columns: 250px 1fr;
    align-items: center;
    gap: 34px;
    max-width: 1690px;
    margin: 0 auto;
    padding: 0 58px 44px;
    font-size: 18px;
    line-height: 1.5;
}

.footer-top .gc-logo {
    width: 210px;
    max-width: 100%;
}

.footer-top p {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    max-width: 1690px;
    margin: 0 auto;
    padding: 28px 58px 34px;
}

.footer-bottom img {
    max-height: 44px;
    opacity: 0.55;
    filter: grayscale(100%);
}

.footer-copyright {
    text-align: center;
    padding: 22px 20px 26px;
    font-size: 18px;
    color: #939393;
    border-top: 1px solid #1b1b1b;
}

.whatsapp-float {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 72px;
    cursor: pointer;
    z-index: 100;
    transform-origin: center center;
    animation: floatPulse 2s ease-in-out infinite;
    transition: transform 0.3s ease-in-out;
}

@keyframes floatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (min-width: 768px) {
    .whatsapp-float:hover {
        animation: none;
        transform: scale(1.15);
    }
}

.mobile-menu-btn,
.mobile-search-btn,
.section-banner,
.in-play,
.upcoming,
.mobile-only {
    display: none;
}

.section-banner.new-launch {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    background: linear-gradient(to bottom, #00327c 0%, #0057c9 35%, #003a94 65%, #001133 100%);
    border: 1px solid #000c24;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 2px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    margin-top: 6px;
    margin-bottom: 2px;
    border-radius: 2px;
    box-sizing: border-box;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    header {
        min-height: 92px;
        padding: 0 16px;
    }

    header .time {
        min-width: 0;
        font-size: 14px;
    }

    header .search-bar input {
        width: 190px;
    }

    .main-container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .center-content {
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .desktop-only{
        display:none !important;
    }

    .header{
        grid-template-columns:auto 1fr auto;
        height:60px;
        padding:0 12px;
    }

    .header-time{
        display:none;
    }

    .search-box{
        display:none;
    }

    .header-logo{
        display:flex;
        align-items:center;
    }

    .header-logo img{
        height:40px;
    }

    .mobile-menu-btn{
        display: block;
        color: #ffffff;
        font-size: 28px;      /* was around 20px */
        font-weight: 700;     /* makes it appear bolder */
        cursor: pointer;
        margin-right: 12px;
        line-height: 1;
    }

    .mobile-search-btn{
        display:block;
        color:#fff;
        font-size:20px;
        margin-right:16px;
        margin-left:0;
        cursor:pointer;
    }

    .login-btn{
        background:#f9df10;
        color:#000;
        border-radius:3px;
        padding:7px 14px;
        font-size:13px;
    }

    .sub-header-bar{
        height:0;
        border:0;
    }

    .main-container{
        grid-template-columns:1fr;
    }

    .sidebar-left,
    .sidebar-right{
        display:none;
    }

    .center-content{
        padding:6px;
    }

    .in-play, .upcoming {
        display: flex;
    }
    
    .event-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #1a1b3a;
        color: #fff;
        padding: 8px 10px;
        font-size: 14px;
        margin-top: 6px;
        margin-bottom: 2px;
        border-radius: 2px;
        font-weight: 700;
    }
    
    .event-right .badge {
        background: #f7a62d;
        padding: 1px 8px;
        border-radius: 10px;
        margin-left: 6px;
    }
    
    .game-slider {
        margin-bottom: 6px;
        overflow: hidden;
    }

.hero-slider{

    overflow:hidden;

    border-radius:8px;

    touch-action:pan-y;

    cursor:grab;
}

.hero-slider-track{

    display:flex;

    gap:0;

    transition:transform .35s ease;
}

.hero-slide{

    width:100%;

    min-width:100%;

    flex:0 0 100%;
}

.hero-slide img{

    width:100%;

    height:165px;

    object-fit:cover;

    border-radius:8px;
}
   
.sports-tabs-wrapper{
    margin-bottom:6px;
    overflow:hidden;
}

.sports-tabs{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:4px;
}

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        margin-bottom: 6px;
    }
    .lobby-sportbook-row img{
        width:100%;
        height:46px;
        object-fit:fill;
        border-radius:2px;
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        margin-bottom: 6px;
    }

    .grid-4 img {
        height: 70px;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        margin-bottom: 6px;
    }

    .grid-3 img {
        height: 140px;
    }

    #exchange-games-grid {
        grid-template-columns: repeat(6, calc(45% - 2px)) !important;
        gap: 4px;
        margin-top: 2px;
        margin-bottom: 6px;
    }

    #exchange-games-grid img {
        height: 76px;
        border-radius: 4px;
    }

    .popular-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 6px;
        margin-top: 4px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        overscroll-behavior-x: none;
    }

    .popular-grid img {
        flex: 0 0 28%;
        height: auto;
        border-radius: 4px;
    }

    .casino-grid {
        grid-template-columns: repeat(9, calc(30% - 2px)) !important;
        gap: 2px;
        margin-top: 2px;
        margin-bottom: 6px;
    }

    .casino-grid img {
        height: 76px;
        border-radius: 4px;
    }

    .category-title {
        background-color: #1a1b3a;
        color: #fff;
        min-height: 0;
        padding: 8px 10px;
        font-size: 14px;
        border: none;
        margin-top: 6px;
        margin-bottom: 2px;
        border-radius: 2px;
    }

    footer {
        padding: 10px 10px 20px;
        margin-top: 6px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
        padding: 0 0 20px;
        font-size: 11px;
    }

    .footer-top .gc-logo {
        width: 180px;
        margin: 0 auto;
        display: block;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
        justify-items: center;
        padding: 20px 0 0;
    }

    .footer-bottom img {
        max-height: 25px;
    }

    .footer-copyright {
        padding: 18px 0 0;
        font-size: 11px;
        border-top: 0;
    }

    .whatsapp-float {
        bottom: 10px;
        right: 10px;
        width: 55px;
        z-index: 9999;
    }
}
