.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #495057;
    background-color: #fff;
    /* border-color: #dee2e6 #dee2e6 #fff; */
    border-bottom: 5px #dee2e6 solid !important;
}


.nav-tabs .nav-link:hover {
    border-color: #fff !important;
}

.nav-tabs .nav-link.active {
    border-color: #fff #fff #dee2e6 !important;
}

.mask {
    background-image: url(https://i-test.justhings.com.tw/panasonic/html2-1/img/banner.png);
}

/*rwd-table*/
.rwd-table {

    overflow: hidden;
}

    .rwd-table tr:nth-of-type(2n) {
        background: #eee;
    }

    .rwd-table th,
    .rwd-table td {
        margin: 0em 1em;
    }

.rwd-table {
    min-width: 100%;
}

    .rwd-table th {
        display: none;
        border-bottom: 2px solid #7a7a7a;
    }

    .rwd-table td {
        display: block;
    }

        .rwd-table td:before {
            content: attr(data-th) " : ";
            font-weight: bold;
            width: 5em;
            display: inline-block;
        }

    .rwd-table th, .rwd-table td {
        text-align: left;
    }

        .rwd-table th, .rwd-table td:before {
            /*color: #000;*/
            font-weight: bold;
            /*font-size:18px;*/
        }

@media (min-width: 768px) {
    .rwd-table td:before {
        display: none;
    }

    .rwd-table th, .rwd-table td {
        display: table-cell;
        padding: 0.25em 0.5em;
    }

        .rwd-table th:first-child,
        .rwd-table td:first-child {
            padding-left: 0;
        }

        .rwd-table th:last-child,
        .rwd-table td:last-child {
            padding-right: 0;
        }

    .rwd-table th,
    .rwd-table td {
        padding: 1em !important;
    }

}


.page {
    padding:50px;
}

@media (max-width: 768px) {
    .page {
        padding: 10px;
    }
    .ss-btn {
        width: 100% !important;
        text-align:left!important;
    }
}

/* Contact Form Styles */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
}

.contact-form .form-floating {
    margin-bottom: 1rem;
}

.contact-form .form-control {
    border: 1px solid #dee2e6;
    padding: 1rem 0.75rem;
}

.contact-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(1, 95, 201, 0.25);
}

.contact-form .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.contact-form .form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(1, 95, 201, 0.25);
}

.contact-form .btn-primary {
    background: var(--bs-primary);
    border: none;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: var(--bs-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
}

.contact-form .form-group {
    background-color: rgba(1, 95, 201, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-form .form-group label {
    color: var(--bs-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.contact-form .form-check {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    min-height: 38px;
    padding-left: 0;
}

.contact-form .form-check-input {
    margin-top: 0.25rem;
    margin-right: 10px;
    margin-left: 0;
}

.contact-form .form-check-label {
    color: var(--bs-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1;
    padding-top: 0.25rem;
}

.contact-form .row.justify-content-center {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form .col-md-3 {
    padding: 0 10px;
    display: flex;
    justify-content: flex-start;
}

.form-check-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* 更新下載卡片樣式 */
.download-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.download-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.download-icon {
  width: 60px;
  height: 60px;
  background: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* 新增：影音圖標樣式 */
.video-icon {
  width: 60px;
  height: 60px;
  background: #ff4757;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.file-type-badge {
  background: #dc3545;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.download-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-title {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
  line-height: 1.4;
}

.download-btn {
  background: #4285f4;
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #3367d6;
  color: white;
}

/* 下載專區頁籤樣式 */
.download-tab-link {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 20px;
  color: #495057;
  transition: all 0.3s ease;
}

.download-tab-link i {
  font-size: 1rem;
  color: #015FC9;
}

.download-tab-link.active {
  color: #015FC9;
  border-bottom: 3px solid #015FC9;
}

.download-tab-link.active i {
  color: #015FC9;
}

.download-tab-link:hover {
  color: #015FC9;
}

    .download-tab-link:hover i {
        color: #495057;
    }

/* 響應式設計 */
@media (max-width: 768px) {
  .download-card {
    margin-bottom: 15px;
  }
  .download-tab-link {
    font-size: 1rem;
    padding: 10px 15px;
  }
}

/* 主分類標題樣式 */
.main-category-button {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    background-color: #F2F5F9;
    color: #015FC9;
    border: none;
    box-shadow: none;
    transition: background 0.2s;
    gap: 10px;
}

.main-category-button:not(.collapsed) {
  background-color: #e6f0fa;
  color: #015FC9;
  font-weight: 700 !important;
}

.main-category-button:hover {
  background-color: #e6f0fa;
  color: #015FC9;
}

/* 保持子分類樣式不變 */
.sub-accordion .accordion-button {
  background: #f8fafc;
  color: #015FC9;
  font-size: 1rem;
  padding-left: 2rem;
  border-left: 3px solid #015FC9;
  font-weight: 600;
}

.sub-accordion .accordion-button:not(.collapsed) {
  background: #e6f0fa;
  color: #015FC9;
}

.sub-accordion .accordion-body {
  background: #fff;
  padding-left: 2.5rem;
}

/* Seminar 研討會分類樣式 */
.seminar-category-button {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  background-color: #F2F5F9;
  color: #015FC9;
  border: none;
  box-shadow: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seminar-category-button:not(.collapsed) {
  background-color: #e6f0fa;
  color: #015FC9;
  font-weight: 700 !important;
}

.seminar-category-button:hover {
  background-color: #e6f0fa;
  color: #015FC9;
}

/* 數字圓型藍底白字樣式 */
.category-number {
  background: #015FC9;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .seminar-category-button {
    font-size: 1rem !important;
  }
  
  .category-number {
    width: 25px;
    height: 25px;
    font-size: 0.9rem;
  }
}

.bg-blight {
    background-color: #eff7ff;
}

.main-color {
    background-color: #b2967d;
}
.main-color-line {
    border-left: 5px solid #b2967d;
    padding: 0 10px;
}

.aa::after {
    width:35px;
    height:35px;
    background:repeating-linear-gradient(135deg,#1a8a80 0%, #4dd4ac 100%);
    border-radius:6px;
    transform:rotate(25deg) translate(-165px, -18px);
}

#page-table {
    background-color: #F5F1ED;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

    #page-table .page-title {
        text-align: center;
        color: #8B7E74;
        font-weight: bold;
        margin-bottom: 30px;
        font-size: 2rem;
        padding-bottom: 15px;
        border-bottom: 3px solid #A8998C;
    }

    #page-table .table-container {
        background-color: #E8E4DF;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    #page-table .table {
        margin-bottom: 0;
        background-color: #F5F1ED;
    }

        #page-table .table thead th {
            background: linear-gradient(135deg, #C9B8AB 0%, #A8998C 100%);
            color: #FFFFFF;
            border: none;
            padding: 15px;
            font-size: 1.1rem;
            text-align: center;
            vertical-align: middle;
            font-weight: 600;
        }

        #page-table .table tbody tr {
            transition: all 0.3s ease;
        }

            #page-table .table tbody tr:hover {
                background-color: #EAE6E1;
                transform: scale(1.01);
                box-shadow: 0 2px 5px rgba(168, 153, 140, 0.2);
            }

        #page-table .table tbody th {
            background-color: #D9D2CA;
            font-weight: 600;
            color: #6B6157;
            padding: 15px;
            vertical-align: middle;
            border-right: 3px solid #A8998C;
        }

        #page-table .table tbody td {
            padding: 15px;
            vertical-align: middle;
            border-color: #D9D2CA;
        }

            #page-table .table tbody td:nth-child(2) {
                font-weight: 600;
                color: #8B7E74;
                font-size: 1.05rem;
            }

            #page-table .table tbody td:nth-child(3) {
                color: #6B6157;
            }

    #page-table .price-highlight {
        background: linear-gradient(135deg, #C9B8AB 0%, #8B7E74 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: bold;
    }

    #page-table .note-icon {
        color: #A8998C;
        margin-left: 5px;
        font-size: 0.9rem;
    }

    #page-table .info-badge {
        display: inline-block;
        background-color: #C5D3D8;
        color: #5B7C8A;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 0.85rem;
        margin-left: 5px;
    }

@media (max-width: 768px) {
    #page-table {
        padding: 20px;
    }

        #page-table .page-title {
            font-size: 1.5rem;
        }

        #page-table .table-container {
            padding: 15px;
        }

        #page-table .table thead th {
            font-size: 0.95rem;
            padding: 10px 8px;
        }

        #page-table .table tbody th,
        #page-table .table tbody td {
            padding: 10px 8px;
            font-size: 0.9rem;
        }

            #page-table .table tbody td:nth-child(2) {
                font-size: 1rem;
            }
}