.table-container {
    width: 100%;
    /*overflow-x: auto;*/
    margin: 20px 0;
}

.table-responsive {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.table-responsive th {
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: bold;
}

.table-responsive td {
    padding: 8px;
    border: 1px solid #ddd;
}

.table-responsive .text-end {
    text-align: right;
}

.table-responsive .text-center {
    text-align: center;
}

.table-responsive a {
    color: #0066cc;
    text-decoration: none;
}

.table-responsive a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .table-responsive {
        display: block;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody, 
    .table-responsive tr {
        display: block;
        width: 100%;
    }
    
    .table-responsive td {
        display: flex;
        padding: 8px 10px;
        border: 0;
        border-bottom: 1px solid #ddd;
    }
    
    .table-responsive td:before {
        content: attr(data-label);
        font-weight: bold;
        width: 120px;
        min-width: 120px;
    }
    
    .table-responsive tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
}

.tabs-nav {
  display: flex;
  list-style: none;
  border-bottom: 2px solid #ddd;
  flex-wrap: wrap;
}

.tabs-nav li {
  margin-right: 5px;
}

.tabs-nav a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  background-color: #f1f1f1;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
}

.tabs-nav a.active {
  background-color: #d7a621;
  color: white;
}

.tabs-nav a:hover:not(.active) {
  background-color: #ddd;
}

.tab-content {
  display: none;
  padding: 20px;
  /*border: 1px solid #ddd;*/
  border-top: none;
}

.tab-content.active {
  display: block;
}

.award_text {
    margin: 0px 0 10px 0;
}

tr td ul {
    padding-inline-start: 0px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tabs-nav {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tabs-nav li {
    margin-right: 0;
    margin-bottom: 5px;
    width: 100%;
  }
  
  .tabs-nav a {
    border-radius: 5px;
    text-align: center;
  }
}

@media (min-width: 768px) {
    .th1 { 
      width: 60px;
    }
    .th3 { 
      width: 125px;
    }
    .th4 {
      width: 180px;
    }
    .th5 {
      width: 120px;
    }
}
@media (min-width: 1024px) {
    .th1 { 
      width: 60px;
    }
    .th3 { 
      width: 125px;
    }
    .th4 {
      width: 235px;
    }
    .th5 {
      width: 120px;
    }
}

/* -- 以下為靜態頁專用 -- */
.navbar.sub-menu {
  background-color: #f5b60e;
}
.navbar.sub-menu .nav-link {
  padding: 10px 25px;
  color: #ffffff;
  font-weight: bold;
}

.main-contents {
    flex-grow: 1;
    background: #fff;
}

#awardModal .modal-dialog {
    width: 1280px;
}
#awardModal .modal-body img{
  width: 100%;
}

.modal-content {
    max-width: none;
}

@media screen and (max-width: 1024px) {
  #awardModal .modal-dialog {
    width: 96%;
  }
}

.modal-header {
    background: linear-gradient(to right, #d7a621, #f5b60e);
}
.modal-body {
    padding: 0px 0px;
}

@media (max-width: 1180px) {
    .sub-menu button{ 
        display: none;
    }
    .sub-menu .collapse { 
        display: flex;
    }
    .sub-menu .navbar-nav { 
        display: contents;
    }
}

@media (max-width: 430px) {
    .navbar.sub-menu .nav-link {
        padding: 10px 10px;
    }
}

@media (max-width: 390px) {
    .navbar.sub-menu .nav-link {
        padding: 10px 5px;
    }
}