:root {
    --brand-blue: #1e3a8a;      /* Deep Royal Blue */
    --accent-silver: #cbd5e1;   /* Sleek Silver */
    --vibrant-gold: #fbbf24;    /* Highlights ke liye Golden */
    --surface-gray: #f8fafc;    /* Clean Professional Gray */
    --text-navy: #0f172a;       /* Sharp Contrast Text */
    --border-soft: #e2e8f0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: var(--surface-gray);
    color: var(--text-navy);
    line-height: 1.6;
}

/* --- HEADER (Premium Look) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--brand-blue);
    border-bottom: 5px solid var(--vibrant-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    /* Sticky header tak scroll karne par menu dikhta rahe */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900; /* Extra Bold */
    font-size: 24px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--vibrant-gold);
}

/* --- NAV --- */
nav {
    display: flex;
    align-items: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover {
    color: var(--vibrant-gold);
}

/* 🔥 MOBILE HEADER FIX - ISSE SARE LINKS DIKHENGE */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Logo upar, Nav neeche */
        padding: 15px 10px;
        height: auto;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap; /* Links multiple lines me adjust ho jayenge */
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    nav a {
        margin: 0 4px;
        font-size: 12px;
        padding: 6px 10px;
        background: rgba(255, 255, 255, 0.1); /* Touch target improve karne ke liye */
        border-radius: 5px;
        white-space: nowrap;
    }
}

/* --- BOLD SUBJECTS (Headings) --- */
.section h2, .subject-bold {
    font-size: 32px;
    font-weight: 900; /* Pura Bold */
    color: var(--brand-blue);
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Heading ke niche professional line */
.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--vibrant-gold);
    margin-top: 5px;
}

/* --- CARDS & GALLERY --- */
.card {
    background: white;
    border: 1px solid var(--border-soft);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-blue);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(20%);
    transition: 0.4s;
    border: 1px solid var(--border-soft);
}

.gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* --- TABLE (Stats & Points) --- */
/* Table mobile fix - container overflow handle karega */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

th {
    background: var(--brand-blue);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 800;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-soft);
}

tr:nth-child(even) {
    background: #f1f5f9;
}

tr:hover {
    background: #e0e7ff; /* Halka blue highlight hover par */
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #0f172a; /* Dark Navy */
    color: white;
    border-top: 4px solid var(--vibrant-gold);
    margin-top: 50px;
}

/* MATCH CARD TEXT IMPROVE */
.match-card{
    background: linear-gradient(135deg,#0f172a,#1e293b);
    padding:20px;
    margin:15px 0;
    border-radius:15px;
    border-left:4px solid gold;
    box-shadow:0 0 20px rgba(0,0,0,0.5);
    color:white;
}

/* --- GLOBAL MOBILE FIX (For All Pages) --- */
@media (max-width: 768px) {
    /* हेडर को सीधा (Column) करना */
    header {
        flex-direction: column !important;
        padding: 15px 5% !important;
        gap: 12px !important;
        height: auto !important;
    }

    /* नेविगेशन लिंक्स को बटन स्टाइल में लाना */
    nav {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    nav a {
        margin: 0 4px !important;
        font-size: 11px !important;
        padding: 6px 12px !important;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        white-space: nowrap;
        text-decoration: none;
    }

    /* ग्रिड सिस्टम को मोबाइल के लिए 1 कॉलम करना */
    .match-grid, .grid-3, .grid-2 {
        grid-template-columns: 1fr !important;
    }

    /* सेक्शन की पैडिंग कम करना */
    .section {
        padding: 20px 4% !important;
    }

    /* फॉन्ट साइज थोड़े छोटे करना */
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
}
:root {
    --footer-bg: #032049; /* Dark Navy Blue */
    --gold: #D4AF37; /* Vibrant Gold */
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

/* Base style reset for footer example */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.pcl-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 60px 0 20px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Gold Dynamic Background Accent (Image match) */
.pcl-footer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background-color: #051b3d; /* Slightly different dark blue for layer */
    transform: skewX(-15deg);
    transform-origin: top right;
    border-left: 8px solid var(--gold);
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr; /* Layout distribution */
    gap: 40px;
    position: relative;
    z-index: 2; /* Content above gold accent */
}

/* --- Mobile view adjust (responsive) --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .pcl-footer::after {
        display: none; /* Hide accent on mobile for cleaner look */
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-follow-section, .footer-bottom, .newsletter-form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-titles {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* 1. Logo Section */
.footer-logo-section {
    display: flex;
    align-items: center;
}

.footer-titles {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.logo-pcl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-desc {
    font-size: 10px;
    color: var(--white);
    letter-spacing: 1px;
}

/* 2. Quick Links and League Info */
.footer-links-section h4, 
.footer-follow-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-section li {
    margin-bottom: 10px;
}

.footer-links-section a,
.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 13px;
}

.footer-links-section a:hover,
.clickable-mail:hover {
    color: var(--gold);
}

/* 3. Follow Us and Newsletter */
.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icons a {
    color: var(--footer-bg);
    background-color: var(--gold);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--white);
    transform: scale(1.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    background-color: var(--white);
    border-radius: 4px;
    color: #333;
    font-size: 13px;
}

.newsletter-form input:focus {
    outline: 2px solid var(--gold);
}

.newsletter-form button {
    padding: 10px 15px;
    border: none;
    background-color: var(--gold);
    color: var(--footer-bg);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* 4. Footer Bottom (Copyright) */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.clickable-mail {
    color: var(--white) !important;
    font-weight: 600;
    margin-right: 5px;
}

/* Tumhare pure footer ka container (agar alag id hai toh wo use karo, main assume kar rha hun footer tag hai) */
footer {
    background-color: #002244; /* Dark Navy Blue background (jo image mein hai) */
    color: #ffffff; /* Default text color White */
    font-family: 'Poppins', sans-serif; /* PCL theme font */
}

/* 1. Main Headings (PCL PURA CRICKET LEAGUE, QUICK LINKS, etc.) ko Gold karne ke liye */
footer h2, 
footer h3, 
footer strong,
.league-info-header, /* Agar headings ke liye ye classes hain */
.quick-links-header {
    color: #d4af37; /* Premium Gold color */
    text-transform: uppercase; /* Thoda professional look ke liye */
    margin-bottom: 15px;
}

/* 2. Links (Home, Matches, Rules, etc.) ko White aur visible karne ke liye */
footer ul {
    list-style: none; /* Wo gande dots hatane ke liye */
    padding: 0;
}

footer ul li {
    margin-bottom: 10px; /* Thodi spacing */
}

footer ul li a {
    color: #ffffff !important; /* Pure White text (Blue hatane ke liye important lagaya hai) */
    text-decoration: none; /* Underline hatane ke liye */
    transition: color 0.3s ease; /* Hover effect smooth karne ke liye */
}

/* 3. Hover effect: Jab mouse link par jaye toh wo Gold ho jaye */
footer ul li a:hover {
    color: #d4af37 !important; /* Hover karne pe Gold */
    text-decoration: underline; /* Chaho toh underline dikha sakte ho hover pe */
}

/* 4. Bottom Copyright aur Email link ko sahi karne ke liye */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Patli white line divider */
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.7); /* Thoda halka white main text ke liye */
}

.footer-bottom a {
    color: #d4af37 !important; /* Email, Privacy Policy links ko Gold rakho highlight ke liye */
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff !important; /* Hover pe ye White ho jayenge */
}

/* 5. Social Icons aur Input fields ko thoda clean karne ke liye (Optional but recommended) */
.social-icons a {
    color: #ffffff;
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d4af37;
}

#newsletter-email {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#subscribe-btn {
    background-color: #d4af37; /* Gold Button */
    color: #002244; /* Dark Text on button */
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
