/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

.content {
    display: none;
}

#home-content {
    display: block;
}

/* Header section */
.header-section {
    display: flex;
    justify-content: center; /* Center all content horizontally */
    align-items: center;
    padding: 20px;
    background-color: rgb(22, 61, 102);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    overflow: visible;
}

.logo-container {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    position: relative;
    z-index: 1; /* Ensure the logo stays above other content */
}

.logo-container img {
    max-width: 250px; /* Size of the logo */
    height: auto;
    cursor: pointer;
    position: relative;
    top: 60%; /* Move logo down by 100% of its height */
    transform: translateY(-50%); /* Extend the logo below the header */
}

/* Flexbox settings for nav */
.nav-options {
    display: flex;
    align-items: center;
}

.left-nav {
    margin-right: auto; /* Push the left nav options to the left */
}

.right-nav {
    margin-left: auto; /* Push the right nav options to the right */
}

.left-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: auto; /* Push the list items to the right side */
}

.nav-options ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-options ul li {
    margin: 0 10px; /* Spacing between the nav items */
}

.nav-options ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-options ul li a:hover {
    color: #f3972a;
}

/* Hamburger menu icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute; /* Position it within the header */
    left: 20px; /* Adjust this value based on your desired spacing from the left edge */
    top: 50%;  /* Vertically center it */
    transform: translateY(-50%); /* Correct vertical alignment */
    z-index: 1001; /* Ensure it's above other content */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Dropdown menu for mobile */
.mobile-nav {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    background-color: rgb(22, 61, 102);
    z-index: 1000;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f3972a;
}

.mobile-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    display: none;
    position: relative;
    width: 100vw; /* Full viewport width */
    overflow: hidden;
}

.hero-section.show {
    display: block; /* Show only when needed */
}

/* Background Image */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width of the hero section */
    height: auto; /* Height adjusts according to the image's aspect ratio */
    object-fit: cover; /* Ensures the image covers the entire section */
    z-index: -1; /* Ensures the image is behind other content */
}

/* Overlay Images */
.left-overlay-image {
    position: absolute;
    top: 100px;  /* Adjust these values to control the distance from the top */
    left: 5%; /* Adjust these values to control the distance from the left */
    max-width: 40%; /* Make the image smaller */
    z-index: 1; /* Ensure the overlay image is on top of the background image */
}

.right-overlay-image {
    position: absolute;
    top: 100px;  /* Adjust these values to control the distance from the top */
    left: 60%; /* Adjust these values to control the distance from the left */
    max-width: 25%; /* Make the image smaller */
    z-index: 1; /* Ensure the overlay image is on top of the background image */
}

main {
    padding: 20px;
}

main section {
    margin-bottom: 40px;
}

main h2 {
    color: #333;
    /*border-bottom: 2px solid #f3972a;*/
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Gallery Styles */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.gallery-container img {
    height: 300px; /* Fixed height for thumbnails */
    width: auto; /* Allow width to adjust */
    object-fit: contain; /* Ensures images cover the thumbnail area without distortion */
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-container img:hover {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 60px;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    align-content: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 70vh;
}

.close {
    position: absolute;
    top: 65px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f3972a;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 3px;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(0,0,0,0.8);
}
/* Sponsors Section */
#sponsors {
    padding: 0;
}

.sponsors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 20px;
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.sponsor-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Styles */
footer {
    background-color: rgb(22, 61, 102);
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a {
    color: #f3972a;
    text-decoration: none;
}

.social-icon {
    margin: 0 5px; /* Decreased spacing between icons */
}

.first-social-icon {
    margin-left: 10px; /* Decreased spacing between icons */
}

.social-icon i {
    font-size: 20px;
    vertical-align: middle;
    transition: color 0.3s;
}

footer a:hover .social-icon i {
    color: #f3972a;
}

/* Responsive Design */
@media (max-width: 768px) and (orientation: portrait) {
    .nav-options {
        display: none;
    }

    .hamburger {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-nav {
        display: none;
    }

    .mobile-nav.show {
        display: block;
    }

    .gallery-container img {
        pointer-events: none;
    }

    /* Overlay Images */
    .left-overlay-image {
        position: relative;
        top: 0;  /* Adjust these values to control the distance from the top */
        left: 0; /* Adjust these values to control the distance from the left */
        max-width: 100%; /* Make the image smaller */
        height: auto; /* Height adjusts according to the image's aspect ratio */
        object-fit: cover; /* Ensures the image covers the entire section */
        z-index: 1; /* Ensure the overlay image is on top of the background image */
    }

    .right-overlay-image {
        position: relative;
        top: 0;  /* Adjust these values to control the distance from the top */
        left: 0; /* Adjust these values to control the distance from the left */
        max-width: 100%; /* Make the image smaller */
        height: auto; /* Height adjusts according to the image's aspect ratio */
        object-fit: cover; /* Ensures the image covers the entire section */
        z-index: 1; /* Ensure the overlay image is on top of the background image */
        border-bottom: rgb(22, 61, 102);
        border-bottom-width: 10px;
        border-bottom-style: solid;
    }
    
}

/* Table row hover highlight - highlights entire row when hovering any cell (excludes header row) */
#stats-table tbody tr {
    transition: background-color 0.15s ease;
}
#stats-table tbody tr:hover td {
    background-color: rgba(243, 151, 42, 0.08); /* subtle theme-aligned highlight */
}

/* Selected row highlight for clicked row: darker than hover */
#stats-table tbody tr.selected-row td {
    background-color: rgba(243, 151, 42, 0.25); /* darker highlight */
}

/* Sticky header for statistics table */
:root {
    /* Keep this in sync with .header-section height */
    --site-header-height: 80px;
}

/* Ensure the table uses full width and consistent layout */
#stats-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.stats-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stats-controls label {
    font-weight: bold;
    color: rgb(22, 61, 102);
    white-space: nowrap;
}

.stats-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-filter label,
.stats-select-group label {
    white-space: nowrap;
    font-weight: 600;
}

.stats-filter input,
.stats-select-group select {
    font-family: inherit;
    border-radius: 999px;
    border: 1px solid rgb(22, 61, 102);
    padding: 8px 16px;
    min-width: 200px;
    color: rgb(22, 61, 102);
    background-color: #fff;
}

.stats-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-action {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgb(22, 61, 102);
    background: linear-gradient(135deg, rgb(22, 61, 102), rgb(31, 111, 166));
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stats-action:hover,
.stats-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.column-control-button {
    border-radius: 999px;
    border: none;
    background: none;
    color: inherit;
    padding: 5px 10px;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}

.column-control-button:hover,
.column-control-button:focus-visible {
    background: none;
    color: #f3972a;
    text-decoration: none;
}

.stats-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    color: rgb(22, 61, 102);
    min-width: 200px;
    border-radius: 999px;
    border: 1px solid rgb(22, 61, 102);
    padding: 10px 18px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.stats-action.small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Make table header cells sticky so they remain visible while scrolling */
#stats-table thead th {
    position: sticky;
    top: calc(var(--site-header-height) + 20px); /* 20px accounts for main padding / margin */
    z-index: 50; /* higher than page content but below modals */
    background: rgb(22, 61, 102); /* match your header color */
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* subtle separation */
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* small adjustment for mobile, if header height changes on small screens */
@media (max-width: 768px) {
    :root { --site-header-height: 100px; } /* increase if header wraps vertically */
    #stats-table thead th {
        top: calc(var(--site-header-height) + 12px);
    }
}
