body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0b1b3a;
    color: #fff;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
}

.logo span {
    color: #ff5500;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

.btn-app {
    background: #ff5500;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-icon {
    font-size: 1.3rem;
}

/* Hero */
.hero {
    height: 220px;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* Section */
.content {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    /* default padding */
    padding-right: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;

    /* mobile-first max-width */
    max-width: 100%;
}

/* Tablet (≥640px / Tailwind sm) */
@media (min-width: 640px) {
    .content {
        max-width: 640px;
    }
}

/* Small laptop (≥768px / Tailwind md) */
@media (min-width: 768px) {
    .content {
        max-width: 768px;
    }
}

/* Laptop / Desktop (≥1024px / Tailwind lg) */
@media (min-width: 1024px) {
    .content {
        max-width: 1024px;
    }
}

/* Large desktop (≥1280px / Tailwind xl) */
@media (min-width: 1280px) {
    .content {
        max-width: 1280px;
    }
}



/* Section header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: bold;
}

.section-header .see-all {
    font-size: 14px;
    color: #f15b2a;
    text-decoration: none;
    font-weight: 500;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile: single column */
    gap: 20px;
    justify-content: center;
    /* center items horizontally */
    align-items: stretch;
}

/* Tablet (≥768px) → 2 columns */
@media (min-width: 768px) {
    .card-row {
        grid-template-columns: repeat(2, 1fr);
        justify-content: stretch;
        /* let them fill full width */
    }
}

/* Medium desktops (≥1024px) → 3 columns */
@media (min-width: 1024px) {
    .card-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large desktops (≥1280px) → 4 columns */
@media (min-width: 1280px) {
    .card-row {
        grid-template-columns: repeat(4, 1fr);
    }
}


.live-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    width: 300px;
    /* fixed width like screenshot */
    height: 260px;
    /* fixed height */
    display: flex;
    flex-direction: column;
    position: relative;
}

.live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Top image area */
.card-image {
    width: 100%;
    height: 160px;
    /* fixed height so image never shrinks */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* always show top part */
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* 👈 controls spacing between tournament, match-type, teams, info */
}

/* Inner wrapper to control spacing */
.card-body {
    display: flex;
    flex-direction: column;
    padding: 5px;
    gap: 6px;
    /* consistent spacing between blocks */
}

.card-body p {
    margin: 0;
    /* removes default <p> spacing */
    line-height: 1.3;
}


/* Tournament & match type */
.tournament {
    font-size: 12px;
    font-weight: 500;
    color: #1a1717;
}

.match-type {
    font-size: 12px;
    color: #777;
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* compact spacing between teams */
}

.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-logo {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.team-name {
    flex: 1;
    font-weight: 600;
    color: #222;
    font-size: 13px;
    font-style: bold;
}

.team-score {
    font-weight: 20;
    color: #111;
    font-size: 10px;
}

.match-info {
    text-align: center;
    /* center horizontally */
    margin-top: 8px;
    /* small gap from teams */
}

.live-badge,
.upcoming-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.live-badge {
    background: #e10600;
    color: #fff;
}

.upcoming-badge {
    background: #444;
    color: #fff;
}

/* Small play icon in badge */
.live-badge::before {
    content: "▶";
    font-size: 10px;
    padding-right: 4px;
}