* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background-color: black;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    /* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); */
    /* background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);  *//* Black */
    /* min-height: 100vh; */
    /* display: flex;
    align-items: flex-start; */
    justify-content: center;
    background-image: url("static/bg_image.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

header {
    padding: 20px;
    width: 90%;
    margin-left: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .header-overlay {
        /* min-height: 360px; */
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;

        padding: 20px;

        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.45) 20%,
            rgba(0, 0, 0, 0.75) 45%,
            rgba(0, 0, 0, 0.92) 70%,
            rgba(0, 0, 0, 1) 100%
        );
    }
    
    header {
        padding: 0px;
        width: 100%;
        margin-left: 0%;
    }
}

main {
    padding-left: 8%;
    padding-right: 8%;
}

.center {
    display: flex;
    justify-content: center;
}


/* textboxes */
.textbox {
    margin-left: 25px;
    margin-right: 25px;
    margin-bottom: 50px;
    /* width: 75%; */
    text-align: left;
    display: flex;
    /* align-items: center; */
    justify-content: center;
}

.contact_textbox {
    margin-bottom: 50px;
    text-align: center;
}

.contact_textbox h4,
.contact_textbox ul {
    margin-left: 0px;
}

#registration_textbox {
    text-align: center;
}


/* pdf's */
.iframe_container {
    text-align: center;
}

.pdf-container {
    text-align: center;
    position: relative;
}

.pdf-container iframe {
    border: none;
    /* width: 100%; */
    /* height: 600px; */
}

/* .pdf-fallback {
    display: none;
    text-align: center;
    padding: 20px;
} */

.pdf-fallback a {
    display: inline-block;
    padding: 14px 28px;
    background: white;
    color: black;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
}

/* Show fallback on touch devices */
@media (hover: none) {
    .pdf-container iframe {
        display: none;
    }

    .pdf-fallback {
        display: block;
    }
}



/* headers */
#main_header {
    text-align: center;
    margin-top: 94px;
    color: #FFF;
    /* font-family: "Gotham"; */
    font-family: 'League Spartan', sans-serif;
    font-size: 110px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.secondary_headers {
    text-align: center;
    margin-top: 94px;
    margin-bottom: 50px;
    color: #FFF;
    /* font-family: "Gotham"; */
    font-family: 'League Spartan', sans-serif;
    font-size: 110px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.sub_header {
    text-align: left;
    margin-top: 99px;
    margin-bottom: 30px;
}

#sponsor_header {
    font-size: 50px;
    margin-top: 99px;
}



h3 {
    color: #FFF;
    text-align: center;
    font-family: "League Spartan";
    font-size: 60px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 33px;
}

h4 {
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 30px;
}


.contact {
  list-style: none;   /* removes bullet points */
  padding: 0;         /* removes default indent */
  margin-left: 50px;  /* match your h4 */
}

.contact a {
  color: white;
  line-height: 1.4;
}


/* buttons */
.buttons {
    /* padding-top: 99px; */
    /* padding: 99px, 20px, 0px, 20px; */
    display: flex;
    width:100%;
    /* height: 300px; */
    /* flex-direction: column; */
    justify-content: center;
    color: #FFF;
    text-align: center;
    font-family: "League Spartan";
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    flex-wrap: wrap;
}

.button_instance {
    background: #000000;
    border: 4px solid #fff;
    /* padding: 12px 20px; */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    /* width: 31%; */
    height: 100%;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
}

.buttons a {
    color: #fff;
    text-decoration: none;
    font-size: 30px;
    font-weight: 600;
    padding: 12px 24px;
    display: block;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

#result_button {
    border-radius: 40px;
    min-width: 350px;
}

#food_button {
    border-radius: 40px;
    width: 30%;
    min-width: 350px;
}

#invitation_button {
    border-radius: 40px;
    width: 30%;
    min-width: 200px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    #invitation_button {
        margin-top: 0px;
    }
}

#past_results_button {
    border-radius: 40px;
    width: 30%;
    min-width: 350px;
    margin-top: 20px;
}

#registration_button {
    border-radius: 40px;
    width: 30%;
    min-width: 350px;
    margin-bottom: 20px;
}

#qualification_times_button {
    border-radius: 40px;
    width: 30%;
    min-width: 350px;
}


/* images */
#swimify_placeholder {
    margin-top: 50px;
    border-radius: 20px;
    border: 4px solid #FFF;
    width: 75%;
}

#medley {
    width: 100%;
    margin-top: 20px;
    border: 4px solid #fff;
}



/* tables */
.records-table-wrapper {
    max-width: 950px;
    margin: 40px auto;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.records-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    /* width: 100%; */
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    color: #f5f5f5;
    background: rgba(50, 50, 50, 0.96);
}

.records-table thead {
    background: rgba(60, 60, 60, 0.98);
}

.records-table th,
.records-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.records-table th {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.records-table td {
    font-size: 0.92rem;
    color: #e6e6e6;
}

.records-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.records-table tbody tr:last-child td {
    border-bottom: none;
}

.event {
    width: 30%;
}
.swimmer {
    width: 30%;
}
.time {
    width: 20%;
}
.year {
    width: 20%;
}

.quali_table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    /* width: 100%; */
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    color: #f5f5f5;
    background: rgba(50, 50, 50, 0.96);
}

.quali_table thead {
    background: rgba(60, 60, 60, 0.98);
}

.quali_table th,
.quali_table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* .qualification_times th,
.qualification_times td {
    width: 50%;
} */

.quali_table th {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.quali_table td {
    font-size: 0.92rem;
    color: #e6e6e6;
}

.quali_table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.quali_table tbody tr:last-child td {
    border-bottom: none;
}

.table-hint {
    display: none;
}

@media (max-width: 470px) {
    .table-scroll {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* .records-table {
        max-width: 50px;
    } */

    .records-table {
        width: auto;
        margin: 0 auto;
        border-collapse: collapse;
    }

    /* .records-table th,
    .records-table td {
        max-width: 120px;
        padding: 10px 17px;
    } */

    .records-table td {
    font-size: 0.75rem;
    }


    .table-scroll {
        width: 100%;
        overflow-x: auto;
    }

    /* Chrome, Edge, Safari */
    .table-scroll::-webkit-scrollbar {
        height: 12px; /* makes it thicker */
    }

    .table-scroll::-webkit-scrollbar-track {
        background: #222;
        border-radius: 10px;
    }

    .table-scroll::-webkit-scrollbar-thumb {
        background: rgb(143, 11, 11);
        border-radius: 10px;
        border: #000 solid 3px; /* adds padding around thumb */
    }

    .table-scroll::-webkit-scrollbar-thumb:hover {
        background: darkred;
    }

    .records-table-wrapper {
        margin: 15px auto;
    }

    .table-hint {
        display: block;
        color: white;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .qualification_times th,
    .qualification_times td {
        width: 10%;
        /* white-space: nowrap; */
    }
}



/* dividers */
.divider {
  width: 60%;
  height: 2px;
  margin: 40px auto; /* centers it */

  background: rgba(255, 255, 255, 0.8);
}



/* Navigation Container */
nav {
    /* background: linear-gradient(135deg, #c4a88a 0%, #d4b89a 50%, #c4a88a 100%); */
    background: #000000;
    border-radius: 90px;
    border: 4px solid #fff;
    padding: 12px 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#index_nav {
    margin-top: 99px;
    /* padding: 99px, 20px, 0px, 20px; */
    display: flex;
    width:100%;
    min-height: 300px;
    /* max-height: 100%; */
    /* flex-direction: column; */
    justify-content: center;
    color: #FFF;
    text-align: center;
    font-family: "League Spartan";
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    flex-wrap: wrap;
}

.index_nav_instance {
    background: #000000;
    border-radius: 30px;
    border: 4px solid #fff;
    /* padding: 12px 20px; */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    width: 31%;
    min-width: 330px;
    height: 200px;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 20px;
}

#index_nav a {
    color: #fff;
    text-decoration: none;
    font-size: 50px;
    font-weight: 600;
    padding: 12px 24px;
    display: block;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    #index_nav {
        /* padding-top: 99px; */
        /* padding: 99px, 20px, 0px, 20px; */
        display: flex;
        width:100%;
        min-height: 250px;
        /* flex-direction: column; */
        justify-content: center;
        color: #FFF;
        text-align: center;
        font-family: "League Spartan";
        font-size: 50px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        flex-wrap: wrap;
        margin-top: 40px;
    }

    .index_nav_instance {
        background: #000000;
        border: 4px solid #fff;
        /* padding: 12px 20px; */
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
        display: flex;
        /* width: 31%; */
        height: 100%;
        flex-direction: column;
        justify-content: center;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 0px;
    }

    #index_nav a {
        font-size: 30px;
        padding: 10px 18px;
    }
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Navigation List */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

/* Navigation Items */
nav li {
    position: relative;
    align-items: center;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    display: block;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    /* white-space: nowrap; */
}

/* Hover Effect */
nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover::before {
    opacity: 1;
}

nav a:hover {
    color: #1a1410;
    transform: translateY(-1px);
}

/* Active State */
nav a.active {
    /* background: rgba(255, 255, 255, 0.4); */
    /* background: rgba(185, 44, 44, 0.8); */
    /* background: #c4a88a; */
    background: #fff;
    color: #1a1410;
    font-weight: 600;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

nav a.active::before {
    opacity: 0;
}

/* #navigation {
    min-width: none;
} */

#navigation {
    display: flex;
    justify-content: center;
}

#navigation ul {
    display: flex;
    flex-wrap: wrap;              /* allows second row */
    justify-content: center;
    align-items: center;
    /* gap: 20px 20px;               row gap, column gap */
    
    list-style: none;
    margin: 0;
    /* padding: 18px 20px; */

    max-width: 100%;
    box-sizing: border-box;
}

#navigation li {
    flex: 0 0 auto;
}

/* #navigation a {
    display: inline-block;
    text-decoration: none;
    color: white;
} */


/* header {
    display: flex;
    justify-content: center;
    padding: 20px;
} */

/* #navigation {
    width: min(95%, 1300px);
    border: 4px solid white;
    border-radius: 999px;
    background: linear-gradient(to bottom, #111, #000);
    box-sizing: border-box;
    padding: 14px 24px;
}

#nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    
    list-style: none;
    margin: 0;

    max-width: 100%;
    box-sizing: border-box;
}

#nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

#nav-menu a.active {
    background: #e9e9e9;
    color: black;
    padding: 10px 22px;
    border-radius: 999px;
}

.nav-mobile-bar {
    display: none;
}

#nav-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}


@media (max-width: 768px) {
    #navigation {
        border-radius: 40px;
        padding: 16px 20px;
    }

    .nav-mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 18px;
        width: 100%;
    }

    #navigation.menu-open #nav-menu {
        display: flex
    }
} */






/* Search Icon */
.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-left: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-button:hover::before {
    opacity: 1;
}

.search-button svg {
    width: 20px;
    height: 20px;
    stroke: #2d2520;
    stroke-width: 2.5;
    fill: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.search-button:hover svg {
    stroke: #1a1410;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 10px 16px;
        border-radius: 40px;
    }

    nav ul {
        gap: 4px;
    }

    nav a {
        font-size: 14px;
        padding: 10px 18px;
    }

    .search-button {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Demo Content */
.demo-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.demo-info strong {
    color: #d4b89a;
}


.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    border-radius: 30px;
}

.video-container video {
    position: absolute;
    width: 99.4%;
    height: 100%;
    top: 0;
    left: 0;
    border: solid;
    border-radius: 30px;
    border-color: #fff;
    border-width: 4px;
    /* pointer-events: none; */ /*prevents clicking - clean layout no controls*/
}

@media (max-width: 768px) {
    .video-container {
        width: 99%;
    }
}


.articles {
    display: flex;
    width:100%;
    height: 300px;
    /* flex-direction: column; */
    justify-content: center;
    color: #FFF;
    text-align: center;
    font-family: "League Spartan";
    font-size: 50px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    flex-wrap: wrap;
}

.article {
    background: #fff;
    border-radius: 30px;
    border: 4px solid #000;
    /* padding: 12px 20px; */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    width: 31%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    margin-right: 10px;
}

.article a {
    color: #000;
    text-decoration: none;
    font-size: 50px;
    font-weight: 600;
    padding: 12px 24px;
    display: block;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-card {
    width: 32%;
    max-width: 45%;
    height: auto;
    background-color: #fff;
    border-radius: 28px;

    padding: 15px;
    box-sizing: border-box;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 50px;
    font-weight: 600;
    color: black;
    /* line-height: 0.4; */
    font-family: "League Spartan";

    font-size: clamp(1.8rem, 3vw, 3rem);

    /* line-height: 1.1; */

    display: -webkit-box;
    -webkit-line-clamp: 2;       /* max 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    /* min-height: 80px; */
}

.article-image {
    width: 100%;
    /* height: 360px; */
    /* height: 260; */
    background-color: #d3d3d3;
    border-radius: 20px;
    border: 4px solid #000;
}

.article_a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* * {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
} */

.sponsor-section {
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
    background-image: url("your-background-image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 1400px;
    max-width: 100%;
    height: 620px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.sponsor-card {
    position: absolute;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* background: #f3f3f3; */
    background: white;
    border: 4px solid black;
    border-radius: 30px;
    overflow: hidden;
    transition:
        left 0.9s ease,
        width 0.9s ease,
        height 0.9s ease,
        transform 0.9s ease,
        opacity 0.9s ease;
    filter: 
        drop-shadow(0 0 3px black)
        drop-shadow(0 0 6px black);
}

.sponsor-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
    display: block;
}

.smartfish_image {
    filter: drop-shadow(0 0 3px black)
    drop-shadow(0 0 6px black);
}

.light-logo img {
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

.sponsor-name {
    font-size: 4rem;
    font-weight: 800;
    color: black;
    text-align: center;
    padding: 20px;
}

.position-hidden-left {
    left: -260px;
    width: 485px;
    height: 350px;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    z-index: 0;
}

.position-left {
    left: 40px;
    /* width: 500px;
    height: 390px; */
    width: 485px;
    height: 350px;
    transform: translateY(-50%) scale(1);
    opacity: 1;
    z-index: 1;
}

.position-center {
    left: 50%;
    /* width: 720px;
    height: 520px; */
    width: 625px;
    height: 450px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
}

.position-right {
    left: calc(100% - 540px);
    width: 485px;
    height: 350px;
    transform: translateY(-50%) scale(1);
    opacity: 1;
    z-index: 1;
}

.position-hidden-right {
    left: calc(100% + 60px);
    width: 485px;
    height: 350px;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    z-index: 0;
}

@media (max-width: 1200px) {
    .carousel-wrapper {
        height: 500px;
    }

    .position-left {
        left: 10px;
        width: 320px;
        height: 260px;
    }

    .position-center {
        width: 520px;
        height: 360px;
    }

    .position-right {
        left: calc(100% - 330px);
        width: 320px;
        height: 260px;
    }

    .position-hidden-left,
    .position-hidden-right {
        width: 260px;
        height: 220px;
    }

    .sponsor-name {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 250px;
    }

    .position-left {
        left: 0;
        width: 180px;
        height: 140px;
    }

    .position-center {
        width: 300px;
        height: 220px;
    }

    .position-right {
        left: calc(100% - 180px);
        width: 180px;
        height: 140px;
    }

    .position-hidden-left,
    .position-hidden-right {
        width: 150px;
        height: 120px;
    }

    .sponsor-name {
        font-size: 1.6rem;
    }
}

.carousel-wrapper {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(180, 0, 0, 0.9);
}

.carousel-btn-left {
    left: 0px;
}

.carousel-btn-right {
    right: 15px;
}


@media (max-width: 768px) {
    h3 {
        margin-bottom: 50px;
        margin-top: 50px;
        margin-left: 20px;
        font-size: 24px;
    }

    #main_header {
        font-size: 40px;
        /* font-size: 50px; */
        margin-bottom: 30px;
        margin-top: 50px;
    }

    .secondary_headers {
        font-size: 40px;
        margin-bottom: 50px;
        margin-top: 50px;
    }

    .sub_header {
        margin-bottom: 20px;
        margin-top: 20px;
        font-size: 30px;
    }

    #sponsor_header {
        /* margin-bottom: 50px; */
        margin-bottom: 0px;
        margin-top: 50px;
        font-size: 30px;
    }

    .sponsor-section {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #index_nav {
        margin-top: 0px;
    }

    #date_header {
        margin-bottom: 0px;        
        margin-bottom: 50px;
        margin-top: 0px;
        font-size: 30px;
    }

    .quali_header {
        margin-bottom: 30px;
        margin-top: 50px;
        margin-left: 0px;
        font-size: 30px;
    }

    .main_quali_header {
        font-size: 55px;
    }

    .records_header {
        margin-bottom: 30px;
        margin-top: 50px;
        margin-left: 0px;
        font-size: 30px;
    }

    main {
        padding-left: 20px;
        padding-right: 20px;
    }
}




.site-footer {
    width: 100%;
    /* margin-top: 100px; */
    font-family: 'League Spartan', sans-serif;
}

.footer-overlay {
    min-height: 360px;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    padding: 80px 80px 60px 80px;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.45) 20%,
        rgba(0, 0, 0, 0.75) 45%,
        rgba(0, 0, 0, 0.92) 70%,
        rgba(0, 0, 0, 1) 100%
    );
}

.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-links {
    min-width: 220px;
    align-items: flex-start;
}

.footer-links h2 {
    margin: 0 0 18px 0;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.footer-links a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    width: 34px;
    height: 34px;
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-main-sponsor {
    flex: 1;
    align-items: center;
    text-align: center;
}

.powered-by {
    margin: 0 0 24px 0;
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.main-sponsor-link img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-side-sponsor {
    min-width: 260px;
    align-items: center;
}

.side-sponsor-link img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .footer-overlay {
        padding: 70px 40px 50px 40px;
        gap: 30px;
    }

    .footer-links h2 {
        font-size: 2.4rem;
    }

    .footer-links a {
        font-size: 1.6rem;
    }

    .powered-by {
        font-size: 2.2rem;
    }

    .main-sponsor-link img {
        max-width: 380px;
    }

    .side-sponsor-link img {
        max-width: 180px;
    }
}

@media (max-width: 800px) {
    .footer-overlay {
        flex-direction: column;
        text-align: center;
        padding: 30px 24px 40px 24px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-main-sponsor,
    .footer-side-sponsor {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
}