/* General Reset */

h1  {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 摮烾�摰𡁶儔 */
    font-size: 45px; /* 摮烾�憭批� */
    font-weight: bold; /* 摮烾�蝎㛖敦 */
    color: white; /* 摮烾�憿讛𠧧 */
    text-align: center; /* 撠��摮堒�銝哨��舫�嚗� */
    line-height: 2.5; /* 銵諹� */
}


body {
    background-image: url('bg_7.png');
    background-size: cover; /* 霈抵��臬㦛����港葵撅誩� */
    background-repeat: no-repeat; /* �脫迫�峕艶�暸�憭� */
    background-position: center; /* 撠���臬㦛撅�葉 */
    background-attachment: fixed; /* �峕艶�箏��刻����銝漤�皛𡁜𢆡蝘餃𢆡 */
    margin: 0; /* 蝘駁膄暺䁅恕颲寡� */
    padding: 0; /* 蝘駁膄暺䁅恕��器頝� */
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 靽脲�����瑕� */
}

body h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}


body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    background-color: black; 
    color: #333;
    margin:0;
    padding: 0; /* 蝘駁膄暺䁅恕��器頝� */
}


/* �𡁶鍂頞�曎�交甅撘� */
#events a {
    text-decoration: none;
    color: #333; /* 暺䁅恕���憸𡏭𠧧 */
    transition: color 0.3s ease, background-color 0.3s ease; /* 撟單�餈�腹 */
}

/* 曌䭾��砍��� */
#events a:hover {
    color: #007BFF; /* �砍��嗆�摮堒�銝箄��� */
    background-color: #d0e8ff;/*#f0f8ff; /* �峕艶瘛餃�瘚���脤�鈭� */
    border-radius: 5px; /* ���靽桅弘 */
}

/* �𡁶鍂頞�曎�交甅撘� */
#announcement a {
    text-decoration: none;
    color: #333; /* 暺䁅恕���憸𡏭𠧧 */
    transition: color 0.3s ease, background-color 0.3s ease; /* 撟單�餈�腹 */
}

/* 曌䭾��砍��� */
#announcement a:hover {
    color: #007BFF; /* �砍��嗆�摮堒�銝箄��� */
    background-color: #d0e8ff; /*#f0f8ff; /* �峕艶瘛餃�瘚���脤�鈭� */
    border-radius: 5px; /* ���靽桅弘 */
}



.container {
    background-color: #ffffff; /* �質𠧧�峕艶 */
    color: #2c5d8e; /* �肽𠧧��� */
    border-radius: 8px; /* 瘛餃���� */
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* 瘛餃��游蔣 */
}

.main-header {
    background: rgba(0, 0, 0, 0);
    color: white;
    padding: 1em 0;
    text-align: center;
    z-index:1000;
}

nav a {
    font-family: 'Helvetica Neue', Arial,sans-serif; /* �寡�摮烾� */
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

/* Navigation Menu */
.main-header nav ul {
    list-style: none;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    gap: 1.5em;
    z-index: 1001;
}

.main-header nav ul li {
    position: relative;
}

.main-header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 1em;
    transition: background-color 0.3s;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 閮剔蔭摮烾� */
}

.main-header nav ul li a:hover {
    background-color: #f5a623;
    color: #00274d;
    border-radius: 5px;
}


/* Dropdown Menu */

.dropdown  {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 摮烾�摰𡁶儔 */
    font-weight: bold; /* 摮烾�蝎㛖敦 */
    color: white; /* 摮烾�憿讛𠧧 */
    text-align: center; /* 撠��摮堒�銝哨��舫�嚗� */
}

.dropdown-toggle  {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 摮烾�摰𡁶儔 */
    font-weight: bold; /* 摮烾�蝎㛖敦 */
    color: white; /* 摮烾�憿讛𠧧 */
    text-align: center; /* 撠��摮堒�銝哨��舫�嚗� */
    font-size: 18px; /* 摮烾�憭批� */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    list-style: none;
    padding: 1em;
    min-width: 200px;
    border-radius: 5px;
    z-index: 1001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 閮剔蔭摮烾� */
}

.dropdown-menu li {
    margin: 0.5em 0;
}

.dropdown-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.5em;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f5a623;
    color: #00274d;
    border-radius: 5px;
}

.navbar {
    z-index: 1000;
    position: relative;
}

.dropdown:hover .dropdown-menu {
    display: block;
}




/* Section Styles */
.section {
    padding: 2em 1em;
    background: #fff;
    margin: 1em auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0);
    color: white;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}

/* Highlight active menu item */
#nav-menu li a.active {
    background-color: #f5a623;
    color: #00274d;
    border-radius: 5px;
}

/* Style for images in content */
.section img {
    display: block;
    margin: 1em auto;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Specialist List Styling */
.specialist-list {
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}

.specialist {
    background: #f9f9f9;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.specialist p {
    margin: 0.2em 0;
    font-size: 1rem;
}

.specialist a:hover {
    color: #007BFF; /* �砍��嗆�摮堒�銝箄��� */
    background-color: #d0e8ff; /*#f0f8ff; /* �峕艶瘛餃�瘚���脤�鈭� */
    border-radius: 5px; /* ���靽桅弘 */
}


/* Staff List Styling */
.staff-list {
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
}

.staff {
    background: #f9f9f9;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.staff p {
    margin: 0.2em 0;
    font-size: 1rem;
}

/* Email Link Styling */
.staff a {
    color: #00274d;
    text-decoration: none;
}

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


.researcher {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex; 
    align-items: center; /* 蝖桐��曄��峕�摮烾▲�典笆朣� */
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: left; /* �港�撌血笆朣� */
}

.researcher img {
    width: 100px;
    height: 100px;
    margin: 15px; /* 皜�膄憿園�����券𡢿頝嘅�隞���坔𢰧靘折𡢿頝� */
    border-radius: 50%; /* 靽脲��曄���耦 */
    object-fit: cover;
}

.researcher-details {
    text-align: left; /* 蝖桐�����惩椰撖寥� */
    margin: 0; /* 皜�膄暺䁅恕憭𤥁器頝� */
    padding: 0; /* 皜�膄暺䁅恕��器頝� */
    flex: 1; /* 蝖桐�����箏��䭾旿�拐�蝛粹𡢿 */
}

.researcher a:hover {
    color: #007BFF; /* �砍��嗆�摮堒�銝箄��� */
    background-color: #d0e8ff; /*#f0f8ff; /* �峕艶瘛餃�瘚���脤�鈭� */
    border-radius: 5px; /* ���靽桅弘 */
}


/* Style for illustrations in Simulations and Algorithms section */
.illustration {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%; /* Adjust as needed */
    max-width: 1200px; /* Max width for the carousel */
    margin: auto;
    z-index: 10;
    pointer-events: none; /* 蝳�迫頛芣偘撟脫曎曌䭾�鈭衤辣 */
}

.carousel {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform; /* Show three images at once */
    z-index=1
}

.carousel-slide {
    width: calc(100% / 3); /* Each image takes up 1/3 of the container width */
    height: auto; /* �芸�隤踵㟲擃睃漲 */
    aspect-ratio: 3 / 2; /* 閮剔蔭撖祇�瘥𥪯� */
    object-fit: cover; /* 蝣箔�瘥𥪯�甇�虜嚗��摰寡��� */
    flex-shrink: 0;
    pointer-events: auto; /* 蝣箔��𣇉�隞滚虾暺墧� */
}

.carousel-slide img {
    width: 100%; /* �𣇉�皛踹祝 */
    height: 200px; /* 閮剖��箏�擃睃漲嚗𣬚Ⅱ靽嘥���之撠譍��� */
    object-fit: cover; /* 蝣箔��𣇉��批捆憛怠�������峕�鋆��憭𡁻��典� */
    border-radius: 8px; /* �栞�璅�� */
    margin-bottom: 10px; /* ���摮㛖��栞� */
}

.carousel:hover {
    /* 蝣箔�頛芣偘�券��桐��閙�隞滨��衤� */
    animation-play-state: running;
}

.caption {
    font-size: 1rem; /* 隤芣�������擃𥪜之撠� */
    color: #555; /* 摮烾�憿讛𠧧 */
    line-height: 1.4; /* 銵諹� */
    margin: 0 auto; /* ���蝵桐葉 */
    max-width: 100%; /* �����祝摨虫������ */
    text-align: center; /* 蝣箔����撅�葉撠漤� */
}


.caption a {
    color: black; /* ���憿讛𠧧 */
    text-decoration: none; /* 蝘駁膄�鞱身摨閧� */
    font-weight: bold; /* 蝒�枂������ */
}

.caption a:hover {
    color: #007BFF; /* 皛煾��詨����憿讛𠧧 */
    text-decoration: underline; /* 憓𧼮�摨閧���� */
}


.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-button.prev {
    left: 5px;
}

.carousel-button.next {
    right: 5px;
}

.justify-text {
    text-align: justify; /* ����拍垢撠漤� */
    line-height: 1.6;    /* 銵諹� */
    margin-bottom: 15px; /* 畾菔氜銋钅����頝� */
}



/* 皛煾��詨���𦆮憭扳��� */
.side-image img:hover {
    transform: scale(1.1); /* �曉之 10% */
}

.poster-image {
    width: 200px; /* 蝏煺�摰賢漲 */
    height: auto; /* 擃睃漲�寞旿摰賢漲�芸𢆡靚�㟲 */
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.poster-image:hover{
transform: scale(1.1); /* �曉之 10% */
}

@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        .carousel-slide {
            width: 10px; /* 蝣箔�瘥誩撐�𣇉���祝摨� */
            height: 10px; /* �芸�隤踵㟲擃睃漲 */
            object-fit: cover; /* 鋆���𣇉�嚗䔶����靘� */
        }
        .carousel-container {
            position: relative;
            overflow: hidden;
            width: 100%; /* Adjust as needed */ 
            height: 10%;
            max-width: 1200px; /* Max width for the carousel */
            max-height: 0px
            margin: auto;
        }
    }
}

/* 憭㚚�摰孵膥璅�� */
.image-container {
    text-align: center; /* �𣇉��峕�摮堒�銝剖�朣� */
    margin: 20px auto; /* 銝𠹺�憭㚚�頝嘅�霈枏�憛𡃏��嗡��批捆靽脲�頝嗪𣪧 */
    max-width: 600px; /* 閮剔蔭摰孵膥���憭批祝摨� */
}

/* �𣇉�璅�� */
.example-image {
    max-width: 100%; /* �𣇉��芷��匧祝摨� */
    height: auto; /* 蝣箔��𣇉�瘥𥪯� */
    display: block; /* �𣇉�憛羓�憿舐內嚗屸俈甇Ｗ枂�曉�擗条征�� */
    margin: 0 auto; /* �𣇉�蝵桐葉 */
}

/* �𣇉�靘�����璅�� */
.image-credit {
    font-size: 14px; /* 摮烾�憭批��航矽�� */
    color: #666; /* 摮烾�憿讛𠧧 */
    margin-top: 8px; /* �������栞� */
    font-style: italic; /* �𣈯�摮梹��湔��� */
}

.workshop-topics {
    margin: 20px; /* 憭㚚��栞� */
    padding: 15px; /* �折��栞� */
    background-color: #f9f9f9; /* �峕艶憿讛𠧧嚗�虾�� */
    border-radius: 8px; /* �栞�嚗�虾�� */
    border: 1px solid #ddd; /* �𦠜�嚗�虾�� */
}

.workshop-topics h3 {
    margin-bottom: 10px; /* 璅䠷����銵函��栞� */
    margin-top: 0px;
}

.workshop-topics ul {
    padding-left: 20px; /* �𡑒”��𤌍��葬�� */
}

a img {
    transition: transform 0.3s, filter 0.3s ease-in-out;
}

a:hover img {
    transform: scale(1.05); /* �亙凝�曉之 */
    filter: brightness(1.2); /* �𣂷漁 */
}


/* 摮鞾��格見撘� */
.dropdown-submenu .dropdown-menu {
    display: none; /* �鞱身�梯� */
    position: absolute;
    top: 0;
    left: 100%; /* 憿舐內�典𢰧�� */
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    list-style: none;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}


.dropdown-submenu:hover .dropdown-menu {
    display: block !important;  皛煾��詨���＊蝷箏��詨鱓 */
}

.dropdown-submenu .dropdown-menu li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-submenu .dropdown-menu li a:hover {
    background-color: #f5a623;
    color: #00274d;
    border-radius: 5px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

header {
    background-color: #2A3F5F;
    color: white;
    text-align: center;
    padding: 15px 0;
}

h1 {
    margin: 0;
}

.project-list {
    width: 80%;
    margin: auto;
    padding: 20px;
}

.ssp-table {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
}

.ssp-table th, .ssp-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle; /* 垂直置中 */
    white-space: pre-line; /* 允許換行 */
}

.ssp-table th {
    background-color: #004080;
    color: white;
}

.ssp-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.keywords {
    font-size: 14px; /* 讓字體變小 */
    font-family: "Arial", sans-serif; /* 使用不同字型 */
    font-style: italic;
    color: #007BFF; /* 設定藍色 (Bootstrap 藍) */
    font-weight: normal; /* 確保字體不是粗體 */
    display: block; /* 讓 `Keywords` 另起一行 */
    margin-top: 5px; /* 增加與標題的間距 */
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #2A3F5F;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
}
