html, body {
    margin: 0;
    width: 100%;
    font-family: verdana, tahoma, helvetica, sans-serif;
}

:root {
    --rb-blue: rgb(0, 51, 153);
}


/*TEXT & PLACEHOLDER STYLES*/
h1 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(10px, 4vw, 2.5rem) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin: 0 auto 15px auto !important;
	margin-bottom: 3px;
    max-width: 95%;
    text-align: center;
}

h2 {
    color: black;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 3vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 6px auto 3px auto;
    max-width: 95%;
    text-align: center;
    display: block;
}

h3 {
    color: black;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 2.25vw, 2.25rem); 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 6px auto 3px auto; 
    max-width: 95%;
    text-align: center;
    display: block;
}

p {
    text-align: left;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(15px, 3vw, 25px);
    font-size: clamp(13px, 1.3vw, 20px);
    line-height: 1.6;
}

p.text {
    text-indent: clamp(20px, 4vw, 40px);
}

.button-container {
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

button {
    display: inline-block;
    margin: 8px 8px 2px 8px;
    margin-bottom: 2px;
    padding: clamp(6px, 1.5vw, 10px) clamp(12px, 2.5vw, 20px); 
    color: white !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(11px, 1.2vw, 14px); 
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: var(--rb-blue) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    border: none !important;
}

button:hover {
    background: white !important;
    color: rgb(0, 51, 153) !important;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px auto;
    width: 80%;
}



#top-banner {
	background-color: var(--rb-blue);
	width: 100%;
	margin: 0;
	text-align: center;
	padding: 5px;
}


/*HEADER STYLES*/
#header-placeholder {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100%;
}

header {
	position: sticky;
    top: 0 !important;
    z-index: 1000 !important;	
    background-color: var(--rb-blue);
    width: 100% !important;
    margin-top: 0 !important;
    padding: 5px 0 0 0 !important; 
	padding-bottom: 1px;
    display: block !important;
    box-sizing: border-box !important;
	overflow: hidden !important;
}


/*INDEX STYLES*/
.carousel-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    aspect-ratio: 5 / 4;
}

.carousel-slide {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 51, 153, 0.6);
    color: white;
    border: none;
    padding: clamp(10px, 2vw, 15px) clamp(8px, 1.5vw, 12px);
    cursor: pointer;
    font-size: clamp(18px, 3vw, 24px);
    transition: 0.3s;
    z-index: 10;
}

#nextBtn { right: 0; border-radius: 5px 0 0 5px; }
#prevBtn { left: 0; border-radius: 0 5px 5px 0; }

.carousel-indicators {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(6px, 1.5vw, 12px);
    z-index: 10;
}

.dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.dot.active {
    background-color: white;
    width: clamp(18px, 3.5vw, 25px);
    border-radius: 10px;
}


/*BRONCO STYLES*/
.table-container {
    width: 95%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.race-schedule {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background-color: white;
}

.race-schedule th {
    padding: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: white;
    border: none;
}

.boys-header { background-color: var(--rb-blue); }
.girls-header { background-color: #002266; }

.race-schedule td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.race-schedule td:nth-child(even) {
    font-weight: bold;
    text-align: right;
    padding-right: 20px;
    color: var(--rb-blue);
}

.div2-row {
    background-color: #f9f9f9;
}

.race-schedule tr:last-child td {
    border-bottom: none;
}


.results-archive {
    box-sizing: border-box;
    width: 95%;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 25px clamp(10px, 5%, 25px); 
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#results-dropdown {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--rb-blue);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    background-color: white;
}

.recent-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.result-btn {
    flex: 1;
    background-color: var(--rb-blue);
    color: white !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
}

.result-btn:hover {
    background-color: white;
    color: var(--rb-blue) !important;
    box-shadow: inset 0 0 0 2px var(--rb-blue), 0 10px 20px rgba(0,0,0,0.15);
    transform: scale(1.05); 
    z-index: 10;
}


/*SCHEDULE STYLES*/
.schedule-container {
    box-sizing: border-box;
    width: 95%;
    max-width: 900px;
    margin: 40px auto;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-family: verdana, sans-serif;
    font-size: 14px;
}

.schedule-table thead {
    background-color: var(--rb-blue);
}

.schedule-table th {
    padding: 15px;
    text-align: left;
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: none;
}

.schedule-table tr:first-child th:first-child { border-top-left-radius: 12px; }
.schedule-table tr:first-child th:last-child { border-top-right-radius: 12px; }

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.meet-link {
    color: var(--rb-blue);
    text-decoration: none;
    font-weight: bold;
}

.meet-link:hover {
    text-decoration: underline;
    color: #002266;
}

.special-event td {
    background-color: #f0f4ff !important;
    font-style: italic;
    color: #444;
}

.schedule-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 15px;
    margin: 0;
}

@media (max-width: 600px) {
    .schedule-table th { 
        padding: 10px; 
        font-size: 11px; 
    }
    .schedule-table td { 
        padding: 10px; 
        font-size: 12px; 
    }
}


/*ROSTER STYLES*/
.roster-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
}

.roster-column {
    flex: 1;         
    min-width: 300px;
}

.roster-wrapper {
    width: 100%;
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-family: verdana, sans-serif;
}

.roster-table thead {
    background-color: var(--rb-blue);
}

.roster-table.girls-theme thead {
    background-color: #002266;
}

.roster-table th {
    padding: 15px;
    color: white;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: left;
}

.roster-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.roster-table td:first-child {
    font-weight: normal;
    width: 75%;
}

.roster-table td:last-child {
    text-align: center;
}


/*RESULTS STYLES*/
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 15px;
    width: 95%;
    max-width: 900px; 
    margin: 30px auto;
    padding: 10px;
}

.res-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rb-blue);
    color: white !important;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    min-height: 60px;
    box-sizing: border-box;
    
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.res-btn:hover {
    background-color: white;
    color: var(--rb-blue) !important;
    box-shadow: inset 0 0 0 2px var(--rb-blue), 0 10px 20px rgba(0,0,0,0.15);
    transform: scale(1.05); 
    z-index: 10;
}

@media (max-width: 580px) {
    .results-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}


.stats-archive {
    box-sizing: border-box;
    width: 95%;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    padding: 25px clamp(10px, 5%, 25px); 
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#stats-dropdown {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--rb-blue);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    background-color: white;
    cursor: pointer;
}

.stat-btn {
    flex: 1;
    background-color: var(--rb-blue);
    color: white !important;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.stat-btn:hover {
    opacity: 0.9;
}


/*COACHES STYLES*/
.coaches-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.coach-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
}

.coach-img {
    display: block;
    margin: 10px auto; 
    width: 100%;
    height: auto; 
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.coach-card h3 {
    margin-bottom: 5px;
}

.coach-card p {
    text-align: center;
    margin-top: 10px;
}

.coach-card p a {
    color: var(--rb-blue);
    text-decoration: none;
    font-weight: bold;
}

.coach-card p a:hover {
    text-decoration: underline;
}


/*FOOTER STYLES*/
.site-footer {
    background-color: var(--rb-blue);
    color: white;
    padding: clamp(20px, 5vw, 40px) 20px;
	margin-top: auto;
	margin-bottom: 0 !important;
    font-family: 'Oswald', sans-serif;
    clear: both;
}

.footer-content {
    max-width: 1400px; 
    width: 95%;
    margin: 0 auto;
    display: flex;
	align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px; 
    margin-bottom: 20px;
    text-align: center;
    padding: 0 10px;

	display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-section h3 {
	font-size: clamp(15px, 1.5vw, 20px);
    text-transform: uppercase;
    margin-bottom: 10px;
    color: white;
}

.footer-section p, .footer-section a {
    font-family: verdana, sans-serif;
    font-size: clamp(10px, 1vw, 15px);
    color: white;
    text-decoration: none;
    line-height: 1.5;
}

.footer-social-icon {
    width: clamp(30px, 3vw, 40px);
    height: clamp(30px, 3vw, 40px);
    display: inline-block;
    margin-top: 5px;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    width: 100%;
    font-size: clamp(8px, 0.9vw, 12px);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: verdana, sans-serif;
}
