/* Global Styles */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
}
h1, h2, h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
  }

/* Main content wrapper */
.content-wrapper {
    flex: 1 0 auto;
    padding-bottom: 1rem; /* Ensure content doesn't touch footer */
}

/* Navbar */
.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.navbar-dark .nav-link {
    font-size: 1rem;
    margin: 0 0.5rem;
}

.navbar-dark .nav-link:hover {
    color: #007bff;
}

.navbar-golden {
    background-color: #D6B268;
}

.navbar-golden .nav-link {
    color: white !important;
}

.navbar-golden .nav-link:hover {
    color: #f0f0f0;
    /* Slightly lighter white on hover */
}


/* Hero Section */
.hero {
    background: #2255A4;
    /* Deep blue */
    color: #fff;
    padding: 6rem 1rem;
}

.hero h1 {
    font-size: 3rem;
    color: #fff;
}

.hero .btn-primary,
.hero .btn-success,
.hero .btn-outline-light {
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Key Stats Section */
.stats {
    background-color: #f0f4f8;
    /* Light blue-gray */
    padding: 3rem 1rem;
}

.stats h2,
.stats .fas {
    color: #0066cc;
}

/* Why Choose Us Section */
.why-choose {
    background-color: #e6f2ff;
    /* Soft blue tint */
}

.why-choose h3,
.why-choose .fas {
    color: #009688;
    /* Teal */
}

/* Services Section */
.services {
    background-color: #fff;
    padding: 3rem 1rem;
}

.services h2 {
    color: #2255A4;
}

.services .service-card {
    background: #e9f7ff;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s;
}

.services .service-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services .btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.services .btn-outline-info:hover {
    background-color: #17a2b8;
    color: #fff;
}

/* Testimonials Section */
.testimonials {
    background-color: #2255A4;
    color: #fff;
    padding: 3rem 1rem;
}

.testimonials .blockquote p {
    font-size: 1.2rem;
    color: #e3e6eb;
}

/* Sponsors Section */
.sponsors {
    background-color: #f7f9fb;
}

.sponsors h2 {
    color: #2255A4;
}

/* Live Feed Section */
.live-feed {
    background-color: #e6f2ff;
}

.live-feed .match-info {
    background: #fff;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}

.live-feed .match-info:hover {
    transform: translateY(-5px);
}

/* Contact Form Section */
.contact {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
}

.contact h2 {
    color: #2255A4;
    margin-bottom: 1.5rem;
}

.contact form {
    max-width: 600px;
    margin: auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact .form-label {
    font-weight: 600;
    color: #333;
}

.contact .form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s;
}

.contact .form-control:focus {
    border-color: #2255A4;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.contact .btn-primary {
    background-color: #2255A4;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
}

.contact .btn-primary:hover {
    background-color: #003d80;
}

/* Footer */
footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background-color: #333333;
    color: #adb5bd;
    position: relative;
    bottom: 0;
}

.footer {
    background: #333333;
    color: #adb5bd;
}

.footer a {
    color: #adb5bd;
}

.footer a:hover,
.footer .social-media i:hover {
    color: #fff;
}

.footer .social-media i {
    color: #adb5bd;
    transition: color 0.3s;
}

/* Events Overview */
.events-overview {
    background-color: #2255A4;
    color: #ffffff;
    padding: 4rem 1rem;
}

.events-overview h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.events-overview p {
    font-size: 1.2rem;
}

/* Events Category */
.events-category {
    padding: 4rem 1rem;
}

.events-category h2,
.events-category h4 {
    color: #2255A4;
    font-weight: bold;
}

.events-category h4 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

/* Event List */
.event-list {
    margin-top: 1rem;
}

.event-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-4px);
}

.event-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #70b659;
}

.event-links a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    transition: 0.3s ease;
}

.event-links a:hover {
    background-color: #2255A4;
    color: #ffffff;
}

/* Secondary Menu */
.secondary-menu {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.secondary-menu .nav-link {
    color: #007bff;
    font-weight: 500;
}

.secondary-menu .nav-link.active,
.secondary-menu .nav-link:hover,
.secondary-menu .dropdown-menu .dropdown-item:hover {
    color: #2255A4;
}

/* Event Details Section */
.event-details {
    padding: 4rem 1rem;
    background-color: #ffffff;
}

.event-details h1 {
    font-weight: bold;
    color: #333333;
}

.event-details h5 {
    font-size: 1.2rem;
    color: #666666;
}

/* Articles Section */
.articles h2 {
    color: #2255A4;
    font-weight: bold;
}

.card {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.1rem;
    color: #2255A4;
}

.card-text {
    color: #666666;
}

.btn-primary {
    background-color: #2255A4;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #003d7a;
}

/* Matches List Section */
.matches-list {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

/* Match Card Enhancements */
.match-card {
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 2px solid transparent;
  background: #fff;
}
.match-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  transform: translateY(-2px) scale(1.01);
  border-color: #1565c0;
}

/* Live Match Highlight */
.match-card.live {
  border-color: #e53935 !important;
  box-shadow: 0 4px 20px rgba(229,57,53,0.12);
}

.badge-status {
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 1rem;
  padding: 0.35em 0.9em;
  letter-spacing: 0.03em;
  margin-left: 0.5em;
}
.badge-live {
  background: #e53935;
  color: #fff;
}
.badge-upcoming {
  background: #1565c0;
  color: #fff;
}
.badge-completed {
  background: #43a047;
  color: #fff;
}

.flag {
    width: 40px;
    height: auto;
    margin-bottom: 0.5rem;
}

.team-name {
    font-size: 0.85rem;
    color: #333;
}

.team-score {
    font-size: 0.85rem;
    font-weight: bold;
    color: #2255A4;
}

.vs {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.result {
    font-size: 0.75rem;
    color: #28a745;
    margin-bottom: 8px;
}

.match-details-txt {
    font-size: 14px; /* Adjust size as needed */
    color: #6c757d;  /* Muted color */
    margin-bottom: 0.25rem; /* Space adjustment */
}
.match-details{
    font-size: 12px;
}

.btn-outline-primary {
    color: #2255A4;
    border-color: #2255A4;
}

.btn-outline-primary:hover {
    background-color: #2255A4;
    color: #fff;
}

/* Bowling Stats Section */
.bowling-stats {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
}

.stat-headers,
.player-stats {
    font-size: 0.85rem;
    padding: 0.75rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.stat-headers {
    background-color: #2255A4;
    color: #ffffff;
    font-size: 0.9rem;
}

.player-stats {
    background-color: #f8f9fa;
    font-weight: 400;
}

.player-stats-container {
    max-height: 60vh;
    overflow-y: auto;
}

.points-header,
.points-row {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.points-header {
    background-color: #2255A4;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.points-row {
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    transition: transform 0.2s ease;
}

.points-row:hover {
    transform: translateY(-3px);
}

.squads-list .accordion-button {
    background-color: #2255A4;
    color: #ffffff;
    font-weight: bold;
}

.squads-list .accordion-button.collapsed {
    background-color: #e6f2ff;
    color: #333;
}

.role-section h6 {
    font-size: 1rem;
    margin-top: 1rem;
    color: #2255A4;
}

.list-group-item {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

#searchPlayer {
    border: 1px solid #2255A4;
}

.text-gold {
    color: #c9a44b;
    /* Gold color for headings */
}

.bg-gold {
    background-color: #c9a44b !important;
    /* Gold background for badges */
}

.squads .accordion-button {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.squads .accordion-button:focus {
    box-shadow: none;
}

.squads .card {
    border: none;
    transition: transform 0.3s;
}

.squads .card:hover {
    transform: translateY(-3px);
}
.app-blue{
    background-color: #2255A4;
}

/* General Row Styling */
.batting-row,
.bowling-row {
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.batting-row:hover,
.bowling-row:hover {
    transform: translateY(-3px);
}

.batting-row span:first-child,
.bowling-row span:first-child {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 2;
}

.batting-row span,
.bowling-row span {
    flex: 1;
}

.batting-row span:last-child,
.bowling-row span:last-child {
    text-align: right;
}

/* Scorecard Section */
.scorecard-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
}

.scorecard-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0.8rem;
    border-bottom: 1px solid #eee;
}

.scorecard-row:last-child {
    border-bottom: none;
}

.scorecard-header {
    background-color: #2255A4;
    font-size: 0.94rem;
    color: #ffffff;
    font-weight: bold;
}

/* Batsman-Specific Styling */
.batsman-col {
    flex: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.batsman-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.how-out {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: normal;
    margin-top: -0.1rem;
}

/* Extras and Total Rows */
.extras, .total {
    background-color: #f1f1f1;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.extras span:first-child {
    flex: 1;
    text-align: left;
}

.extras span:nth-child(2) {
    flex: 4;
    text-align: left;
}

/* Yet to Bat and Fall of Wickets Sections */
.yet-to-bat, .fall-of-wickets {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.yet-to-bat p, .fall-of-wickets p {
    margin: 0;
}

/* Ball-by-Ball Section */
.ball-by-ball-container {
    font-size: 14px;
    line-height: 1.5;
}

.summary-card, .compact-ball-list {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.list-group-item {
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.end-of-over {
    background-color: #e9f7fd;
    font-weight: bold;
    padding: 15px;
}

.end-of-over h6 {
    margin: 0;
    font-size: 16px;
}

.end-of-over p {
    margin: 0;
    font-size: 14px;
}

/* Mobile Styling for Ball Details */
.ball-number .badge {
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* Utility Classes */
.text-danger { color: #dc3545; font-weight: bold; }
.text-bold { font-weight: bold; }
.visible { display: flex; }
.hidden { display: none; }

/* Navigation Buttons */
.innings-nav-container .nav-tabs {
    border-bottom: none;
    display: flex;
    justify-content: start;
}

.innings-nav-container .nav-link {
    margin-left: 10px;
    margin-bottom: 5px;
    background-color: #8999b2;
    color: #ffffff;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.innings-nav-container .nav-link.active {
    background-color: #D6B268;
    border-color: #D6B268;
    color: #ffffff;
}

.match-nav-container .nav-link.active {
    margin-left: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    background-color: #D6B268;
    color: #ffffff;
    padding: 0.3rem 0.9rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.batting-scorecard, .bowling-scorecard {
    font-size: 0.9rem;
}
.scorecard-row span {
    flex: 1; /* Ensure equal spacing for most columns */
}

.scorecard-row span:first-child {
    flex: 2; /* Give more space to the first column (Bowler Name) */
    text-align: left;
}
/* Mobile Styling */
@media (max-width: 600px) {
    .batting-scorecard, .bowling-scorecard,
    .extras, .total, .yet-to-bat, .fall-of-wickets,
    .innings-nav-container .nav-link {
        font-size: 0.8rem;
    }

    .scorecard-header {
        font-size: 0.9rem;
    }

    .batting-row, .bowling-row {
        padding: 0.3rem 0.5rem;
    }
    .batting-row .howout-cell {
        display: none !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .how-out-row {
        width: 100%;
        color: #888;
        font-size: 0.92em;
        margin-top: 0.1rem;
        margin-bottom: 0.2rem;
        padding: 0 0.8rem 0.2rem 0.8rem;
        background: none;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
        white-space: pre-line;
    }

    /* Remove the old how-out styling */
    .batting-row:not(.scorecard-header) span:first-child::after {
        display: none;
        content: none;
    }

    .scorecard-row.how-out-row {
        border-bottom: 2px solid #e0e0e0;
        margin-top: -0.3rem;
        color: #707070;
        font-size: 0.95em;
        background: #fff;
        padding-left: 7px;
        padding-top: 0.2rem;
        padding-bottom: 0.4rem;
    }
    .scorecard-row.batting-row + .scorecard-row.how-out-row {
        border-top: none;
    }
}

/* Scorecard Loading States */
.batting-scorecard.loading,
.bowling-scorecard.loading,
.fall-of-wickets.loading {
  position: relative;
  min-height: 100px;
  opacity: 0.6;
  pointer-events: none;
}

.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.loading-indicator .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Scorecard Content */
.scorecard-content {
  position: relative;
}

.scorecard-section {
  transition: opacity 0.3s ease;
}
