/* Custom site styles. Edit this file directly. */
.course-categories {
    --category-rgb:0,156,212;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:4px 0;
}

.course-categories>a {
    display:flex;
    min-width:0;
    text-decoration:none;
}

.course-categories .category-button {
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:56px;
    height:56px;
    max-height:56px;
    padding:4px 10px;
    margin:0;
    border:2px solid #e7e7ee;
    border-top-color:#fafafd;
    border-radius:999px;
    background:linear-gradient(180deg,#b4b5c5 0%,#d6d6e0 37%,#ededf2 70%,#fff 100%);
    box-shadow:0 5px 10px rgba(88,94,117,.23);
    color:rgb(var(--category-rgb));
    font:900 28px/1.2 "Microsoft JhengHei",sans-serif;
    white-space:normal;
    overflow-wrap:anywhere;
    text-shadow:none;
}

.course-categories [data-category="208"] {
    --category-rgb:0,156,212;
}

.course-categories [data-category="209"] {
    --category-rgb:179,63,159;
}

.course-categories [data-category="210"] {
    --category-rgb:255,76,141;
}

.course-categories [data-category="3545"] {
    --category-rgb:0,164,177;
}

.course-categories [data-category="641"] {
    --category-rgb:42,36,145;
}

.course-categories [data-category="4980"] {
    --category-rgb:255,128,0;
}

.course-categories [data-category="5247"] {
    --category-rgb:255,99,124;
}

.course-categories [data-category="5248"] {
    --category-rgb:19,185,51;
}

.course-categories .category-button::before {
    content:"";
    position:absolute;
    z-index:-1;
    top:14%;
    left:7%;
    right:7%;
    height:28%;
    border-radius:999px;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.12));
}

.course-categories>a:hover .category-button,.course-categories>a:focus-visible .category-button {
    background:linear-gradient(180deg,#bfc0cf 0%,#dddde7 37%,#f1f1f6 70%,#fff 100%);
    filter:none;
}

@media(max-width:1040px) {
    .course-categories {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:740px) {
    .course-categories .category-button {
        min-height:60px;
        height:60px;
        max-height:60px;
        padding:4px 8px;
    }
}

/* Only the changes explicitly requested by the user, plus responsive behaviour. */
/* Match the desktop display scale in the supplied original-site screenshots. */
@media(min-width:1140px) {
    body {
        zoom:1.1;
    }
}

html body,html body * {
    font-family:"Microsoft JhengHei","微軟正黑體",sans-serif!important;
}

img {
    max-width:100%;
    height:auto;
}

/* Content artwork must fit its column at every width, including inline-sized images. */
.right img,.main img,.news-page .text img,.index_right img {
    max-width:100%!important;
    height:auto!important;
    object-fit:contain;
}

.main table:has(img),.news-page .text table:has(img) {
    width:100%;
    max-width:100%;
    table-layout:fixed;
}

.main,.news-page,.right,.index_right {
    min-width:0;
}

td,th,span,strong,p,div {
    overflow-wrap:anywhere;
}

pre {
    white-space:pre-wrap;
    font:inherit;
}

table {
    max-width:100%;
}

:focus-visible {
    outline:2px solid #f4ad35;
    outline-offset:2px;
}

.top,.banner,.footer,.wrapper {
    max-width:calc(100% - 20px);
}

.content {
    max-width:calc(100% - 20px);
}

.wrapper>.content {
    max-width:100%;
}

.main,.news-page,.newsList,.teacher li {
    max-width:100%;
}

.top>a img {
    width:auto;
}

.ui-button,button,input[type=button],input[type=submit],input[type=reset] {
    box-sizing:border-box;
    display:inline-block;
    background:var(--button-background,#148b8c);
    color:white;
    border:1px solid var(--button-border,#87b8bc);
    padding:0 12px;
    margin:2px;
    min-height:22px;
    font-size:13px;
    line-height:22px;
    cursor:pointer;
    text-align:center;
    text-decoration:none;
}

button[type=reset],input[type=reset] {
    --button-background:#a0a0a0;
    --button-border:#bcbcbc;
}

#nav a {
    box-sizing:border-box;
    text-indent:0;
    color:white;
    background:linear-gradient(100deg,#3699a1,#3facbc);
    text-align:center;
    padding:4px;
    font-weight:700;
    font-size:16px;
    line-height:30px;
    text-decoration:none;
    border-bottom:3px solid #96d0d5;
    position:relative;
}

#nav a::before {
    content:"";
    position:absolute;
    inset:4px 0 2px 4px;
    border:1px solid #8ec8ce;
    pointer-events:none;
}

.left_member {
    box-sizing:border-box;
    height:185px;
    border:2px solid #a4c6cb;
    border-bottom-color:#6485a0;
    border-radius:10px;
    background:linear-gradient(145deg,#fff 55%,#f3f3f3);
    margin-bottom:10px;
}

.left_member::before {
    content:'會員專區';
    position:absolute;
    left:8px;
    top:5px;
    font-size:18px;
    font-weight:bold;
    letter-spacing:2px;
    color:#000;
}

.left_member>.member-lock {
    content:"";
    position:absolute;
    right:8px;
    bottom:25px;
    width:75px;
    height:82px;
}

.left_member ul li {
    position:relative;
}

.left_member ul li::before {
    content:'›';
    position:absolute;
    left:2px;
    color:#469bad;
}

.left_bt01,.left_bt02,.sign_bt {
    text-indent:0;
    text-align:center;
    font-size:12px;
    color:white;
    background:#498b9d;
    border:1px solid #498b9d;
    border-radius:12px;
    text-decoration:none;
    box-sizing:border-box;
    z-index:1;
}

.left_bt01,.left_bt02 {
    top:150px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    line-height:1;
    white-space:nowrap;
}

.sign_bt {
    line-height:22px;
}

.leftbox_up_3 {
    box-sizing:border-box;
    width:240px;
    height:44px;
    padding:8px 10px 0;
    background:#498b9d;
    border-radius:12px 12px 0 0;
}

.leftbox_center_3 {
    box-sizing:border-box;
    width:240px;
    border-left:3px solid #498b9d;
    border-right:3px solid #387fa5;
    background:white;
    padding:0 7px 5px;
}

.leftbox_down_3 {
    box-sizing:border-box;
    width:240px;
    height:15px;
    border:3px solid #317fa8;
    border-top:0;
    border-radius:0 0 12px 12px;
    background:white;
    padding:0;
}

.left,.left li,.left .leftbox_center_3 ul li a,.left .left_member ul li a {
    color:#000;
}

.leftbox_center_3>ul>li>a>span:not(.ui-button) {
    color:#000!important;
}

.left a,.left a:hover,.left a:visited {
    text-decoration:none!important;
}

.left .leftbox_up_3,.left .leftbox_up_3 a,.left .leftbox_up_3 span {
    color:white;
}

.left .ui-button,.left a.left_bt01,.left a.left_bt02 {
    color:white;
}

.course-action-link {
    display:block;
    text-decoration:none;
}

.course-action-link>.course-action-button {
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    width:180px;
    min-width:0;
    max-width:100%;
    min-height:48px;
    height:auto;
    padding:6px 12px;
    margin:6px auto;
    border:3px solid #f6f6f6;
    border-radius:999px;
    background:linear-gradient(#00b6c4 0%,#00c6cf 45%,#00bdc9 100%);
    color:white;
    font-size:20px;
    font-weight:700;
    line-height:1.35;
    letter-spacing:3px;
    text-shadow:0 1px 2px #667777;
    box-shadow:inset 0 2px 0 #00a5b3,0 4px 3px #0003;
}

.course-action-link>.course-apply-button {
    background:linear-gradient(#ffb200,#ffb900 55%,#ffad00);
    box-shadow:inset 0 2px 0 #ff8500,0 4px 3px #0003;
}

.social-panel .instagram-art {
    display:block;
    width:200px;
    max-width:100%;
    margin:8px auto 0;
}

.social-panel .fb-like-box {
    box-sizing:border-box;
    width:200px;
    max-width:100%;
    height:144px;
    margin:0 auto;
    border:1px solid #e5e7eb;
    background:#f5f6f8;
    font-size:12px;
    font-weight:400;
}

.social-panel .fb-like-box .fb-profile {
    display:flex;
    align-items:flex-start;
    gap:6px;
    min-height:90px;
    padding:8px;
    background:#fff;
}

.social-panel .fb-profile img {
    box-sizing:border-box;
    width:48px;
    height:48px;
    object-fit:contain;
    border:1px solid #000;
    background:white;
}

.social-panel .fb-profile-copy {
    min-width:0;
}

.social-panel .fb-profile-copy .fb-profile-name {
    color:#315a9b;
    font-size:18px;
    line-height:24px;
    white-space:nowrap;
}

.social-panel .fb-profile-copy .fb-profile-count {
    color:#183f70;
    font-size:12px;
    line-height:20px;
    white-space:nowrap;
}

.social-panel .fb-follow-row {
    padding:8px;
    border-top:1px solid #e9ebee;
}

.social-panel .fb-follow {
    display:inline-flex;
    align-items:center;
    gap:4px;
    border:1px solid #d6d8dc;
    padding:2px 6px;
    border-radius:2px;
    font-size:12px;
    line-height:18px;
    font-weight:700;
}

.social-panel .fb-follow .fb-follow-icon {
    background:#4267a9;
    color:white;
    width:12px;
    height:12px;
    font:bold 12px/14px Arial,sans-serif;
    text-align:center;
}

.back {
    padding:20px 0 10px;
    height:auto;
    text-align:right;
}

.mouse_back,.main a.mouse_back {
    box-sizing:border-box;
    text-indent:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:72px;
    height:25px;
    padding:0;
    margin:0;
    background:none;
    border:0;
    border-radius:0;
    box-shadow:none;
    color:#555;
    line-height:25px;
    font-size:12px;
    font-weight:700;
    letter-spacing:0;
    text-decoration:none;
}

.main a.mouse_back:hover,.mouse_back:hover {
    color:#333;
    background:none;
    text-decoration:none;
}

.main a.detail-apply-link {
    display:block;
    width:172px;
    max-width:100%;
    margin:0 auto;
    text-decoration:none;
}

.main a.detail-apply-link>.detail-apply-button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    box-sizing:border-box;
    width:172px;
    max-width:100%;
    min-height:50px;
    height:50px;
    padding:0 12px;
    margin:0;
    border:2px solid #b85cce;
    border-radius:999px;
    background:linear-gradient(180deg,#e48ef3 0%,#d963ec 30%,#b21bd1 50%,#9d00bc 67%,#b84bd3 100%);
    box-shadow:none;
    color:white;
    font-size:18px;
    font-weight:700;
    line-height:1;
    letter-spacing:0;
    text-shadow:none;
}

.detail-apply-button::after {
    content:'❯';
    display:block;
    color:white;
    font-size:21px;
    line-height:1;
}

.detail-apply-label {
    color:white;
    -webkit-text-stroke:0 transparent;
    paint-order:stroke fill;
    animation:detail-apply-flash 1s steps(1,end) infinite;
}

@keyframes detail-apply-flash {
    0%,100% {
        color:white;
        -webkit-text-stroke:0 transparent;
    }
    50% {
        color:#218f9e;
        -webkit-text-stroke:2px white;
    }
}

@media(prefers-reduced-motion:reduce) {
    .detail-apply-label {
        animation:none;
        color:#218f9e;
        -webkit-text-stroke:2px white;
    }
}

.ui-icon {
    font-size:28px;
}

.member-original .top .search .s2 {
    text-indent:0;
    background:#20a6a6;
    color:white;
    padding:0;
    margin:0;
    height:27px;
    width:72px;
    font-size:12px;
    font-weight:400;
}

.member-original .navigation li:focus-within>ul {
    display:block;
}

.member-original .navigation>li>ul {
    z-index:40;
    top:100%;
}

.member-entry-button {
    width:440px;
    max-width:100%;
    height:49px;
    margin:0;
    padding:9px 12px;
    border:0;
    background:#138b84;
    color:white;
    font-size:24px;
    font-weight:400;
    line-height:31px;
    box-sizing:border-box;
}

.member-entry-button[data-member-action=forgotpw] {
    background:#a5a5a5;
}

.member-original .LOGIN_TITLE:empty {
    min-height:0;
}

[aria-disabled=true] {
    cursor:default;
}

@media(max-width:1040px) {
    #abgne_fade_pic {
        width:100%;
        max-width:100%;
        height:auto;
        aspect-ratio:5 / 1;
    }
    #abgne_fade_pic a.ad {
        width:100%;
    }
    .banner {
        height:auto;
    }
    .banner img {
        display:block;
        width:100%;
    }
    .content:has(>.left) {
        display:grid;
        grid-template-columns:240px minmax(0,1fr);
        gap:20px;
    }
    .content:has(>.left)>br {
        display:none;
    }
    .left,.right {
        width:auto;
        min-width:0;
        float:none;
        margin:0;
    }
    .main,.news-page,.newsList,.searchList,.indexList,.teacher li {
        width:100%;
    }
    .teacher .text {
        box-sizing:border-box;
        width:calc(100% - 170px);
    }
    .top:not(:has(>form)) {
        height:auto;
        min-height:85px;
    }
    .top:not(:has(>form)) .logo {
        max-width:230px;
    }
    .menu,#nav {
        width:calc(100% - 250px);
    }
    .menu #nav {
        width:100%;
        display:flex;
    }
    #nav li {
        float:none;
        flex:1;
    }
    #nav a {
        width:100%;
        font-size:14px;
        white-space:nowrap;
    }
    .member-original .top {
        height:auto;
        min-height:85px;
        padding:10px 0;
    }
    .member-original .top>form {
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        justify-content:flex-end;
        gap:8px 14px;
        padding-left:110px;
        min-height:65px;
    }
    .member-original .top h3 {
        position:static;
        width:100%;
        text-align:right;
    }
    .member-original .top h4.search,.member-original .top h6 {
        position:static;
    }
    .member-original .top h4.search {
        display:flex;
        align-items:center;
        gap:6px;
        width:auto;
    }
    .member-original .top .search .s1,.member-original .top .search .s2 {
        position:static;
    }
    ul.navigation {
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        width:100%;
        max-width:100%;
    }
    .menu_bg {
        height:auto;
        min-height:48px;
    }
}

@media(max-width:740px) {
    .course-action-link>.course-action-button {
        padding:6px 8px;
        font-size:18px;
        letter-spacing:1px;
    }
    .top {
        height:auto;
        padding:10px 0 0;
    }
    .top .logo {
        position:static;
        display:block;
        margin:0 auto 8px;
    }
    .top h3 {
        position:static;
        text-align:center;
        line-height:20px;
        font-size:11px;
    }
    .menu {
        position:static;
        width:100%;
        height:auto;
        margin-top:8px;
    }
    .menu #nav {
        flex-wrap:wrap;
    }
    #nav li {
        flex:1 0 30%;
    }
    #nav a {
        height:34px;
        line-height:23px;
    }
    .content:has(>.left) {
        grid-template-columns:1fr;
        gap:12px;
    }
    .left {
        order:1;
        width:100%;
    }
    .right {
        order:0;
    }
    .left_member {
        width:240px;
    }
    .leftbox_up_3,.leftbox_center_3,.leftbox_down_3 {
        width:100%;
    }
    .searchList,.searchList tbody,.searchList tr,.searchList th,.searchList td {
        display:block;
        width:100%;
        box-sizing:border-box;
    }
    .searchList th {
        text-align:left;
        padding:4px 8px;
    }
    .searchList td {
        padding:6px 8px;
    }
    .searchList input,.searchList select {
        min-height:30px;
        max-width:100%;
    }
    #keyword {
        width:100%;
        box-sizing:border-box;
    }
    .searchList input[name^=time_] {
        width:calc(50% - 16px);
        box-sizing:border-box;
    }
    .right>form>table {
        width:100%;
    }
    .right>form>table>tbody>tr,.right>form>table>tr {
        display:flex;
        flex-wrap:wrap;
    }
    .right>form>table>tbody>tr>td,.right>form>table>tr>td {
        display:block;
        width:100%!important;
        padding:4px 0;
    }
    .right table table {
        width:100%!important;
        table-layout:fixed;
    }
    .right [style*=width] {
        max-width:100%!important;
    }
    .news-page table,.news-page tbody,.news-page tr,.news-page td {
        display:block;
        width:100%!important;
    }
    .teacher li {
        float:none;
        overflow:hidden;
    }
    .teacher .text {
        max-height:none;
    }
    .teacher .ptitle {
        height:auto;
    }
    .member-original .top>form {
        display:block;
        padding:0;
        min-height:0;
    }
    .member-original .top .logo {
        width:86px;
    }
    .member-original .top h3 {
        text-align:center;
    }
    .member-original .top h4.search,.member-original .top h6 {
        margin:6px 0;
        text-align:center;
        justify-content:center;
    }
    .member-original .top h6 img {
        max-width:23%;
        height:auto;
    }
    .member-original .LEFT_50,.member-original .RIGHT_50,.LEFT_40,.RIGHT_60,.LEFT_30,.RIGHT_70 {
        width:100%;
        float:none;
    }
    .RIGISTER .left,.RIGISTER .right {
        box-sizing:border-box;
        width:100%;
        max-width:100%;
        float:none;
        padding-left:0;
        padding-right:0;
    }
    .BOX {
        box-sizing:border-box;
        max-width:100%;
        padding:12px;
    }
    .LOGIN_BOX {
        width:100%;
        max-width:440px;
        box-sizing:border-box;
    }
    .TAB {
        table-layout:fixed;
        font-size:12px;
    }
    .TAB th,.TAB td {
        padding:4px 2px;
    }
    .TAB th:nth-child(1) {
        width:15%;
    }
    .TAB th:nth-child(2) {
        width:37%;
    }
    .TAB th:nth-child(n+3) {
        width:16%;
    }
    .TAB td:nth-child(n+4) {
        white-space:nowrap;
    }
    table:has(textarea),table:has(textarea)>tbody,table:has(textarea)>tbody>tr,table:has(textarea)>tbody>tr>td {
        display:block;
        width:100%!important;
        box-sizing:border-box;
    }
    table:has(input):not(.TAB) {
        table-layout:fixed;
        width:100%!important;
    }
    input,select,textarea {
        max-width:100%;
    }
    .footer {
        font-size:12px;
        line-height:22px;
    }
}

.image-spacer { display:inline-block; width:1px; height:1px; }
svg[role="img"] { max-width:100%; height:auto!important; }
.source-image-unavailable { width:150px; aspect-ratio:5 / 6; background:#eef4f4; color:transparent; }

/* Preserve the enterprise-member banner as selectable text and CSS shapes. */
.business-member-banner {
    position:relative; isolation:isolate; overflow:hidden;
    box-sizing:border-box; display:flex; align-items:center; justify-content:center;
    width:200px; max-width:100%; height:68px;
    background:linear-gradient(155deg,#abd9d5 0,#168f88 45%,#088b84 72%,#66c6bd 100%);
    color:#fff; font-size:22px; font-weight:700; letter-spacing:2px; line-height:1;
}
.business-member-banner::before {
    content:""; position:absolute; z-index:-1; inset:0;
    background:linear-gradient(125deg,#fff4,transparent 60%);
    clip-path:polygon(0 0,50% 0,0 66%); pointer-events:none;
}
.business-member-banner>span { position:relative; }
.business-member-banner>span::after {
    content:attr(data-reflection); position:absolute; left:0; top:25px;
    transform:scaleY(-1); opacity:.15; white-space:nowrap;
    pointer-events:none;
}
