@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bayon&display=swap');


:root {
    --surface: #FFFFFF;
    --black: #1A1817;

    /* --- 品牌色 --- */
    --bs-primary: #1A3263; /* 深藍 - 主要按鈕、標題、重點 */
    --bs-secondary: #EF3A7B; /* 桃紅 - 強調、互動、次要按鈕 */
    --bs-success: #218838; /* 綠色 - 成功、通過 */
    --bs-info: #2A7D8F; /* 粉藍 - 輔助、訊息 */
    --bs-warning: #B8860B; /* 明黃 - 警示、提醒 */
    --bs-danger: #C0392B; /* 紅色 - 錯誤、危險 */
    --bs-light: #F8FAFC; /* 淡灰藍 - 背景 */
    --bs-dark: #1E293B; /* 深灰藍 - 標題、強調 */

    /* --- 藍灰階 (Slate Grayscale) --- */
    --gray-900: #0F172A; /* 極深文字：用於頁面大標題 */
    --gray-800: #1E293B; /* 主文字：用於表格內容、標籤 */
    --gray-600: #475569; /* 次要文字：用於說明文字、麵包屑、日期 */
    --gray-400: #94A3B8; /* 禁用/提示：用於 Placeholder、禁用按鈕 */
    --gray-300: #CBD5E1; /* 弱邊框：用於輸入框邊框 */
    --gray-200: #E2E8F0; /* 極弱邊框：用於表格分隔線、卡片外框 */
    --gray-100: #F1F5F9; /* 區塊背景：用於表格 Thead、搜尋列背景 */
    --bs-body-bg: #F8FAFC; /* 全域背景改為淡灰藍，增加呼吸感 */

    --bs-body-color: var(--bs-gray-800); /* 文字主色 */
    --bg-light: #F4F7FA;

    --sidebar-width: 260px;
    --shadow: 0 4px 12px rgba(26, 50, 99, 0.05);

    --bs-primary-rgb: 26, 50, 99;


    /* 特效 */
    --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);

    --banner-height-mobile: 16.25rem;
    --banner-height-tablet: 20rem;
    --banner-height-desktop: 20rem;

    /* navbar */
    --nav-bg-scrolled: rgba(255, 255, 255, 0.7);

    /* button */
    --btn-hover-transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --btn-hover-transform: translateY(-5px);
    --btn-hover-box-shadow: 0 15px 35px rgba(26, 50, 99, 0.3);
}


@font-face {
    font-family: "Space Grotesk";
    src: url(../assets/font/SpaceGrotesk-VariableFont_wght.ttf) format("truetype");
    font-weight: 500 700;
    font-style: normal;
}


/*===== MAIN LAYOUT =====*/
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    width: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--bs-body-color);
    font-family: "Noto Sans TC", "Heiti TC", "微軟正黑體", sans-serif;
    font-size: 16px;
}

body, html {
    min-height: 100vh;
}

.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}


:focus {
    outline: none;
}

figure {
    margin: 0;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: var(--bs-secondary);
}

:focus {
    outline: 2px dashed var(--gray-900) !important;
}

/* === ACCESSKEY === */
.accesskey {
    position: absolute !important;
    left: -30px;
    top: 0;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .25rem .125rem .25rem;
    color: var(--gray-300);
    z-index: 100;
}

.accesskey:focus {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}


.accesskey.u {
    top: 0;
    left: -1.25rem;
    /*background: rgba(26, 50, 99, 0.08);*/
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--gray-300) !important;
}

.accesskey.c {
    left: -2rem;
}


.content-full .accesskey.c {
    left: -20px; /* pl + 原定位 */
}

/* skip to main */
.jump-to-main {
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.jump-to-main:focus,
a.jump-to-main:active {
    color: white;
    background-color: var(--bs-primary);
    left: 50%;
    width: 200px;
    height: auto;
    overflow: auto;
    margin: 1rem auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1rem;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 999;
}

@media (max-width: 900px) {
    .accesskey,
    .jump-to-main {
        display: none !important;
    }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background-color: var(--nav-bg-scrolled) !important;
    backdrop-filter: blur(12px); /* 磨砂玻璃效果 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-top {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 0.75rem 1.5rem; /* 對齊 Hero 的內距 */
    transition: padding 0.3s ease;
}

/* Logo 區域樣式同步 */
.navbar-brand {
    display: flex;
    gap: .75rem;
    padding: 0;
    align-items: center;
    color: var(--gray-900);
    text-decoration: none;
    transition: all 0.3s ease; /* 捲動時的平滑過渡 */
}

.navbar-brand img {
    width: auto;
    height: 2.5rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.navbar-brand h1 {
    margin-bottom: 0;
    font-size: .75rem;
}

.menu-toggle {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    border: 1px solid transparent;
    background: url(../img/menu.svg) center no-repeat;

    transition: .3s ease;
    z-index: 1000;
}

.menu-toggle.is-open {
    background: url(../img/close.svg) center no-repeat;
    transition: .3s ease;
}


.navbar-nav {
    position: fixed;
    left: -100vw;
    top: 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    gap: 0;
    margin-left: auto;
    padding-top: 2rem;
    color: #ffffff;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 80px;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s cubic-bezier(.4, 0, .2, 1), transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.navbar-nav.show {
    display: flex;
    left: 0;
    opacity: 1;
    transform: translateX(0);
    overflow-y: scroll;
}


.navbar-top .navbar-nav a,
.navbar-top .navbar-nav .nav-group-title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 2.5rem;
    color: var(--black);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 2;
    transition: .3s ease;
}

.navbar-top .navbar-nav a {
    padding: .75rem 0 !important;
    border-bottom: 1px solid var(--gray-100);
}

.navbar-top .navbar-nav a.dropdown-item:hover,
.navbar-top .navbar-nav a.dropdown-item.active,
.navbar-top .navbar-nav a.dropdown-item:active {
    background-color: var(--gray-100);
}

.navbar-top .navbar-nav .nav-group-title {
    padding-top: .75rem;
    padding-bottom: .25rem;
}

.navbar-top .navbar-nav a.nav-item:after {
    content: "";
    width: 2.25rem;
    height: 2.25rem;
    margin-left: auto;
    background-image: url(../img/chev_right_circle.svg);
}

.navbar-top .navbar-nav a:hover {
    border-color: var(--bs-primary);
}

.navbar-top .navbar-nav a.active {
    color: var(--bs-primary);
}

.navbar-top .navbar-nav a.nav-group-item {
    padding: .25rem 0 !important;
    border-bottom: 0;
    color: var(--gray-400);
    font-size: 1rem;
}

.navbar-top .navbar-nav a.nav-group-item:last-child {
    padding-bottom: .75rem !important;
    border-bottom: 1px solid var(--gray-100);
}

.navbar-top .navbar-nav a.btn {
    margin-top: 1.5rem;
    justify-content: center;
    padding: .75rem 1rem !important;
    border-radius: 1rem;
    background-color: var(--bs-primary);
    color: #ffffff;
    font-weight: 500;
    line-height: 1.7;
}

.navbar-nav-wrapper {
    padding-bottom: 7.5rem;
    overflow-y: scroll;
}

.navbar-nav .nav-guide {
    margin-bottom: 2rem;
}

.navbar-nav .font-size-mode {
    display: flex;
    gap: 0;
}

.navbar-nav .font-size-mode .font-size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: .25rem;
    transition: var(--btn-hover-transition);
}

.navbar-nav .font-size-mode .font-size-btn:not(.active):hover,
.navbar-nav .font-size-mode .font-size-btn.active {
    background-color: var(--bs-primary);
    color: #ffffff;
}


@media (max-width: 899.99px) {
    .navbar-nav .nav-guide .btn-group {
        margin: 0 auto;
        width: 100%;
    }

    .navbar-nav .nav-guide .input-group {
        margin: 0 2.5rem;
    }
}

/* === 桌面版優化 (min-width: 900px) === */
@media (min-width: 900px) {
    .navbar {
        height: 6.5rem;
    }

    .navbar.scrolled {
        height: 5.5rem;
    }


    .navbar.scrolled .navbar-top {
        padding: 0.5rem 5.25rem; /* 滾動後高度微縮 */
    }

    .navbar-top {
        width: 100%;
        padding: 0 5.25rem;
    }

    .navbar-brand img {
        height: 4rem;
    }

    .navbar-brand h1 {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: none;
    }

    .navbar.scrolled .navbar-brand {
        gap: .25rem;
    }

    .navbar.scrolled .navbar-brand {
        transform: scale(0.9);
    }

    .navbar-nav {
        display: flex;
        position: relative;
        left: initial;
        width: auto;
        height: fit-content;
        align-items: flex-end;
        flex-direction: column !important;
        gap: .375rem;
        background-color: transparent;
        padding-top: 0;
        opacity: 1;
    }

    .navbar-nav .nav-wrapper {
        display: flex;
        position: relative;
        left: initial;
        width: auto;
        height: auto;
        gap: 1.25rem;
    }

    .navbar-nav .nav-guide {
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        gap: 0.75rem;
        opacity: 0.8;
    }

    .navbar-nav .nav-guide:hover {
        opacity: 1;
    }

    .navbar-nav .nav-guide .nav-link,
    .navbar-nav .nav-guide .btn-group button {
        font-size: 0.875rem !important;
        color: var(--gray-900);
        padding: 0 2px !important;
        border: none;
    }

    .navbar-top .navbar-nav a {
        text-decoration: none;
        position: relative;
        padding: 0 .125rem !important;
        margin: auto 0;
        color: var(--gray-900);
        border: 0;
        font-size: 1rem;
        line-height: 1.7;
        font-weight: 500;
        transition: .3s ease;
    }

    .navbar-top .navbar-nav a:hover {
        color: var(--bs-primary) ;
    }

    .navbar-nav .nav-item a.nav-link:hover {
        border-bottom: 2px solid var(--bs-primary);
    }

    .navbar-nav .dropdown {
        position: relative;
        height: fit-content;
        margin: auto;
    }

    .navbar-nav .dropdown .dropdown-toggle.show {
        color: var(--black);
    }

    /*.navbar-nav .dropdown .dropdown-toggle:after {*/
    /*    margin-left: .25rem;*/
    /*}*/
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        margin: .5rem 0;
        padding: .75rem 0;
        border-radius: .5rem;
        background-color: #FFFFFF;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding: .25rem 1rem !important;
        color: var(--black);
    }

    .navbar-nav .dropdown-menu .dropdown-divider {
        display: block;
    }

    #search_form .input-group {
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid rgba(26, 50, 99, 0.2);
    }

    #search_form .btn-primary {
        background-color: var(--bs-primary);
        border: none;
    }



}

/* === 行動版選單優化 (保持原本邏輯但美化) === */
@media (max-width: 899px) {
    .navbar {
        background-color: white !important; /* 手機版建議維持實色 */
    }

    .menu-toggle {
        filter: brightness(0.2); /* 確保在白色背景下清晰 */
    }
}



.carousel-controls {
    position: absolute;
    left: 2.5rem;
    top: 2.5rem;
    z-index: 2;
}

.carousel-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background: var(--bs-primary);
    border: none;
    color: #ffffff;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    opacity: .5;
    transition: opacity 0.3s ease-in;
}

.carousel-toggle:focus,
.carousel-toggle:hover {
    opacity: 1;
}


/* === LAYOUT === */
main {
    position: relative;
}

.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 8rem);
    /*padding-bottom: 2rem;*/
    background-color: var(--bs-body-bg);
    overflow: visible;
}

section {
    position: relative;
    padding: 3rem 1.5rem;
    margin: 0;
}

.container {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

@media (min-width: 900px) {
    .main-content {
        min-height: calc(60vh);
    }

    section {
        padding: 5rem 5.25rem;
    }

    section.wide {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    section.narrow {
        padding-left: 13.75rem;
        padding-right: 13.75rem;
    }

}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1370px;
    }
}


/* === FOOTER === */
footer {
    position: relative;
}

.footer {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5rem 1rem;
    background-color: var(--black);
    color: #ffffff;
    font-size: 1rem;
    font-family: "Space Grotesk", "Noto Sans TC";
    font-variation-settings: "wght" 400;
}

.footer :focus {
    outline: 2px dashed #ffffff !important
}

.footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10rem;
    font-size: .875rem;
}

.footer-nav {
    display: none;
    height: fit-content;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.footer a {
    height: fit-content;
    color: #ffffff;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 0;
}

.footer-info .info-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.footer-info .info-item .title {
    width: 6rem;
    text-align: right;
    color: var(--gray-200);
}

.footer-bottom {
    padding: 1rem 1rem;
    background-color: var(--black);
    border-top: 1px solid #ffffff;
    font-size: .75rem;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    color: #ffffff;
    font-size: .875rem;
}

.footer-bottom .container a {
    color: #ffffff;
    transition: color .3s ease;
}

.footer-bottom .container a:hover {
    color: var(--gray-200);
}

@media (min-width: 768px) {
    .footer {
        padding: 5rem 5.25rem;
    }

    .footer-bottom {
        padding: 1rem 5.25rem;
    }
}

@media (min-width: 900px) {
    .footer-nav {
        display: flex;
    }

    .footer-bottom .container {
        flex-direction: row;
    }
}


/* === CARD === */
.card {
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    border: none;
}

.card-body {
    padding: 1.5rem;
}

.card.card-empty {
    border: 1px solid var(--bs-primary);
    box-shadow: none;
}

.card.card-empty .card-body {
    text-align: center;
}

.card-title {
    margin-bottom: 1rem;
}

h3.card-title {
    float: none;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

h4.card-title {
    font-size: 1.25rem;
}

.empty-content {
    font-size: 1.125rem;
}


/* === Scroll to Top Button === */
.scroll-top {
    transition: 0.4s ease;
    z-index: 999;
}

.scroll-top .scroll-top-btn {
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--bs-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.125rem;
    opacity: .7;
    transition: var(--btn-hover-transition);
}

.scroll-top .scroll-top-btn:focus {
    outline-color: var(--black) !important;
}

.scroll-top .scroll-top-btn:focus,
.scroll-top .scroll-top-btn:hover {
    transform: var(--btn-hover-transform);
    box-shadow: var(--btn-hover-box-shadow);
    opacity: 1;
}

.scroll-top .scroll-top-btn svg {
    width: 2rem;
    height: 2rem;
    transform: rotate(180deg);
    fill: var(--bs-primary);
    transition: 0.4s ease;
}

.scroll-top .scroll-top-btn:hover svg,
.scroll-top .scroll-top-btn:focus svg {
    margin-bottom: 0.25rem;
}

.scroll-top .scroll-top-btn > span {
    position: absolute;
    font-size: 0.75rem;
    color: transparent;
}

@media (min-width: 900px) {
    .scroll-top .scroll-top-btn {
        width: 5rem;
        height: 5rem;
    }

    .scroll-top .scroll-top-btn:hover svg,
    .scroll-top .scroll-top-btn:focus svg {
        margin-bottom: 1rem;
    }


    /* === Mask Content === */
    .mask-content {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
}

.mask-content.active {
    display: block;
}


.section-content .filter-block-left {
    position: relative;
    display: none;
    max-width: 14rem;
    min-width: 12rem;
}

.section-content .filter-block-left .title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 700;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04rem;
}

.section-content .filter-block-left .title:before {
    content: "";
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    background-color: var(--bs-primary);
}

.section-content .filter-block-left .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    align-self: stretch;
}

.section-content .filter-block-left .content .filter-item {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 6.25rem;
    border: 1px solid var(--bs-primary);
    color: var(--black);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    transition: 0.3s ease;
}

.section-content .filter-block-left .content .filter-item:hover,
.section-content .filter-block-left .content .filter-item.active {
    background: var(--bs-primary);
}

@media (max-width: 899.99px) {
    .column-reverse-sm {
        flex-direction: column-reverse;
    }
}

@media (min-width: 900px) {
    .section-content .filter-block-left {
        display: block;
    }
}


.section-content {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding-top: 2.5rem;
    /*padding-bottom: 7.5rem;*/
    flex-wrap: wrap;
}

.section-content.section-content-with-aside {
    flex-wrap: initial;
}

#workshopInfo .section-content {
    padding-top: 1.5rem;
}

section.section-content {
    padding-top: 1rem;
}

.section-content-right {
    position: relative;
    display: flex;
    width: 100%;
    flex-grow: 1;
    flex-direction: column;
    gap: 1.5rem;
}

.section-content-right .title {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
}

:not(.single-wrapper) > .content-wrapper {
    width: 100%;
    /*margin-top: -.5rem;*/
    padding-bottom: 1rem;
}

@media (min-width: 900px) {
    .section-header .section-title {
        gap: 1rem;
        justify-content: center;
        background-size: calc(100vw - 5.25rem * 2 - 6.375rem);
        background-position-x: 6.375rem;
    }

    .section-header .section-title .section-title__zh {
        font-size: 4rem;
    }

    section.section-content {
        padding-top: 2.5rem;
    }

    .section-content.section-content-with-aside {
        gap: 5rem;
    }

    .section-content-right {
        width: auto;
    }

    .section-content {
        padding-top: 3rem;
    }
}

@media (min-width: 1440px) {
    .section-header .section-title {
    }
}

/* === FORM === */
input[type="checkbox"] {
    box-sizing: border-box;
    width: 1rem;
    height: 1rem;
    margin: 0.25rem;
    padding: 0;
    border: 2px solid var(--gray-300);
    appearance: none;
    background-color: transparent;
    border-radius: 0.125rem;
    outline: none;
    transition: outline 0.1s;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-image: url("../assets/fontawesome-free-7.1.0/svg/check.svg");
    background-color: var(--bs-primary);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

input[type="checkbox"]:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

input[type="checkbox"]:disabled:checked {
    background-color: var(--gray-100);
}

input[type="checkbox"]:focus {
    outline-offset: 0.25rem;
}

@media (hover: hover) {
    input[type="checkbox"]:not(:disabled):hover {
        border-color: var(--bs-primary);
    }
}

.form-block {
    width: 100%;
}

.form-block.form-inline {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;

    span.select2 .select2-selection {
        display: block;
    }
}

.filter-block-top .form-block.form-inline {
    margin-bottom: 0.75rem;
}

.form-block.form-inline .btn {
    position: absolute;
    display: flex;
    right: 0;
    top: 50%;
    height: 100%;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

.form-block.form-inline .btn:hover {
    background-color: var(--bs-primary);
    color: #ffffff;
    border-color: var(--bs-primary);
);
}

/* overwrite php form 自動加入的.mb-3*/
.form-block .mb-3 {
    width: 100%;
    margin-bottom: 0 !important;
}

.form-label.required:after {
    content: "*";
    color: var(--bs-danger);
    padding-left: 0.125rem;
    font-weight: normal;
}

label {
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    font-size: 1rem;
    border-radius: 0.75rem;
    appearance: none;
}

.form-control,
.form-select {
    padding: 0.875rem 1rem !important;
    border: 1px solid var(--bs-primary);
}

.form-container,
.form-control,
.form-select {
    background-color: #ffffff;
    color: var(--black);
    line-height: 1.7 !important;
    transition: 0.3s ease;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.input-group-sm .form-control,
.form-control.form-control-sm {
    padding: 0.375rem 1rem !important;
    font-size: 1rem;
}

.form-container.disabled,
.form-container:disabled {
    background-color: var(--gray-100);
    color: var(--gray-300);
    cursor: not-allowed;
}

.form-container::placeholder {
    color: var(--gray-400);
}

.form-container:hover {
    border-color: var(--bs-primary);
}

input.form-container {
    width: 15rem;
}

button.form-container {
    background-color: transparent;
}

select {
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    outline: none;
    background-color: #ffffff;
    background-image: none;
}

select.form-container,
select.form-select,
input.form-container {
    padding-right: 3rem !important;
}

select.form-container,
select.form-select {
    width: 100%;
    background: url(../assets/fontawesome-free-7.1.0/svg/chevron-down.svg) no-repeat #ffffff right 1rem center;
    border-radius: .75rem;
    background-size: 1.5rem
}

select.form-container:focus,
select.form-select:focus {
    min-width: 10rem;
    background: url(../assets/fontawesome-free-7.1.0/svg/chevron-up.svg) no-repeat #ffffff right 1rem center;
    border-color: var(--bs-primary);
    background-size: 1.5rem;
    box-shadow: none;
}

.form-control:focus,
.form-control:active,
.form-container:focus,
.form-container:active {
    background-color: var(--bs-body-bg);
    box-shadow: none;
    border-color: var(--bs-primary);
}

.form-container::placeholder {
    color: var(--gray-400);
}

@media (min-width: 900px) {
    .form-block {
        width: auto;
    }

    .form-block.form-inline {
        gap: 0.75rem;
    }

    .form-block.form-md-inline {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
        align-items: center;
        white-space: nowrap;
    }

    .filter-block-top .form-block.form-inline {
        position: relative;
        margin-bottom: 0;
    }

    .filter-block-top .form-block.form-inline label {
        position: absolute;
        top: 50%;
        left: 1rem;
        font-size: .875rem;
        transform: translateY(-50%);
        transition: transform 0.3s ease, top 0.3s ease, left 0.3s ease;
        z-index: 1;
    }

    .filter-block-top .form-block.form-inline.has-value label,
    .filter-block-top .form-block.form-inline:hover label {
        top: -1rem;
        left: 0
    }

    .form-container {
        border: 1px solid var(--bs-primary);
    }

    .form-container {
        padding: 0.875rem 1rem 0.875rem 1.5rem !important;
    }

    select.form-container,
    select.form-select {
        min-width: 10rem;
        width: auto;
    }
}

/* SWITCH */
.form-switch {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 0.75rem;
}

.form-switch button.form-container {
    position: relative;
    padding: 0.25rem 0.5rem;
    color: var(--black);
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.form-switch button.form-container:first-child:after {
    content: "";
    position: absolute;
    display: block;
    right: 0;
    top: 50%;
    width: 1px;
    height: 1rem;
    background-color: var(--black);
    transform: translateY(-50%);
}

.form-switch button.form-container.active {
    color: var(--bs-primary);
}

@media (min-width: 900px) {
    .form-switch {
        justify-content: center;
        margin-top: 0;
    }

    .form-switch button.form-container {
        border: 1px solid var(--bs-primary);
        border-radius: 6.25rem;
    }

    .bg-primary .form-switch button.form-container {
        border: 1px solid #ffffff;
    }

    .form-switch button.form-container:first-child:after {
        display: none;
    }

    .form-switch button.form-container.active,
    .form-switch button.form-container:hover {
        color: var(--black);
        background-color: var(--bs-primary);
    }

    .bg-primary .form-switch button.form-container.active,
    .bg-primary .form-switch button.form-container:hover {
        background-color: #ffffff;
    }

    .form-switch button.form-container:first-child {
        padding-right: 1rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .form-switch button.form-container:last-child {
        padding-left: 1rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-switch button.form-container:not(:first-child) {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
        margin-left: -1px;
        border-left: 0;
    }
}

.form-label {
    font-weight: 500;
    line-height: 1.7;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0;
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: none;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:active {
    filter: initial;
}

.form-check-input:active[type="radio"],
.form-check-input:checked[type="radio"] {
    position: relative;
    background-image: none;
    background-color: transparent;
}

.form-check-input:active[type="radio"]:after,
.form-check-input:checked[type="radio"]:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--bs-primary);
    transform: translate(-50%, -50%);
}

/* CUSTOM FORM CONTAINER */
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 0 auto 2.5rem;
}

.form-wrapper button {
    width: 10rem;
    margin-top: 1rem;
}

.form-wrapper .form-block.form-inline {
    margin-bottom: 2rem !important;
}

.form-wrapper .form-label {
    flex-grow: 1;
    font-weight: 500;
}

.form-wrapper .form-block.form-inline .form-label {
    margin-bottom: 0;
}

.form-wrapper .form-container {
    width: 24rem;
}

@media (min-width: 900px) {
    .form-wrapper {
        width: 29.5rem;
        margin: 0 auto 5rem;
    }
}

/* FILE UPLOAD DISPLAY*/
.file-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    flex-basis: calc(50% - 1.25rem / 2);
    padding: 1rem 1.25rem;
    border: 1px solid var(--bs-primary);
    border-radius: 0.5rem;
    color: var(--gray-400);
    transition: 0.3s ease;
}

.file-item:hover {
    background-color: var(--bs-body-bg);
}

.file-item:after {
    content: "";
    width: 2.375rem;
    height: 1.5rem;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/download.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--bs-primary);
    transition: 0.3s ease;
}

/*== TABLE ==*/
/* include ckeditor table */
.content .c-tb-table,
.content .table {
    padding-bottom: 2rem;
}

.c-tb-table,
.content table {
    border-radius: 0.25rem;
    border-collapse: separate;
    border-spacing: 0;
}

.c-tb-thead,
.content table thead {
    display: none;
    width: 100%;
    background: var(--bs-primary);
    color: var(--black);
    border-collapse: collapse;
}

.content table thead tr {
    background-color: transparent;
    color: var(--black);
}

.content table tbody tr th,
.content table thead tr th {
    font-weight: bold;
    background-color: var(--bs-primary);
}


.c-tb-thead,
.c-tb-tbody,
.content table thead,
.content table tbody {
    vertical-align: middle;
}

.c-tb-table .c-tb-tbody:not(:first-child) {
    margin-bottom: 1rem;
}

.c-tb-tbody .c-tb-tr,
.content table tr {
    color: var(--black);
}

.c-tb-tbody .c-tb-tr:first-child th,
.content table tr:first-child th,
.c-tb-tbody .c-tb-tr:first-child td,
.content table tr:first-child td {
    border-top: 1px solid var(--bs-primary);
}

.c-tb-tbody .c-tb-tr:not(:first-child),
.content table tr:not(:first-child) {
    margin-top: 1rem;
}

.c-tb-thead .c-tb-th,
.c-tb-tbody .c-tb-th,
.c-tb-tbody .c-tb-td,
.content table th,
.content table td {
    display: flex;
    padding: 0.5rem 1rem;
    text-align: left;
    vertical-align: middle;
    line-height: 1.7;
}

.c-tb-tbody .c-tb-tr .c-tb-td,
.content table th,
.content table td {
    width: 100%;
    border-bottom: 1px solid var(--bs-primary);
}

.c-tb-tbody .c-tb-tr .c-tb-td:last-child {
    border-color: var(--bs-primary);
}

.c-tb-tbody .c-tb-tr .c-tb-td:before {
    content: attr(data-label);
    display: inline-flex;
    width: 6rem;
    min-width: 6rem;
    color: var(--bs-primary);
}

.content table {
    width: 100%;
}

@media (min-width: 768px) {
    .c-tb-thead,
    .content table thead {
        display: table-header-group;
    }

    .c-tb-thead,
    .c-tb-tbody,
    .content table thead,
    .content table tbody {
        vertical-align: middle;
        border-color: inherit;
    }

    .c-tb-tbody,
    .content table tbody {
        display: table-row-group;
    }

    .c-tb-tr,
    .content table tr {
        display: table-row;
        vertical-align: inherit;
        border-color: inherit;
    }

    .c-tb-thead .c-tb-th,
    .c-tb-tbody .c-tb-th,
    .c-tb-tbody .c-tb-td,
    .content table th,
    .content table td {
        display: table-cell;
        text-align: center;
    }

    .c-tb-tbody .c-tb-td.c-tb-title {
        text-align: left;
    }

    .c-tb-tbody .c-tb-tr .c-tb-td,
    .content table th,
    .content table td {
        width: auto;
        border-color: var(--bs-primary) !important;
    }

    .c-tb-tbody .c-tb-tr:last-child .c-tb-td,
    .content table tbody tr:last-child th,
    .content table tr:last-child td {
        border-bottom-color: var(--bs-primary) !important;
    }

    .c-tb-tbody .c-tb-tr .c-tb-td:before {
        display: none;
    }
}

/*== JCONFIRM ==*/
.frontend .jconfirm .jconfirm-bg {
    background: rgba(26, 24, 23, 0.8);
    opacity: initial;
}

.frontend .jconfirm .jconfirm-box {
    width: calc(100vw - 2.5rem);
    margin: auto;
    padding: 1.5rem 1.25rem !important;
    border-radius: 1rem;
}

.frontend .jconfirm .jconfirm-box div.jconfirm-title-c {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.625;
}

.frontend .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.frontend .jconfirm .jconfirm-box div.jconfirm-content-pane {
    margin-bottom: 1.5rem;
    overflow-y: scroll;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0;
    float: initial;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button {
    padding: 0.5rem 2.5rem !important;
    margin: 0;
    background: var(--bs-primary);
    color: #ffffff;
    border: 1px solid var(--bs-primary);
    font-size: 1rem !important;
    line-height: 1.75;
    font-weight: normal !important;
    transition: 0.3s ease;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default {
    background: #ffffff !important;
    color: var(--black);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover {
    background: #ffffff;
    border-color: var(--bs-primary);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

@media (min-width: 900px) {
    .frontend .jconfirm .jconfirm-box {
        width: 100%;
        padding: 2.5rem !important;
    }
}


/* ALBUM CAROUSEL */
.album .owl-carousel .owl-stage {
    padding-left: 0 !important;
}

.album .owl-carousel .owl-item figure,
.album .album-grid .album-item figure {
    position: relative;
    width: 100%;
    padding-top: 75%;
}

.album .owl-carousel .owl-item img,
.album .album-grid .album-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 1rem;
    object-fit: cover;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    overflow: hidden;
}

.album .owl-carousel .owl-item .content {
    display: none;
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.album .owl-carousel .owl-item.active .content {
    display: block;
}

.album .owl-carousel .owl-nav {
    position: absolute;
    display: flex;
    top: calc(100% + 1.875rem);
    gap: 1rem;
    margin: 0;
}

.album .owl-carousel .owl-nav button.owl-next,
.album .owl-carousel .owl-nav button.owl-prev {
    position: relative;
    left: 0;
    width: 2.5rem;
    margin: 0;
    height: 2.5rem;
    background-color: transparent;
    border-radius: 50%;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
}

.album .owl-carousel .owl-nav button.owl-next:before,
.album .owl-carousel .owl-nav button.owl-prev:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/chevron-right.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: 1.5rem;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--bs-primary);
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}

.album .owl-carousel .owl-nav button.owl-prev:before {
    --svg: url(../assets/fontawesome-free-7.1.0/svg/chevron-left.svg);
}

.album .owl-carousel .owl-nav button.owl-next:not(.disabled):hover,
.album .owl-carousel .owl-nav button.owl-prev:not(.disabled):hover {
    background-color: var(--bs-primary);
}

.album .owl-carousel .owl-nav button.owl-next:not(.disabled):hover:before,
.album .owl-carousel .owl-nav button.owl-prev:not(.disabled):hover:before {
    background-color: #ffffff;
}

.album .owl-carousel .owl-nav button.owl-next:not(.disabled):hover:before {
    transform: translate(calc(-50% + 0.25rem), -50%);
}

.album .owl-carousel .owl-nav button.owl-prev:not(.disabled):hover:before {
    transform: translate(calc(-50% - 0.25rem), -50%);
}

.album .owl-carousel .owl-nav button.owl-next.disabled,
.album .owl-carousel .owl-nav button.owl-prev.disabled {
    border-color: var(--gray-200);
    color: var(--gray-200);
    cursor: not-allowed;
}

.album .owl-carousel .owl-nav button.owl-next.disabled:before,
.album .owl-carousel .owl-nav button.owl-prev.disabled:before {
    background-color: var(--gray-200) !important;
}

/* ALBUM  GRID */
.album-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.album-grid .album-item {
    flex: 0 0 auto;
    width: 100%;
}

.album-grid .album-item .album-item__title {
    position: relative;
    display: -webkit-box;
    margin: 1rem 0;
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1.6;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: font-weight 0.35s ease-in;

}

.album-grid .album-item .album-item__title.forward-icon:after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translate(0, -50%);
    transition: transform 0.3s;
}

.album-grid .album-item:hover .album-item__title.forward-icon:after {
    transform: translate(1rem, -50%);
}

@media (min-width: 900px) {
    .album-grid .album-item {
        width: calc((100% - 3rem) / 4); /* default 4個一排*/
    }

    .album .owl-carousel .owl-item figure, .album .album-grid .album-item figure {
        transition: transform 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
    }

    .album .owl-carousel .owl-item:hover figure, .album .album-grid .album-item:hover figure {
        transform: scale(1.1);
    }

    .album-grid .album-item:hover .album-item__title {
        font-weight: bold;
    }
}

/* === CUSTOM FULL CALENDAR === */
.custom-calendar {
    padding: 0 !important;
}

.custom-calendar.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px dashed var(--bs-primary);
}

.custom-calendar.fc .fc-toolbar-title {
    font-family: "Space Grotesk", "Noto Sans TC";
    font-variation-settings: "wght" 700;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.5;
}

.custom-calendar.fc .fc-button-group {
    gap: 0.5rem;
}

.custom-calendar.fc .fc-button-primary {
    padding: 1.25rem;
    background-color: transparent;
    border-color: transparent;
    color: var(--black);
    font-size: 1rem;
    line-height: 1.375;
}

.custom-calendar.fc-direction-ltr .fc-button-group > .fc-button {
    display: flex;
    transition: 0.3s ease;
}

.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:not(:first-child),
.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:not(:last-child) {
    border-radius: 0.25rem;
}

.custom-calendar.fc-direction-ltr .fc-button-group > .fc-button:first-child {
    padding-left: 0.75rem;
}

.custom-calendar.fc-direction-ltr .fc-button-group > .fc-button:last-child {
    padding-right: 0.75rem;
}

.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:first-child:before {
    content: "";
    width: 1rem;
    height: 1rem;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/chevron-left.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--black);
    transition: 0.3s ease;
}

.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:last-child:after {
    content: "";
    width: 1rem;
    height: 1rem;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/chevron-right.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--black);
    transition: 0.3s ease;
}

.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:first-child:not(:disabled):hover:before,
.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:last-child:not(:disabled):hover:after,
.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:first-child:not(:disabled):active:before,
.custom-calendar.fc-direction-ltr
.fc-button-group
> .fc-button:last-child:not(:disabled):active:after {
    background-color: var(--bs-primary);
}

.custom-calendar.fc .fc-button-primary:focus,
.custom-calendar.fc .fc-button-primary:not(:disabled):hover,
.custom-calendar.fc .fc-button-primary:not(:disabled).fc-button-active,
.custom-calendar.fc .fc-button-primary:not(:disabled):active {
    background-color: transparent;
    border-color: transparent;
    color: var(--bs-primary);
    box-shadow: none;
}

.custom-calendar.fc .fc-scrollgrid-liquid {
    border: none;
}

.custom-calendar.fc-theme-standard th {
    color: var(--bs-primary);
    background-color: transparent;
    color: var(--black);
    border: none;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.375;
}

.custom-calendar.fc-theme-standard td {
    border: 1px solid var(--bs-primary);
}

.custom-calendar .fc-scrollgrid-section-header .fc-scroller {
    margin-bottom: 0.5rem;
}

.custom-calendar.fc table {
    border: none;
    font-size: 0.875rem;
    line-height: 1.375;
}

.custom-calendar.fc .fc-daygrid-body tbody {
    background-color: #ffffff;
}

.custom-calendar.fc .fc-daygrid-day {
    transition: 0.3s ease;
}

.custom-calendar.fc .fc-daygrid-day.active {
    background-color: var(--bs-primary);
}

.custom-calendar.fc .fc-daygrid-day-top {
    padding: 0.5rem 0.5rem 0;
    justify-content: center;
}

.custom-calendar.fc .fc-daygrid-day-top a {
    color: var(--black);
    padding: 0;
    line-height: 1.625;
}

.custom-calendar.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 1;
}

.custom-calendar.fc .fc-day-other .fc-daygrid-day-top a {
    color: var(--gray-300);
    font-family: "Space Grotesk", "Noto Sans TC";
    font-variation-settings: "wght" 400;
    font-weight: 400;
}

.custom-calendar.fc .fc-daygrid-day.fc-day-today {
    background-color: transparent;
}

.custom-calendar.fc .fc-daygrid-event {
    margin: 0.125rem 0.625rem;
    background-color: transparent;
    color: var(--black);
    border-color: transparent;
    transition: 0.3s ease;
}

.custom-calendar.fc .fc-daygrid-event.fc-h-event {
    background-color: rgba(250, 242, 231, 0.5);
}

.custom-calendar.fc .fc-daygrid-event {
    font-size: 0.875rem;
    line-height: 1.5;
}

.custom-calendar.fc .fc-daygrid-day-events {
    display: flex;
    height: 1.25rem;
    min-height: 1.25rem;
    flex-direction: column;
    margin: 0;
}

.custom-calendar .fc-h-event .fc-event-main {
    color: var(--black);
}

.custom-calendar .fc-daygrid-event-dot {
    display: none;
}

.custom-calendar .fc .fc-daygrid-day-frame {
    height: 3.25rem;
}

.custom-calendar .fc-daygrid-dot-event .fc-event-title {
    font-weight: 400;
}

@media (max-width: 899.99px) {
    .custom-calendar .fc-daygrid-event {
        font-size: 0.375rem;
        line-height: 1.5;
    }

    .custom-calendar.fc .fc-daygrid-day-top {
        position: relative;
        height: 2rem;
        z-index: 10;
    }

    .has-event {
        position: absolute;
        left: 0;
        top: -2.25rem;
        width: 100%;
        height: 3.25rem;
        margin: 0 !important;
        border-radius: 0;
    }

    .has-event .fc-event-title {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .has-event .fc-event-title:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 2.25rem;
        width: 0.25rem;
        height: 0.25rem;
        border-radius: 0.25rem;
        background-color: var(--bs-primary);
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    .custom-calendar.fc .fc-button-primary {
        padding: 1rem;
    }

    .custom-calendar.fc-direction-ltr
    .fc-button-group
    > .fc-button:first-child:before,
    .custom-calendar.fc-direction-ltr
    .fc-button-group
    > .fc-button:last-child:after {
        width: 1.5rem;
        height: 1.5rem;
    }

    .custom-calendar.fc .fc-daygrid-day-top {
        padding: 0.75rem 0.625rem 0;
        line-height: 1.75;
    }

    .custom-calendar.fc .fc-daygrid-day-top a {
        color: var(--bs-primary);
    }

    .custom-calendar.fc .fc-daygrid-day-top a,
    .custom-calendar.fc .fc-day-other .fc-daygrid-day-top a {
        font-variation-settings: "wght" 500;
        font-weight: 500;
    }

    .custom-calendar.fc table {
        font-size: 1rem;
    }

    .custom-calendar.fc .fc-daygrid-day-events {
        min-height: 4.5rem;
        height: auto;
        margin-top: 0.5rem;
    }

    .custom-calendar.fc .fc-daygrid-event:hover {
        background-color: var(--bs-primary);
    }
}

/* Calendar event - mobile view*/
.custom-calendar .date {
    margin-bottom: 0.25rem;
    color: var(--bs-primary);
    font-size: 0.875rem;
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 400;
    font-weight: 400;
    line-height: 1.7;
}

.custom-calendar:not(:first-child) .date {
    padding-top: 1.5rem;
}

.custom-calendar .event-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.custom-calendar .event-block {
    position: relative;
    padding: 0.5rem 0.75rem 0.5rem 1.625rem;
    background-color: #ffffff;
    color: var(--black);
    border: 1px solid var(--bs-primary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 400;
}

.custom-calendar .event-block:before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 1rem;
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 0.375rem;
    background-color: var(--bs-primary);
}

.bad input,
.bad select,
.bad textarea {
    position: relative;
    left: 0;
}

.bad input,
.bad select,
.bad textarea,
.bad .custom-control-label::before,
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border: 1px solid var(--bs-danger);
    -webkit-box-shadow: 0 0 4px -2px var(--bs-danger);
    box-shadow: 0 0 4px -2px var(--bs-danger);
    -moz-animation: 0.7s 1 shake linear;
    -webkit-animation: 0.7s 1 shake linear;
}


/* === MAIN CONTENT （首頁） === */
.section-title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: fit-content;
    /*margin-bottom: 3rem;*/
    color: var(--black);
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 700;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.625;
    z-index: 10;
}

.section-title > span {
    width: fit-content;
}

.section-title .section-title__en {
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 700;
    font-size: 24rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(26, 50, 99, 0.04);
    position: absolute;
    right: -5%;
    bottom: -6rem;
    line-height: 1;
    z-index: 0;
    letter-spacing: -0.05em;
    user-select: none;
}

.section-title .section-title__zh {
    color: var(--bs-primary);
    font-family: Noto Sans TC;
    font-weight: 800;
}

.section-title .section-title__zh::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: -10px;
    width: 110%;
    height: 18px;
    background: rgba(69, 143, 161, 0.2);
    z-index: -1;
    transform: skewX(-15deg);
}

@media (min-width: 900px) {
    .section-title {
        font-size: 2rem;
        line-height: 1.5;
    }

    .section-title .section-title__zh::after {
        bottom: 10px;
    }
}


/* === 共用 - 子頁 === */
.section-header {
    position: relative;
    width: 100%;
    height: var(--banner-height-mobile);
    background: var(--bs-body-bg);
    border-bottom: 1px solid rgba(26, 50, 99, 0.05);
    overflow: hidden;
}

.section-header.section-header-sm {
    height: fit-content;
    padding: .75rem 5.25rem;
    background: transparent;
}

.section-header .section-title {
    position: absolute;
    display: flex;
    left: 50%;
    top: 50%;
    gap: 0;
    align-items: center;
    justify-content: center;
    /*background: url(../img/visual-element/page-banner.svg) no-repeat;*/
    background-size: 100%;
    transform: translate(-50%, -50%);
}


.section-header .section-title .section-title__zh {
    font-size: 2.25rem;
    line-height: 1.35;
}

.section-content {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding-top: 2.5rem;
    /*padding-bottom: 7.5rem;*/
    flex-wrap: wrap;
}

.section-content.section-content-with-aside {
    flex-wrap: initial;
}

#workshopInfo .section-content {
    padding-top: 1.5rem;
}

section.section-content {
    padding-top: 1rem;
}

.section-content-right {
    position: relative;
    display: flex;
    width: 100%;
    flex-grow: 1;
    flex-direction: column;
    gap: 1.5rem;
}

.section-content-right .title {
    margin-right: 3rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
}

:not(.single-wrapper) > .content-wrapper {
    width: 100%;
    /*margin-top: -.5rem;*/
    padding-bottom: 1rem;
}

@media (min-width: 900px) {
    .section-header {
        padding: 16rem 5.25rem 9rem;
    }

    .section-header .section-title {
        gap: 1rem;
        padding-bottom: 1rem;
        justify-content: center;
        background-size: calc(100vw - 5.25rem * 2 - 6.375rem);
        background-position-x: 6.375rem;
    }

    .section-header .section-title .section-title__zh {
        font-size: 4rem;
    }

    section.section-content {
        padding-top: 2.5rem;
    }

    .section-content.section-content-with-aside {
        gap: 5rem;
    }

    .section-content-right {
        width: auto;
    }

    .section-content {
        padding-top: 1.5rem;
    }
}

@media (min-width: 1440px) {

}

/* 上方篩選列 */
.filter-block-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 899.99px) {
    .filter-block-top.column-reverse-sm {
        gap: 0;
    }
}

@media (min-width: 900px) {
    .filter-block-top {
        align-items: center;
        flex-direction: row;
    }
}

/* 左側篩選列 */
.section-content .filter-block-left {
    position: relative;
    display: none;
    max-width: 14rem;
    min-width: 12rem;
}

.section-content .filter-block-left .title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 700;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04rem;
}

.section-content .filter-block-left .title:before {
    content: "";
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    background-color: var(--bs-primary);
}

.section-content .filter-block-left .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    align-self: stretch;
}

.section-content .filter-block-left .content .filter-item {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 6.25rem;
    border: 1px solid var(--bs-primary);
    color: var(--black);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    transition: 0.3s ease;
}

.section-content .filter-block-left .content .filter-item:hover,
.section-content .filter-block-left .content .filter-item.active {
    background: var(--bs-primary);
    color: var(--black);
}

@media (max-width: 899.99px) {
    .column-reverse-sm {
        flex-direction: column-reverse;
    }
}

@media (min-width: 900px) {
    .section-content .filter-block-left {
        display: block;
    }
}

/* 單一 block 頁面 */
.single-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    padding: 2.5rem 1.25rem 5rem 1.25rem;
    margin-bottom: 2.5rem;
    flex-direction: column;
    border-radius: 2.5rem 0.5rem 0.5rem 0;
    background: var(--bs-body-bg);
    clip-path: polygon(0px 0px, 100% 0%, 100% 100%, 0% calc(100% - 5rem));
}

.single-wrapper > .title {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-primary);
    margin-bottom: 1.5rem;
    color: var(--black);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
}

.single-wrapper .header {
    margin-bottom: 1.5rem;
}

.single-wrapper .content {
    display: flex;
    flex-direction: column;
    gap: 1rem 2.5rem;
    margin-bottom: 2.5rem;
}

.single-wrapper .content .card-title {
    line-height: 1.7;
}


@media (max-width: 899.99px) {
    .section-content .single-wrapper {
        padding-top: 1rem;
    }

    .section-content .single-wrapper .list-item {
        -webkit-line-clamp: 3;
    }

    .section-content .single-wrapper .list-item.info {
        flex-direction: row;
    }

    .section-content .single-wrapper .list-item.info .date {
        width: 100%;
    }
}

@media (min-width: 900px) {
    .single-wrapper,
    .single-wrapper.tab-wrapper {
        padding: 2.5rem 5rem 7.5rem 5rem;
        margin: 0;
        clip-path: polygon(0px 0px, 100% 0%, 100% 100%, 0% calc(100% - 7.5rem));
    }

    .single-wrapper > .title {
        margin-bottom: 3rem;
        font-size: 2rem;
        line-height: 1.5;
    }

    .single-wrapper .header {
        margin-bottom: 3rem;
    }

    .single-wrapper .header,
    .single-wrapper .content {
        padding: 0 5rem;
    }

    .single-wrapper .content {
        flex-direction: row;
        margin-bottom: 5rem;
    }

    /* 首頁使用 */
    .section-content .single-wrapper .list-item {
        gap: 1.5rem;
    }
}

.content .card-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-basis: calc(50% - .5rem);
    padding: 1.5rem 1rem;
    border: 1px solid var(--bs-primary);
    border-radius: 1rem;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content .card-block:not(.disabled):hover {
    background: var(--bs-primary);
    color: var(--black);
}

.content .card-block.disabled {
    cursor: initial;
}

.content .card-block .card-content {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
}


@media (max-width: 767.99px) {
    .section-content__full {
        margin-top: 1rem;
    }
}

.section-content__full {
    position: relative;
    margin-top: -8rem;
    padding: 0 1.25rem 7.5rem;
    border-top-left-radius: 2.5rem;
    overflow: hidden;
}

.section-content__full:before {
    content: "";
    position: absolute;
    left: 0;
    top: 15rem;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

.section-content__full .content-wrapper {
    position: relative;
    padding: 0;
}

.content-wrapper .header,
.section-content__full .header,
.single-wrapper .header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-wrapper .header,
.section-content__full .header {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 0.0625rem dashed var(--bs-primary);
}

.section-content__full .header .date {
    color: var(--gray-400);
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 500;
    line-height: 1.7;
}

.content-wrapper .header .title,
.section-content__full .header .title,
.single-wrapper .header .title {
    color: var(--bs-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
}

.single-wrapper .header .title {
    font-size: 1.5rem;
}

.section-content__full .header .info,
.single-wrapper .header .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

.section-content__full .header .info .info-item,
.single-wrapper .header .info .info-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.7;
}

.section-content__full .header .info .info-item .info-item__title,
.single-wrapper .header .info .info-item .info-item__title {
    font-weight: 500;
}

.section-content__full .content {
    margin-bottom: 0.5rem;
}

.content .content-title {
    padding-top: 0.5rem;
    padding-bottom: .5rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
}

.section-content__full .content .file-block {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding-bottom: 2rem;
}

.section-content__full .content a {
    /*display: flex;*/
    color: var(--bs-primary);
}

.section-content__full .content a.text-link {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}

.section-content__full .content a.text-link.forward-icon:after {
    width: 1.25rem;
    height: 1.25rem;
}

.section-content__full .content a.text-link.forward-icon:hover:after {
    margin-left: 0.5rem;
}

.section-content__full .content p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.section-content__full .content table p {
    margin-bottom: 0;
}

.section-content__full .bottom,
.section-content .bottom {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

@media (max-width: 899.99px) {
    .section-content__full .header .info.flex-row-sm,
    .single-wrapper .header .info.flex-row-sm {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
}


@media (min-width: 900px) {
    .section-content__full {
        padding: 0 15rem 10rem;
        border-top-left-radius: 3.5rem;
    }

    .content-wrapper .header .title,
    .section-content__full .header .title,
    .single-wrapper .header .title {
        font-size: 2.5rem;
    }

    .content-wrapper .header .info,
    .section-content__full .header .info,
    .single-wrapper .header .info {
        flex-direction: row;
        align-items: center;
    }

    .content-wrapper .header .info .info-item:not(:last-child):after,
    .section-content__full .header .info .info-item:not(:last-child):after,
    .single-wrapper .header .info .info-item:not(:last-child):after {
        content: "";
        position: absolute;
        right: -1rem;
        top: 50%;
        width: 1px;
        height: 0.75rem;
        background-color: var(--black);
        transform: translateY(-50%);
    }

    .content-wrapper .content .content-title {
        margin-bottom: 1rem;
        font-size: 2rem;
        line-height: 1.5;
    }

    .content-wrapper .content .owl-single,
    .section-content__full .content .owl-single {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .content-wrapper .content .file-block,
    .section-content__full .content .file-block {
        flex-direction: row;
    }
}

/* === LIST VIEW === */
.list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tab-panel .list,
.single-wrapper .list {
    margin-bottom: 2.5rem;
}

.list-wrapper {
    gap: 0;
}

.list-wrapper .list-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.list-row {
    position: relative;
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--bs-primary);
    color: var(--black);
    overflow: hidden;
    transition: 0.3s ease;
    cursor: pointer;
}

.list-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--bs-primary);
    transition: width 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
    pointer-events: none;
    z-index: 1;
}

.list-row:hover::after {
    width: 100%;
}

.list-row:hover {
    border-bottom-color: var(--bs-primary);
}

.content-wrapper .list-left {
    display: flex;
    flex-direction: column;
    max-width: 50rem;
    width: 100%;
    flex: 1;
}

.list-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-direction: column;
    flex-wrap: wrap;
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.6;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.list-item .date {
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 500;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.7;
}

.list-item .badge-group {
    display: flex;
    gap: 0.5rem;
}

.list-item .badge {
    display: flex;
    width: fit-content;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    color: var(--black);
    background: var(--bs-primary);
    gap: 0.5rem;
    border-radius: 3.125rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.list-item.title {
    display: -webkit-box;
    /*flex: 1 0 0;*/
}

.list-item.description {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
}

.list-item .badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.75rem;
}

.content-wrapper .list-left .list-item.title {
    color: var(--black);
    flex: auto;
    text-align: left;
}

.content-wrapper .list-left .list-item.title a {
    width: 100%;
}

.list-row .action {
    position: absolute;
    right: .5rem;
    top: 50%;
    display: none;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/arrow-right.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    background-color: var(--bs-primary);
    transform-origin: left center;
    transform: translateY(-50%);
    transition: background-color 0.35s cubic-bezier(.68, -0.55, .27, 1.55),
    transform 0.35s cubic-bezier(.68, -0.55, .27, 1.55),
    box-shadow 0.35s cubic-bezier(.68, -0.55, .27, 1.55);
    transition-delay: 0s, 0.08s, 0.08s;
}

.list-row:hover .action {
    background-color: var(--bs-primary);
    transform: rotate(-14deg) scale(1.06) translateY(-50%);
    box-shadow: 0 4px 16px rgba(255, 142, 133, 0.18);
    transition-delay: 0s, 0.08s, 0.08s;
}


.list-row .action-group {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 900px) {
    .list-row {
        padding: 2rem 0;
        flex-direction: row;
        align-items: center;
    }

    .content-wrapper .list-left {
        width: initial;
        gap: 1.5rem;
        margin-right: 5rem;
    }

    .list-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .ip .list-item.info {
        min-width: 23.75rem;
        /*width: 23.75rem;*/
    }

    .list-item .date {
        color: var(--bs-primary);
    }

    .list-item .badge-group {
        gap: 1rem;
    }

    .list-row .action {
        display: block;
    }

    .list-row .action-group {
        width: auto;
        flex-direction: row;
    }
}

/* === BUTTON === */
button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.btn {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: center;
}

.btn,
.btn:active {
    border: none;
    color: var(--black);
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

.btn-text {
    display: flex;
    gap: 0.25rem;
}

.btn-primary {
    padding: 0.875rem 1.375rem 0.875rem 1.5rem;
    background-color: var(--bs-primary);
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.575;
    transition: var(--btn-hover-transition);
}

.btn-primary:hover {
    background-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: var(--btn-hover-box-shadow);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--gray-100);
    color: var(--gray-200);
    cursor: not-allowed;
}

.btn-black {
    padding: 0.625rem 1rem;
    border-radius: 0.25rem;
    background-color: var(--black);
    color: #ffffff;
}

.btn-black:hover,
.btn-black:active {
    background-color: var(--gray-400);
}

.btn-black:disabled,
.btn-black.disabled {
    background-color: var(--gray-200);
}

.btn-pill.btn-black {
    padding: 0.875rem 1.375rem 0.875rem 1.5rem;
    background-color: var(--black);
    color: #ffffff;
    border-radius: 6.25rem;
    font-size: 1rem;
    line-height: 1.7;
    transition: 0.3s ease;
}

.btn-black:hover,
.btn-black:active {
    color: #ffffff;
    background-color: var(--gray-400);
}

.btn-black:disabled {
    color: #ffffff;
    background-color: var(--gray-200);
}

.btn-outline {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--bs-primary);
    line-height: 1.7;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-outline:disabled,
.btn-outline.disabled {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-body-bg);
    color: var(--gray-400);
    cursor: not-allowed;
}

.btn-outline:hover,
.btn-outline:active {
    border: 1px solid var(--bs-primary);
}

.btn-outline.icon:active:after {
    background-color: var(--black);
}


.btn-outline-round,
.btn-primary-round {
    display: flex;
    padding: 0.875rem 1.375rem 0.875rem 1.5rem;
    width: fit-content;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    background: #ffffff;
    border-radius: 6.25rem;
    border: 1px solid var(--bs-primary);
    font-size: 1rem;
    line-height: 1.575;
    transition: 0.3s ease;
}

.btn-primary-round {
    background-color: var(--bs-primary);
}

.btn-outline-round:hover,
.btn-primary-round:hover {
    background-color: var(--bs-primary);
    color: #ffffff;
}

.btn-primary-round:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--black);
}

.btn-outline-round.back-icon {
    position: relative;
    transition: 0.3s ease;
}

.btn-outline-round.back-icon:before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/arrow-left.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--bs-primary);
    transition: 0.3s ease;
}

.btn-outline-round.back-icon:hover:before,
.btn-outline-round.forward-icon:hover:after {
    background-color: #ffffff;
}

.btn-outline-round.forward-icon {
    position: relative;
    transition: 0.3s ease;
}

.forward-icon:after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/arrow-right.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--bs-primary);
    transition: 0.3s ease;
}

.icon.icon-left:before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: -0.25rem;
    background-color: var(--bs-primary);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    transition: 0.3s ease;
}

.icon.icon-right:after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: -0.25rem;
    background-color: var(--bs-primary);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: center center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    transition: 0.3s ease;
}

.icon-copy.icon-right:after {
    --svg: url(../assets/fontawesome-free-7.1.0/svg/copy.svg);
}

.icon-forward.icon-right:after {
    --svg: url(../assets/fontawesome-free-7.1.0/svg/chevron-right.svg);
}

.icon-plus.icon-right:after {
    --svg: url(../assets/fontawesome-free-7.1.0/svg/plus.svg);
}

.icon-eye.icon-right:after {
    --svg: url(../assets/fontawesome-free-7.1.0/svg/eye.svg);
}

.icon-delete.icon-right:after {
    --svg: url(../assets/fontawesome-free-7.1.0/svg/delete.svg);
}

@media (min-width: 900px) {
    .btn-outline-round,
    .btn-primary-round {
        padding-top: 1rem;
        padding-bottom: 1rem;
        line-height: 1.7;
    }
}

.btn-black.icon.icon-right:after {
    background-color: #ffffff;
}


.pagination {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
    justify-content: flex-end
}

.page-link {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: transparent;
    color: var(--black);

}

.page-link:hover {
    color: var(--bs-primary);
    background: transparent;
}

.page-link:focus {
    color: var(--bs-primary);
    background: transparent;
    box-shadow: none;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 2.5rem;
}

.disabled > .page-link, .page-link.disabled {
    color: var(--gray-400);
}

.page-item.disabled:first-child .page-link,
.page-item.disabled:last-child .page-link,
.page-item:first-child .page-link.disabled,
.page-item:last-child .page-link.disabled {
    background-color: transparent;
    opacity: .5;
}

.active > .page-link, .page-link.active {
    background-color: transparent;
    color: var(--bs-primary);
    border-bottom: 1px solid var(--bs-primary);
}


.text-primary {
    color: var(--bs-primary) !important;
}


.frontend .toastify {
    background: var(--bs-success);
}

.frontend .toastify.warning {
    background: var(--bs-danger);
}

.action-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.75rem;
    border-top: 1px dashed var(--bs-primary);
}


