@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

* {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smotthing: antialiased;
      font-family: 'Kanit', sans-serif;
}

:root {
    --primary-color: #545454;
    --accent-color: #f8f9fa;
    --text-dark: #212529;
    --secondary-color: #1d3557;
        --bs-primary: #f97316; /* Orange 500 */
}




html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* width */
::-webkit-scrollbar {
    width: 3px;
}


.heading {
    font-family: "Anton", sans-serif;
}


/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #1A77BC;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.navbar-toggler:focus,
.navbar-toggler,
.navbar-toggler:active,
.navbar-toggler .navbar-toggler-icon:focus,
.navbar-toggler-icon {
    outline: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
ul,
li {
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
}




.color {
    /* color: #A6412C; */
    color: #F36C0B !important;
}

.color-text {
    color: #818181;
}

.border-color {
    border-color: #DEDEDE;
}


header nav {
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.06);
    background: #fbfbfb;
    transition: all 0.5s ease;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background-color: transparent;
}



nav.fixed-top .logo {
    width: 60px;
}

.logo {
    width: 90px;
}

.carousel-control-next,
.carousel-control-prev {
    width: 5%;
}

/* Fixed Navbar Style */
.navbar.fixed-top {
    background-color: rgb(255, 255, 255);
    transform: translateY(-20px);
    /* Initial state for animation */
    animation: slideDown 0.3s ease-out forwards;
    /* Smooth slide effect */
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
    }

    to {
        transform: translateY(0);
    }
}



.btn-register {
    /* background-color: #A6412C; */
    background-color: #1A77BC;
    color: white;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    padding: 10px 20px;
}

.btn-register:hover {
    transform: scale(0.97);
    background-color: #20C7F4;
    color: rgb(0, 0, 0);
}

/* Banner Animation */
.carousel-item img {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Event Overview Section */
.event-overview img {
    animation: slideIn 1s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}



section.register .bg {
    background: url(../Images/register.webp) no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 150px 40px;
    /* border-radius: 50px; */
}

section.register .card {
    box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.25);
    background: rgba(166, 65, 44, 0.39);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 150px 0 0;
    padding: 30px;

}


section.race {
    background-color: #181B50;
}


section.race .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Card Hover Effect */
section.race .card-hover:hover {
    transform: translateY(-3px);
    /* Lift the card */
}

/* Card Image Animation */
section.race .card-hover img {
    transition: transform 0.3s ease;
}

section.race .card-hover:hover img {
    transform: scale(1.02);
    /* Slight zoom-in effect */
}

/* Button Hover Effect */
section.race .btn-register {
    /* background-color: #A6412C; */
    background-color: #181B50;
    color: #fff;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

section.race .btn-register:hover {
    transform: scale(1.1);
    background-color: #48BC5B;
}


footer {
    background: #030528 !important;
}


footer a {
    color: #fff !important;
}

footer a:hover {
    text-decoration: underline !important;
}

section.otherbanner {
    background-size: cover;
    background-repeat: no-repeat;
    height: 30vh;
}

ul.list li {
    list-style: disc !important;
    margin-left: 20px;
    line-height: 30px;
}


section.hero-banner .card-img-overlay {
    top: auto;
    bottom: 10%;
}

section.hero-banner .card-img-overlay h3 {
    font-size: 50px;
    width: 400px;
}



.main-header {
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
}

.main-header h1 {
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-header .divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* Card Styling */
.race-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    background: white;
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header-custom {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.card-header-custom h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.card-header-custom span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
}

.info-item i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
}

/* Time Block */
.time-container {
    background-color: #eef2f7;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.time-box h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 2px;
}

.time-box p {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Registration Section */
.reg-section {
    /* background: #f9f9f9; */
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ededed;
}

/* Conditions Section */
.rules-section {
    /* background: #f9f9f9; */
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #ededed;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
}

ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li {
    position: relative;
    margin-bottom: 10px;
    color: #555;
}

/* ul.custom-list li::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            color: #dc3545;
            position: absolute;
            left: 0;
            top: 2px;
        } */




.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-weight: 800;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Complex Table Styling */
.table-responsive {
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 8px 30px rgba(0,0,0,0.08); */
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-table {
    margin-bottom: 0;
    white-space: nowrap;
    /* Prevent wrapping for numbers */
    font-size: 0.9rem;
}

/* Headers */
.custom-table thead th {
    text-align: center;
    vertical-align: middle;
    border: 1px solid #dee2e6;
    padding: 12px 10px;
}

.header-main {
    background-color: #2d3436;
    color: white;
}

.header-haldia {
    background-color: #0d6efd;
    color: white;
}

.header-open {
    background-color: #198754;
    color: white;
}

.header-sub {
    background-color: #f1f3f5;
    color: #495057;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Body */
.custom-table tbody td {
    vertical-align: middle;
    text-align: center;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.td-distance {
    background-color: #212529;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.td-category {
    font-weight: 600;
    text-align: left !important;
    padding-left: 15px !important;
    background-color: #f8f9fa;
}

.cat-overall {
    color: #0d6efd;
    font-weight: 800;
}

.cat-age {
    color: #555;
}

/* Highlight Totals */
.td-total {
    background-color: #eef2f7;
    font-weight: 700;
    color: #2d3436;
}

.row-grand-total {
    background-color: #2d3436;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}

.row-grand-total td {
    background-color: #2d3436;
    /* Override default bg */
    color: white;
    border-color: #444;
}


/* Results Section Styling */
.results-section {
    background: #f0f6ff;
    /*border-bottom: 4px solid var(--primary-color);*/
    padding: 2rem 0;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.05);*/
}

.event-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.results-header {
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.results-header span {
    color: var(--primary-color);
}

.action-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.btn-custom {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #c1121f;
    color: white;
}

.query-footer {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.team-signature {
    font-weight: 600;
    color: var(--secondary-color);
}

.badge_1 {
    background: #ededed;
    width: max-content;
    padding: 9px;
    border-radius: 10px;
}


.grid {
    display: grid;
    gap: 10px;
    grid-template-columns: max-content max-content;
}




section.gallery .gallery_box {
    position: relative;
    overflow: hidden;
}

/*section.gallery .gallery_box img{ */
/*border-radius: 20px;*/

/*}*/



section.gallery .gallery_box .overlay {
    position: absolute;
    width: 100%;
    height: 0;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0000004f;
    bottom: 0;

    transition: all 0.5s ease;
    cursor: pointer;
}

section.gallery .gallery_box:hover .overlay {

    width: 100%;
    height: 100%;
    opacity: 1;

}



.race-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* border-radius: 2rem; */
    padding: 20px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.race-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--bs-primary);
    transform: translateY(-10px);
}

.race-card .distance-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    /* border-radius: 50px; */
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}


    .hero {

            position: relative;
            display: flex;
            align-items: center;
            padding: 200px 0;
            background: url('../Images/banner_hero.webp');
            background-position: center;
            background-size: cover;
        }

        .hero h1 {
            font-size: 50px;
            line-height: 0.95;
            text-transform: uppercase;
            font-style: italic;
            font-weight: 900;
            color: #fff;
        }

        .badge-reg {
            background: rgba(249, 115, 22, 0.1);
            border: 1px solid rgba(249, 115, 22, 0.3);
            color: var(--bs-primary);
            padding: 0.5rem 1.2rem;
            border-radius: 50px;
            font-size: 0.8rem;
            letter-spacing: 1px;
            display: inline-flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .btn-primary-custom {
            background: var(--accent-gradient);
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 12px;
            font-weight: 900;
            text-transform: uppercase;
            color: white;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
        }

        .btn-primary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
            color: white;
        }

@media (max-width: 768px) {
    .results-header {
        font-size: 1.5rem;
    }
}