:root {
    --pink: #ff2459;
}

/* INTRO IMAGE SECTION (below header) */
.intro-anim {
    position: fixed;
    top: 172px; /* space for header */
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* Initial small image */
#introImg {
    width: 70%;
    opacity: 1;
    transform: scale(0.5);
    animation: zoomInFull 1.7s ease-out forwards,
        slideImageUp 1.2s cubic-bezier(0.32, 0.72, 0, 1) forwards 1.7s;
}

/* MAIN CONTENT hidden at start */
#mainSection {
    opacity: 0;
    transform: translateY(150px);
}

/* Zoom smoothly from small → large */
@keyframes zoomInFull {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Image slides up and disappears */
@keyframes slideImageUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) scale(1);
        opacity: 0;
    }
}

/* NEW animation for content */
@keyframes contentSlideUp {
    0% {
        transform: translateY(150px);
        opacity: 0;
    }
    40% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

body {
    background: #000000;
}

.navbar.navbar-expand-md {
    margin-bottom: -0.5px;
}
.race_result_bg_with_image,
.race_result_bg_with_image2 {
    background: #000000;
    width: 100%;
    background-image: url(../images/my-race-result/bg_image.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    background-position-y: 10px;
    padding-top: 110px;
}
.race_result_bg_with_image2 {
    min-height: 1055px;
    background-position-y: 35px;
    background-position-x: center;
}
.filter_section {
    display: flex;
    gap: 8px;
    margin-bottom: 65px;
}
.filter_section select {
    height: 60px;
    font-weight: 500;
    --bs-form-select-bg-img: url("../images/my-race-result/down-arrow.png");
    border-radius: 10px;
}
.filter_section input {
    height: 60px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    padding-inline: 10px;
}
.filter_section input:focus-visible {
    outline: none;
}
.filter_section .row {
    gap: 8px;
    margin: 0px;
}
.filter_section .row .col {
    padding: 0px;
}
.filter_section .row .col-md-3 {
    width: 24%;
}

/* Default state (empty value selected) */
.select-grey {
    color: grey !important;
}

/* When select has real value */
.select-grey.filled {
    color: black !important;
}

.input-with-btn input::placeholder {
    color: grey;
}

.input-with-btn {
    position: relative;
}

.input-with-btn input {
    width: 100%;
    height: 60px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    padding-left: 15px;
    padding-right: 45px;
}

.input-with-btn .inside-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: 35px;
    width: 35px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-8 {
    gap: 8px;
}
.top-select select {
    background: #1c1c1c;
    color: #fff;
    border: none;
}

.leader-box {
    background: #fff;
    color: #000;
    border-radius: 10px;
    text-align: center;
    height: 70px;
    align-content: center;
    font-weight: 600;
    font-size: 20px;
}

.leader-box.theme-colored {
    background-color: var(--pink) !important;
    color: #fff !important;
}

.leader-box.yellow-colored {
    background-color: #e6ff00 !important;
}

.category-select {
    background: var(--pink);
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    height: 70px;
    font-size: 20px;
    color: white;
    border: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center; /* right-side arrow */
    background-size: 18px;
}

.form-select:focus {
    border-color: none !important;
    outline: 0;
    box-shadow: none !important;
}

.organizer-profile-div {
    color: white;
    text-align: center;
    font-size: 19px;
}

.organizer-profile-div img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    max-width: 140px;
    padding: 10px;
}

.organizer-profile-div span {
    display: block;
    font-size: 18px;
    line-height: 20px;
}

.congrats {
    text-align: center;
}

.congrats img {
    width: 100%;
    padding-inline: 25%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.winner-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-end; /* ⬅️ Makes all cards touch bottom */
    margin-top: 50px;
    margin-top: 25px;
    margin-bottom: 55px;
}

/* Base style for cards */
.winner-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
}

/* Different heights */
/* Heights only via padding – not percentage heights */
.winner-wrapper .first {
    width: 40%;
    padding-top: 125px;
}

.winner-wrapper .second {
    width: 30%;
    padding-top: 87px;
}

.winner-wrapper .third {
    width: 28%;
    padding-top: 67px;
}

/* Medal icons */
.winner-card .first-medal {
    width: 80px;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
}
.winner-card .second-medal {
    width: 70px;
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
}
.winner-card .third-medal {
    width: 60px;
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
}

/* Typography */
.winner-card .label {
    margin-top: 10px;
    font-size: 14px;
    color: #000000;
    margin-bottom: 0px;
    font-weight: 500;
}

.winner-card .value {
    color: var(--pink);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 25px;
}

.winner-card .name {
    font-size: 19px;
    font-weight: 500;
    color: #000000;
    display: block;
    margin-bottom: 35px;
    text-decoration: none;
}

.result-table-box {
    background: #fff;
    color: #000;
    border-radius: 15px;
    overflow: hidden;
}

.result-table-box span {
    margin-left: 5px;
}

.result-table-box table thead tr th {
    align-content: center;
    font-weight: 500;
    height: 60px;
    padding-inline: 30px;
    width: 100%;
}

.result-table-box table tbody tr td {
    padding-inline: 30px;
    height: 50px;
    align-content: center;
}

.result-table-box table tbody tr td a {
    text-decoration: none;
    font-weight: 500;
    color: var(--pink);
}

.result-table-box table thead {
    background: var(--pink);
    color: #fff;
}
/* Add space-left/right for row bottom border */
.result-table-box table tbody tr {
    position: relative;
    border-color: transparent;
}

.result-table-box table tbody tr::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30px; /* SAME AS your padding-left */
    right: 30px; /* create right gap */
    height: 1px;
    background: #e5e5e5;
}

/* Remove last row border */
.result-table-box table tbody tr:last-child::after,
.result-table-box-2 table tbody tr:first-child::after {
    display: none;
}

.result-table-box-2 table tbody tr:first-child td {
    padding-block: 0px;
    height: 35px;
}

.result-table-box table tbody tr td .final_time {
    background: var(--pink);
    color: white;
    padding: 5px 10px;
    border-radius: 35px;
    margin-inline: 10px;
}

.result-table-box .red {
    color: #ff0000;
}

.result-table-box .green {
    color: #1acb4e;
}

.result-table-box .centerbold {
    text-align: center;
    font-weight: 600;
}

.table-responsive-mobile {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.table-responsive-mobile table {
    min-width: 600px; /* or any width larger than mobile */
    white-space: nowrap;
}

.compare-box {
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
}

.compare-input {
    width: 60%;
    max-width: 400px;
    padding: 10px 5px;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.compare-input:focus {
    border-bottom: 1px solid var(--pink);
}

.compare-input::placeholder {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.compare-btn {
    background: var(--pink);
    color: #fff;
    padding: 10px 40px;
    border: none;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 3px 10px rgba(255, 36, 89, 0.4);
    display: block;
    justify-self: center;
}

.compare-btn:hover {
    opacity: 0.85;
}

/* TOP TABS */
.top-tabs {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.top-tabs button {
    flex: 1;
    padding: 12px;
    background: white;
    color: black;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 234px;
}

.share_div {
    position: relative;
    width: 100%;
    max-width: 234px;
}

.top-tabs button:hover {
    background: var(--pink);
}

.share-popup {
    display: none;
    position: absolute;
    top: 110%; /* directly below button */
    right: 0;
    background: #fff;
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
    gap: 14px;
    align-items: center;
    flex-wrap: nowrap;
    z-index: 999;
}

.share-popup img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Card Background */
.profile-card {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 25px;
    margin-bottom: 50px;
}

/* Left Badge Circle */
.badge-circle {
    position: relative;
    text-align: center;
}

.badge-circle .circle-img {
    width: 220px;
    height: auto;
}

.badge-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: 600;
    color: #000;
}

/* User Info Section */
.user-info {
    align-content: center;
}
.user-info h2 {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pink);
}

.info-line {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px;
    flex-wrap: wrap;
}

.info-line p {
    margin: 0;
    font-size: 18px;
}

.info-line .bold {
    font-weight: 600;
}

/* Yellow Buttons */
.btn-group {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.yellow-btn {
    background: #e6ff00;
    padding: 8px 20px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: black;
}

.same-height {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stats-card {
    position: relative;
    background: #ffffff;
    padding: 40px 30px 30px;
    border-radius: 18px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.12);
    margin-bottom: 50px;
}

/* Pink Floating Title */
.card-title-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pink);
    color: #fff;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Layout */
.stats-content {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    max-width: fit-content;
    text-align: center;
    min-width: fit-content;
}

.stat-item .label {
    margin: 0;
    font-size: 14px;
    color: black;
}

.stat-item .value {
    font-size: 22px;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 0px;
    line-height: 22px;
}

.stat-item span {
    font-size: 12px;
}

.compare-scroll {
    width: 100%;
    text-align: center;
    overflow-x: auto;
}

.compare-tables {
    display: flex;
}

.compare-tables .compare-table-div {
    width: 100%;
}

/* HOme page */
.race-home-banner-carousel img {
    border-radius: 100px;
    padding: 45px 70px 0px 70px;
}

.filter-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 20px;
}

.filter-box {
    background: #fff;
    width: 100%;
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    justify-content: space-between;
}

.filter-input-div {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.filter-input {
    background: #fff;
    border: none;
    outline: none;
    padding: 19px 20px;
    border-radius: 40px;
    flex: 1;
    font-size: 16px;
    color: #333;
    box-shadow: 0px 3px 6px #00000029;
    max-width: 400px;
    width: 100%;
}

.filter-input-div .input-section {
    max-width: 400px;
}

.filter-input::placeholder {
    color: #b8b8b8;
    font-weight: 300;
}

/* Year dropdown keeps small width */
.year-select {
    width: 130px;
    flex: 0 0 130px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center; /* right-side arrow */
    background-size: 18px;
}

/* Search Button */
.race-search-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.race-search-btn img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
}

.event-section {
    padding: 60px 20px;
    text-align: center;
}

.event-title {
    color: white;
    font-size: 40px;
    margin-bottom: 50px;
    font-weight: 500;
}

.event-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.race-event-card {
    width: 100%;
    max-width: 315px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-box {
    width: 100%;
}

.race-event-card .event-box img {
    width: 100%;
    border-radius: 22px;
    height: auto;
}

.event-btn {
    margin-top: 20px;
    background: var(--pink);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease;
    text-decoration: none;
}

.event-btn:hover {
    transform: scale(1.05);
}

/* Section Background */
.why-choose-section {
    padding: 150px 0;
    color: #fff;
}
.home-bg-wrap {
    background-image: url(../images/my-race-result/home-bg.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom 970px center;
}

/* Text Styling */
.why-text h2 {
    font-size: 48px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 80px;
}

.collage img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: calc(var(--bs-gutter-x) * 1);
}

.why-text h3 {
    font-size: 46px;
    font-weight: 400;
    margin-bottom: 0px;
    color: #e6ff00;
}

.why-text .block {
    margin-bottom: 40px;
}

.why-text p {
    font-size: 19px;
    line-height: 1.6;
    max-width: 90%;
}

/* CTA Button */
.cta-btn {
    background: var(--pink);
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    float: right;
    text-decoration: none;
}

.race-about-section {
    color: white;
}

/* LEFT */
.race-about-section .founders {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.race-about-section .founder {
    display: flex;
    align-items: center;
    gap: 35px;
}

.race-about-section .founder-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    max-width: 230px;
    flex-shrink: 0;
}

.race-about-section .founder-info span {
    font-size: 20px;
    display: block;
    font-weight: 400;
}

.race-about-section .founder-info strong {
    font-size: 26px;
    font-weight: 500;
}

/* RIGHT */
.race-about-section .about-content h2 {
    font-size: 46px;
    font-weight: 400;
    line-height: 58px;
    margin-bottom: 28px;
}

.race-about-section .about-content p {
    font-size: 19px;
    line-height: 1.6;
}

.race-services-section {
    padding: 300px 0 100px;
    text-align: center;
    color: #fff;
    background-image: url(../images/my-race-result/home-bg-2.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top -20px center;
    margin-top: -120px;
}

.race-services-section .services-title {
    font-size: 68px;
    font-weight: 400;
    margin-bottom: 70px;
}

.race-services-section .services-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.race-services-section .service-item {
    font-size: 34px;
    font-weight: 400;
}

.race-services-section .divider {
    height: 1px;
    background: #ffffffb5;
    width: 100%;
}

.race-cta-section {
    background: #000;
    padding: 70px 0 70px;
    color: #fff;
}

.race-cta-section .cta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.race-cta-section .cta-content h2 {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
}

.race-cta-section .cta-content p {
    font-size: 19px;
    font-weight: 400;
}

.race-cta-section .cta-actions {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.race-cta-section .cta-btn {
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.race-cta-section cta-btn.primary {
    background: var(--pink);
}

.race-cta-section .cta-btn.secondary {
    background: var(--pink);
}

.race-cta-section .cta-btn:hover {
    opacity: 0.85;
}

.race-cta-section .cta-divider {
    margin-top: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
}
.compare-box .compare-dropdown {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    width: 100%;
    max-width: 300px;
    margin: auto;
}

.compare-box .compare-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
}

.compare-box .compare-dropdown div:hover {
    background: #f5f5f5;
}

.filter_section .custom-dropdown,
.filter-input-div .custom-dropdown {
    position: absolute;
    top: 53px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    width: 100%;
}
.filter_section .custom-dropdown div,
.filter-input-div .custom-dropdown div {
    padding: 8px 12px;
    cursor: pointer;
}
.filter_section .custom-dropdown div:hover,
.filter-input-div .custom-dropdown div:hover {
    background: #f5f5f5;
}

#untimed_result_section img {
    width: 100%;
    height: auto;
}
#untimed_result_section h1 {
    color: white;
    margin-top: 50px;
    margin-bottom: 40px;
    text-align: center;
}

.notes-wrapper {
    max-width: 100%;
    border-radius: 10px;
    padding: 25px 30px;
    text-align: center;
    background-color: #fff;
}

.notes-wrapper h3 {
    margin: 0;
    color: var(--pink);
    font-size: 20px;
    font-weight: 600;
}

.notes-wrapper .sub-text {
    margin: 8px 0 15px;
    color: #000000;
    font-size: 14px;
}

.notes-wrapper .note-desc {
    color: #000000;
    font-size: 13px;
    line-height: 1.6;
}

.notes-wrapper .note-desc a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 500;
}

.notes-wrapper .note-desc a:hover {
    text-decoration: underline;
}

/* form page */
.form-page .heading {
    font-size: 54px;
    color: white;
    font-weight: 400;
    margin-bottom: 60px;
}

.form-page .none-border-radius {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: none;
}

.form-page .form-card-header {
    margin-bottom: -1px;
    background: white;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border: 1px solid #aeaeae;
    border-bottom: none;
}

.form-page .form-card-header div {
    display: flex;
    justify-content: space-between;
    padding-inline: 40px;
    padding-block: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    align-items: center;
}

.form-page .form-card-header div h2 {
    font-size: 25px;
    font-weight: 600;
}

.form-page .form-card-header div h3 {
    font-size: 18px;
    font-weight: 500;
}

.form-page .reach-us-div h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-page .reach-us-div .reach-icon {
    background: var(--pink);
    color: white;
    max-width: 34px;
    height: 34px;
    border-radius: 50%;
    align-content: center;
    text-align: center;
    width: 100%;
}

.form-page .reach-us-div p {
    margin-bottom: 0px;
    font-size: 15px;
    color: black;
    font-weight: 500;
}

/* RESPONSIVE FIXES */
/* For screens 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .race-home-banner-carousel img {
        border-radius: 35px;
        padding: 35px 0 0 0;
        max-width: 960px;
        margin: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .race-home-banner-carousel img {
        border-radius: 35px;
        padding: 35px 0 0 0;
        max-width: 720px;
        margin: auto;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .race-home-banner-carousel img {
        border-radius: 22px;
        padding: 35px 0 0 0;
        max-width: 540px;
        margin: auto;
    }
}

@media (max-width: 1900px) {
    .home-bg-wrap {
        background-position: bottom 1010px center;
    }
}

@media (max-width: 1800px) {
    .home-bg-wrap {
        background-position: bottom 1050px center;
    }
}

@media (max-width: 1700px) {
    .home-bg-wrap {
        background-position: bottom 1100px center;
    }
}

@media (max-width: 1600px) {
    .home-bg-wrap {
        background-position: bottom 1140px center;
    }
    .race_result_bg_with_image2 {
        min-height: 977px;
    }
}

@media (max-width: 1500px) {
    .home-bg-wrap {
        background-position: bottom 1180px center;
    }
    .form-page .heading {
        font-size: 48px;
    }
    .race_result_bg_with_image2 {
        min-height: 915px;
    }
}

@media (max-width: 1399.5px) {
    .home-bg-wrap {
        background-position: bottom 1410px center;
    }
    .form-page .heading {
        font-size: 44px;
    }
    .form-page .form-card-header div h2 {
        font-size: 24px;
    }
    .form-page .form-card-header div h3 {
        font-size: 17px;
    }
}

@media (max-width: 1300px) {
    .home-bg-wrap {
        background-position: bottom 1450px center;
    }
    .form-page .form-card-header div h2 {
        font-size: 20px;
    }
    .form-page .form-card-header div h3 {
        font-size: 15px;
    }
    .form-page .heading {
        margin-bottom: 50px;
    }
    .form-page .reach-us-div h3 {
        font-size: 20px;
    }
    .race_result_bg_with_image2 {
        min-height: 810px;
    }
}

@media (max-width: 1200px) {
    .form-page .form-card-header div {
        padding-inline: 20px;
    }
    .form-page .heading {
        font-size: 34px;
    }
    .form-page .heading {
        margin-bottom: 35px;
    }
    .race_result_bg_with_image2 {
        min-height: 750px;
    }
}
@media (max-width: 1199.5px) {
    .race-event-card {
        max-width: 255px;
    }
    .home-bg-wrap {
        background-position: bottom 1700px center;
    }
}

@media (max-width: 1100px) {
    .home-bg-wrap {
        background-position: bottom 1750px center;
    }
    .race-about-section .founder-img {
        max-width: 210px;
    }
    .race-about-section .about-content h2 {
        font-size: 44px;
        line-height: 52px;
    }
    .race-about-section .founder {
        gap: 20px;
    }
    .race-about-section .founder-info span {
        font-size: 20px;
    }
    .race-about-section .founder-info strong {
        font-size: 22px;
    }
    .race_result_bg_with_image2 {
        min-height: 720px;
    }
}

@media (max-width: 1024px) {
    .race-services-section {
        padding: 250px 0 100px;
        text-align: center;
        color: #fff;
        background-image: url(../images/my-race-result/home-bg-2.png);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: top 0px center;
        margin-top: -120px;
    }
    .race-cta-section .cta-content h2 {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .filter_section {
        flex-direction: column;
    }

    .filter_section > div:first-child select {
        width: 100% !important; /* Full width on tablet/mobile */
    }

    .filter_section .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .filter_section .d-flex > * {
        flex: unset;
        width: 100%;
    }

    .filter_section .row .col-md-3 {
        width: 100%;
    }
    .leader-box {
        font-size: 18px;
    }
    .category-select {
        font-size: 18px;
    }

    .winner-wrapper {
        gap: 20px;
    }
    .winner-card {
        width: 200px;
    }
    .organizer-profile-div {
        margin-top: 40px;
    }
    .organizer-profile-div.detail-page {
        margin-top: 0px;
        margin-bottom: 50px;
    }
    .compare-scroll .compare-tables {
        min-width: 900px;
    }
    .race-event-card {
        max-width: 285px;
    }
    .why-text h2 {
        text-align: center;
    }
    .why-text p {
        max-width: 100%;
    }
    .why-choose-section {
        padding: 100px 0;
        color: #fff;
    }
    .home-bg-wrap {
        background-position: bottom 2500px center;
    }
    .race-about-section .about-content {
        margin-top: 40px;
    }
    .race-about-section .about-content h2 {
        font-size: 40px;
    }
    .race-services-section .services-title {
        font-size: 44px;
        margin-bottom: 55px;
    }
    .race-services-section .service-item {
        font-size: 20px;
    }
    .race-services-section {
        padding: 250px 0 100px;
        background-position: top 0px center;
        margin-top: -120px;
    }
    .race-cta-section .cta-content h2 {
        font-size: 38px;
    }
    .form-page .heading {
        font-size: 28px;
    }
    .form-page .reach-us-div {
        margin-top: 50px;
    }
}
@media (max-width: 900px) {
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 0px center;
        margin-top: -120px;
    }
}
@media (max-width: 800px) {
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 0px center;
        margin-top: -120px;
    }
}

@media (max-width: 768px) {
    .winner-wrapper {
        flex-direction: column;
        align-items: center; /* center vertically on mobile */
    }
    .winner-card {
        width: 90%;
        height: auto; /* Auto height for mobile */
        padding-top: 70px;
        margin-bottom: 40px;
    }
    .winner-card .medal {
        top: -35px;
    }
    .winner-wrapper .first {
        order: 1;
        width: 90%;
        padding-top: 112px; /* Tallest */
    }

    .winner-wrapper .second {
        order: 2;
        width: 90%;
        padding-top: 90px; /* Medium */
    }

    .winner-wrapper .third {
        order: 3;
        width: 90%;
        padding-top: 75px; /* Smallest */
    }
    .top-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    .top-tabs button {
        flex: 100%;
    }
    .profile-row {
        text-align: center;
        justify-content: center;
    }
    .user-info {
        padding-block: 35px;
    }
    .card-title-badge {
        font-size: 16px;
        padding: 6px 20px;
    }

    .stat-item .value {
        font-size: 20px;
    }

    .race_result_bg_with_image,
    .race_result_bg_with_image2 {
        padding-top: 50px;
    }

    .winner-wrapper {
        margin-bottom: 30px;
    }

    .filter_section {
        margin-bottom: 55px;
    }
    .filter-input-div {
        display: grid;
    }
    .filter-input-div .input-section {
        max-width: 100%;
    }
    .filter-input {
        max-width: 100%;
    }
    .filter-box {
        flex-direction: column;
        border-radius: 25px;
        padding: 20px;
    }

    .year-select {
        width: 100%;
        flex: 1;
        background-position: right 20px center;
    }

    .filter-input {
        width: 100%;
    }

    .race-search-btn {
        width: 100%;
        border-radius: 40px;
        height: 50px;
    }
    .event-container {
        gap: 40px;
    }
    .event-container {
        justify-content: center;
    }
    .home-bg-wrap {
        background-position: bottom 2600px center;
    }
    .race-about-section .founders {
        flex-direction: row;
        gap: 20px;
    }
    .race-about-section .founder {
        flex-direction: column;
        align-items: flex-start;
    }
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 15px center;
        margin-top: -120px;
    }
    .race-services-section .services-title {
        font-size: 38px;
    }
    .race-services-section .service-item {
        font-size: 18px;
    }
    .race-cta-section .cta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .race-cta-section .cta-actions {
        margin-top: -25px;
    }
    .race-cta-section .cta-content h2 {
        font-size: 34px;
    }
    .top-tabs button,
    .share_div {
        max-width: 100%;
    }
    .form-page .heading {
        font-size: 20px;
    }
    .form-page .heading {
        margin-bottom: 30px;
    }
    .form-page .form-card-header div h2 {
        font-size: 15px;
    }
    .form-page .form-card-header div h3 {
        font-size: 10px;
    }
    .form-page .reach-us-div h3 {
        font-size: 15px;
    }
    .form-page .reach-us-div p {
        font-size: 12px;
    }
    .form-page .reach-us-div .reach-icon {
        max-width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 650px) {
    .home-bg-wrap {
        background-position: bottom 2660px center;
    }
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 35px center;
        margin-top: -120px;
    }
}

@media (max-width: 600px) {
    .compare-input {
        width: 90%;
    }
    .filter-wrapper {
        padding-top: 42px;
        padding-bottom: 10px;
    }
    .why-text h2 {
        font-size: 44px;
        font-weight: 500;
        text-align: left;
        margin-bottom: 65px;
    }
    .why-text h3 {
        font-size: 40px;
    }
    .home-bg-wrap {
        background-position: bottom 2560px center;
    }
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 50px center;
        margin-top: -120px;
    }
    .form-card {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .race-home-banner-carousel img {
        border-radius: 22px;
        padding: 20px 10px 0 10px;
        max-width: 100%;
        margin: auto;
    }
    .cta-btn {
        float: left;
    }
    .home-bg-wrap {
        background-position: bottom 2560px center;
    }
}

@media (max-width: 550px) {
    .home-bg-wrap {
        background-position: bottom 2560px center;
    }
}

@media (max-width: 540px) {
    .home-bg-wrap {
        background-position: bottom 2620px center;
    }
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 60px center;
        margin-top: -120px;
    }
}

@media (max-width: 500px) {
    .home-bg-wrap {
        background-position: bottom 2630px center;
    }
}

@media (max-width: 480px) {
    .race-event-card {
        width: 90%;
    }
    .home-bg-wrap {
        background-position: bottom 2670px center;
    }
    .race-about-section .founder-img {
        margin: auto;
    }
    .race-about-section .founder-info {
        text-align: center;
        width: 100%;
    }
    .race-about-section .about-content h2 {
        font-size: 32px;
    }
    .race-about-section .founders {
        flex-direction: column;
    }
    .race-services-section .services-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    .race-services-section .service-item {
        font-size: 16px;
    }
    .race-cta-section {
        padding: 20px 0 60px;
    }
    .race-cta-section .cta-content h2 {
        font-size: 28px;
    }
    .race-cta-section .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .race-cta-section .cta-btn {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 461px) {
    .home-bg-wrap {
        background-position: bottom 2750px center;
    }
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 80px center;
        margin-top: -120px;
    }
}
@media (max-width: 400px) {
    .home-bg-wrap {
        background-position: bottom 2840px center;
    }
    .race-services-section {
        padding: 200px 0 100px;
        background-position: top 90px center;
        margin-top: -120px;
    }
}
@media (max-width: 350px) {
    .home-bg-wrap {
        background-position: bottom 3000px center;
    }
}
