@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bayon&display=swap');

:root {
    --primary: #ff8e85;
    --primary-dark: #c5493f;
    --primary-light: #ffd5d0;

    --bs-primary-rgb: 255, 142, 133;
    --bs-primary-text-emphasis: #c5493f;
    --bs-primary-bg-subtle: #ffd5d0;
    --bs-primary-border-subtle: #c5493f;

    --banner-bg: #fea8c5;

    --index-gray: #fffcf8;
    --surface: #FFFFFF;
    --bg: #fffcf8; /*#fbf4e9*/
    --black: #1A1817;
    --gray-100: #E5E4E1;
    --gray-200: #BEC5C5;
    --gray-300: #949999;
    --gray-400: #7B8080;
    --gray-500: #3D4040;
    --gray-700: #5F6368;
    --gray-900: #202124;
    --red: #ea2085;
    --red-light: #efabcd;
    --green: #5d9f36;

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

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

    --character-width-mobile: clamp(120px, 38vw, 180px);
    --character-bottom-mobile: 1rem;
    --character-left-mobile: initial;
    --character-right-mobile: 2vw;
}


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

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

html.font-size-sm { font-size: 14px !important; }
html.font-size-md { font-size: 16px !important; }
html.font-size-lg { font-size: 18px !important; }

body {
    margin: 0;
    background-color: var(--bg);
    font-size: 100%;
    font-family: "Noto Sans TC", "Heiti TC", "微軟正黑體", sans-serif;
}

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

:focus {
    outline: none;
}

figure {
    margin: 0;
}

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

a:hover {
    color: var(--primary-dark);
}

:focus {
    outline: 2px dashed var(--gray-500) !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(--primary) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}


.accesskey.u {
    top: -5px;
    left: -30px;
    opacity: 0;
}

.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(--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;
    }
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background-color: #ffffff;
    -webkit-transition: 0.4s ease;
    -o-transition: 0.4s ease;
    transition: 0.4s ease;
    z-index: 1000;
}

.homepage .navbar {
    background-color: #ffffff;
}

.navbar-top {
    display: flex;
    align-items: center;
    padding: .75rem 1.5rem;
}

.navbar-nav {
    position: fixed;
    left: -100vw;
    top: 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    gap: 0;
    margin-left: auto;
    padding-top: 2rem;
    padding-bottom: 5rem;
    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-brand {
    display: flex;
    gap: .5rem;
    padding: 0;
    align-items: center;
    color: var(--black);
}

.navbar-brand img {
    width: 2.5rem;
    height: auto;
}

.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-brand h1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.35;
}

.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(--primary);
}

.navbar-top .navbar-nav a.active {
    color: var(--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(--primary);
    color: #ffffff;
    font-weight: 500;
    line-height: 1.7;
}

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


.navbar-nav .nav-guide {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
}

.navbar-nav .nav-guide a,
.navbar-nav .nav-guide form {
    margin: 0 2.5rem;
    width: calc(100% - 5rem);
    white-space: nowrap;
}


/* Mobile menu list */
.mobile-accordion {
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    overflow-y: auto;
}

.mobile-accordion .nav-top {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem
}

@media (max-width: 899.99px) {

    .navbar-top .navbar-nav .dropdown-menu {
        margin: 0;
        border: none;
        padding: 0;
        border-radius: 0;
        background: var(--gray-100);
    }

    .navbar-top .navbar-nav a.dropdown-item {
        width: calc(100% - 5rem);
        border-color: var(--primary);
    }
}


@media (min-width: 900px) {
    .navbar {
        height: 6.5rem;
    }

    .navbar-top {
        padding: 1rem 5.25rem;
    }

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

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

    .navbar-brand .logotype-sm {
        font-size: .875rem;
    }

    .menu-toggle {
        display: none;
    }

    .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;
        padding-bottom: 0;
        opacity: 1;
    }

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

    .navbar-nav .nav-guide {
        flex-direction: row;
    }

    .navbar-nav .nav-guide .nav-link {
        font-size: .75rem;
    }

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

    .navbar-top .navbar-nav a:hover {
        color: var(--gray-300);
    }

    .navbar-top .navbar-nav > a:last-child {
        margin-left: 1.25rem;
    }

    .navbar-top .navbar-nav > a:last-child:before {
        content: '';
        position: absolute;
        left: -1.25rem;
        top: 50%;
        height: 1rem;
        width: 1px;
        background-color: var(--black);
        border-radius: 1rem;
        transform: translateY(-50%);
    }

    .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;
    }

}


/* === OWL CAROUSEL  & ALBUM === */
/* JUMBOTRON CAROUSEL */
.jumbotron {
    padding: 0;
}

.jumbotron .owl-carousel .owl-item img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 0.25rem);
    height: 100%;
    object-fit: cover;
    transform: translate(calc(-50% - 0.125rem), -50%);
    transition: all 0.3s;
    overflow: hidden;
    /*clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7.825rem), 0% 100%);*/
}

.jumbotron .owl-carousel .owl-item figure {
    position: relative;
    width: 100%;
    padding-bottom: calc(100vw / 1920 * 625);

}


.jumbotron .owl-carousel .owl-item .content {
    position: absolute;
    width: 100%;
    height: 7rem;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.25;
}

.jumbotron .owl-carousel .owl-item .content > span {
    text-shadow: -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.jumbotron .owl-carousel .owl-item .has-title .content:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70vw;
    background-position: bottom right;
    background-repeat: no-repeat;
    height: 8rem;
}

.jumbotron .owl-carousel .owl-item .content > span {
    display: -webkit-box;
    font-size: 1.5rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    z-index: 1;
}

.jumbotron .owl-carousel .owl-item a:focus {
    outline: none !important;
}

.jumbotron .owl-carousel .owl-item a:focus figure {
    outline: 1px dashed var(--primary);
    outline-offset: 0.5rem;
}

.jumbotron .owl-carousel .owl-item .content > button {
    padding: 0.375rem 0;
    margin-top: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid transparent;
    background-color: transparent;
    border-radius: 0;
}

.jumbotron .owl-carousel .owl-item .content > button:hover {
    border-bottom-color: var(--primary);
}

.jumbotron .owl-carousel .owl-nav {
    display: none;
}

.jumbotron .owl-carousel .owl-nav button.owl-prev,
.jumbotron .owl-carousel .owl-nav button.owl-next {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0;
    background-color: transparent;
    color: var(--primary);
    box-shadow: none;
}

.jumbotron .owl-carousel .owl-nav button.owl-prev:after {
    content: "";
    position: absolute;
    right: -.5rem;
    top: 0;
    display: block;
    width: 1px;
    height: 100%;
    background-color: #ffffff !important;
}

.jumbotron .owl-carousel .owl-nav button.owl-prev:before,
.jumbotron .owl-carousel .owl-nav button.owl-next:before {
    color: #ffffff;
    font-family: "Font Awesome 7 Free";
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.3s;
}

.jumbotron .owl-carousel .owl-nav button.owl-prev:before {
    content: "\f053";
}

.jumbotron .owl-carousel .owl-nav button.owl-next:before {
    content: "\f054";
}


.jumbotron .owl-carousel .owl-nav button.owl-prev:not(.disabled):hover:before {
    transform: translateY(-50%);
}

.jumbotron .owl-carousel .owl-nav button.owl-next:not(.disabled):hover:before {
    transform: translateY(-50%);
}

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


.jumbotron .owl-carousel .owl-nav button.owl-prev > i,
.jumbotron .owl-carousel .owl-nav button.owl-next > i {
    font-size: 1rem;
}

.jumbotron .owl-theme .owl-dots .owl-dot span {
    width: 0.3125rem;
    height: 0.3125rem;
    margin: 0 0.125rem;
    background-color: var(--gray-200) !important;
}

.jumbotron .owl-theme .owl-dots .owl-dot.active span {
    width: 0.625rem;
    background-color: var(--primary) !important;
}


.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(--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;
}

@media (min-width: 900px) {
    .jumbotron .owl-carousel .owl-nav {
        position: absolute;
        left: 5.25rem;
        bottom: 0;
        display: flex;
        gap: 1rem;
        margin: 1rem 0;
    }

    .jumbotron .owl-carousel .owl-item .content {
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        height: 10rem;
        padding: 1rem 5.25rem 5rem 5.25rem;
        font-size: 3rem;
        line-height: 1.5;
    }

    .jumbotron .owl-carousel .owl-item .content > span {
        width: 65%;
        font-size: 2.5rem;
    }

    .jumbotron .owl-carousel .owl-item .content > button {
        margin-top: 0.25rem;
    }

    .jumbotron .owl-carousel .owl-item figure {
        position: relative;
        margin-top: 0.75rem !important;
        /*padding-bottom: calc((100% - 5.5rem * 2) * 0.48);*/
    }

    .jumbotron .owl-carousel .owl-item figure:before {
        left: 0.5rem;
        top: 0.5rem;
        width: 100%;
    }

    .jumbotron .owl-carousel .owl-item figure,
    .jumbotron .owl-carousel .owl-item .content {
        margin: 0 !important;
    }

    .jumbotron .owl-carousel .owl-item img {
        width: 100%;
        transform: translate(-50%, -50%);
    }

    .jumbotron .owl-theme .owl-dots .owl-dot span {
        width: 0.625rem;
        height: 0.625rem;
        margin: 0 0.25rem;
    }

    .jumbotron .owl-theme .owl-dots .owl-dot.active span {
        width: 1.25rem;
    }

    .jumbotron .owl-carousel .owl-item .has-title .content:before {
        width: 50vw;
        height: 10rem;
        background-size: cover;
        background-position: top right;;
    }
}


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

.main-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 8rem);
    padding-top: 4rem;
    /*padding-bottom: 2rem;*/
    background-color: var(--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) {
    /*TODO: 待調整*/
    .main-content {
        padding-top: 6.5rem; /* 根據 .navbar 高度設定 */
        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 5.25rem;
    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: 3.625rem;
    text-align: right;
    color: var(--gray-200);
}

.footer-bottom {
    padding: 1rem 5.25rem;
    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: 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(--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(--primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.125rem;
    opacity: .7;
    transition: 0.4s ease;
}

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

.scroll-top .scroll-top-btn:focus,
.scroll-top .scroll-top-btn:hover {
    opacity: 1;
}

.scroll-top .scroll-top-btn svg {
    width: 2rem;
    height: 2rem;
    transform: rotate(180deg);
    fill: var(--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(--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(--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(--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: 1.5rem;
    /*padding-bottom: 7.5rem;*/
    flex-wrap: wrap;
}


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

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

#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 {
        padding-bottom: 2.5rem;
    }

    .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(--primary-light);
    appearance: none;
    background-color: transparent;
    border-radius: 0.125rem;
    outline: none;
    transition: outline 0.1s;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-size: cover;
}

input[type="checkbox"]:checked {
    border-color: var(--primary);
    background-image: url("../assets/fontawesome-free-7.1.0/svg/check.svg");
    background-color: var(--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(--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(--primary);
    color: #ffffff;
    border-color: var(--primary);
);
}

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

.form-label.required:after {
    content: "*";
    color: var(--red);
    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(--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(--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(--primary);
    background-size: 1.5rem;
    box-shadow: none;
}

.form-control:focus,
.form-control:active,
.form-container:focus,
.form-container:active {
    background-color: var(--bg);
    box-shadow: none;
    border-color: var(--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(--primary-light);
    }

    .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(--primary);
}

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

    .form-switch button.form-container {
        border: 1px solid var(--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(--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(--primary-light);
}

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

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--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(--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(--primary);
    border-radius: 0.5rem;
    color: var(--gray-500);
    transition: 0.3s ease;
}

.file-item:hover {
    background-color: var(--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(--primary-dark);
    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(--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(--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(--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(--primary-light);
}

.content table td.no-label:before {
    display: none;
}

.content table td:before {
    content: attr(data-label) "｜";
    font-weight: bold;
}

.c-tb-tbody .c-tb-tr .c-tb-td:last-child {
    border-color: var(--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(--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(--primary-light) !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(--primary) !important;
    }

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

    .content table 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(--primary);
    color: var(--black);
    border: 1px solid var(--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(--primary-light);
    border-color: var(--primary-light);
}

.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(--primary-light);
}

.frontend .jconfirm .jconfirm-box .jconfirm-buttons .btn-primary {
    background-color: var(--primary);
    border-color: var(--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(--primary);
    color: var(--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(--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(--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-500);
    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.01);
    }

    .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(--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(--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(--primary);
    box-shadow: none;
}

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

.custom-calendar.fc-theme-standard th {
    color: var(--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(--primary-light);
}

.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(--primary-light);
}

.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(--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(--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(--primary-light);
    }
}

/* Calendar event - mobile view*/
.custom-calendar .date {
    margin-bottom: 0.25rem;
    color: var(--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(--primary-light);
    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(--primary);
}


/* === 學習資源列表樣式 === */
.learning-library.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.learning-library.learning-source.content-wrapper {
    gap: 1.5rem;
}

.learning-library .list-row {
    gap: 1rem;
    padding: 1rem 1rem 1rem 3.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border-bottom: 0;
    cursor: default;
}

.learning-library.learning-source .list-row {
    align-items: center;
    padding: 1.5rem 1rem 4rem 1rem;
    gap: 1rem;
}

/*.learning-library .list-row input:not(.form-control),*/
/*.learning-library .list-row input:not(.check-item) {*/
/*    position: absolute;*/
/*    left: 1rem;*/
/*    top: 1rem;*/
/*}*/

.learning-library .list-item .badge-wrapper {
    gap: 0.5rem;
}

.learning-library .list-item .badge-wrapper .badge:nth-child(2) {
    background-color: var(--bg);
}

.learning-library .list-item .badge-wrapper .badge:nth-child(2):before {
    content: "";
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    --svg: url(../assets/fontawesome-free-7.1.0/svg/eye.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    background-color: var(--black);
}

.learning-library .list-item.title {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
    font-weight: 700;
}

.learning-library.learning-source .list-item.title {
    font-size: 1.25rem;
}

.learning-library .list-item.info {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
}

.learning-library .list-item.description {
    display: inline;
    color: var(--gray-400);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.learning-library.learning-source .list-item.description {
    color: var(--gray-500);
    font-weight: 400;
}

.learning-library .list-img {
    position: relative;
    width: 11.25rem;
    padding-bottom: calc(11.25rem / 3 * 2);
    overflow: hidden;
}

.learning-library .list-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    color: transparent;
    border-radius: 1rem;
    transform: translate(-50%, -50%);
    object-fit: contain;
    overflow: hidden;
}

.learning-library .list-img.no-image  img {
    background-color: var(--primary-light);
}

.learning-library .list-img img:before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*background: url(../img/visual-element/empty-img-lr.svg) center no-repeat;*/
    background-size: contain;
}

.learning-library .list-row .action {
    right: 3.5rem;
}

.learning-library .list-row:hover .action {
    right: 2.5rem;
}

@media (min-width: 900px) {
    .learning-library .list-row {
        gap: 1.5rem;
        padding: 1.5rem;
        border-radius: 0.5rem;
    }

    .learning-library.learning-source .list-row {
        gap: 2.5rem;
        padding: 3rem 2.5rem;
        border-radius: 1rem;
    }

    .learning-library .list-row input {
        position: initial;
    }

    .learning-library .list-left {
        gap: 1rem;
        margin-bottom: auto;
    }

    .learning-library .list-item .badge-wrapper {
        gap: 1rem;
    }

    .learning-library .list-item.title {
        align-items: center;
    }

    .learning-library.learning-source .list-item.title {
        font-size: 1.5rem;
    }

    .learning-library .list-item.description {
        font-weight: 500;
        line-height: 1.7;
    }

    .learning-library .list-img {
        width: 15rem;
        padding-bottom: calc(15rem / 3 * 2);
    }
}

@media (max-width: 899.99px) {
    .learning-library.learning-source .list-row .action {
        display: block;
        top: initial;
        bottom: 1.5rem;
        right: 1rem;
        transform: none;
    }
}

.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(--red);
    -webkit-box-shadow: 0 0 4px -2px var(--red);
    box-shadow: 0 0 4px -2px var(--red);
    -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 {
    text-align: center;
    font-family: "Space Grotesk";
    font-variation-settings: "wght" 700;
    letter-spacing: -0.08rem;
    line-height: 1.25;
}

.section-title .section-title__zh {
    font-family: Noto Sans TC;
}

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


/* === 共用 - 子頁 === */
.section-header {
    position: relative;
    width: 100%;
    height: var(--banner-height-mobile);
    background: var(--banner-bg);
    padding: 1rem 1.5rem;
    overflow-x: 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: 40%;
    gap: .5rem;
    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: 2rem;
    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-bottom: 2.5rem;
    }

    .section-header .section-title {
        top: 50%;
        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(--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(--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(--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(--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(--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(--primary);
    border-radius: 1rem;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content .card-block:not(.disabled):hover {
    background: var(--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;
}

/* article 頁面 */
.header-deco {
    position: relative;
    margin-top: 8rem;
    margin-bottom: 6.5rem;
    z-index: 0;
}

.header-deco__item {
    position: absolute;
    width: 100%;
    height: 50vh;
    top: -3.5rem;
    overflow: hidden;
    left: 0;
}

.header-deco__item::after {
    -webkit-transform: translate(-50%, -70px) scaleY(-1);
    transform: translate(-50%, -70px) scaleY(-1);
}

.scrolling-down .header-deco__item::before {
    -webkit-transform: translate(-50%, -60px) scaleX(1.03) scaleY(1.06) skewY(-1.5deg);
    transform: translate(-50%, -60px) scaleX(1.03) scaleY(1.06) skewY(-1.5deg);
}

.header-deco__item::before {
    position: absolute;
    content: "";
    width: 150vw;
    height: 150vw;
    top: 0;
    left: 50%;
    background-color: #ffffff;
    -webkit-transform: translate(-50%);
    transform: translate(-50%);
    border-radius: 50% 50% 0 0;
    transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

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

    .header-deco__item::before {
        width: 170vw;
        height: 170vw;
    }

    .header-deco {
        margin-top: 6rem;
    }
}

.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(--primary);
}

.section-content__full .header .date {
    color: var(--gray-500);
    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(--primary-dark);
    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(--primary-dark);
}

.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(--primary-light);
    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(--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(--primary);
}

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

.list-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-direction: column;
    flex-wrap: wrap;
    color: var(--gray-500);
    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(--primary-light);
    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(--primary-light);
    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(--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(--primary-dark);
    }

    .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(--primary);
    --bs-btn-active-border-color: var(--primary);
}

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

.btn-primary {
    padding: 0.875rem 1.375rem 0.875rem 1.5rem;
    background-color: var(--primary);
    color: var(--black);
    font-size: 1rem;
    line-height: 1.575;
    transition: 0.3s ease;
}

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

.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-500);
}

.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-500);
}

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

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

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

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

.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(--primary);
    font-size: 1rem;
    line-height: 1.575;
    transition: 0.3s ease;
}

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

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

.btn-primary-round:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    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(--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;
}

.btn-wave {
    position: relative;
    padding: .5rem 1rem;
    color: var(--black);
    overflow: hidden;
    font-size: 1.125rem;
    z-index: 1;
}

.btn-wave:before {
    content: "";
    display: block;
    position: absolute;
    right: -2rem;
    top: 0;
    width: 12rem;
    height: 100%;
    --svg: url(../img/assets/jumbotron_wave_reverse.svg);
    -webkit-mask: var(--svg);
    mask: var(--svg);
    -webkit-mask-position: bottom center;
    -webkit-mask-repeat: no-repeat;
    background-color: var(--primary);
    transition: 0.3s right;
    z-index: -1;
}

.btn-wave:not(:disabled):hover:before {
    right: -.5rem;
}

.btn-wave:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.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(--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(--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(--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;
}


/* === STEP ===*/
.stepper {
    position: sticky !important;
    top: 3rem;
    height: fit-content;
}

.step-wrapper {
    width: 14rem;
    margin-top: 1.5rem;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    margin-bottom: calc(2.5rem + .5rem * 2);
    color: var(--gray-400);
    font-size: 1.5rem;
    transition: .3s ease;
}

.step-item:not(:last-child):after {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: calc(100% + .5rem);
    display: block;
    width: 1px;
    height: 2.5rem;
    background-color: var(--gray-200);
}

.step-item__number {
    display: flex;
    width: 3rem;
    height: 3rem;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    border: 1px solid var(--gray-400);
    font-family: "Bayon";
    font-variation-settings: 'wght' 400;
    font-weight: 400;
    transition: .3s ease;
}

.step-item.finished:hover .step-item__number {
    background-color: var(--green);
    color: #ffffff;
}

.step-item__text {
    font-size: 1.25rem;
}

.step-item.finished:hover .step-item__text,
.step-item.finished:hover .step-item__text a {
    color: var(--green) !important;
}

a.step-item__text:hover {
    color: var(--primary);
}

.step-item.active .step-item__number {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.step-item.current .step-item__number {
    position: relative;
    border: 1px solid var(--primary);
    color: #ffffff;
}

.step-item.current .step-item__number:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3rem;
    height: 3rem;
    outline: 4px solid var(--primary-light);
    border-radius: 3rem;
    transform: translate(-50%, -50%);
}

.step-item.current .step-item__number:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120%;
    height: 110%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 142, 133, 0.16) 100%), url('../img/assets/jumbotron_wave_reverse.svg') no-repeat left bottom / cover;
    opacity: 0.92;
    filter: blur(1.2px) drop-shadow(0 4px 12px rgba(255, 142, 133, 0.13));
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s, filter 0.3s;
}


.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(--primary-dark);
    background: transparent;
}

.page-link:focus {
    color: var(--primary-dark);
    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(--primary-dark);
    border-bottom: 1px solid var(--primary-dark);
}


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

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

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

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


