#title-spacer {
    background-image: url("/storage/img/LH-home-bg-modify.jpg");
    height: 15em;
    padding-top: 5.625em;
}
.tabstyle1 {
    display: inline-block;width: 50%;float: left;
}
.tabstyle2 {
    display: inline-block;width: 33.3%;float: left;
}

@media screen and (max-width: 85.375em) {
    #title-spacer {
        background-image: url("/storage/img/header_title_1366.jpg") !important;
    }
}

@media screen and (max-width: 48em) {
    #title-spacer {
        background-image: url("/storage/img/header_title_768.jpg") !important;
    }
}

#content-spacer li a {
    vertical-align: middle;
}
@media screen and (max-width: 30em) {
    #content-spacer li {
        border-right: 0px;
    }
    .tabstyle1 {
        display: block;width: 100%;
        clear:both;
        border-right: 0px;
    }
    .tabstyle2 {
        display: block;width: 100%;
        clear:both;
        border-right: 0px;
    }
    #title-spacer {
        background-image: url("/storage/img/header_title_480.jpg") !important;
    }
    .single-feature p{
        margin-left: 20px;
    }
    #content-spacer .evetmaxhight {
        max-height: 62em;
    }
}
/*新版雷達圖*/
#mapMap-0 {
    background-color: #f5e9e9;
    padding-top: 1.3em;
    padding-bottom: 1em;
}
#rader-top-left {
    text-align: right;
    margin-right: 10%;
    padding-top: 4%;
    font-size: 1.7rem;
    font-weight: bold;
}
#rader-top-right {
    letter-spacing: 0.02em;
    line-height: 130%;
}
.r-border {
    border-right: 2px solid #535252;
}
.hr-mobile {
    display: none;
}
#rader-role {
    /*background-color: #ccc;*/
    padding: 0.5em 2em;
    border: 3px dashed #9a815c;
    border-radius: 1.5em;
}
#rader-role-title {
    display: table-cell;
    padding: 0.5em;
    background-color: #f8f8f8;
    position: absolute;
    top: -2.1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #9a815c;
}
#rader-role-title span {
    font-size: 1.2rem;
}
#rader-role-step {
    margin-top: 2rem;
    list-style: none;
    padding-left: 0px;
}
#rader-role-step li {
    float: left;
    width: 90px;
    height: 90px;
    background-color: #ccc;
    margin-right: 2.8rem;
    border-radius: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFF;
    position: relative;
}
#rader-role-step li:nth-child(1) {
    background-color: #28a745;
}
#rader-role-step li:nth-child(2) {
    color: #000;
    background-color: #ddae22;
}
#rader-role-step li:nth-child(3) {
    margin-right: 0rem;
    font-size: 1rem;
    background-color: #db4949;
    display: block;
    text-align: center;
}
#rader-role-step li:nth-child(1):after, #rader-role-step li:nth-child(2):after {
    font-family: FontAwesome, sans-serif;
    content: "\f0da";
    position: absolute;
    right: -1.8rem;
    color: #000;
    font-size: 2rem;
    font-weight: bold;
}
#rader-role-step li:nth-child(3) span {
    margin-top: 20%;
    display: block;
}
#rader-role-step li:nth-child(3) hr {
    background-color: #FFF;
    width: 80%;
    margin: 0.2rem auto;
}
#rader-role-p {
    clear: both;
    margin-top: 9rem;
    font-size: 1.2rem;
}
#rader-icon {
    margin-top: 2.5rem;
}
#rader-score-standard-table thead tr th{
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: #6A5ACD;
    letter-spacing: 0.1em;
    font-size: 1.1em;
}
#rader-score-standard-table tbody tr:nth-child(5){
    color: #6A5ACD;
}
.rader-table thead tr th{
    text-align: center;
    font-weight: bold;
    background-color: #09f;
    letter-spacing: 0.1em;
    font-size: 1.1em;
}
.rader-table tbody tr td:nth-child(4), .rader-table tbody tr td:nth-child(5){
    text-align: center;
}
.rader-table tbody tr td:nth-child(2), .rader-table tbody tr td:nth-child(3), .rader-table tbody tr:first-child td:nth-child(4){
    text-align: right;
}
.rader-table tbody tr:first-child td:nth-child(2){
    text-align: left;
}
.competency_title {
    text-align: center;
    vertical-align: middle !important;
    font-weight: bold;
    font-size: 1.1em;
}
#rader-score-standard-table, .rader-table{
    margin: auto;
    width: 80%;
    min-width: 360px;
    margin-top: 2em;
}
#chart-container {
    display: block;
    width: 600px;
    margin: auto;
}
.custom_margin_bottom_style{
    margin-bottom: 2em;
}
@media screen and (max-width: 30em) {
    #rader-top-left {
        text-align: center;
        margin-right: 0%;
        padding-top: 0%;
        font-size: 1.5rem;
        font-weight: bold;
    }
    #rader-top-right {
        text-align: center;
        font-size: 1.2rem;
        line-height: 140%;
    }
    .r-border {
        border-right: 0px;
    }
    #breadcrumb-spacer {
        height: 248px;
    }
    a.nav-item.nav-link:first-child {
        width: 100%;
    }
    .hr-mobile {
        display: block;
        margin-top: 0em;
        padding-top: 0em;
        width: 80%;
        height: 0;
        background-color: #7c790f;
    }

    .transform_style{
        transform: translate3d(0px, 0px, 0px);
    }

    .custom_hr_style{
        margin-top: 2rem;
    }

    .custom_color_style {
        color: #c2afaf;
    }

    .custom_margin_bottom_style{
        margin-bottom: 2em;
    }

    .custom_color_green{
        color:green;
    }

    .custom_color_red{
        color:red;
    }
}
    
/*fix*/
.hide_me {
    display: none;
}

/* 第一層導航區域樣式 */
#main-nav-section {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 2px solid #dee2e6;
}

/* 第一層導航樣式 */
.main-nav {
    margin-bottom: 0;
    position: relative;
    top: 17px;
}

.main-nav .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.main-nav .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.main-nav .nav-link:hover {
    border-color: transparent;
    color: #495057;
    background-color: #f8f9fa;
}

.main-nav .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-color: #007bff;
}

/* 學習地圖表格樣式 */
.learning-map-table {
    margin-bottom: 2rem;
}

.learning-map-table td {
    padding: 1rem;
    vertical-align: middle;
    border: 2px solid #dee2e6;
}

.learning-map-table .table-primary {
    background-color: #cce5ff;
    border-color: #b3d7ff;
}

.learning-map-table .table-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.learning-map-table .table-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.learning-map-table .table-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.learning-map-table .font-weight-bold {
    font-weight: 700 !important;
}

.learning-map-table .align-middle {
    vertical-align: middle !important;
}

.nav_bar {
	top: 95px;
	position: fixed;
	z-index: 1;
	width: 1110px;
}

.nav_bars {
	top: 95px;
	position: fixed;
	z-index: 1;
	width: 100%;
}

/* 基頻通訊學習地圖樣式 */
.learning-map-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.map-main-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1300px;
    justify-content: center;
}

.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
/* 只針對基頻通訊和射頻通訊學習地圖進行置中 */
#mapMap-14:not(.hide_me),
#mapMap-15:not(.hide_me) {
    justify-content: center;
    display: flex;
    width: 100%;
}

/* 藍色區塊：下世代通訊系統基頻關鍵技術 */
.blue-section {
    flex: 2;
    background-color: #cce5ff;
    border: 2px solid #b3d7ff;
    border-radius: 8px;
    padding: 25px;
}

.blue-section .section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #004085;
}

.blue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 220px;
}

.blue-item {
    background-color: #b3d7ff;
    border: 1px solid #99ccff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    color: #004085;
    font-weight: 500;
}

/* 綠色區塊：下世代通訊關鍵次系統 */
.green-section {
    width: 300px;
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 25px;
}

.green-section .section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #155724;
}

.green-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 220px;
}

.green-item {
    background-color: #c3e6cb;
    border: 1px solid #a8e6cf;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #155724;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 紅色區塊：基頻訊號處理基礎 */
.red-section {
    flex: 2;
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    padding: 25px;
}

.red-section .section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #721c24;
}

.red-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 170px;
}

.red-item {
    background-color: #f5c6cb;
    border: 1px solid #f1b0b7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    color: #721c24;
    font-weight: 500;
}

/* 黃色區塊：無線通訊網路入門 */
.yellow-section {
    width: 100%;
    max-width: 1300px;
    background-color: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin: 0 auto;
}

.yellow-section .section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #856404;
}

.yellow-items {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.yellow-item {
    background-color: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #856404;
    font-weight: 500;
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 圖例文字樣式 */
.legend-text {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .map-main-section {
        flex-direction: column;
    }
    
    .green-section {
        width: 100%;
    }
    
    .blue-grid,
    .red-grid {
        height: auto;
        min-height: 150px;
    }
    
    .green-items {
        height: auto;
        min-height: 120px;
    }
    
    .yellow-items {
        flex-direction: column;
    }
    
    .yellow-item {
        max-width: none;
    }
    
    .legend-text {
        font-size: 1rem !important;
        padding: 6px 10px !important;
    }
}

/* 圖例樣式 */
.legend-badge-tongshi {
    background-color: #FFF3CD !important;
    border: 1px solid #FFEAA7 !important;
}

.legend-badge-jichu {
    background-color: #F8D7DA !important;
    border: 1px solid #F5C6CB !important;
}

.legend-badge-jinjie {
    background-color: #CCE5FF !important;
    border: 1px solid #B8DAFF !important;
}

.legend-badge-kuayu {
    background-color: #D4EDDA !important;
    border: 1px solid #C3E6CB !important;
}
