:root{
    --r:#e21f2f;
    --bg:#050507;
    --panel:#101116;
    --panel2:#17181d;
    --line:#292a31;
    --muted:#a7a8af;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--bg);
    color:#fff;
    font-family:Arial,Helvetica,sans-serif;
    overflow-x:hidden;
}

a{
    color:inherit;
    text-decoration:none;
}


/* =========================
   NAVIGATION
========================= */

.nav{
    position:sticky;
    top:0;
    z-index:30;
    background:rgba(5,5,7,.93);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
    padding:9px 5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:900;
    flex-shrink:0;
}

.brand img{
    width:48px;
    height:48px;
    object-fit:contain;
}

.brand b{
    font-size:17px;
}

.links{
    display:flex;
    align-items:center;
    gap:20px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.links a{
    transition:.2s;
}

.links a:hover{
    color:#ff5b67;
}


/* =========================
   HERO
========================= */

.wrap{
    max-width:1250px;
    margin:auto;
    padding:55px 5%;
}

.hero{
    text-align:center;
    min-height:76vh;
    display:grid;
    place-items:center;
    padding:65px 20px;
    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(226,31,47,.25),
            transparent 38%
        ),
        linear-gradient(#101015,#050507);
}

.hero > div{
    width:100%;
}

.hero img{
    width:min(310px,70vw);
}

.hero h1{
    font-size:clamp(44px,7vw,82px);
    line-height:.9;
    margin:12px 0;
    text-transform:uppercase;
    letter-spacing:-.05em;
}

.hero h1 span{
    color:var(--r);
}

.hero p{
    color:#bbb;
    font-size:17px;
}

.btn{
    display:inline-block;
    background:var(--r);
    padding:13px 20px;
    border-radius:7px;
    font-weight:900;
    font-size:12px;
    text-transform:uppercase;
    border:1px solid transparent;
    cursor:pointer;
}

.btn.alt{
    background:#17181d;
    border:1px solid var(--line);
    margin-left:7px;
}


/* =========================
   SECTIONS
========================= */

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:25px;
}

.section-head h2{
    margin:0;
    font-size:30px;
    text-transform:uppercase;
}

.section-head p{
    margin:0;
    color:var(--muted);
    font-size:13px;
}


/* =========================
   GRIDS
========================= */

.grid3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.card{
    background:linear-gradient(
        145deg,
        var(--panel2),
        #0d0e12
    );
    border:1px solid var(--line);
    border-radius:14px;
    padding:22px;
}

.date{
    color:#ff6570;
    font-weight:900;
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.muted{
    color:var(--muted);
}


/* =========================
   MATCHES
========================= */

.match{
    position:relative;
    overflow:hidden;
}

.match:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    background:var(--r);
}

.teams{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:24px 0;
}

.team{
    width:40%;
    text-align:center;
    font-weight:900;
}

.vs{
    color:#777;
    font-size:11px;
}


/* =========================
   QUICK LINKS
========================= */

.quick{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.quick .card{
    text-align:center;
    transition:.2s;
}

.quick .card:hover{
    transform:translateY(-2px);
    border-color:#444650;
}

.quick strong{
    display:block;
    font-size:23px;
    margin-bottom:5px;
}


/* =========================
   TABLE
========================= */

.table{
    width:100%;
    border-collapse:collapse;
    background:var(--panel);
    border-radius:12px;
    overflow:hidden;
}

.table th,
.table td{
    padding:13px;
    border-bottom:1px solid var(--line);
    font-size:13px;
    text-align:left;
}

.table th{
    font-size:11px;
    color:#ff6873;
}

.table th:not(:first-child),
.table td:not(:first-child){
    text-align:center;
}


/* =========================
   NEWS
========================= */

.news{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:16px;
}

.news h3{
    margin:10px 0;
}

.news p{
    color:var(--muted);
    font-size:13px;
}


/* =========================
   BANNER
========================= */

.banner{
    padding:28px;
    border:1px solid #482027;
    border-radius:15px;
    background:linear-gradient(
        120deg,
        #19090c,
        #101116
    );
}


/* =========================
   FOOTER
========================= */

footer{
    border-top:1px solid var(--line);
    padding:26px 5%;
    color:#777;
    display:flex;
    justify-content:space-between;
    font-size:12px;
}


/* =========================
   FORM
========================= */

input,
select,
textarea{
    width:100%;
    padding:12px;
    border:1px solid #363740;
    background:#08090c;
    color:#fff;
    border-radius:7px;
    font:inherit;
}

textarea{
    min-height:100px;
    resize:vertical;
}

form.grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.full{
    grid-column:1/-1;
}

button{
    cursor:pointer;
}

.danger{
    background:#6b1720;
}

.small{
    padding:7px 10px;
    font-size:11px;
}


/* =========================
   ADMIN
========================= */

.admin{
    max-width:1500px;
}

.admin-section{
    margin:25px 0;
}

.admin-actions{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
}

.status{
    font-weight:900;
}

.Pending{
    color:#ffd166;
}

.Approved{
    color:#8ee6a2;
}

.Rejected{
    color:#ff8791;
}


/* =========================
   GALLERY
========================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.gallery img{
    width:100%;
    aspect-ratio:1;
    object-fit:cover;
    border-radius:10px;
}


/* ==================================================
   TABLET
================================================== */

@media(max-width:1000px){

    .nav{
        padding:9px 3%;
    }

    .links{
        gap:12px;
        font-size:10px;
    }

    .brand img{
        width:42px;
        height:42px;
    }

    .brand b{
        font-size:15px;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media(max-width:800px){

    /* ---------- NAV ---------- */

    .nav{
        position:sticky;
        top:0;
        padding:8px 12px 6px;
        display:flex;
        flex-direction:column;
        align-items:stretch;
        justify-content:center;
        gap:5px;
    }

    .brand{
        justify-content:center;
        gap:7px;
    }

    .brand img{
        width:34px;
        height:34px;
    }

    .brand b{
        font-size:15px;
    }

    /*
       IMPORTANT:
       Mobile-এ links আর hide হবে না।
       Horizontal scroll হবে।
    */

    .links{
        display:flex;
        width:100%;
        gap:14px;
        overflow-x:auto;
        overflow-y:hidden;
        white-space:nowrap;
        justify-content:flex-start;
        padding:5px 2px 7px;
        scrollbar-width:none;
        -webkit-overflow-scrolling:touch;
    }

    .links::-webkit-scrollbar{
        display:none;
    }

    .links a{
        flex:0 0 auto;
        font-size:9px;
        padding:4px 2px;
    }


    /* ---------- HERO ---------- */

    .hero{
        min-height:620px;
        padding:55px 16px 45px;
    }

    .hero img{
        width:min(180px,48vw);
        margin-bottom:10px;
    }

    .hero .date{
        font-size:9px;
        margin-top:8px;
    }

    .hero h1{
        font-size:clamp(40px,12vw,58px);
        line-height:.88;
        margin:14px 0;
    }

    .hero p{
        font-size:13px;
        line-height:1.5;
        max-width:380px;
        margin:0 auto 18px;
    }

    .hero .btn{
        padding:12px 14px;
        font-size:10px;
        margin:4px 2px;
    }

    .hero .btn.alt{
        margin-left:2px;
    }


    /* ---------- WRAP ---------- */

    .wrap{
        width:100%;
        max-width:none;
        margin:0;
        padding:38px 16px;
    }


    /* ---------- SECTION HEAD ---------- */

    .section-head{
        display:block;
        margin-bottom:18px;
    }

    .section-head h2{
        font-size:25px;
        line-height:1.1;
    }

    .section-head p{
        margin-top:7px;
        font-size:12px;
        line-height:1.4;
    }


    /* ---------- QUICK CARDS ---------- */

    .quick{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .quick .card{
        min-height:100px;
        padding:16px 8px;
        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }

    .quick strong{
        font-size:17px;
        line-height:1.15;
    }

    .quick .muted{
        font-size:11px;
        line-height:1.3;
        margin-top:5px;
        text-align:center;
    }


    /* ---------- MATCHES ---------- */

    .grid3{
        grid-template-columns:1fr;
        gap:12px;
    }

    .card{
        padding:18px;
    }

    .teams{
        margin:20px 0;
    }

    .team{
        font-size:14px;
    }


    /* ---------- TABLE ---------- */

    .table{
        min-width:600px;
    }

    .table th,
    .table td{
        padding:10px;
        font-size:12px;
    }


    /* ---------- NEWS ---------- */

    .news{
        grid-template-columns:1fr;
        gap:12px;
    }


    /* ---------- BANNER ---------- */

    .banner{
        padding:20px;
    }

    .banner h2{
        font-size:23px;
        line-height:1.2;
    }

    .banner .btn{
        margin-top:8px;
    }


    /* ---------- FOOTER ---------- */

    footer{
        display:flex;
        flex-direction:column;
        gap:8px;
        text-align:center;
        padding:25px 16px;
        line-height:1.5;
    }


    /* ---------- FORMS ---------- */

    form.grid{
        grid-template-columns:1fr;
    }

    .full{
        grid-column:auto;
    }


    /* ---------- GALLERY ---------- */

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

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media(max-width:400px){

    .nav{
        padding-left:8px;
        padding-right:8px;
    }

    .links{
        gap:11px;
    }

    .links a{
        font-size:8px;
    }

    .hero{
        min-height:580px;
        padding-top:45px;
    }

    .hero img{
        width:140px;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:12px;
    }

    .hero .btn{
        padding:11px 10px;
        font-size:9px;
    }

    .quick{
        gap:8px;
    }

    .quick .card{
        min-height:90px;
        padding:13px 6px;
    }

    .quick strong{
        font-size:15px;
    }

    .quick .muted{
        font-size:10px;
    }

}
