/* Race Details Container */
.hubx-race-details-container {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-bottom: 60px;
}

/* Hero Section */
.hubx-race-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    overflow: hidden;
}

.hubx-race-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hubx-race-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hubx-race-hero-slide.active {
    opacity: 1;
}

.hubx-race-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hubx-race-hero-mountain-mask {
    position: absolute;
    bottom: -1px; /* Prevent 1px gap */
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hubx-race-hero-mountain-mask {
        height: 200px;
    }
}

@media (min-width: 1440px) {
    .hubx-race-hero-mountain-mask {
        height: 250px;
    }
}

.hubx-race-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 120px;
    color: #fff;
    display: flex !important;
    flex-direction: column !important;
}

@media (min-width: 1024px) {
    .hubx-race-hero-content {
        padding-bottom: 160px;
    }
}

@media (min-width: 1440px) {
    .hubx-race-hero-content {
        padding-bottom: 200px;
    }
}

.hubx-race-hero-content .hubx-race-title {
    order: 1;
}

.hubx-race-hero-content .hubx-race-meta {
    order: 2;
}

.hubx-race-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hubx-race-hero-content .hubx-race-meta .hubx-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e64522 !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
}

.hubx-meta-item svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.hubx-meta-item.orange svg {
    width: 18px;
    height: 18px;
}

.hubx-race-hero-content .hubx-race-title {
    font-size: 60px;
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    color: #fff !important;
}

/* Body Layout */
.hubx-race-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hubx-race-main-col {
    flex: 1;
    min-width: 300px;
}

.hubx-race-sidebar-col {
    width: 350px;
    flex-shrink: 0;
}

/* Section Titles */
.hubx-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    position: relative;
    text-transform: uppercase;
}

.hubx-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #e64522;
}

/* Text Content */
.hubx-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.hubx-text-content p {
    margin-bottom: 20px;
}

/* Route Section */
.hubx-route-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.hubx-route-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.hubx-route-desc {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
    font-style: italic;
}

/* Sidebar Card */
.hubx-race-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px; /* Sticky sidebar */
    border: 1px solid #f0f0f0;
}

.hubx-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
}

.hubx-stats-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.hubx-stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.hubx-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hubx-stat-icon {
    width: 40px;
    height: 40px;
    background: #fff5f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e64522;
}

.hubx-stat-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hubx-stat-data {
    display: flex;
    flex-direction: column;
}

.hubx-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.hubx-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

/* Price Box */
.hubx-price-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px dashed #ddd;
}

.hubx-price-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hubx-price-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #e64522;
}

/* Register Button */
.hubx-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% + 36px);
    margin: 0 -38px;
    padding: 22px;
    background: linear-gradient(135deg, #e64522 0%, #ff6b4a 100%);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 69, 34, 0.3);
}

.hubx-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 69, 34, 0.4);
    background: linear-gradient(135deg, #ff6b4a 0%, #e64522 100%);
    color: #fff;
}

.hubx-register-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.hubx-register-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991px) {
    .hubx-race-body {
        flex-direction: column;
    }
    
    .hubx-race-sidebar-col {
        width: 100%;
    }
    
    .hubx-race-info-card {
        position: static;
    }
    
    .hubx-race-hero {
        height: 50vh;
    }
    
    .hubx-race-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hubx-race-hero {
        height: 400px;
    }
    
    .hubx-race-title {
        font-size: 28px;
    }
    
    .hubx-race-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
