body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.logo img {
    height: 100px;
}

.logo a img {
    display: block;
}

.title h1 {
    margin: 0;
    font-size: 40px;
}

.title h1 a {
    text-decoration: none;
    color: inherit;
}

.title h1 a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 30px;
    text-align: center;
}

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

nav ul li {
    margin-left: 30px;
}

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

nav ul li a:hover {
    color: #007bff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: center;
    background-color: #f9f9f9;
}

thead {
    background-color: #333;
    color: white;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
}

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

tbody tr:hover {
    background-color: #e6e6e6;
}

main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.divisions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.division {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.division h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.division ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.division li {
    margin: 5px 0;
}

.division a {
    text-decoration: none;
    color: #007bff;
}

.division a:hover {
    text-decoration: underline;
}

#team-info {
    text-align: center;
    margin: 20px 0;
}

#team-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#team-info h3 {
    font-size: 1.8em;
    color: #333;
    margin-top: 10px;
}

#current-season table, #previous-seasons table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

#current-season th, #previous-seasons th,
#current-season td, #previous-seasons td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

#current-season th, #previous-seasons th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#current-season td:first-child, #previous-seasons td:first-child {
    font-weight: bold;
    color: #555;
}

#team-jerseys {
    margin: 40px 0;
    text-align: center;
}

.jersey-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.jersey {
    max-width: 150px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.jersey:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.jersey-label {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

#news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

.news-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.news-box:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
    transform: scale(1.05);
}

.news-box p {
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 90%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.week-label {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.games-table th, .games-table td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 10px;
}

.games-table th {
    background-color: #eaeaea;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #222;
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-button:hover {
    background: #444;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.carousel-container {
    position: relative;
    width: 90%;
    margin: 40px auto;
    overflow: visible; /* allow buttons to show outside the box */
}

.carousel-button {
    z-index: 10;
}

.games-table {
    margin-left: auto;
    margin-right: auto;
}

.carousel-slide {
    display: flex;
    flex-direction: column;
    align-items: center; /* center everything inside each slide */
    justify-content: center;
}

#prev {
    left: -30px;
}

#next {
    right: -30px;
}
