/* Original styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--font-color);
}

body {
    background-color: var(--light);
}

:root {
    --navbar-height: 42px;
    --dark: rgb(29, 22, 22);
    --accent: #8E1616;
    --light: #F7F7F7;
    --font-color: #333;
    --gray: #AAAAAA;
}

.navbar-top {
    display: flex;
    width: 100%;
    height: var(--navbar-height);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    position: fixed;
    top: 0;
    background-color: rgba(29, 22, 22, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-top div {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    height: var(--navbar-height);
}

.navbar-top img {
    height: calc(var(--navbar-height) - 10px);
    padding: 5px;
}

.navbar-top a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 5px;
    color: var(--light);
    font-size: 70%;
    transition: color 0.3s ease;
}

.navbar-top a:hover {
    cursor: pointer;
    color: var(--gray);
}

#banner {
    display: block;
    position: relative;
    top: 0;
    width: 100%;
    height: 80vh;
    object-fit: cover;
}

main {
    margin-top: calc(var(--navbar-height));
}

main h1 {
    padding: var(--navbar-height);
    text-align: center;
}

ul, ol {
    list-style-position: outside;
    overflow: hidden; /* hides the overflow */
    padding-left: 10px; /* adjust as needed */
}
  

article {
    width: 80%;
    max-width: 1000px;
    margin: 21px auto;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

article h6 {
    margin: 0 0 20px 0;
}

article p {
    text-align: justify;
    width: 80%;
    margin: 0 auto;
}

article li {
    text-align: justify;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.pagination-button {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.pagination-button.active {
    background-color: var(--dark);
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: default;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background-color: #f4f4f4;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

thead th {
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
}

tbody tr {
    border-bottom: 1px solid #ddd;
}

tbody td {
    padding: 15px;
}

tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.cards-container {
    margin: 0 auto;
    width: 80%;
    max-width: 1000px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.cards-container a {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    text-align: center;
    min-width: 28%;
    width: fit-content;
    transition: box-shadow 0.3s ease;
}

.cards-container a:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.cards-container img {
    height: 58px;
    padding: 20px;
}

.cards-container h2 {
    padding-bottom: 20px;
}

#contact-cards {
    height: 100%;
}

.footer-sponsor {
    margin-top: 42px;
    position: sticky;
    bottom: 0;
    background-color: var(--dark);
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 20px;
}

.footer-sponsor div {
    max-width: 1000px;
    display: flex;
    height: 28px;
    margin-top: 20px;
}

.footer-sponsor img {
    height: 100%;
    margin-right: 10px;
}

.footer-sponsor p {
    font-size: 0.75em;
    color: var(--light);
    display: flex;
    align-items: center;
}

.footer-sponsor a {
    text-decoration: none;
    color: var(--gray);
}

form {
    width: 80%;
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--font-color);
}

form input[type="text"],
form input[type="date"],
form input[type="number"],
form input[type="tel"],
form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    box-sizing: border-box;
    color: var(--font-color);
    background-color: #f7f7f7;
}

fieldset {
    border: none;
    margin-bottom: 20px;
}

fieldset legend {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--font-color);
}

.form-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-inline label {
    margin-bottom: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.form-inline input[type="radio"],
.form-inline input[type="checkbox"] {
    margin-right: 10px;
}

button {
    width: 100%;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: var(--accent);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #731212;
}

#guardian_section {
    display: none;
}

#guardian_section.active,
#email_phone_section.active {
    display: block;
}

form hr {
    margin: 20px 0 10px 0;
    border: 1px solid var(--gray);
}

/* Mobile styles */
@media (max-width: 768px) {


    .navbar-top img {
        height: 40px;
    }

    .navbar-top a {
        font-size: 80%;
        padding: 10px 0;
    }

    #banner {
        height: 50vh;
    }

    main h1 {
        padding: 20px;
    }

    article {
        width: 90%;
        padding: 20px;
        margin: 21px auto;
    }

    article p,
    article ul, 
    article ol {
        width: 99%;
        margin: 0 auto;
    }

    table {
        width: 90%;
        margin: 0 auto;
        overflow: hidden;
    }

    .cards-container {
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cards-container a {
        width: 80%;
        margin: 0;
    }
    

    form {
        width: 90%;
        padding: 20px;
    }

    .form-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    button {
        width: 100%;
    }

}