/* ===============================
   GLOBAL
================================ */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===============================
   COLOR VARIABLES (WIPL 2026)
================================ */
:root {
    --primary: #6A1B9A;      /* Purple */
    --secondary: #EC407A;    /* Pink */
    --accent: #FFD54F;       /* Gold */
    --dark: #0F172A;
    --light: #F1F5F9;
}


/* ===============================
   HEADER / NAVBAR – MODERN POLISH
   (NO STRUCTURE CHANGE)
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
}

/* Brand text */
.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Site title / subtitle */
.navbar-brand span,
.navbar-brand small {
    color: #e5e7eb !important;
    letter-spacing: 0.3px;
}

/* Nav links */
.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* ===============================
   HEADER LOGO – CLEAN & VISIBLE
================================ */

.navbar-brand img {
    height: 58px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    padding: 0;              /* remove background feel */
    background: none;
}

.navbar-brand:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
}

/* Mobile optimization */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 48px;
        max-height: 48px;
    }
}


/* =================================
   PAGE HERO TITLE (ABOVE BANNER)
================================= */

.page-hero-title {
    max-width: 1100px;
    margin: 40px auto 24px;   /* space above banner */
    padding: 0 16px;

    text-align: center;
    color: #ffffff;

    font-weight: 900;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.15;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    text-shadow: 0 3px 10px rgba(0,0,0,0.55);
}

.page-hero-title span {
    display: block;
    margin-top: 8px;

    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

/* Visual separation from banner */
.page-hero-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .page-hero-title {
        margin-top: 24px;
        font-size: 32px;
    }

    .page-hero-title span {
        font-size: 22px;
    }
}

/* ==================================================
   HERO BANNER – FINAL (NO EMPTY SPACE GUARANTEED)
================================================== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hero wrapper */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #020617;
}

/* Slides */
.hero-slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* ===============================
   DESKTOP
================================ */
@media (min-width: 1024px) {
    .hero-slider {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        aspect-ratio: 16 / 7;   /* desktop banner */
    }
}

/* ===============================
   TABLET
================================ */
@media (max-width: 1023px) {
    .hero-slider {
        aspect-ratio: 16 / 9;
    }
}

/* ===============================
   MOBILE (CRITICAL FIX)
================================ */
@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 4 / 3;   /* matches your poster */
        margin-bottom: 0;
    }

    .hero-slide {
        background-position: center top;
    }
}

/* Remove overlay/text */
.hero-overlay,
.hero-slide::after {
    display: none !important;
}

/* ===============================
   REMOVE GAP BEFORE H2
================================ */
.hero-slider + h2,
.hero-slider + .section-title {
    margin-top: 0 !important;
    padding-top: 12px;
}

/* ===============================
   SECTION TITLE
================================ */
.section-title {
    color: #e5e7eb;
    font-size: 50px;
    letter-spacing: 0.5px;
}


/* ===============================
   MATCH GRID
================================ */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* ===============================
   FINAL MATCH CARD TYPOGRAPHY FIX
   (FORCED OVERRIDE)
================================ */

/* Match Title */
.match-card .match-body h3 {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
}

/* Description */
.match-card .match-desc {
    font-size: 16.5px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    margin-bottom: 14px !important;
}

/* Date & Time */
.match-card .match-datetime {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
}

/* Stadium */
.match-card .match-stadium {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin-bottom: 12px !important;
}

/* Price */
.match-card .match-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #16a34a !important;
    margin-top: 10px !important;
    background: #ecfdf5;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}
.match-card h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;           /* future compatibility */
    overflow: hidden;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.match-card img {
    border-bottom: 1px solid #e5e7eb;
}

.match-body p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-card:hover {
    box-shadow:
        0 30px 60px rgba(0,0,0,0.25),
        0 0 0 1px rgba(37,99,235,0.25);
}


/* ===============================
   MATCH FOOTER
================================ */
.match-footer {
    padding: 18px 22px 22px;
    margin-top: auto;
}

/* CTA Button */
.match-footer .btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.match-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.45);
}

.sold-out-badge {
    position: absolute;
    top: 14px;
    right: -40px;
    background: #dc2626;
    color: #fff;
    padding: 6px 50px;
    font-size: 13px;
    font-weight: 700;
    transform: rotate(45deg);
    text-align: center;
    box-shadow: 0 6px 15px rgba(220,38,38,.4);
    z-index: 10;
}

.match-card {
    position: relative;
}

.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}


/* ===============================
   FOOTER FIX
================================ */

.site-footer {
    background: linear-gradient(180deg, #020617, #0f172a);
    color: #e5e7eb;
    padding: 32px 12px;
    text-align: center;
    font-size: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer p {
    margin: 0;
    color: #e5e7eb;
}

/* ===============================
   PAGINATION
================================ */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-link {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: #e5e7eb;
    color: var(--primary);
    font-weight: 500;
}

.page-link.active,
.page-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ===============================
   STADIUM & SEATS
================================ */
.stadium-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.screen {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

.seats-area {
    margin-top: 20px;
}

.seat-row {
    margin-bottom: 10px;
}

.seat {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.seat.available {
    background: #e5e7eb;
}

.seat.available:hover {
    background: var(--accent);
}

.seat.selected {
    background: var(--secondary);
    color: #fff;
}

.seat.booked {
    background: #ef4444;
    color: #fff;
    cursor: not-allowed;
}

/* ===============================
   BOOKING SUMMARY
================================ */
.booking-summary {
    background: #f8fafc;
    padding: 22px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ===============================
   PAYMENT PAGE
================================ */
.payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.payment-left,
.payment-right {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.amount-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    margin: 18px 0;
}

.amount-box span {
    font-size: 28px;
    font-weight: 700;
}

.qr-image {
    width: 220px;
    display: block;
    margin: 18px auto;
}

/* ===============================
   FOOTER
================================ */
footer {
    background: #0F172A;
    color: #fff;
    margin-top: 70px;
    padding: 18px;
    text-align: center;
    font-size: 14px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .hero-slide {
        height: 260px;
    }

    .hero-overlay {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: 100%;
    }

    .match-grid {
        grid-template-columns: 1fr;
    }

    .payment-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   MODERN MATCH CARD UI (NO HTML CHANGE)
====================================== */

/* Card base */
.match-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Hover: lift + glow */
.match-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 45px rgba(106, 27, 154, 0.25),
        0 0 0 1px rgba(236, 64, 122, 0.25);
}

/* Image wrapper behavior */
.match-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Image zoom on hover */
.match-card:hover img {
    transform: scale(1.08);
}

/* Body */
.match-body {
    padding: 16px 18px;
}

.match-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.match-body p {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
}

/* Badge / price */
.match-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #6A1B9A, #EC407A);
    color: #fff;
}

/* Footer */
.match-footer {
    padding: 14px 18px 18px;
    margin-top: auto;
}

/* Button */
.match-footer .btn {
    border-radius: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    transition: all 0.3s ease;
}

/* Button hover */
.match-footer .btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* FIX: Navbar clickable */
.navbar {
    position: relative;
    z-index: 9999;
}


.page-main-title {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

@media (max-width: 768px) {
    .page-main-title {
        font-size: 34px;
    }
}
