html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.facilities-grid {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.facility-card {
    background: #ffffff;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.table-container {
    max-height: 150px; /* Limits rows to 3 (adjust height based on row size) */
    overflow-y: auto; /* Enables scrolling */
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background: #3ba2f7; /* Title row background color */
    color: white; /* Title row text color */
    z-index: 10;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background: #9acdf7; /* Striped rows */
}

.nav-link:hover {
    background-color: #3ba2f7; /* Navy blue background */
    color: white; /* White text on hover */
    transition: all 0.2s ease-in-out;
    border-radius: 5px;
}

.skills-section {
    padding: 2rem;
    background-color: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.skills-table th,
.skills-table td {
    border: 2px solid #3876c1;
    padding: 16px;
    text-align: left;
    vertical-align: top;
    background-color: #f0f0f0;
}

.skills-table th {
    background-color: #f0f0f0;
    color: #3876c1;
    font-weight: 600;
    width: 260px;
}

.skills-table tr:hover td {
    background-color: #f0f7ff;
}

.showcase-badge {
    display: inline-block;
    padding: 5px 12px 7px;
    border: 1px solid #3876c1;
    border-radius: 15px;
    color: #3876c1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.showcase-badge:hover {
    background-color: #3876c1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(56, 118, 193, 0.5);
}

.showcase-preview-wrapper {
    position: relative;
    display: inline-block;
}

.preview-image {
    display: none;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 999;
}

.showcase-preview-wrapper:hover .preview-image {
    display: block;
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gallery-float {
    background-color: #fff;
    padding: 20px;
    max-width: 900px;
    width: 90%;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.gallery-float-club-dashboard {
    background-color: #fff;
    padding: 20px;
    max-width: 1000px;
    width: 90%;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.grid-header {
    grid-column: 1 / -1;
}

.responsive-chart {
    width: 100%;
    height: 300px;
    /*height: 35vh;*/
    position: relative;
}

.gallery-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
    margin-top: 35px;
}
.gallery-item {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.gallery-hover {
    position: absolute;
    top: 7%;
    left: 0;
    width: 100%;
    height: 93%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-hover i {
    color: white;
    font-size: 2em;
}

.gallery-item:hover .gallery-hover {
    opacity: 1;
}

.gallery-description {
    font-size: 0.95rem;
    color: #3876c1;
    margin-top: 10px;
}

.gallery-index-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(56, 118, 193, 0.85); /* slightly transparent */
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 10;
    pointer-events: none; /* so it doesn't block clicks */
}

.gallery-close {
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: none;
    border: none;
    color: #3876c1;
    cursor: pointer;
}

.gallery-nav.left {
    left: -30px;
}

.gallery-nav.right {
    right: -30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.league-tab-btn {
    background-color: #3876c1;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(56, 118, 193, 0.3);
    transition: all 0.2s ease-in-out;
}

.league-tab-btn:hover {
    background-color: #2e63a6;
    box-shadow: 0 4px 8px rgba(56, 118, 193, 0.5);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    background-color: #3876c1;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .pagination-btn:hover:not(:disabled) {
        background-color: #2e63a6;
    }

    .pagination-btn:disabled {
        background-color: #a0aec0;
        cursor: not-allowed;
    }

.pagination-page-btn {
    background-color: #e0e7ff;
    color: #3876c1;
    border: 1px solid #3876c1;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .pagination-page-btn:hover {
        background-color: #3876c1;
        color: #fff;
    }

    .pagination-page-btn.active-page {
        background-color: #3876c1;
        color: #fff;
    }

.no-borders table, .no-borders td, .no-borders tr {
    border: none !important;
    border-collapse: collapse;
}