/* =========================================================
   GLOBAL RESET & BASE SETTINGS
========================================================= */

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

html, body {
    font-family: 'PlusJakarta', sans-serif;
    background-color: #F5F5F5; /* Dream11 light background */
    color: #111111;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

button, .btn {
    font-family: 'PlusJakarta', sans-serif;
}

/* =========================================================
   FONTS
========================================================= */
@font-face {
    font-family: 'Lexend';
    src: url('../fonts/Lexend-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Lexend';
    src: url('../fonts/Lexend-Bold.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: 'PlusJakarta';
    src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'PlusJakarta';
    src: url('../fonts/PlusJakartaSans-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: #111827;
}

p {
    font-family: 'PlusJakarta', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: #374151;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #4b5563;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    background-color: #FF1F1F !important; /* Dream11 red */
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff !important;
}

.nav-link {
    font-family: 'PlusJakarta', sans-serif;
    font-weight: 500;
    margin-right: 0.5rem;
    color: #ffffff !important;
}

.nav-link:hover {
    color: #FFE5E5 !important; /* soft pink hover */
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.6)
    ), url('../images/banners/sports-bg.jpg') center/cover no-repeat;
}

.hero-section h1 {
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: 3rem;
}

.hero-section p {
    font-size: 1.2rem;
}

.hero-section .btn-primary {
    background-color: #FF1F1F;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.hero-section .btn-primary:hover {
    background-color: #D40000;
}

/* =========================================================
   CARDS
========================================================= */
.card {
    font-family: 'PlusJakarta', sans-serif;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(255,31,31,0.12); /* red glow */
}

.card-img-top {
    height: 260px;
    object-fit: cover;
}

.card-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: #111111;
}

.card-text {
    color: #4D4D4D;
}

.card .btn {
    padding: 0.45rem 1.2rem;
    font-weight: 600;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-primary {
    background-color: #FF1F1F !important;
    border-color: #FF1F1F !important;
    font-weight: 600;
    font-family: 'PlusJakarta', sans-serif;
}

.btn-primary:hover {
    background-color: #D40000 !important;
    border-color: #D40000 !important;
}

/* =========================================================
   TABLES / SCOREBOARD
========================================================= */
.table {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #FF1F1F;
    color: #fff;
}

.table tbody tr:hover {
    background-color: rgba(255,31,31,0.05);
}

.scoreboard {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.scoreboard h3 {
    font-size: 1.4rem;
}

.scoreboard .team-name {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
}

.scoreboard .score {
    font-size: 2.2rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    background-color: #111111;
    color: #ffffff;
    padding: 2rem 0;
}

footer h5 {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

footer p {
    font-family: 'PlusJakarta', sans-serif;
    color: #ffffff;
}

footer a {
    color: #FF1F1F;
    text-decoration: none;
}

footer a:hover {
    color: #D40000;
    text-decoration: underline;
}

/* =========================================================
   MULTI-ITEM YOUTUBE CAROUSEL FIX
========================================================= */
#liveCricketCarousel .carousel-inner .carousel-item {
    display: flex;
}

#liveCricketCarousel .carousel-item>div {
    flex: 1 0 25%;
    max-width: 25%;
    padding: 10px;
}

@media(max-width: 992px) {
    #liveCricketCarousel .carousel-item>div {
        flex: 1 0 50%;
        max-width: 50%;
    }
}

@media(max-width: 576px) {
    #liveCricketCarousel .carousel-item>div {
        flex: 1 0 100%;
        max-width: 100%;
    }
}

/* =========================================================
   UTILITY CLASSES
========================================================= */
.text-lexend {
    font-family: 'Lexend', sans-serif !important;
}

.text-jakarta {
    font-family: 'PlusJakarta', sans-serif !important;
}

.section-padding {
    padding: 4rem 0;
}

.shadow-soft {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.rounded-lg {
    border-radius: 14px;
}

.text-dream-red {
    color: #FF1F1F !important;
}

.bg-dream-red {
    background-color: #FF1F1F !important;
}
