* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    background: #111;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
    
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    width: 80px;
    height: 70px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #00ff88;
}

.menu-icon {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

#menu-toggle {
    display: none;
}

.header-ad{
    width:100%;
    height:120px;
    background:#f1f1f1;
    border:2px dashed #999;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:20px;
}

/* LIVE BUTTON FIX */
.Livesection{
    text-align:center;
    margin:20px 15px;
    padding: 0 10px;
}

.Livesection a{
    display:inline-block;
    background:#ff0000;
    color:#fff;
    padding:12px 30px;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    border-radius:30px;
    transition:0.3s;
    max-width: 100%;
}

.Livesection a:hover{
    background:#cc0000;
    transform:scale(1.05);
}

.hero {
    background: url("contsctbg.jpeg") center/cover no-repeat;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.hero p {
    color: #fff;
    font-size: 40px;
    margin-bottom: 25px;
    font-weight: bold;
}

.btn {
    background: #111;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.btn:hover {
    background: #00ff88;
    color: #000;
}

.Topstory{
    text-align: center;
    background-color: rgb(103, 181, 226);
    margin-bottom: 10px;
    padding: 10px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px auto;
    width: 90%;
}

.Newscard{
    margin-top: 10px;
    background-color: rgb(197, 215, 226);
    padding: 20px 0;
}

.card {
    background: #f4f4f4;
    padding: 5px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

a{
    text-decoration: none;
}

.card1{
   background-color: #b3c2d3;
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 15px;
}

.card1 h2{
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #111;
    padding-bottom: 5px;
}

.card1 p{
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    margin: 5px 0;
}

.Topstory2{
    text-align: center;
    padding: 30px 0 10px;
}

.ranking-section{
    background-color: rgb(216, 223, 205);
    padding: 50px 20px;
    text-align: center;
}

.ranking-section h1{
    font-size: 40px;
    margin-bottom: 40px;
    background-color: rgb(103, 181, 226);
    padding: 10px;
}

/* 3 Column Layout */
.ranking-wrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Box */
.ranking-box{
    background: #1b263b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Title */
.ranking-box h2{
    margin-bottom: 15px;
    color: #ffd166;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 10px;
}

/* Teams */
.team{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 8px 0;
    background: #c1cfdf;
    border-radius: 6px;
    transition: 0.3s;
}

.team:hover{
    background: #c6d4e6;
    transform: scale(1.03);
}

.team span{
    color: #00ff88;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #00ff88;
}

/* Dark Mode Button */
#darkModeBtn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: 0.3s;
}

#darkModeBtn:hover {
    background: #c52626;
    transform: scale(1.1);
}

/* Dark Mode */
.dark-mode {
    background: #121212;
    color: #eee;
}

.dark-mode .card, 
.dark-mode .card1, 
.dark-mode .ranking-box {
    background: #1e1e1e;
    color: #eee;
}

/* ====== MOBILE RESPONSIVE - SIRF 1 BAAR ====== */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }

    .ranking-wrapper {
        grid-template-columns: 1fr;
    }

    .menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100px; 
        left: 0;
        background: #111;
        flex-direction: column;
        width: 100%;
        display: none;
        padding: 15px;
        text-align: center;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    /* LIVE BUTTON MOBILE FIX */
    .Livesection a {
        padding: 14px 20px;
        font-size: 15px;
        width: 90%; /* 100% se 90% kiya */
        max-width: 300px;
        margin: 0 auto; /* center */
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero p {
        font-size: 28px;
    }

    .ranking-section h1 {
        font-size: 28px;
    }

    #darkModeBtn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        right: 15px;
        bottom: 90px;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero p {
        font-size: 22px;
    }
    
    .team {
        font-size: 13px;
    }
    
    .Livesection a {
        font-size: 14px;
        padding: 12px 15px;
        width: 95%;
    }
}