/* Header Styles */
header {
    position: fixed;
    justify-content: center;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    padding: 10px 0;

    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%) !important;
    transition: background-color 0.4s ease,
                box-shadow 0.4s ease;
}

header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Main Navigation */
.page-header-top-center .main-navigation {
    display: flex;
    justify-content: center;
}

/* Language Switcher */
.page-header-top-right .lang-switcher {
    display: inline-block;
    margin: 11.5px 20px 0 0;
    background: transparent;
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.lang-switcher option {
    color: #000;
    background: #fff;
}

/* Header Search */
.header-search {
    display: inline-block;
    top: 11.5px;
}

.search-toggle-icon {
    cursor: pointer;
    color: #fff;
    font-size: 16px;
}

#search-bar-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999;
    white-space: nowrap;
}

#search-bar-wrap.active {
    display: block;
}

#search-bar-wrap form {
    display: flex;
    align-items: center;
}

#search-bar-wrap input[type="text"] {
    border: 1px solid #ccc;
    padding: 4px 8px;
    margin-right: 4px;
}

.search-close-btn {
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
    color: #333;
}

/* Header Login */
.header-login {
    display: inline-block;
}

.login-icon {
    font-size: 18px;
    cursor: default;
}

.header-login a,
.header-login a i {
    color: #fff !important;
}

/* Page Banner */
.banner-page {
    height: 600px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.carousel-inner,
.carousel-inner .item {
    height: 650px !important;
}

.home-banner .item {
    height: 650px !important;   /* adjust this value to match Figma's proportions */
}

.carousel-indicators {
    color: #777 !important;
}

.carousel-indicators.active {
    color: #FF0000 !important;
}

/* ============================================================
   QAB RDF — full-width
   ============================================================ */
.qab-section,
.race-day-fixtures {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

/* Cancel the top spacing that .row-with-vspace adds to #content on home page */
.home .page-container #content.row-with-vspace {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* ============================================================
   QUICK ACTION BUTTONS
   ============================================================ */
.qab-section {
	text-align: center;
	margin-top: 0 !important;
	margin-bottom: 0;
	background-color: #FBD735;
	padding: 15px 40px;
}

.quick-action-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.qa-button {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: bold;
	background-color: #DCBA23;
	color: #000000;
	border: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.qa-button:hover {
	color: #000000;
	text-decoration: none;
	opacity: 0.85;
}

/* Active button state — add class="qa-button active" on the matching button.
   Auto-detection logic pending confirmation. */
.qa-button.active {
	background-color: #000000;
	color: #ffffff;
}

.qa-button.active:hover {
	color: #ffffff;
}

/* ============================================================
   RACE DAY FIXTURES — section + header row
   ============================================================ */

.race-day-fixtures {
	padding: 30px 40px;
	margin-top: 30px; /* gap between QAB and RDF — adjust as needed */
}

.left-fixture {
	padding: 0;
}

/* Header row: title on the left, "View Full Fixtures" button on the right,
   both vertically aligned on the same line. */
.fixture-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.fixture-header-row h2 {
	margin: 0;
}

.fixture-header-button .button {
	background-color: #FB0103;
	color: #ffffff;
	border-radius: 20px;
	padding: 10px 22px;
	text-decoration: none;
	font-weight: bold;
	display: inline-block;
	white-space: nowrap;
}

/* ============================================================
   RACE DAY FIXTURES — scrollable cards
   ============================================================ */

/* Scroll container: exactly 5 cards visible, rest scroll horizontally.
   5 cards × 295px + 4 gaps × 16px = 1539px. Clip at that width. */
.fixture-card-scroll {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 16px;
	padding-bottom: 14px;
	-webkit-overflow-scrolling: touch;
	max-width: calc((295px * 5) + (16px * 4));
}

/* Hide Bootstrap carousel prev/next controls inside the fixture scroll */
.race-day-fixtures .carousel-control,
.race-day-fixtures .left.carousel-control,
.race-day-fixtures .right.carousel-control {
	display: none !important;
}

.fixture-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 295px;
	height: 453px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Purple header bar — single-line date, e.g. "26 Jun, 2026" */
.fixture-card-date {
	background-color: #56236D;
	color: #ffffff;
	text-align: center;
	padding: 14px 10px;
	font-size: 1.05em;
	font-weight: bold;
	flex-shrink: 0;
}

.fixture-card-races {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 14px 16px;
	overflow-y: auto;
}

.fixture-card-race {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid #CDCDCD;
	text-decoration: none;
	color: inherit;
}

.fixture-card-race:last-child {
	border-bottom: none;
}

a.fixture-card-race:hover {
	background-color: #f7f5f9;
	cursor: pointer;
}

.fixture-time {
	display: block;
	font-size: 0.85em;
	color: #525252;
	margin-bottom: 4px;
}

.fixture-club-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fixture-club {
	font-size: 0.9em;
	font-weight: bold;
	color: #000;
}

.fixture-title {
	font-size: 0.85em;
	color: #333;
	margin-left: 4px;
}

/* ============================================================
   CUSTOM SCROLLBAR COLORS
   #FB0103 = scroll indicator (the draggable thumb)
   #E9E9E9 = full bar track (the background the thumb moves along)
   ============================================================ */

/* WebKit browsers (Chrome, Edge, Safari) */
.fixture-card-scroll::-webkit-scrollbar {
	height: 8px;
}
.fixture-card-scroll::-webkit-scrollbar-track {
	background: #E9E9E9;
	border-radius: 4px;
}
.fixture-card-scroll::-webkit-scrollbar-thumb {
	background: #FB0103;
	border-radius: 4px;
}

.fixture-card-races::-webkit-scrollbar {
	width: 6px;
}
.fixture-card-races::-webkit-scrollbar-track {
	background: #E9E9E9;
	border-radius: 3px;
}
.fixture-card-races::-webkit-scrollbar-thumb {
	background: #FB0103;
	border-radius: 3px;
}

/* Firefox */
.fixture-card-scroll,
.fixture-card-races {
	scrollbar-color: #FB0103 #E9E9E9;
	scrollbar-width: thin;
}