﻿body {
    background-color: #121212; /* Your dark charcoal base */
    position: relative;
}

body::before {
    content: "";
    position: fixed; /* Keeps it behind content as you scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Replace 'topo-tile.png' with your saved image name */
    background-image: url('/Content/img/v2/topo.svg');
    /* background-repeat: repeat; */
    background-size: cover; /* Adjust scale of the lines here */
    opacity: 0.07; /* Very subtle so text stays readable */
    z-index: -1;
    pointer-events: none;
}
        /* 7-Day Calendar Grid for Desktop */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

main::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw; /* Adjust width for how much of the center you want covered */
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient( to right, 
        rgba(20, 20, 20, 0) 0%, 
        rgba(20, 20, 20, 0.75) 15%, 
        rgba(20, 20, 20, 0.75) 85%, 
        rgba(20, 20, 20, 0) 100% 
    );
}

/* Mobile Fallback: Stacks automatically */
@media (max-width: 991px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

.ad-banner-top {
    /*max-width: 728px;*/
    height: 90px;
   /* background: #222;*/
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
   /* border: 1px dashed #444;*/
}

.tournament-day {
    background: #1a1a1a;
    border-top: 4px solid var(--bs-primary);
    min-height: 200px;
}
/****** HERO SECTION */
.hero-section {
    /* Use a 1920x1080 image for desktop */
    background-image: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.2) 80%), url('/Content/img/v2/hero.jpg');
    background-size: cover;
    background-position: center right; /* Keeps action on the right, text on the left */
    min-height: 60vh; /* Responsive height */
    display: flex;
    align-items: center;
    border-bottom: 4px solid #007bff; /* Matching your Blue branding */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-position: center;
        min-height: 400px;
        text-align: center;
    }
}

/***** END HERO SECTION *********/

/* Sponsor Marquee Container */
/* Container that clips the overflow */
.sponsor-marquee-wrapper {
    background-color: #121212;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

/* The track containing two identical sets of logos */
.marquee-track {
    display: flex;
    width: max-content; /* Vital: Allows the div to be as wide as the logos */
    animation: scroll-continuous 60s linear infinite;
}

    .marquee-track:hover {
        animation-play-state: paused;
    }

.sponsor-item {
    flex: 0 0 auto;
    padding: 0 50px; /* Spacing between logos */
    display: flex;
    align-items: center;
}

.sponsor-item img {
    height: 24px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
}

.sponsor-item img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* The magic loop: Move left by exactly half the track width */
@keyframes scroll-continuous {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sponsor-item {
        margin: 0 20px;
    }

        .sponsor-item img {
            height: 30px;
        }
}
/********** End Sponsor Marquee Styles */


/*********** Featured Event Cards */
.event-card-featured {
    /* Background Logic */
    background-size: auto 170%;
    background-position: center;
    background-repeat: no-repeat;
    /* Layout Logic */
    display: flex;
    flex-direction: column;
    min-height: 300px; /* Ensures a consistent height across the row */
    /* Design Logic */
    background-color: #1a1a1a; /* Fallback color */
    /*border-top: 4px solid #FF6B00;*/ /* Rugged Orange Border */
    /*border-radius: 4px;*/
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    background-color:#999;
    /* Apply shadow to all children text elements */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0px 0px 10px rgba(0, 0, 0, 0.5);
}

    .event-card-featured:hover {
        transform: scale(1.02);
    }

.days-count {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Ensure text stays readable over images */
.event-card-featured .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;

}

/* 7-Day Grid Layout */
.extended-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Responsive Hiding Logic */
@media (max-width: 767.98px) {
    .mobile-collapse {
        display: none;
    }

        .mobile-collapse.show {
            display: block;
        }
} 
/********** Featured Events   */


/******** Results Grid ***************/
.wmb-result-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures the card fills the column height */
    background-color: var(--wmb-surface);
    border: 1px solid var(--wmb-border);
    border-radius: 0;
}

    .wmb-result-card .card-body {
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* This forces the body to expand and push the footer down */
        padding: 1.5rem;
    }

    /* Forces the button to the bottom if content is short */
    .wmb-result-card .btn-wmb-outline {
        margin-top: auto;
    }

/* Fix the text-primary color to match your #0072bc brand */
.text-primary-light {
    color: var(--wmb-primary-light) !important;
}

/* Sharpen the labels */
.smaller {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Ensure the button matches the machined look from image_ac7e1a.jpg */
.btn-wmb-outline {
    border: 1px solid var(--bs-primary);
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

    .btn-wmb-outline:hover {
        background: var(--bs-primary);
        box-shadow: 0 0 15px rgba(0, 114, 188, 0.4);
    }
 

/* Mobile responsive grid adjustments */
@media (max-width: 768px) {
    .wmb-result-card {
        margin-bottom: 10px;
    }
}

.sponsor-spotlight-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allows children to drop to the next line */
    background-color: #1a1a1a; /* Fallback */
    /* This creates the dark-to-transparent fade */
    background: linear-gradient(90deg, #1a1a1a 0%, #1a1a1a 40%, rgba(26, 26, 26, 0.4) 100%);
    border-left: 5px solid #007bff; /* Brand Blue Accent */
    margin-bottom: 10px;
    padding: 15px 25px;
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 0; /* Rugged sharp edges */
}

.sponsor-logo-container {
    flex: 0 0 120px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

    .sponsor-logo-container img {
        max-width: 100%;
        height: auto;
       border: 4px solid white
    }

.sponsor-content {
    flex: 1;
    padding: 0 30px;
}

.sponsor-name {
    font-family: 'Oswald', sans-serif;
    color: #007bff;
    font-size: 0.75rem; 
    margin-bottom: 2px;
    display: block;
}

.sponsor-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.2;
}

.sponsor-details {
    font-size: 0.9rem;
    color: #007bff; /* Blue for the highlight text/code */
    margin-top: 5px;
    opacity: 0.9;
}

.sponsor-cta {
    flex: 0 0 auto;
}

/* On mobile devices (less than 768px) */
@media (max-width: 767px) {
    .sponsor-logo-container {
        flex: 0 0 100%; /* Take up full width */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        margin-bottom: 10px;
        text-align: center;
    }

    .sponsor-content {
        flex: 0 0 100%;
        padding: 0 0 20px 0;
        text-align: center;
    }

    .sponsor-cta {
        flex: 0 0 100%; /* Force the button to its own line */
        text-align: center;
    }

        .sponsor-cta .btn {
            width: 100%; /* Make button full width on mobile for easier tapping */
        }
}

/******** End Results Grid ***********/
 