﻿@charset "UTF-8";

/* header 樣式設定 */
.navbar-header {
    margin: 10px 0 10px 30px;
    padding: 0;
    width: 100% !important;
}

.navbar-brand {
    width: 122px;
    height: 65px;
    padding: 0;
    margin: 0;
    display: block;
    text-indent: -99999999px;
}

.navbar-brand a {
    width: 122px;
    height: 65px;
    margin: 0;
    display: block;
    background: url("../../images/logo_iyouth_footer.png") no-repeat 0 0;
    background-size: 100%;
    transition: 0.4s;
}

.navbar-toggle {
    float: left;
    text-indent: -999999px;
    display: none; /* hidden by default; shown via media query on mobile/tablet */
}

/*主選單arrow刪除*/
.dropdown-toggle::after {
    display: none;
    content: "";
}

/*主選單樣式設定*/
.bg-light {
    box-shadow: 3px 3px 12px -1px rgba(60, 60, 60, .3);
    /*border-bottom: 100px solid #ff0;*/
    width: 100%;
    height: auto;
    /*header白背景高度*/
    background-color: #fff !important;
    border-radius: 0 0 30px 0;
}

.navbar-light .navbar-nav .nav-link {
    color: #000;
    padding: 0 30px 5px 15px;
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    text-align: center;
    position: relative;
    top: 0;
    right: 0;
    display: table-cell;
}

.navbar-light .nav-link.disabled {
    color: rgba(0, 0, 0, 0.3);
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
    color: #000;
    font-weight: 700;
    padding: 0 30px 5px 15px;
    outline: none !important; /* pointer users: suppress outline */
}

/* FIX: keyboard users need visible focus on nav links (WCAG 2.4.7)
   :focus-visible fires only for keyboard, not mouse/touch */
.navbar-light .navbar-nav .nav-link:focus-visible {
    outline: 3px solid #198148 !important;
    outline-offset: 2px !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #000;
    font-weight: 700;
    padding: 0 30px 5px 15px;
    outline: none !important;
}

.navbar-nav .dropdown a:hover:after,
.navbar-nav .dropdown a:focus:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    padding: 0;
    border-bottom: 5px solid #b9f2d2;
}

/*下拉選單樣式*/
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 60%;
    transform: translateX(-60%);
    /*居中*/
    right: 0;
    z-index: 9000;
    display: none;
    float: left;
    width: 200px !important;
    min-width: 200px;
    padding: 20px 0 5px 0;
    margin: 0;
    /* 子選單對齊主選單 */
    font-weight: 400;
    font-size: 1em;
    text-align: center !important;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0);
    border-radius: 0;
    border: 1px solid #ccc;
    opacity: 1;
}

/* Firefox */
@-moz-document url-prefix() {}

/* edge */
@supports (-ms-ime-align:auto) and (-webkit-text-stroke:initial) {}

/* chrome and safari */
@media screen and (-webkit-min-device-pixel-ratio:0) {}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0 0 20px 0;
    color: #666;
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
}

.dropdown-item:hover {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    background-color: transparent;
}

.dropdown-item:focus {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    outline: none !important; /* pointer users */
    background-color: transparent;
    text-decoration: none;
}

/* FIX: keyboard focus visible on dropdown items (WCAG 2.4.7) */
.dropdown-item:focus-visible {
    outline: 3px solid #198148 !important;
    outline-offset: 2px !important;
    background-color: transparent;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    outline: none !important;
    background-color: transparent;
}

.dropdown-menu.show {
    display: block;
}

/* 上方三角形 */
.dropdown .dropdown-menu::before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    top: -10px;
    left: 50%;
    margin-left: -10px;

    border: 1px solid #ccc;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 9px;
    background-color: #fff;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

/* Keep the rightmost desktop menu and its focus outline inside the viewport.
   The #navbarCollapse ID gives these rules higher specificity than the
   centered .dropdown-menu offsets redefined in the tablet media blocks below,
   so they still win there despite appearing earlier in the file. */
@media (min-width: 992px) {
    #navbarCollapse .dropdown-menu-right {
        left: auto;
        right: .5rem;
        transform: none;
    }

    #navbarCollapse .dropdown-menu-right::before {
        left: auto;
        right: 2rem;
        margin-left: 0;
    }
}

/*右上登入登出
-------------------------------------------------- */
.right-top {
    float: right;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.right-top ul {
    margin: 0 30px 0 30px;
    padding: 0;
    text-align: right;
}

.right-top ul li {
    margin: 0 0 0 10px;
    padding: 0;
    list-style: none none;
    display: inline-block;
}

.right-top ul li a {
    margin: 0;
    padding: 0;
    text-indent: -99999999px;
    color: #000;
    font-size: 1em;
}

.right-top ul li.topIcon-member,
.right-top ul li.topIcon-logout {
    margin: 0 50px 0 15px;
    padding: 0;
    float: right;
    position: relative;
    top: -5px;
}

.right-top ul li.topIcon-member a {
    margin: 0 10px 0 0;
    padding: 4px 20px 6px 20px;
    border-radius: 50px;
    background: linear-gradient(to right, rgba(186, 242, 209, 1) 0%, rgba(154, 239, 243, 1) 100%);
}

.right-top ul li.topIcon-member a::before {
    content: "";
    display: inline-block;
    background: url("../../images/svg/icon_top_member.svg") no-repeat 0 0;
    background-size: 100%;
    width: 23px;
    height: 23px;
    position: relative;
    top: 5px;
    left: -6px;
}

.right-top ul li.topIcon-logout > .member-menu-toggle {
    margin: 0 10px 0 0;
    padding: 4px 20px 6px 20px;
    border-radius: 50px;
    background: linear-gradient(to right, rgba(186, 242, 209, 1) 0%, rgba(154, 239, 243, 1) 100%);
}

.right-top ul li.pcFBicon {
    margin: 0;
    padding: 0;
    text-indent: -99999999999px;
    text-align: right;
    color: #fff;
    font-size: .001em;
}

.right-top ul li.pcFBicon a {
    background: url("../../images/svg/icon_FB.svg") no-repeat 0 0;
    background-size: 100%;
    width: 35px;
    height: 35px;
    display: block;
    position: absolute;
    top: 11px;
    right: 45px;
    border-radius: 50%;
}

/*mobile*/
@media (max-width: 768px) {

    /* ── Fixed header bar (always visible) ──────────────────────────── */
    .navbar-header-mbH {
        display: flex;
        align-items: center;
        width: 100%;
        height: 65px;
        padding: 0;
        margin: 0;
        position: relative;
    }

    .navbar-brand-mb {
        flex: 1;
        min-width: 0;
        margin: 0 0 0 15px;
        font-size: 0.0001em;   /* visually hidden — background-image logo */
        color: transparent !important;
    }

    .navbar-brand-mb a {
        display: block;
        width: 100%;
        max-width: 180px;
        height: 45px;
        background: url("../../images/logo_iyouth.png") no-repeat 0 center;
        background-size: contain;
    }

    /* Desktop logo hidden on mobile */
    .navbar-brand a { display: none; }

    /* 登入/報名 pill anchored in the bar */
    .mb-auth-btn {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 45%;
        margin-right: 8px;
        padding: 5px 12px;
        border-radius: 50px;
        background: linear-gradient(to right, rgba(186,242,209,1) 0%, rgba(154,239,243,1) 100%);
        color: #000;
        font-size: 0.8em;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.25;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .mb-auth-btn img { vertical-align: middle; }
    .mb-auth-btn:hover, .mb-auth-btn:focus {
        color: #000;
        text-decoration: none;
        outline: 3px solid #198148;
        outline-offset: 2px;
    }

    /* Hamburger button */
    .navbar-toggle {
        display: block !important;   /* override top-level display:none */
        flex-shrink: 0;
        width: 65px;
        height: 65px;
        margin: 0;
        padding: 0;
        border: none !important;
        background: url("../../images/svg/mb-menu.svg") no-repeat center center !important;
        background-size: 40px 40px !important;
        text-indent: -9999px;
        z-index: 99999;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
    .navbar-toggle:not(.collapsed) {
        background-image: url("../../images/svg/mb-menu-close.svg") !important;
    }
    .navbar-toggle:focus {
        outline: 2px dashed #198148 !important;
    }
    .for200 { display: none !important; }  /* close button at bottom — not needed */

    /* bg-light height — let it grow naturally with content */
    .bg-light { height: auto !important; }

    /* ── Collapsible section ─────────────────────────────────────────── */
    .navbar-collapse {
        position: static !important;   /* NO negative top offset */
        top: auto !important;
        height: auto !important;
        max-height: calc(100vh - 65px);
        overflow-y: auto !important;
        background-color: #fff;
        border-top: 2px solid #198148;
        z-index: 9999;
    }

    /* ── Utility strip inside the open menu ─────────────────────────── */
    .right-top {
        display: block;
        padding: 12px 20px 8px;
        background: #f5f5f5;
        border-bottom: 1px solid #ddd;
    }
    .right-top p { display: none; }
    .right-top ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
        align-items: center;
    }
    .right-top ul li { display: inline-block; margin: 0; padding: 0; }
    .right-top ul li a {
        text-indent: 0;
        font-size: 0.85em;
        color: #555;
        padding: 2px 0;
    }
    /* Desktop-only items hidden in mobile menu */
    .right-top ul li.topIcon-member,
    .right-top ul li.topIcon-logout,
    .right-top ul li.pcFBicon { display: none; }

    /* ── Main nav items ──────────────────────────────────────────────── */
    .navbar-nav {
        display: block !important;
        position: static !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .menu-mb {
        width: 100% !important;
        overflow: visible !important;
        clear: none;
    }
    .separationLine-mb { display: none; }

    .navbar-light .navbar-nav .nav-link {
        display: block;
        padding: 14px 20px;
        font-size: 1.05em;
        color: #000;
        border-bottom: 1px solid #eee;
        position: static;
        width: 100%;
        text-align: left;
    }
    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link:focus,
    .navbar-light .navbar-nav .nav-link.active {
        color: #000;
        font-weight: 700;
        background: #f0fbf5;
        padding: 14px 20px;
    }
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .dropdown:after { content: ""; }

    .dropdown { position: static; }

    .dropdown-menu {
        position: static !important;
        display: block;
        float: none !important;
        width: 100%;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0;
        border: none !important;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
    .dropdown-item {
        display: block;
        padding: 10px 20px 10px 36px;
        color: #555;
        font-size: 0.95em;
        border-bottom: 1px solid #f0f0f0;
    }
    .dropdown-item:hover { color: #000; background: #f0fbf5; }
    .dropdown .dropdown-menu::before { display: none; }

    /* .col-md-2 NOT hidden here — desktop logo already has d-none d-lg-block in HTML */

    /* ── New clean mobile nav ────────────────────────────────────────── */
    .mobile-util-strip {
        padding: 10px 16px 8px;
        background: #f5f5f5;
        border-bottom: 1px solid #ddd;
    }
    .mobile-util-strip ul {
        list-style: none; margin: 0; padding: 0;
        display: flex; flex-wrap: wrap; gap: 4px 16px;
    }
    .mobile-util-strip ul li { display: inline-block; }
    .mobile-util-strip ul li a {
        font-size: 0.85em; color: #555; text-decoration: none;
    }
    .mobile-util-strip ul li a:hover { color: #198148; }

    .mobile-nav { display: block; width: 100%; }

    .mobile-nav-item {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 1.05em;
        color: #000;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        background: none;
        border-left: none;
        border-right: none;
        border-top: none;
        text-align: left;
        cursor: pointer;
        box-sizing: border-box;
    }
    .mobile-nav-item:hover {
        background: #f0fbf5;
        color: #000;
        text-decoration: none;
    }
    .mobile-nav-item:focus { outline: none; }
    .mobile-nav-item:focus-visible {
        outline: 3px solid #198148;
        outline-offset: -3px;
        background: #f0fbf5;
        color: #000;
    }

    .mobile-nav-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 400;
    }
    .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-arrow { transform: rotate(180deg); }
    .mobile-nav-arrow { display: inline-block; transition: transform 0.2s; font-size: 0.8em; }

    .mobile-nav-group { border-bottom: 1px solid #eee; }
    .mobile-nav-group .mobile-nav-item { border-bottom: none; }

    .mobile-nav-subitem {
        display: block;
        padding: 12px 20px 12px 36px;
        font-size: 0.95em;
        color: #555;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        background: #fafafa;
    }
    .mobile-nav-subitem:hover { color: #000; background: #f0fbf5; text-decoration: none; }
    .mobile-nav-subitem:focus { outline: none; }
    .mobile-nav-subitem:focus-visible {
        outline: 3px solid #198148;
        outline-offset: -3px;
        background: #f0fbf5;
        color: #000;
    }

    /* Hide old desktop-only nav elements in mobile context */
    .right-top, .navbar-nav, .menu-mb { display: none !important; }

}

/*iPad*/
@media (min-width: 767px) and (max-width: 991px) {

    /* Same clean structure as mobile — hamburger layout at tablet widths */
    .navbar-header-mbH {
        display: flex;
        align-items: center;
        width: 100%;
        height: 65px;
        padding: 0;
        margin: 0;
    }
    .navbar-brand-mb { flex: 1; min-width: 0; margin: 0 0 0 15px; font-size: 0.0001em; color: transparent !important; }
    .navbar-brand-mb a {
        display: block; width: 100%; max-width: 200px; height: 50px;
        background: url("../../images/logo_iyouth.png") no-repeat 0 center;
        background-size: contain;
    }
    .navbar-brand a { display: none; }

    .mb-auth-btn {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 45%;
        margin-right: 8px;
        padding: 5px 14px;
        border-radius: 50px;
        background: linear-gradient(to right, rgba(186,242,209,1) 0%, rgba(154,239,243,1) 100%);
        color: #000;
        font-size: 0.9em;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.25;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .mb-auth-btn img { vertical-align: middle; }
    .mb-auth-btn:hover, .mb-auth-btn:focus {
        color: #000; text-decoration: none;
        outline: 3px solid #198148; outline-offset: 2px;
    }

    .navbar-toggle {
        display: block !important;
        flex-shrink: 0; width: 65px; height: 65px;
        margin: 0; padding: 0; border: none !important;
        background: url("../../images/svg/mb-menu.svg") no-repeat center center !important;
        background-size: 40px 40px !important;
        text-indent: -9999px; z-index: 99999; position: relative;
        overflow: hidden; cursor: pointer;
    }
    .navbar-toggle:not(.collapsed) { background-image: url("../../images/svg/mb-menu-close.svg") !important; }
    .navbar-toggle:focus { outline: 2px dashed #198148 !important; }
    .for200 { display: none !important; }

    .bg-light { height: auto !important; }

    .navbar-collapse {
        position: static !important;
        top: auto !important;
        height: auto !important;
        max-height: calc(100vh - 65px);
        overflow-y: auto !important;
        background-color: #fff;
        border-top: 2px solid #198148;
        z-index: 9999;
    }

    .right-top {
        display: block; padding: 12px 20px 8px;
        background: #f5f5f5; border-bottom: 1px solid #ddd;
    }
    .right-top p { display: none; }
    .right-top ul {
        list-style: none; margin: 0; padding: 0;
        display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
    }
    .right-top ul li { display: inline-block; margin: 0; padding: 0; }
    .right-top ul li a { text-indent: 0; font-size: 0.9em; color: #555; }
    .right-top ul li.topIcon-member,
    .right-top ul li.topIcon-logout,
    .right-top ul li.pcFBicon { display: none; }

    .navbar-nav { display: block !important; position: static !important; width: 100%; margin: 0; padding: 0; }
    .menu-mb { width: 100% !important; overflow: visible !important; margin: 0 !important; }
    .separationLine-mb { display: none; }

    .navbar-light .navbar-nav .nav-link {
        display: block; padding: 14px 20px; font-size: 1.05em;
        color: #000; border-bottom: 1px solid #eee; position: static; width: 100%; text-align: left;
    }
    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link:focus,
    .navbar-light .navbar-nav .nav-link.active {
        color: #000; font-weight: 700; background: #f0fbf5; padding: 14px 20px;
    }
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .dropdown:after { content: ""; }

    .dropdown { position: static; }
    .dropdown-menu {
        position: static !important; display: block; float: none !important;
        width: 100%; max-width: 100% !important; margin: 0 !important; padding: 0;
        border: none !important; border-radius: 0; box-shadow: none; background: transparent;
    }
    .dropdown-item {
        display: block; padding: 10px 20px 10px 36px;
        color: #555; font-size: 0.95em; border-bottom: 1px solid #f0f0f0;
    }
    .dropdown-item:hover { color: #000; background: #f0fbf5; }
    .dropdown .dropdown-menu::before { display: none; }
    /* .col-md-2 NOT hidden here — desktop logo already has d-none d-lg-block in HTML */

    /* right-top items stay hidden — mb-auth-btn handles auth on tablet too */
    .right-top ul li.topIcon-member, .right-top ul li.topIcon-logout { display: none; }

    /* Use same mobile nav classes */
    .mobile-util-strip { padding: 10px 16px 8px; background: #f5f5f5; border-bottom: 1px solid #ddd; }
    .mobile-util-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
    .mobile-util-strip ul li { display: inline-block; }
    .mobile-util-strip ul li a { font-size: 0.9em; color: #555; text-decoration: none; }
    .mobile-nav-item { display: block; width: 100%; padding: 15px 20px; font-size: 1.05em; color: #000; text-decoration: none; border-bottom: 1px solid #eee; background: none; border-left: none; border-right: none; border-top: none; text-align: left; cursor: pointer; box-sizing: border-box; }
    .mobile-nav-item:hover { background: #f0fbf5; color: #000; text-decoration: none; }
    .mobile-nav-item:focus { outline: none; }
    .mobile-nav-item:focus-visible {
        outline: 3px solid #198148;
        outline-offset: -3px;
        background: #f0fbf5;
        color: #000;
    }
    .mobile-nav-subitem { display: block; padding: 12px 20px 12px 36px; font-size: 0.95em; color: #555; text-decoration: none; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
    .mobile-nav-subitem:hover { color: #000; background: #f0fbf5; text-decoration: none; }
    .mobile-nav-subitem:focus { outline: none; }
    .mobile-nav-subitem:focus-visible {
        outline: 3px solid #198148;
        outline-offset: -3px;
        background: #f0fbf5;
        color: #000;
    }
    .mobile-nav-group { border-bottom: 1px solid #eee; }
    .mobile-nav-group .mobile-nav-item { border-bottom: none; }
    .mobile-nav-toggle { display: flex; justify-content: space-between; align-items: center; }
    .right-top, .navbar-nav, .menu-mb { display: none !important; }

}


/* iPad mini Landscape 橫 */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) {

    .navbar-header {
        margin: 8px 0 0 10px !important;
    }

    .navbar-brand {
        width: 94px !important;
        height: 50px !important;
    }

    .navbar-brand a {
        width: 94px !important;
        height: 50px !important;
        background: url("../../images/logo_iyouth_footer.png") no-repeat 0 0;
        background-size: 100%;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 33px 10px 10px 10px !important;
        font-size: .9em !important;
    }

    .navbar-light .navbar-nav .nav-link:hover {
        padding: 33px 10px 10px 10px !important;
    }

    /*下拉選單樣式*/
    .dropdown-menu {
        padding: 20px 10px 5px 10px !important;
        margin: 0;
        /* 子選單對齊主選單 */
        font-size: 1em !important;
    }

    /*右上登入登出
    -------------------------------------------------- */
    .right-top {
        float: right !important;
        margin: 0 !important;
        padding: 0 !important;
        clear: both !important;
        position: absolute !important;
        top: -3px !important;
        right: 0px !important;
    }

    .right-top ul {
        margin: 2px 25px 0 0px;
        float: right !important;
    }

    .right-top ul li a {
        font-size: .9em !important;
    }

    .right-top ul li.pcFBicon a {
        width: 25px;
        height: 25px;
        top: 10px;
        right: 25px;
    }
}

/*iPad pro*/
@media only screen and (min-width: 834px) and (max-width: 1194px) {
    .navbar-header {
        margin: 15px 0 10px 15px;
    }

    .navbar-brand {
        width: 94px;
        height: 50px;
    }

    .navbar-brand a {
        width: 94px;
        height: 50px;
        background: url("../../images/logo_iyouth_footer.png") no-repeat 0 0;
        background-size: 100%;
    }

    .navbar-light .navbar-nav .nav-link {
        color: #000;
        padding: 45px 10px 10px 10px;
        margin: 0;
        font-size: 1em;
        font-weight: 400;
        text-align: center;
        position: relative;
        top: 0;
        right: 0;
        display: table-cell;
    }

    .navbar-light .navbar-nav .nav-link:focus,
    .navbar-light .navbar-nav .show>.nav-link,
    .navbar-light .navbar-nav .active>.nav-link,
    .navbar-light .navbar-nav .nav-link.show,
    .navbar-light .navbar-nav .nav-link.active {
        color: #000;
        font-weight: 700;
        padding: 45px 10px 10px 10px;
        outline: none !important;
    }

    .navbar-light .navbar-nav .nav-link:hover {
        color: #000;
        font-weight: 700;
        padding: 45px 10px 10px 10px;
        outline: none !important;
    }

    /*下拉選單樣式*/
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 60%;
        transform: translateX(-60%);
        /*居中*/
        right: 0;
        z-index: 9000;
        display: none;
        float: left;
        width: 200px !important;
        min-width: 200px;
        padding: 20px 0 5px 0;
        margin: 0;
        /* 子選單對齊主選單 */
        font-weight: 400;
        font-size: 1em;
        text-align: center !important;
        list-style: none;
        background-color: #fff;
        background-clip: padding-box;
        box-shadow: 1px 1px 4px rgba(0, 0, 0, 0);
        border-radius: 0;
        border: 1px solid #ccc;
        opacity: 1;
    }

    /* Firefox */
    @-moz-document url-prefix() {}

    /* edge */
    @supports (-ms-ime-align:auto) and (-webkit-text-stroke:initial) {}

    /* chrome and safari */
    @media screen and (-webkit-min-device-pixel-ratio:0) {}

    .dropdown-item {
        display: block;
        width: 100%;
        padding: 0 0 20px 0;
        color: #666;
        text-align: center;
        white-space: nowrap;
        background-color: transparent;
    }

    .dropdown-item:hover {
        color: #000;
        font-weight: 700;
        text-decoration: none;
        background-color: transparent;
    }

    .dropdown-item:focus {
        color: #000;
        font-weight: 700;
        text-decoration: none;
        outline: none !important;
        background-color: transparent;
        text-decoration: none;
    }

    .dropdown-item.active,
    .dropdown-item:active {
        color: #000;
        font-weight: 700;
        text-decoration: none;
        outline: none !important;
        background-color: transparent;
    }

    .dropdown-menu.show {
        display: block;
    }

    /* 上方三角形 */
    .dropdown .dropdown-menu::before {
        content: ' ';
        position: absolute;
        width: 0;
        height: 0;
        top: -10px;
        left: 50%;
        margin-left: -10px;

        border: 1px solid #ccc;
        border-width: 0 1px 1px 0;
        display: inline-block;
        padding: 9px;
        background-color: #fff;
        transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg);
    }

    /*右上登入登出
    -------------------------------------------------- */
    .right-top {
        float: right !important;
        margin: 0;
        padding: 0;
        clear: both;
        position: absolute;
        top: -3px;
        right: 0px;
    }

    .right-top ul {
        margin: 0px 25px 0 0px;
        padding: 0;
        float: right !important;
    }

    .right-top ul li.pcFBicon a {
        width: 33px;
        height: 33px;
        top: 11px;
        right: 30px;
    }
}

/* iPad pro Landscape 橫 */
@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) {
    .navbar-header {
        margin: 15px 0 15px 15px;
    }

    .navbar-brand {
        width: 94px;
        height: 50px;
    }

    .navbar-brand a {
        width: 94px;
        height: 50px;
        background: url("../../images/logo_iyouth_footer.png") no-repeat 0 0;
        background-size: 100%;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 45px 10px 10px 10px !important;
        font-size: .9em !important;
    }

    .navbar-light .navbar-nav .nav-link:hover {
        padding: 45px 10px 10px 10px !important;
    }

    /*下拉選單樣式*/
    .dropdown-menu {
        padding: 20px 10px 5px 10px;
        margin: 0;
        /* 子選單對齊主選單 */
        font-size: 1em;

        left: 50%;
        transform: translateX(-50%);
    }

    /*右上登入登出
    -------------------------------------------------- */
    .right-top {
        float: right !important;
        margin: 0;
        padding: 0;
        clear: both;
        position: absolute;
        top: -3px;
        right: 0px;
    }

    .right-top ul {
        margin: 2px 25px 0 0px;
    }

    .right-top ul li.pcFBicon a {
        width: 33px;
        height: 33px;
        top: 11px;
        right: 30px;
    }
}


@media (max-width: 768px) {}

/* iPad */
@media (min-width: 767px) and (max-width: 991px) {}

/* iPad mini Landscape 橫 */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) {}

/* iPad pro */
@media only screen and (min-width: 834px) and (max-width: 1194px) {}

/* iPad pro Landscape 橫 */
@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) {}

/* Member actions share the main navigation dropdown behavior and appearance. */
.member-menu .member-menu-toggle {
    border: 0;
    color: #000;
    font-family: inherit;
    cursor: pointer;
}

.right-top .member-menu-toggle {
    font-size: 1em;
}

.member-menu-toggle:focus-visible {
    outline: 3px solid #198148;
    outline-offset: 2px;
}

.member-menu .dropdown-item,
.right-top ul li.member-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 0 20px;
    text-indent: 0;
    color: #666;
    border-radius: 0;
    background: transparent;
}

.member-menu .dropdown-item img {
    flex-shrink: 0;
}

/* Keep the account menu collapsible despite the mobile main-menu overrides. */
@media (max-width: 991px) {
    .member-menu-mobile {
        position: relative;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 45%;
        margin-right: 8px;
    }

    .member-menu-mobile .mb-auth-btn {
        max-width: 100%;
        margin-right: 0;
    }

    .member-menu-mobile > .dropdown-menu {
        position: absolute !important;
        top: 100%;
        left: auto;
        right: 0;
        transform: none;
        display: none;
        width: 160px !important;
        min-width: 160px;
        max-width: calc(100vw - 32px) !important;
        padding: 12px 0 0;
        border: 1px solid #ccc !important;
        background: #fff;
    }

    .member-menu-mobile > .dropdown-menu.show {
        display: block;
    }

    .member-menu-mobile .dropdown-item {
        padding-bottom: 12px;
        border-bottom: 0;
    }
}
