body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#section-title {
    font-family: 'Noto Serif TC', Georgia, serif;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 0;
}

#section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #205EA2;
    border-radius: 2px;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: 0.2s;
}

/* 全局 focus-visible 樣式，提供鍵盤使用者視覺反饋 */
:focus-visible {
    outline: 2px solid #205EA2;
    outline-offset: 2px;
    border-radius: 4px;
}

/* disabled 按鈕樣式 */
.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
a[href],
[role="button"],
.btn:not(:disabled):not(.disabled),
.page-link,
.dropdown-item,
.nav-link {
    cursor: pointer;
}

/* 語言切換按鈕不要有hover底色 */
#lang-toggle:hover {
    background-color: transparent !important;
}

/* 語言切換按鈕樣式 */
.lang-btn {
    background-color: white;
    border-color: white;
    color: white;
}

.lang-btn:hover {
    background-color: white;
    border-color: white;
    color: #205EA2;
}

.lang-btn.active {
    background-color: white !important;
    border-color: white !important;
    color: #205EA2 !important;
}

/* 論文連結按鈕樣式 */
a.btn.paper-link-btn {
    border: 1px solid #205EA2 ;
    border-style: solid;
    border-width: 2px ;
    color: #205EA2 ;
    background-color: white;
}

a.btn.paper-link-btn:hover,
a.btn.paper-link-btn:active,
a.btn.paper-link-btn:focus {
    background-color: #205EA2 ;
    border: 2px solid #205EA2 ;
    border-color: #205EA2 ;
    color: white ;
}

a.btn.paper-link-btn:hover i,
a.btn.paper-link-btn:active i,
a.btn.paper-link-btn:focus i {
    color: white ;
}


.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}

.btn.btn-light {
    color: #026EB9;
    border: none;
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-dark);
}

.btn.btn-dark {
    color: var(--bs-white);
    border: none;
}

.btn.btn-dark:hover {
    color: var(--bs-primary);
    background: var(--bs-light);
}


/*** Topbar Start ***/ 
.topbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
    color: var(--bs-primary);
}

.topbar .dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.topbar .dropdown .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    padding-top: 10px;
    border: 0;
    transition: .5s;
    opacity: 1;
}
/*** Topbar End ***/


/*** Navbar Start ***/
.navbarcolor {
    background-color: #e18585;
    }

.nav-bar {
    background: var(--bs-white);
    transition: 0.3s;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.nav-bar .navbar-light .navbar-brand img {
    max-height: 50px;
}

.navbar .navbar-nav .nav-item .nav-link {
    padding: 0;
}

.navbar .navbar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
}


.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item.active,
.navbar-light .navbar-nav .nav-item:hover .nav-link,
.navbar-light .navbar-nav .nav-item.active .nav-link {
    color:#5158686a;
}

@media (max-width: 1399px) {
    .navbar {
        padding: 12px 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 0;
    }

    .navbar .navbar-nav .nav-item {
        display: flex;
        padding: 20px;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .navbar .navbar-nav .nav-btn {
        display: flex;
        justify-content: start;
    }

    /* 手機版 collapse 展開區域 — 白底滑出 */
    #navbarCollapse {
        background: #fff;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        padding: 16px;
        margin-top: 8px;
    }

    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 0;
        padding-bottom: 14px;
        background: transparent;
        border-radius: 0;
        border-bottom: 1px solid #e9ecef;
    }

    /* 手機版搜尋 + 語言切換區 */
    .navbar-search-lang {
        padding-top: 14px;
        flex-wrap: wrap;
    }

    .navbar-search-lang #paper-search {
        width: 100% !important;
        flex: 1 1 auto;
    }

    .navbar.navbar-expand-xxl .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.dropdown .dropdown-menu .dropdown-item:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (min-width: 1400px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar .nav-btn {
        display: flex;
        align-items: center;
        justify-content: end;
    }

/* 導覽列背景色 */
    .navbar .navbar-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #ffffff;
        border-radius: 10px;
    }

    .navbar .navbar-nav .nav-btn {
        width: 100%;
        display: flex;
        margin-left: auto;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        margin-top: 20px;
        background: var(--bs-light);
        transition: .5s;
        opacity: 1;
    }

    /* Tag 按鈕一般樣式 */
    .nav-tag-filter {
        border-radius: 20px;
        border-width: 2px;
        color: #4f4f4f;
        background: #fff;
        transition: all 0.2s;
    }

    .nav-tag-filter:hover,
    .nav-tag-filter:focus {
        color: #205EA2;    
        background: #fff;    
        border-color: #205EA2;
    }

    /* Tag 按鈕點擊/選取樣式 */
    .nav-tag-filter.active,
    .nav-tag-filter:active,
    .nav-tag-filter:focus {
        background: #fff;  
        color: #205EA2;      
        border-color: transparent !important;
        box-shadow: none !important;
    }
}
/*** Navbar End ***/


/*** Carousel Hero Header Start ***/
.header-carousel .header-carousel-item {
    height: 700px;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: var(--bs-light);
    color: var(--bs-primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 30px;
}
.header-carousel .owl-nav .owl-next {
    bottom: 30px;
    right: 50%;
    transform: translateX(-50%);
    margin-right: 30px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 0 0 100px 0 var(--bs-secondary);
    color: var(--bs-white);
}

.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .header-carousel .header-carousel-item .carousel-caption {
        padding-top: 45px;
    }

    .header-carousel .header-carousel-item {
        height: 1300px;
    }
}

@media (max-width: 767px) {
    .header-carousel .header-carousel-item {
        height: 950px;
    }

    .header-carousel .owl-nav .owl-prev {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: -45px;
    }

    .header-carousel .owl-nav .owl-next {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 45px;
    }
}
/*** Carousel Hero Header End ***/

@media (max-width: 768px) {
    .intro{
        font-size: 15px; 
        font-weight: bold;
    } 
}

@media (min-width: 769px) {
    .intro{
        font-size: 20px; 
        font-weight: bold;
    } 
}

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(1, 95, 201, 0.9), rgba(0, 0, 0, 0.2)), url(../img/bg-breadcrumb.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}
/*** Single Page Hero Header End ***/


/*** Feature Start ***/
.feature .feature-item {
    border-radius: 10px;
    background: var(--bs-white);
    transition: 0.5s;
}

.feature .feature-item:hover {
    background: var(--bs-primary);
}

.feature .feature-item .feature-icon {
    position: relative;
    width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-light);
}

.feature .feature-item:hover .feature-icon i {
    z-index: 9;
}

.feature .feature-item .feature-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: var(--bs-dark);
    transition: 0.5s;
    z-index: 1;
}

.feature .feature-item:hover .feature-icon::after {
    height: 100%;
}

.feature .feature-item .feature-icon {
    color: var(--bs-primary);
}

.feature .feature-item .feature-icon,
.feature .feature-item h4,
.feature .feature-item p {
    transition: 0.5s;
}

.feature .feature-item:hover .feature-icon {
    color: var(--bs-white);
}
.feature .feature-item:hover h4,
.feature .feature-item:hover p {
    color: var(--bs-white);
}

.feature .feature-item:hover a.btn {
    background: var(--bs-white);
    color: var(--bs-primary);
}

.feature .feature-item:hover a.btn:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}
/*** Feature End ***/



/*** Team Start ***/
.team .team-item .team-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 220px;
} 

.team .team-item .team-img img {
    transition: 0.5s;
}

.team-img img {
    height: 220px; 
    object-fit: cover; 
}

.team .team-item:hover .team-img img {
    transform: scale(1.1);
}

.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
}

.team .team-item:hover .team-img::after {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.team .team-item .team-img .team-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    margin-bottom: -100%;
    transition: 0.5s;
    z-index: 9;
}

.team .team-item:hover .team-img .team-icon {
    margin-bottom: 0;
}

.team .team-item .team-title {
    color: var(--bs-white);
    background: #487ACD;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: 0.5s;
}

.team .team-item .team-title h4 {
    color: var(--bs-white);
}

.team .team-item:hover .team-title {
    background: var(--bs-dark);
}

.teachtitle{
    padding-top: 40px;
    padding-bottom: -50px;
}

.alumnititle{
    padding-top: 80px;
    padding-bottom: -50px;
}

.teachrow {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto; /*水平滾動*/
    overflow-y: hidden; 
}

/* 滾動樣式滾動樣式 */
.teachrow::-webkit-scrollbar {
    height: 8px; 
}

.teachrow::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.teachrow::-webkit-scrollbar-thumb {
    background: #9faee4; 
    border-radius: 10px; 
}

.teachrow::-webkit-scrollbar-thumb:hover {
    background: #5069c1a3; 
}

.teach {
    flex: 0 0 auto; 
    width: 25%; 
}

/*** Team End ***/


/*** Testimonial Start ***/

.testimonial {
    background-color: #FED67E; 
    padding: 20px; 
}

.testimonial-carousel .owl-stage-outer {
    margin-top: 58px;
    margin-right: -1px;
}

  
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: 35%;
    left: -25px;
    background: #b9b9b99e;
    color: var(--bs-white);
    padding: 30px 7px;
    border-radius: 5px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: 35%;
    right: -25px;
    background: #b9b9b99e;
    color: var(--bs-white);
    padding: 30px 7px;
    border-radius: 5px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-dark);
    color: var(--bs-white);
}

.testimonial-item {
    background: #f8f9fa; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-bottom: 30px; 
    width: 100%; 
    margin: 0 auto 30px auto; 
}

.testimonial-item img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px; 
    height: 200px; 
}

.testimonial-item .text-center {
    padding: 15px;
}

.testimonial-item h4 {
    color: #333; 
}

.testimonial-item p {
    color: #777; 
}

@media (max-width: 576px) {
    .owl-nav {
        display: none;
    }
}

.stu{
    text-align: center;
}


@media (max-width: 768px) {
    .protype {
        font-size: 1.4rem; 
    }
}

/* 老師照片呈現樣式 */
.image-container {
    width: 170px; /* 圓圖寬 */
    height: 170px; /* 高度 */
    margin: 0 auto; 
    overflow: hidden; 
    border-radius: 50%; 
}

.image-container img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.owl-dot.active {
    background-color: #333;
}

@media (max-width: 576px) {
    .owl-nav {
        display: none;
    }
}

.teachcontent{
    margin-top: -10px;
    
}
/*** Testimonial End ***/


/*** Contact Start ***/
.contact .contact-img {
    position: relative;
}

.contact .contact-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    animation-name: image-efects;
    animation-duration: 10s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: 0.5s
}

@keyframes image-efects {
    0%  {border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;}

    25% {border-radius: 35% 65% 27% 73% / 71% 25% 75% 29%;}

    50% {border-radius: 41% 59% 45% 55% / 32% 21% 79% 68%;}

    75% {border-radius: 69% 31% 39% 61% / 70% 83% 17% 30%;}

    100% {border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;}
}

.contact .contact-img .contact-img-inner {
    position: relative;
    z-index: 9;
}
/*** Contact End ***/

/* timeline */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
}
button:focus:not(:focus-visible) {
  outline: none;
}

a {
  color: inherit;
}

.timebody {
  font: normal 16px/1.5 "Helvetica Neue", sans-serif;
  /* background: #b9dcf8; */
  color: #ffffff83;
}


.section {
    background: url('img/background.png') no-repeat center center !important;
    background-size: cover !important; 
    padding: 50px 0;
  }

.section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: 1.3rem;
}

/* 資科簡介字體調整 */
.responsive-heading {
    font-size: 1.8rem; 
}

@media (max-width: 768px) {
    .responsive-heading {
        font-size: 1.5rem; /* 手機字體大小 */
    }
}


.container-fluid.p-0 {
    margin-bottom: 0; 
}

#section1 {
    margin-top: 0; 
}

/* 手機及電腦端標題大小 */
@media (max-width: 768px) {
    .title {
        font-size: 26px; 
    }
}

@media (min-width: 769px) {
    .title {
        font-size: 30px; 
    }
}

/* 跨領域風氣與元素之間的距離 */
.common-section {
    margin-bottom: -50px;
}

.studytext{
    font-size: 18px; 
    margin-top: 50px;
}

/* 卡片右下外部連結 */
.text-end a.text-primary {
    color: #007bff;
    text-decoration: none;
}

.text-end a.text-primary:hover {
    text-decoration: underline;
}

/* 課程卡片顏色 */
.cardcolor1 {
    background-color: #ffffff;
     
}

.cardcolor2 {
    background-color: #fdf8e8;
}

/* 調整圓角半徑 */
.card-with-dropdown {
    border-bottom-left-radius: 10px; 
    border-bottom-right-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
}

/* 鼠標懸停在卡片上時，顯示下拉選單 */

@media (min-width: 600px) {
.card-with-dropdown:hover .dropdown-menu {
    display: block;
    }
}

/* 下拉選單 */
.dropdown-menu {
    margin-top: 0;
    transition: all 0.3s ease; /* 可以添加動畫效果 */
    width: 100%;
    text-align: center;
    position: static;
    z-index: 1000;
}

/* 下拉選單按鈕 */
.dropdown-toggle , .dropdown-toggle:hover{
    width: 100%; 
    text-align: center; 
    color:aliceblue;
    background-color: #4B7FD5;
   
}
.dropdown-menu .dropdown-item {
    font-weight: bold;
}

@media (min-width: 600px) {
    .desktop-hover-disabled {
        pointer-events: none;  
    }
}


/* 去除按鈕外框顏色 */
.btn {
    border: none; 
    box-shadow: none; 
}

/* 鼠標懸停時不顯示邊框 */
.btn:hover, .btn:focus ,.btn:active{
    border: none; 
    box-shadow: none; 
}

.space{
    margin-right: 8px;
}


/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}


.footer .footer-item .footer-instagram {
    position: relative;
    overflow: hidden;
}

.footer .footer-item .footer-instagram img {
    transition: 0.5s;
}

.footer .footer-item .footer-instagram:hover img {
    transform: scale(1.2);
}

.footer .footer-item .footer-instagram .footer-search-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    opacity: 0;
}

.footer .footer-item .footer-instagram:hover .footer-search-icon {
    opacity: 1;
    background: rgba(0, 0, 0, .6);
}

.footer .footer-item .footer-btn a {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-primary);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-white);
}
/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    background: var(--bs-dark);
    border-top: 1px solid rgba(255, 255, 255, .08);
}
/*** copyright end ***/

/* 招生連結樣式 */
.admission-links {
    margin-top: 40px;
}


/* 區塊背景色 */
.bg-light {
    background-color: #fdf8e8 !important;
}

.bg-time{
    background: #FDF8E8 !important; 
  
}

.rounded-box {
    background-color: rgb(255, 255, 255);
    border-radius: 15px; 
    padding: 30px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-top: -10px; 
    margin-bottom: -70px;
}

.rounded-box2 {
    background-color: rgb(255, 255, 255);
    border-radius: 15px; 
    padding: 30px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-top: 0px; 
    margin-bottom: 0px;
}

.rounded-box3 {
    background-color: rgb(255, 255, 255);
    border-radius: 15px; 
    padding: 30px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-top: 0px; 
    margin-bottom: -70px;
}

.rounded-box4 {
    background-color: rgb(255, 255, 255);
    border-radius: 15px; 
    padding: 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-top: 40px; 
    margin-bottom: -70px;
    text-align: center; 
}

/* tag顏色 */
.bg-custom-yellow {
  background-color: #FFEA96 !important;
}

/* feature 頁面關鍵字標籤顏色 */
.bg-light-gray {
  background-color: #e4e4e4 !important;
}

/* 論文列表樣式 - Quanta Magazine 風格 */
.paper-item {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.paper-item:first-child {
    padding-top: 0;
}

.paper-item:last-child {
    border-bottom: none;
}

.paper-image {
    flex-shrink: 0;
    width: 360px;
    height: 240px;
}

.paper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.paper-image a:hover img {
    transform: scale(1.02);
}

.paper-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paper-category {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #205EA2;
    margin-bottom: 10px;
}

.paper-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.paper-title a {
    color: #111;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.paper-title a:hover {
    color: #026EB9;
    background-size: 100% 1px;
}

.paper-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.paper-meta span {
    margin-right: 5px;
}

.paper-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 8px 0;
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.paper-tags .badge {
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Feature 頁面三欄式布局 */
.sticky-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sticky-sidebar .card {
    border: 1px solid #e0e0e0;
}

#teacher-info .card-body {
    padding: 1.5rem 1rem;
}

#teacher-info img {
    border: 3px solid #205EA2;
}

/* 作者連結 hover 效果 */
.author-link:hover img {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.author-link:hover h6 {
    color: #205EA2 !important;
    transition: color 0.3s ease;
}

/* Feature 頁面標題區域 */
#paper-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
}

#paper-header p {
    font-size: 1.1rem;
}

/* Feature 頁面圖片區域 */
#paper-image img {
    border-radius: 8px;
}

#share-section .btn {
    font-size: 14px;
    padding: 8px 12px;
}

#share-section .btn i {
    margin-right: 6px;
}

#paper-detail .card {
    border: 1px solid #e0e0e0;
}

#paper-detail .card-body {
    padding: 2.5rem;
}

#paper-detail h2.card-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

#paper-detail h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

#paper-detail .text-justify {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
}

/* 語言切換按鈕樣式 */
.lang-btn.active {
    background-color: white !important;
    color: #205EA2 !important;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .sticky-sidebar {
        position: static;
        max-height: none;
    }

    #paper-detail .card-body {
        padding: 1.5rem;
    }

    #paper-detail h2.card-title {
        font-size: 26px;
    }
}

/* 響應式設計 */
@media (max-width: 992px) {
    .paper-item {
        flex-direction: column;
        gap: 20px;
    }

    .paper-image {
        width: 100%;
        height: 300px;
    }

    .paper-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .paper-image {
        height: 250px;
    }

    .paper-title {
        font-size: 22px;
    }

    .paper-excerpt {
        font-size: 15px;
    }
}

/* MathJax overflow - 防止行動版水平跑版 */
mjx-container {
    overflow-x: auto;
    max-width: 100%;
}

/* Navbar lang buttons */
.lang-btn {
    color: #164171 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}
.lang-btn.active, .lang-btn:hover {
    color: #164171 !important;
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
}

/* Sticky sidebar filters */
.sticky-filters {
    position: sticky;
    top: 110px;
}

/* No results empty state */
.no-results-state {
    background-color: #fffde7;
    border-left: 4px solid #FED67E;
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
}
.no-results-state h5 {
    color: #164171;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.no-results-state p {
    color: #555;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Selected teacher tags */
.selected-teacher-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #205EA2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    margin: 2px 3px 2px 0;
    line-height: 1.4;
}
.remove-teacher-tag {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 150ms ease;
}
.remove-teacher-tag:hover {
    opacity: 1;
}
#selected-teachers-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* Teacher filter list */
#teacher-filter-list {
    max-height: 300px;
    overflow-y: auto;
}
#teacher-filter-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 4px;
}
#year-filter-list label {
    display: block;
    margin-bottom: 5px;
}
#teacher-filter-list label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#teacher-filter-list::-webkit-scrollbar {
    width: 4px;
}
#teacher-filter-list::-webkit-scrollbar-thumb {
    background: #c9d4e0;
    border-radius: 4px;
}
