@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: "Poppins", serif;
}

:root {
    --primary-color: #1A77BC;
    --accent-color: #f8f9fa;
    --text-dark: #212529;
}

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: #1A77BC !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: #fff;
    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: 120px;
}

.logo {
    width: 140px;
}

.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: 100px 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: #181B50 !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;
        }
