.race-results {
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 700; /* Bolder for emphasis */
    color: #D52B1E; /* Red to match your section heading */
    text-transform: uppercase;
    align-items: center;
    gap: 8px; /* Space between the text and icon */
    background: rgba(213, 43, 30, 0.1); /* Soft red background */
    padding: 6px 16px;
    border-radius: 6px;
}
/* === Gradient Headers by Series === */
.bg-gradient-cup {
    /*background: linear-gradient(to right, #C0271B, #008BA8);*/
    background: linear-gradient(90deg, #000000 0%, #ffd659 25%, #e4002b 50%, #007ac2 75%);
}

.bg-gradient-xfinity {
    /*background: linear-gradient(to right, #333333, #663399);*/
    background: linear-gradient(90deg, #000000 10%, #6138F5 90%);
}

.bg-gradient-truck {
    /*background: linear-gradient(to right, #D52B1E, #E9621A);*/
    background: linear-gradient(90deg, #000000 10%, #DE1E26 90%);
}

.race-header-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* === Timer Label === */
.race-timer {
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #1A1A1A;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.race-card-header {
    font-weight: 600;
}

.race-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    /*overflow: hidden;*/
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* --- Race Weekend Links --- */
.race-links li {
    font-size: 0.9rem;
    font-weight: 500;
}

.race-links i {
    color: #E5B000;
    font-size: 1rem;
}

.race-link {
    color: #161616;
    text-decoration: none;
    transition: color 0.2s ease;
}

.race-link:hover {
    color: #C0271B;
    text-decoration: underline;
}

.race-link.inactive {
    opacity: 0.5;
    pointer-events: none;
}

.race-link.active {
    text-decoration: underline;
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 700;
    font-size: .85rem !important;
    color: #333;
}

.like-active-link{
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 700;
    font-size: .85rem !important;
    color: #333;
}

.race-image-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.previous-race-title {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #E5B000;
    display: inline-block;
    padding-bottom: 0.25rem;
}

.previous-race-title.cup {
    border-bottom: 2px solid #000000;
}

.previous-race-title.xfinity {
    border-bottom: 2px solid #6138F5;
}

.previous-race-title.truck {
    border-bottom: 2px solid #DE1E26;
}

.race-photo-credit {
    font-size: 0.75rem;
    color: #666;
}

.race-card-image-wrapper {
    overflow: hidden;
    border-radius: 8px 8px 0 0; /* Rounded top corners if needed */
}

.race-card-image {
    transition: transform 0.5s ease;
}

.race-card:hover .race-card-image {
    transform: scale(1.05);
}

.btn-results {
    background-color: #E5B000; /* site yellow */
    color: #161616;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.btn-results:hover {
    background-color: #CE9E00;
    color: #000;
    text-decoration: none;
}

.race-status-pill {
    color: #858585;
    font-size: 0.90rem;
    font-weight: 400;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.responsive-race-central-image {
    max-width: 1157px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

ul.race-links i.active-link {
    font-size: 1.1rem;
    color: #a0271b;
}

ul.race-links i.active-dk-link {
    font-size: 1.1rem;
    color: #F46C22;
}

ul.race-links i.active-fd-link {
    font-size: 1.1rem;
    color: #1493ff;
}

@media (max-width: 576px) {
    .race-timer {
        font-size: 1rem;
    }

    .race-card-body {
        text-align: center;
    }
}