/*------ font style & color ------*/
@font-face {
    font-family: SegoeUI;
    src: local("Segoe UI Bold"),
        url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.woff2)
            format("woff2"),
        url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.woff)
            format("woff"),
        url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.ttf)
            format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "Microsoft JhengHei";
    src: local("Microsoft JhengHei");
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "SegoeUI", "Microsoft JhengHei" !important;
}

p {
    margin-top: 0;
    margin-bottom: 0;
    font-family: "Noto Sans TC", sans-serif;
}

.icon-book {
    width: 30px;
    padding-right: 5px;
}

.text-gray {
    font-size: 1rem;
    color: #909090;
    font-weight: 600;
}

.text-light-gray {
    font-size: 1rem;
    color: #707070;
    font-weight: 600;
}
.text-green {
    font-size: 1rem;
    color: #8bbbc9;
    font-weight: 600;
}
.text-white {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.color-green {
    color: #8bbbc9 !important;
}

.color-white {
    color: #ffffff !important;
}

.color-yellow {
    color: #fcfdcc !important;
}

.color-light-beig {
    color: #e1fff9;
}
h5 {
    font-weight: 600;
    font-family: "GenSenBold";
}

h4 {
    font-weight: 600;
    font-family: "GenSenBold";
}

h3 {
    font-family: "GenSenBold";
    font-weight: 600;
}

h1 {
    font-family: "GenSenBold";
}

a {
    color: #909090;
}
ul {
    list-style-type: none;
}

ul li {
    line-height: 2;
    min-height: 40px;
    display: flex;
    align-items: center;
}
ul li img {
    margin-right: 10px;
}

a:hover {
    color: #ade4f4;
}
.bk-white {
    background: #ffffff;
}

.shadow-lg {
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.175) !important;
}
/*test: 當字元超出可展示的範圍，顯示...*/
.ellipsis {
    text-overflow: ellipsis;
}

/*-- common --*/
.section-padding {
    padding: 3rem 0;
}

.bg-gray {
    background-color: #808080;
    /*#B3B3B3;*/
}

.bg-light-gray {
    background-color: #c1c1c1;
}

.bg-light-green {
    background-color: #8bbbc9;
}

.bg-light-yellow {
    background-color: #ffffe4 !important;
}

.bg-light-gray {
    background-color: #f6f6f6;
}

.rounded-image {
    border-radius: 15px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/*-- banner --*/
#logo {
    height: 195px;
    padding: 10px 0 10px 0;
}

#banner {
    background-size: cover;
    position: relative;
}

.nav-text-size {
    font-family: GenSenMedium;
    font-size: 1.3em;
}

.notificaiton-table {
    min-width: 450px !important;

    max-height: 400px; /* Set max height for dropdown */
    overflow-y: auto; /* Enable vertical scrolling */
    border-radius: 10px !important; /* Rounded corners */
    background-color: white !important; /* White background for dropdown */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for depth */
    padding: 10px; /* Optional: Add padding for better spacing */
}

.notification-status {
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    margin-left: 10px;
}

.notification-item {
    cursor: pointer;
    transition: background-color 0.2s;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
}

.notification-item h6 {
    margin-bottom: 0.5rem; /* Adjusts spacing below the title */
}

.notification-item small {
    display: block; /* Ensure description is on a new line */
    word-break: break-word; /* Break words that are too long */
    white-space: normal; /* Allow the text to wrap normally */
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-status {
    flex-shrink: 0;
}

.carousel-item {
    width: 100%;
    max-height: 100%;
}

#navbarSupportedContent .dropdown-menu {
    min-width: max-content;
    border-radius: unset;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.175) !important;
    background: #8bbbc9;
}
#navbarSupportedContent .menu-def-dropdown {
    padding-left: 1rem;
    padding-right: 1rem;
}
.nav-link {
    color: white;
    padding: 0.5rem 0;
}

.btn-login {
    border-radius: 50px;
    border: 1px solid;
}

.btn-login:hover {
    color: #fcfdcc;
}

.btn-login:focus {
    color: #fcfdcc;
}

.btn-logout {
    color: #fff;
    background-color: #a6dbf0;
    border-radius: 50px;
    border: 3px solid;
}

.btn-logout:hover {
    color: #fcfdcc;
}

.hover-shadow:hover {
    margin-top: 0px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #8bbbc9;
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 1rem;
    color: #676767;
}

/*footer*/
.fb-img {
    border-radius: 50%;
}
.fb-menu-list {
    font-style: white;
    font-weight: 100;
    line-height: 2rem;
}

.fb-right-banner {
    margin-bottom: 1rem;
    margin-top: 3rem;
}

/****-------------- index-css -------------- ****/
/*-- introduce course --*/
.intro-block {
    padding-top: 2rem;
}

.intro-title {
    font-size: 20px;
}

.intro-content {
    font-size: 20px;
    padding-left: 4rem;
}

/*-- course-feature --*/
.btn-radius {
    background-color: #fff;
    color: #909090;
    border-radius: 0.55rem;
    font-weight: bold;
    padding: 0.2rem 1.5rem;
}
/*-- course & team --*/
.btn-radius-course {
    border-radius: 20px;
    padding: 0.35rem 1rem;
    text-decoration: none;
    text-align: center;
    border: 2px solid #8bbbc9;
    background-color: transparent;
    color: #8bbbc9;
    transform: scale(1.4);
}

.btn-radius-course:hover {
    color: #ffffff;
    background-color: #8bbbc9;
}

.webkit-center {
    text-align: -webkit-center;
}

.course-header h3 {
    font-size: 2.625rem;
    padding-bottom: 1rem;
}

.course-header p {
    font-size: 20px;
    line-height: 2.625rem;
}

.ch-p {
    padding-top: ;
}

.bk-radius {
    position: relative;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    z-index: 1;
}

#bck img {
    margin-right: 1rem;
    width: 120%;
    z-index: 2;
}

#img-car {
    margin-left: -2.5rem;
    margin-top: 1.4rem;
}

#img-computer {
    margin-top: -1.5rem;
    margin-left: 0.5rem;
}

#img-robert {
    margin-top: -1.5rem;
    margin-left: 0.8rem;
}

.test {
    padding: 0rem 2rem;
    justify-content: center;
    text-align: -webkit-center;
}

.ttp {
    margin: 1rem 1rem;
}

.vcontent {
    padding-top: 2rem;
}

.vcontent h5 {
    font-size: 28px;
}

.vcontent p {
    font-size: 26px;
}

/*-- consult content --*/
#consult-content {
    align-self: center;
    padding: 0 2rem;
}
.consult-header {
    padding-top: 2rem;
}

/*-- about --*/

/*-- team --*/
.time-rec {
    font-size: 12px;
}

/*News*/
.news-slider-button.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%40fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}

/****-------------- pageTeam-css -------------- ****/

.pteam-banner-hight {
    height: auto;
    background: #e1f5fe;
    text-align: center;
}
/* team */
.pteam-mem-img {
    border-radius: 50%;
    width: 100%;
}
.professor-img {
    width: inherit;
}

#contact-img {
    align-content: center;
    width: 75%;
}

#p-team .card {
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    background: transparent;
}

#p-team .card-body {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#p-team p {
    color: #707070;
}

#p-team .intro-title {
    font-size: 24px;
    font-weight: bolder;
}

/* contact us */
#p-team-contact .form-control,
#p-team-contact .input-group-text {
    border: none;
    background-color: white;

    border-radius: 5px;
    padding: 1rem;
}

.remove-lefr-border {
    border-left: unset;
}

#p-team-contact .input-group {
    padding-left: 3rem;
}

#contact-message {
    height: 200px;
}

#pteam-contact-info .align-content-img {
    text-align: center;
}

#pteam-contact-info .align-content-text {
    padding-top: 2rem;
}

#team-contact .b-contact-btn {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

#team-contact .contact-btn {
    padding: 0.3rem 2rem;
}

.contact-title {
    font-size: 2em;
    padding-top: 20px;
    text-align: center;
}

.professer-title {
    color: #8bbbc9;
    font-weight: 700;
    font-size: 26px;
}

.professer-name {
    color: #8bbbc9;
    font-weight: 700;
    font-size: 32px;
}

.mem-title {
    font-weight: bolder;
    font-size: 22px;
}

.mem-name {
    font-weight: bolder;
    font-size: 30px;
}

/****-------------- Session Units- CSS -------------- ****/

.unit-content {
    width: 100%;
    line-height: 2em;
}

.units-video-size {
    width: 100%;
    height: auto;
}

.unit-content-bp {
    padding-top: 1.5rem;
    word-wrap: break-word;
}

/*--- my course---*/
.unit-title {
    padding-top: 1.5rem;
    padding-bottom: 10px;
    border-bottom: inset;
    border-color: #8bbbc9;
}

.unit-lesson-group {
    padding: 3rem 0.3rem;
}

.unit-icon.disabled {
    opacity: 0.5;
}

.lesson-grp-item-icon {
    max-inline-size: fit-content;
}

.lesson-grp-item {
    width: 100%;
    padding: 0.5rem;
}

.lesson-grp-item img {
    width: 1rem;
}

/*--- unit side menu ---*/
.boundary {
    margin: 0;
    padding: 0;
}

#unit-title p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bolder;
}

.menu_icon-open img {
    width: 24px;
}

.menu_icon-close img {
    width: 24px;
}

.unit-block {
    background: white;
    margin: 0;
}

.lesson-block {
    border-color: #f2efefbd;
    border-top: outset;
}

.lesson-block a {
    text-decoration: none;
    color: black;
}

.course-menu {
    background: #ffffe4;
    padding: 0;
    margin: 0;
}

.course-style {
    background: #84a8b3;
    font-size: 1.2rem;
    color: white;
    font-weight: bolder;
}

.unit-style {
    padding: 0.5rem;
    padding-left: 2rem;
    color: gray;
    font-size: 1.1rem;
}

.lesson-style {
    margin-left: 1rem;
    background: white;
    opacity: 0.8;
}

.mystyle {
    padding: 0;
}

.lesson_icon {
    text-align: end;
}

.lesson-item {
    margin: 0;
    background: white;
    opacity: 0.8;
    font-size: 1rem;
    line-height: 2.3rem;
}

.lesson-icon {
    width: 50%;
    padding-right: 0.5rem;
}

.lesson-block > ul {
    margin: 0;
}

.lesson-block .lesson_name img {
    width: 1.4rem;
}

.lesson-block .lesson_icon img {
    width: 1.2rem;
}

[aria-expanded="false"] .menu_icon-open {
    display: none;
}

[aria-expanded="true"] .menu_icon-close {
    display: none;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: #8bbbc9;
    color: #8bbbc9;
}

.btn-outline-primary:hover {
    background-color: #8bbbc9;
    border-color: #8bbbc9;
    color: #fff;
}

.btn-outline-primary:not(:disabled):not(.disabled):active {
    background-color: #8bbbc9;
    border-color: #8bbbc9;
    color: #fff;
}

#welcomeModal .modal-content {
    border-radius: 36px;
}
#welcomeModal .modal-body {
    font-size: 18px;
    line-height: 1.5;
}

.progress-container {
    height: 30px;
    min-width: 300px;
    background-color: #ececec;
    border-radius: 15px;
}

.progress-bar {
    height: 100%;
    background-color: #9cc5d1;
    color: white;
    line-height: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px; /* Ensures visibility even when width is 0% */
    position: relative;
}

.progress-bar span {
    position: absolute; /* Keeps text visible */
    width: 100%;
    text-align: center;
    white-space: nowrap;
    color: white;
}

.module-exercise-container {
    padding: 2.5rem 1.5rem;
    background-color: #fafafa;
    border-radius: 15px;
}

.module-exercise-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.module-exercise-status img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.module-exercise-upload-btn {
    color: #8bbbc9;
    padding: 0.3em;
    border-radius: 8px;
    border: 1px solid #8bbbc9;
    max-width: 150px;
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.module-exercise-upload-btn:hover {
    background-color: #8bbbc9;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.module-exercise-upload-btn:disabled {
    color: #cccccc;
    border: 1px solid #cccccc;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.hidden {
    display: none;
}

.progress_sections {
    display: flex;
    gap: 30px;
}

.user_progress {
    flex: 1;
    background-color: #d7eaf0;
    border-radius: 10px;
    padding: 10px 20px;
}

.user_progress:first-child {
    flex: 0 0 auto;
    text-align: center;
    width: 220px;
}

.user_progress .progress_title {
    font-size: 24px;
    font-weight: 600;
}

.user_progress .btn-primary {
    background-color: white; /* White background */
    color: #8bbbc9; /* Text color */
    font-size: 28px; /* Font size */
    border: none; /* Remove border */
    border-color: transparent; /* Remove border color */
    border-radius: 50%; /* Makes the button circular */
    width: 80px; /* Set a fixed width */
    height: 80px; /* Set a fixed height to make it a circle */
    display: flex; /* Center text inside */
    justify-content: center; /* Align text horizontally */
    align-items: center; /* Align text vertically */
    font-weight: bold; /* Make text bold */
    text-transform: uppercase; /* Optional: Uppercase text */
    transition: all 0.3s ease; /* Smooth transition effect */
    text-decoration: none; /* Remove underline if used on links */
}

/* Add hover effect */
.user_progress .btn-primary:hover {
    background-color: #8bbbc9; /* Background changes to the text color */
    color: white; /* Text changes to white */
}

.info-block {
    background-color: #f6f6f6;
    padding: 10px;
    border-radius: 10px;
}

.info-section {
    margin: 20px 0;
    padding: 0 70px;
}

.info-section .info-title {
    font-size: 32px;
    font-weight: 600;
}

.info-section .info-desc {
    font-size: 18px;
    font-weight: 400;
}

.overlap-section {
    position: relative;
    z-index: 20;
    margin-top: -60px;
    margin-bottom: -50px;
    text-align: center;
}

.overlap-section.fixed {
    position: fixed;
    top: 60px;
    left: 0;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffe4 !important;
}

.overlap-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #8bbbc9;
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 5px;
}

/* 加大按鈕尺寸，並優化文字大小 */
.menu-item {
    list-style: none;
    padding: 20px 40px; /* 增加按鈕大小 */
    cursor: pointer;
    font-size: 20px; /* 增加字體大小 */
    font-weight: bold;
    color: #73939d;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* 添加點擊時的動畫效果 */
.menu-item:active {
    transform: scale(0.95);
}

/* 啟用 active 狀態的動畫效果 */
.menu-item.active {
    background-color: #9cc5d1;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease-in-out;
    transform: none;
}

.overlap-menu .menu-item {
    text-decoration: none;
}

.overlap-menu .menu-item:hover {
    color: #73939d;
    text-decoration: none;
}

#feature {
    padding-top: 120px;
}

.landing-page {
    padding: 50px 10px 100px 10px;
    max-width: 1440px;
    margin: 0 auto;
}

.recruit-section {
    text-align: left;
}

.recruit-section h2 {
    color: #73939d;
    font-family: GenSenBold, sans-serif;
    font-size: 32px;
    margin-bottom: 16px;
}

.recruit-section ul {
    list-style: none;
    padding-left: 0;
}

.recruit-section ul li {
    font-family: GenSenBold, sans-serif;
    font-size: 20px;
    color: #4f6d7a;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    line-height: 1.6;
}

.recruit-section ul li img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.survey-form {
    mind-width: 50%;
}

.logo {
    max-height: 75px;
    height: auto;
    width: auto;
}

.fa-bell {
    font-size: 24px !important;
    color: white;
}

@media (max-width: 991px) {
    #navbarSupportedContent .dropdown-menu {
        display: block !important; /* 手機版強制展開 */
        position: static !important; /* 確保展開時不會浮動 */
        box-shadow: none !important; /* 移除陰影 */
        border: 0 !important; /* 移除邊框 */
        background: transparent;
    }

    #navbarSupportedContent .dropdown {
        display: block !important;
    }

    .navbar-nav {
        width: 100%;
        text-align: center; /* 讓選單內容置中 */
    }

    .nav-item {
        font-size: 18px; /* 讓所有字體變大 */
        display: block; /* 讓每個選單項目獨占一行 */
    }

    .nav-link.title {
        color: #767676 !important; /* 讓標題文字變灰色 */
        font-weight: bold; /* 讓標題更突出 */
        font-size: 20px; /* 標題比其他字體稍大 */
    }

    .unread-count {
        position: absolute;
        font-size: 12px;
        top: -5px;
        right: 15px;
    }

    .user_progress .progress_title {
        font-size: 20px;
    }

    .user_progress .btn-primary {
        font-size: 24px;

        width: 60px;
        height: 60px;
    }

    .user_progress .progress_desc {
        font-size: 18px;
        font-weight: 400;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 14px;
    }

    .notificaiton-table {
        min-width: 350px !important;
    }

    .dropdown-menu-right {
        left: -150px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .exercise-info {
        gap: 10px;
    }

    .module-title {
        font-size: 18px;
        font-weight: 600;
    }
    .module-exercise-title {
        font-size: 16px;
        font-weight: 600;
    }

    .module-exercise-upload-btn {
        font-size: 1rem;
    }

    .progress-container {
        min-width: 150px;
    }

    .progress_sections {
        flex-direction: column;
        gap: 10px;
    }

    .user_progress {
        flex: 1 1 100%;
        width: 100%;
    }

    .user_progress:first-child {
        width: 100%;
    }

    .user_progress:first-child div {
        display: flex;
        justify-content: space-between !important;
        flex-wrap: wrap;
        gap: 15px;
    }

    .menu-item {
        padding: 20px 20px; /* 增加按鈕大小 */
    }

    .section__title {
        font-size: 1.15rem;
    }

    .recommend-video-title {
        font-family: "GenSenBold";
        font-size: 28px;
    }

    .exercise-video-list .card-title {
        font-size: 1.25rem;
    }

    .exercise-video-list .video-name {
        font-size: 1rem;
    }

    .unit-title h6 {
        margin-top: 10px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 500px) {
    .logo {
        max-height: 60px;
    }
}

@media screen and (max-width: 470px) {
    .fa-bell {
        font-size: 20px !important;
    }

    .logo {
        max-height: 42px;
    }

    .btn-radius-course {
        padding: 0.35rem 0.5rem;
        transform: scale(1.2);
    }

    .desktop-logo {
        display: none !important;
    }
    .mobile-logo {
        display: inline !important;
    }
}
