#carouselIndicators,
#carouselIndicators .carousel-inner,
#carouselIndicators .carousel-item {
    height: 100%;
}

.carousel-inner .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.carousel-caption {
        bottom: 40px; /* moves it closer to the bottom */
        background: rgba(var(--rgb-shadow), 0.5); /* optional: semi-transparent background */
        padding: 10px 20px;
        border-radius: 16px;
}
.carousel-caption .btn {
    background-color: var(--theme-secondary) !important;
    color: var(--text-main) !important;
    border: none;
}

.carousel-caption .btn:hover {
    background-color: var(--theme-secondary-tint) !important;
    color: var(--text-main) !important;
    border: none;
}
.fixture-header-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-page);
    color: var(--text-main);
    font-weight: bold;
    font-style: italic;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.hero-text {
  font-size: 1rem;
}

.teamName-text {
  font-size: 1.2rem;
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-standard);
}

.text-small {
    font-size: 0.75rem;
}

.bg-cricket-pattern {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Cg fill='%23212529' fill-opacity='0.1'%3E%3Cpath fill-rule='evenodd' d='M0 24h4v2H0v-2zm0 4h6v2H0v-2zm0-8h2v2H0v-2zM0 0h4v2H0V0zm0 4h2v2H0V4zm16 20h-6v2h6v-2zm0 4H8v2h8v-2zm0-8h-4v2h4v-2zm0-20h-6v2h6V0zm0 4h-4v2h4V4zm-2 12h2v2h-2v-2zm0-8h2v2h-2V8zM2 8h10v2H2V8zm0 8h10v2H2v-2zm-2-4h14v2H0v-2zm4-8h6v2H4V4zm0 16h6v2H4v-2zM6 0h2v2H6V0zm0 24h2v2H6v-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.sponsor-card {
    max-width: 400px;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    background: var(--bg-page);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-standard);
}

.sponsor-img {
    height: 150px;
    width: 100%;
    object-fit: contain;
    padding: 1rem;
}

@media (min-width: 768px) {
  .hero-text {
    font-size: 1.5rem;
  }
  .teamName-text {
    font-size: 1.5rem;
  }
  .text-small {
      font-size: 0.8rem;
  }
}
@media (min-width: 992px) {
  .hero-text {
    font-size: 2rem;
  }
  .teamName-text {
    font-size: 2rem;
  }
  .text-small {
      font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
    .carousel-caption {
        bottom: 25px;
        background: transparent;
    }

    .carousel-caption .btn {
        padding: 0.4rem 0.8rem; /* Smaller button padding for thumbs */
        font-size: 0.8rem;      /* Slightly smaller text */
    }
}

/* 1. The Container: "View Window" */
.league-home-container {
    width: 100%;
    /* The height you want the user to see on your page */
    height: 550px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 12px;
}

/* 2. The Clipper: Moves the iframe */
.league-home-clipper {
    width: 100%;
    height: 700px;
    position: relative;
}

.league-home-clipper iframe {
    position: absolute;
    top: -180px; /* Hide the CricClubs Header */
    left: 0;
    width: 100%;
    /* Iframe must be taller than the container to allow internal scrolling */
    height: 100%;
    border: none;
}

/* Mobile view: ensure the table doesn't get cut off for smaller width screens */
@media (max-width: 994px) {
    .league-home-clipper iframe {
        top: -70px; /* Adjust to perfectly show the filter bar */
    }
}