/* Page Hero Section (Internal Pages like Fixtures) */
.page-hero-section {
    position: relative;
    height: 300px;
    /* Shorter than home page hero */
    overflow: hidden;
    margin-bottom: var(--spacing-large);
}

.page-hero-image {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

.page-hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly darker overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.page-hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--white);
}

.page-hero-content p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Fixtures Page Specific Hero Image (if different from other page heroes) */
.page-hero-section .page-hero-image[style*="hero-fixtures-bg.jpg"] {
    background-position: center bottom;
    /* Example: adjust background position */
}


/* Event Ads Section */
.event-ads-section {
    padding-top: var(--spacing-smmall);
    /* Slightly less top padding */
    padding-bottom: var(--spacing-small);
    background-color: var(--light-bg);
    /* Give it a light background */
}

/* Section Title for 'Featured Event Ads' */
.section-title {
    font-size: 1.8em;
    /* Slightly smaller title for this section */
    text-align: center;
    margin-bottom: var(--spacing-medium);
    color: var(--color-primary);
    position: relative;
}

.section-title-small::after {
    content: '';
    display: block;
    width: 60px;
    /* Shorter underline */
    height: 3px;
    background-color: var(--secondary-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Ad Banner Carousel for horizontal scrolling images */
.ad-banner-carousel {
    display: flex;
    /* Arrange images horizontally */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    gap: var(--spacing-small);
    /* Space between images (adjust as needed) */
    padding-bottom: 15px;
    /* Space for scrollbar on some browsers */
    scroll-snap-type: x mandatory;
    /* Optional: Snap to images on scroll */
}

/* Scrollbar styling for webkit browsers */
.ad-banner-carousel::-webkit-scrollbar {
    height: 8px;
    /* Height of the scrollbar */
}

.ad-banner-carousel::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    /* Color of the scrollbar thumb */
    border-radius: 10px;
}

.ad-banner-carousel::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
    /* Color of the scrollbar track */
}

/* Styling for individual images within the carousel */
.ad-banner-carousel img {
    flex-shrink: 0;
    /* Prevent images from shrinking */
    width: 15rem;
    /* Fixed width for each ad image */
    height: 10rem;
    /* Fixed height for each ad image */
    object-fit: cover;
    /* Cover the area, cropping if necessary */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    /* Optional: Snap to start of image */
}

.ad-banner-carousel img:hover {
    transform: translateY(-5px);
    /* Subtle lift on hover */
}


/* Fixtures Table Section */

/* Table responsive wrapper for horizontal scrolling */
.table-responsive {
    overflow-x: auto;
    /* Make table horizontally scrollable on small screens */
    -webkit-overflow-scrolling: touch;
    margin-top: var(--spacing-medium);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}

/* Main table styling */
.fixtures-table {
    width: 100%;
    border-collapse: collapse;
    /* Collapse table borders */
    min-width: 700px;
    /* Ensures table doesn't get too narrow on small screens */
}

/* Table headers and data cells */
.fixtures-table th,
.fixtures-table td {
    padding: var(--spacing-xs);
    /* Reduced padding for table cells */
    text-align: left;
    border-bottom: 1px solid var(--color-text-black);
    /* Light border between rows */
}

/* Table header specific styling */
.fixtures-table th {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    position: sticky;
    /* Make header sticky when scrolling horizontally */
    top: 0;
    /* Stick to the top of the scroll container */
    z-index: 10;
    /* Ensure it's above other table content */
}

.fixtures-table th:nth-child(1) {
    width: 18%;
}

.fixtures-table th:nth-child(2) {
    width: 38%;
}

.fixtures-table th:nth-child(3) {
    width: 22%;
}

.fixtures-table th:nth-child(4) {
    width: 22%;
}

.fixtures-table tbody td:nth-child(1) {
    color: var(--color-primary);
    font-weight: bold;
}

.fixtures-table tbody tr {
    cursor: pointer;
}

/* Zebra striping for table rows */
.fixtures-table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

/* Hover effect for table rows */
.fixtures-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.fixtures-table tbody td a {
    color: var(--primary-color);
    filter: brightness(150%);
    font-weight: 500;
}

/* View Toggle & Calendar Additions */
.fixtures-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.fixtures-controls {
    display: flex;
    gap: 10px;
}

.view-toggle {
    background: #eee;
    border: 1px solid #aaa;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background 0.18s, color 0.18s;
}

.view-toggle.active {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
}

.month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px 0 12px;
    gap: 20px;
}

.month-nav button {
    background: #f3f3f3;
    border: 1px solid #bbb;
    padding: 5px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.15s;
}

.month-nav button:hover {
    background: #e6eefd;
}

#calendar {
    margin-top: 16px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: #fff;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #eee;
    padding: 10px;
    min-width: 80px;
    vertical-align: top;
    font-size: 14px;
}

.calendar-table th {
    background: #f3f3f3;
    color: #555;
    font-weight: bold;
    font-size: 1em;
}

.calendar-table td {
    height: 60px;
}

.calendar-event {
    display: block;
    margin-top: 6px;
    background: #e9f3ff;
    color: #007bff;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    word-break: break-word;
}

.calendar-event:hover {
    background: #007bff;
    color: #fff;
}

/* Responsive Adjustments for Fixtures Page Content */
@media (max-width: 992px) {
    .page-hero-section {
        height: 250px;
    }

    .page-hero-content h1 {
        font-size: 2.5em;
    }

    .page-hero-content p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-hero-section {
        height: 200px;
    }

    .page-hero-content h1 {
        font-size: 2em;
    }

    .event-ads-section {
        padding-left: var(--spacing-small);
        padding-right: var(--spacing-small);
    }

    .ad-banner-carousel img {
        width: 300px;
        /* Adjust size for smaller screens */
        height: 180px;
    }

    .calendar-table th,
    .calendar-table td {
        min-width: 48px;
        font-size: 12px;
        padding: 4px;
    }
}

@media (max-width: 576px) {
    .page-hero-section {
        height: 180px;
    }

    .page-hero-content h1 {
        font-size: 1.8em;
    }

    .ad-banner-carousel img {
        width: 250px;
        height: 150px;
    }

    .calendar-table th,
    .calendar-table td {
        min-width: 28px;
        font-size: 10px;
        padding: 2px;
    }
}

/* Highlight today's date in calendar */
.calendar-today {
    border: 2px solid #007bff !important;
    background: #e0f0ff !important;
    border-radius: 7px;
    position: relative;
}

.calendar-today strong {
    color: #007bff;
    font-weight: bolder;
}