.navbar {
    background-color: #004080;
}

.navbarImg {
    height: auto;
    width: 60px;
}

.nav-link:after {
    display: none;
}

.nav-item {
    width: 140px;
    text-align: center;
    margin: 5px;
    font-size: 20px;
}

.nav-item:hover {
    background-color: #0055aa;
    border-radius: 10px;
}

.dropdown-menu {
    background-color: #004080;
    text-align: center;
    min-width: 140px;
}

.dropdown-menu :hover {
    background-color: #0055aa;
    color: white;
}

.dropdown-item {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 18px;
    color: white;
}


@media (min-width: 992px) {
    .dropdown:hover ul {
        display: block;
    }
    .dropdown-menu {
        min-width: 140px; 
    }
}

@media (max-width: 992px) {
    .nav-item {
        width: auto;
    }
}


main {
    padding-top: 10px;
}

.players-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.player-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.player-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}



footer {
    text-align: center;
    padding: 10px;
    background-color: #002147;
    color: white;
    margin-top: 20px;
}

.news-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.news-container h1 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    margin-bottom: 20px;
}

.news-content {
    width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    background: #004080;
    color: white;
    font-size: 32px;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button:hover {
    background: #002147;
}


.news-wrapper {
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; 
    position: relative;
}

.news-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-item {
    flex: 0 0 100%;
    height: 100%;
    background: #9c9c9c;
    text-align: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.news-item img{
    width: 100%;
    height: auto;
    object-fit: contain; 
    max-height: 100%; /
}

.news-item.with-image {
    padding: 0;
    background: none; 
}

.news-item:not(.with-image) {
    background: #9c9c9c;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal; 
}

@media (max-width: 768px) {
    /* 手機隱藏按鈕 */
    #prevBtn, #nextBtn {
        display: none;
    }
    /* 手機圖片填滿整個news-content */
    .news-content {
        flex-direction: column;
        gap: 0;
    }

    .news-wrapper {
        width: 100%;
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 16 / 9; 
    }

    .news-slider {
        height: 100%;
    }

    .news-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/*----------------calendar-------------------*/
#calendar {
    display: flex;
    flex-direction: column; 
    align-items: center;     /
  }

.calendar {
    border: 0;
    width: 90%;
    height: 800px;
  }

#calendar h1 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    margin-bottom: 20px;
}

#players h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 20px;
}

.player-card {
  background-color: #f0f0f0; 
  border: 2px solid #ccc;   
  padding: 10px;
  margin: 10px;
  border-radius: 8px;
  width: 220px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.player-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); 
  transform: translateY(-8px); 
}

.player-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

#players h1 {
    font-size: 52px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    margin-bottom: 20px;
}

#coachs h1 {
    font-size: 52px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    margin-bottom: 20px;
}
