body{
    font-family: 'Noto Sans HK', sans-serif;
}
:root{
    --theme-red: #BE1622;
    --theme-blue: #3B5998;
    --theme-grey: #383C3A;
    --theme-light: #f7f7f7;
    --header-height: 80px;
}
a{
    color:var(--theme-grey)!important;
    text-decoration: none !important; 
}
a:hover {
    text-decoration: none;
    opacity: .9;
    color:var(--theme-red)!important;
}
a:hover img{
    opacity: .9!important;
}

img {
    width:100%;
}
.border-top-md {
    border-top:0!important;
}
@media (max-width:992px){
    .border-top-md{
        border-top:1px solid #ddd !important;
    }
}

.navbar {
    padding: 1.5rem 1rem  .2rem;
}

.logo {
    height:5.5vh;
    width:auto;
}

.navbar .subnav {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem 3rem;
    gap: 1.25rem;
}
.navbar .subnav .social-media {
    margin: 0;
}
.nav-search {
    flex-wrap: nowrap;
    width: auto;
}
.nav-search .form-control {
    width: 9.5rem;
    border-right: 0;
}
.nav-search .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
    .social-media {
        margin-left: 2rem;
    }
    .social-media-icon {
        height: 3vh;
        width: auto;
    }
    .social-media-icon:hover{
        opacity: .8;
        text-decoration: none;
    }

.navbar #navbarNav {
    margin-top: 2rem;
}
#navbarNav .nav-item {
    padding: 0 .5rem;
    flex-shrink: 0;
}
#navbarNav .nav-link {
    font-size: 1rem;
    /* letter-spacing: 1px; */
    font-weight: 400;
    white-space: nowrap;
}
#navbarNav .nav-link:hover {
    color:#BE1622 !important;
}

#navbarNav .navbar-nav .active a{
    color:#BE1622 !important;
    font-weight: 500;
}

@media (max-width:1328px){
    #navbarNav .nav-item {
        padding: 0.5rem;
        
    }
    #navbarNav .nav-link {
        font-size: 1rem;
        padding: 0 .5rem;
    }
    .social-media-icon {
        height: 3vh;
        width: auto;
    }
}
@media (max-width:1190px){
    .logo {
        height:5vh;
        width:auto;
    }
    #navbarNav .nav-link {
        font-size: .9rem;
        letter-spacing: 0px;
    }
}
/* Labels need their own row once they no longer fit beside the logos. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar.navbar-expand-lg {
        flex-wrap: wrap;
        max-width: 100%;
    }
    .navbar #navbarNav {
        flex: 1 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-top: 0.15rem;
    }
    #navbarNav .navbar-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
        max-width: 100%;
        row-gap: 0.15rem;
    }
    #navbarNav .nav-item {
        padding: 0 0.2rem;
    }
    #navbarNav .nav-link {
        font-size: 0.95rem;
        padding: 0.35rem 0.2rem;
    }
    .navbar .subnav {
        padding: 0.55rem 1rem;
    }
}
@media (max-width:991.98px){
    .navbar {
        padding: .5rem 1rem;
        align-items: center;
    }
    .logo {
        height: 36px;
        max-width: 46vw;
        object-fit: contain;
    }
    .navbar-toggler {
        margin-left: auto;
        padding: 0.35rem 0.55rem;
    }
    .navbar-brand-h2c {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    .navbar #navbarNav {
        margin-top: 0;
    }
    .navbar #navbarNav.show {
        max-height: calc(100dvh - 4.25rem);
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid #eee;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.25rem 0.75rem 1rem;
    }
    .navbar #navbarNav .navbar-nav{
        padding-top: 0.25rem;
    }
    #navbarNav .nav-item {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    #navbarNav .nav-link {
        font-size: 1.125rem;
        letter-spacing: 0;
        font-weight: 400;
        padding: 0.8rem 0.35rem;
    }
    #navbarNav .nav-item.d-lg-none {
        border-bottom: 0;
        padding-top: 0.75rem;
    }
}
.sub-nav-group {
    margin: 0!important;
}
.sub-nav-group ul{
    display: flex;
    margin: 0!important;

}
.sub-nav-group ul li{
    list-style: none;
    padding: 0 1rem;
}


.sub-nav-group ul li a{
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
}
.sub-nav-group ul li a:hover{
    color:#fff !important;
    opacity: .9;
}



.sub-nav-group ul .active{
    border-bottom: 3px solid #fff !important;
}

.subnav .nav .nav-item .nav-link:hover{
    color:#fff !important;
    opacity: .8;
}
.subnav .nav .nav-item .active{
    border-bottom: 3px solid #fff !important;
}


/*header — clear the fixed navbar so breadcrumbs are visible */
header, .wrapper {
    margin-top: var(--header-height, 80px);
}
@media (max-width:992px){
    header, .wrapper{
        margin-top: var(--header-height, 80px);
    }
}


/*Homepage - 4 button*/
#home-btn .red-container a{
    color:#fff!important;
}
#home-btn .white-container{
    opacity: 1;
}
#home-btn .red-container a, 
#home-btn .white-container a{
    height: 180px;
}
#home-btn .red-container a h2, 
#home-btn .white-container a h2{
    margin-top: .3rem;
    letter-spacing: 2px;

}

/* Latest-news card matches the 2×2 shortcut block on desktop. */
@media (min-width: 992px) {
    #home-btn .container > .row > .col-lg-6:first-child {
        margin-bottom: 0 !important;
    }
    #home-btn .home-latest {
        position: relative;
    }
    #home-btn .home-latest > .card {
        position: absolute;
        top: 0;
        bottom: 1rem;
        left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        width: auto;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        margin-bottom: 0;
    }
    #home-btn .home-latest .card-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #home-btn .home-latest h5 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        margin-bottom: 0;
    }
    #home-btn .home-latest img {
        width: 100%;
        height: 84px;
        object-fit: cover;
    }
}

/* World Heart Day: poster and activity list share one height on desktop. */
#whd .whd-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#whd .whd-activity-list .card {
    overflow: hidden;
}
@media (min-width: 992px) {
    #whd .whd-poster,
    #whd .whd-poster a {
        display: flex;
        height: 100%;
    }
    #whd .whd-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #whd .whd-activity-list {
        flex: 1 1 auto;
        min-height: 0;
    }
    #whd .whd-activity-list > a {
        flex: 1 1 0;
        display: flex;
        min-height: 0;
    }
    #whd .whd-activity-list .card,
    #whd .whd-activity-list .card-body {
        flex: 1;
        width: 100%;
        height: 100%;
        margin: 0;
    }
    #whd .whd-activity-list .col-4,
    #whd .whd-activity-list .col-4 img {
        height: 100%;
    }
    #whd .whd-activity-list .col-4 img {
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 991.98px) {
    #whd .whd-activity-list .card-body {
        display: flex;
        align-items: stretch;
        min-height: 108px;
        margin-left: 0;
        margin-right: 0;
    }
    #whd .whd-activity-list .col-4 {
        position: relative;
        padding-left: 0;
        padding-right: 0;
    }
    #whd .whd-activity-list .col-4 img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #whd .whd-activity-list h5 {
        font-size: 0.95rem;
        line-height: 1.35;
        margin-bottom: 0.2rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    #whd .section-title {
        font-size: 2rem;
        letter-spacing: 0.12em;
    }
}

/*footer */
.site-footer {
    background: #eee;
    overflow: hidden;
}
footer ul li a{
    color:#575E61;
    font-weight: 300;
    opacity: .8;
}
footer ul li a:hover{
    color: var(--theme-red)!important;
}
footer .logo-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-right: 1px solid #ccc;
}
footer .logo-group a{
    margin-bottom: 2rem;
}
footer .logo-group a:last-child {
    margin-bottom: 0;
}
footer .logo-group img {
    width: auto;
    max-width: 100%;
    height: auto;
}
footer .footer-nav{
    padding-left: 2rem;
}
footer .footer-nav h5, footer .footer-nav li{
    font-size: 1rem;
}
footer .footer-channel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
}
@media (min-width:992px){
    footer .footer-nav h5{
        font-size: 1.5rem;
    }
    footer .footer-nav li{
        font-size: 1.1rem;
    }
}
footer .icon-group a{
    margin-right: 1rem;
}
footer .icon-group .facebook:hover{
    color:var(--theme-blue)!important;
}
footer .icon-group .youtube:hover{
    color:var(--theme-red)!important;
}
.foot-copyright{
    background: #d5d5d5;
    color:#575E61;
    text-align: center;
    opacity: .6;
    margin-bottom: 0;
    padding: .5rem;
}
.foot-copyright p {
    margin: 0;
}
@media (max-width:991.98px){
    footer .logo-group {
        flex-direction: row-reverse;
        justify-content: space-around;
        border-right: 0;
        border-bottom: 1px solid #ccc;
        margin: 0 0 0.5rem;
    }
    footer .logo-group a{
        margin-bottom: 0;
    }
    footer .footer-nav{
        padding: 1.5rem 12px 0;
    }
    footer .footer-nav > .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        row-gap: 1.25rem;
        align-items: start;
        width: 100%;
        margin: 0;
    }
    footer .footer-nav > .row > [class*="col"] {
        width: auto;
        max-width: none;
        padding: 0;
    }
    footer .footer-nav > .row > .col-12 {
        grid-column: 1 / -1;
    }
    footer .footer-channel {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

.section-title {
    font-size: 3rem;
    letter-spacing: 5px;
    color: var(--theme-grey);
    font-weight: 300;
}
@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.75rem;
        letter-spacing: 0.12em;
    }
}
.section-subtitle {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--theme-grey);
    font-weight: 300;
    text-align: center;
}



/*breadcrumb*/
#breadcrumb {
    padding: 1rem 3rem;
}
@media (max-width:992px){
    #breadcrumb {
        padding: 1rem .5rem;
    }
}
#breadcrumb .breadcrumb {
    background: none!important;
    font-size: .9rem;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    font-weight: 300;
}

#breadcrumb .breadcrumb .breadcrumb-item, 
#breadcrumb .breadcrumb .breadcrumb-item + .breadcrumb-item::before{
    color:#ddd !important;
}

#breadcrumb .breadcrumb .breadcrumb-item a:hover{
    color:var(--theme-red);
}

#breadcrumb .breadcrumb .active {
    color: #000 !important;
}








/*Content*/
#content {
   margin-top: 2rem;
}

/* Match /latest: breadcrumb padding is the only gap above the first item. */
.feed-page #content {
    margin-top: 0;
}
.feed-page #content .post_card {
    padding-top: 0 !important;
}

.feed-load-wrap {
    display: flex;
    justify-content: center;
    padding: 1.75rem 1rem 2.5rem;
}
.feed-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 240px;
    margin: 0;
    padding: 0.95rem 2.6rem;
    border: 1.5px solid var(--theme-red);
    border-radius: 999px;
    background: #fff;
    color: var(--theme-red);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(190, 22, 34, 0.08);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.feed-load-more:hover {
    background: var(--theme-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(190, 22, 34, 0.18);
}
.feed-load-more.is-loading,
.feed-load-more.is-error {
    cursor: default;
}
.feed-load-more.is-loading,
.feed-load-more.is-loading:hover {
    color: var(--theme-red);
    border-color: rgba(190, 22, 34, 0.28);
    background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
    box-shadow: 0 10px 28px rgba(190, 22, 34, 0.12);
    letter-spacing: 0.22em;
}
.feed-load-more.is-error {
    border-color: var(--theme-red);
    color: var(--theme-red);
    cursor: pointer;
}
.feed-load-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
}
.feed-load-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    animation: feed-load-spin 0.75s linear infinite;
}
.feed-load-track,
.feed-load-arc {
    fill: none;
    stroke-width: 2.25;
}
.feed-load-track {
    stroke: rgba(190, 22, 34, 0.16);
}
.feed-load-arc {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 16 56;
}
@keyframes feed-load-spin {
    to { transform: rotate(360deg); }
}

.feed-bone {
    display: block;
    border-radius: 4px;
    background: linear-gradient(90deg, #ececec 25%, #f7f7f7 37%, #ececec 63%);
    background-size: 400% 100%;
    animation: feed-bone 1.2s ease infinite;
}
.feed-bone-thumb {
    min-height: 132px;
}
.feed-bone-cover {
    height: 180px;
    border-radius: 0;
}
.feed-bone-line {
    height: 14px;
    width: 100%;
}
.feed-bone-line.is-short {
    width: 28%;
    height: 12px;
}
.feed-bone-line.is-mid {
    width: 72%;
}
.feed-bone-on-red {
    background: rgba(255, 255, 255, 0.35);
    animation: none;
}
.feed-bone-hero {
    height: 280px;
    border-radius: 0;
}
.feed-bone-tile {
    display: block;
    height: 140px;
}
@media (min-width: 992px) {
    .feed-bone-hero { height: 420px; }
}
@keyframes feed-bone {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .feed-bone { animation: none; background: #ececec; }
}

#content .content-title{
    color:var(--theme-grey);
    letter-spacing: 4px;
    text-align: center;
}


/* =======Introduction: Editoral Board =======*/
#editoral-msg .msg-container{
    line-height:2;
    font-weight: 300 !important;
}


@media (max-width:576px){
    #editoral-msg .img-container{
        margin: 0 auto;
    }
    #editoral-msg .img-container img{
        max-width:250px !important;
    }
    
}


#editoralboard {
    margin-top: 2rem;
    padding: 0 4rem 6rem;
}
#editoralboard .editor-pic {
    max-width:200px; 
    padding: .7rem;
    background-color: rgb(231, 232, 233, .8);
    border-radius: 50%;
}
#editoralboard .name {
    font-size:1.3rem;
    font-weight: 500;
    padding-top: .5rem;
    letter-spacing: 2px;
}
#editoralboard .title {
    font-size:1.1rem;
    letter-spacing: 2px;
    font-weight: 300;
}
#editoralboard .subtitle {
    font-weight: 300;
}
#editoralboard .editor-group {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}
#editoralboard .editor-group .editor{
    width: 14%;
    margin-bottom: 1rem;
}

#editoralboard .editor-group .editor-pic{
    width:80%;
    max-width: 170px;
}
#editoralboard .title {
    font-size:1rem !important;
}
#editoralboard .subtitle {
    font-size:1rem !important;
}
#editoralboard .editor-group .subtitle {
    font-size:.9rem !important;
}
@media (max-width:1410px){
    #editoralboard .editor-group .subtitle {
        font-size:.8rem !important;
    }
}
@media (max-width:1293px){
    #editoralboard .editor-group .title {
        font-size:.9rem !important;
    }
}
@media (max-width:992px){

    #editoralboard .editor-group{
        margin-top: 2rem;
        flex-wrap: wrap;
    }
    #editoralboard .editor-group .editor{
        margin-top:2rem;
        width: 33%;
        margin-bottom:0rem;
    }
    #editoralboard .name {
        font-size:1.4rem !important;
    }
    #editoralboard .title, #editoralboard .editor-group .title  {
        font-size:1.1rem !important;
    }
    #editoralboard .subtitle, #editoralboard .editor-group .subtitle  {
        font-size:1rem !important;
    }

}
@media (max-width:660px){
    #editoralboard .editor-pic{
        max-width:170px !important;
        padding: .5rem;
    }
    #editoralboard .editor-group{
        margin-top: 0rem;
        flex-direction: column;
    }
    #editoralboard .editor-group .editor{
        width: 100%;
    }
}
/* =======End of Introduction: Editoral Board =======*/


#subscription {
    background: var(--theme-light);
}

.sub-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(56, 60, 58, 0.45);
}
.sub-overlay-card {
    width: min(100%, 22rem);
    padding: 2rem 1.75rem 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 18px 50px rgba(56, 60, 58, 0.18);
}
.sub-overlay-card p {
    margin: 0 0 1.25rem;
    color: var(--theme-grey);
    font-size: 1.15rem;
    line-height: 1.6;
}


/*Post */
.img-container {
    max-height: 400px;
    display: flex;
    justify-content: center;
}
.img-container img{
    max-height: 400px;
    width: auto;
    object-fit: contain;
}
@media (max-width:576px){
    #WHD .img-container {
        max-width: 350px;
        height: auto;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }
    .img-container img{
        max-width: 350px;
        height: auto;
        object-fit: contain;
    }
}

.blog-container p, .blog-container div {
    text-align: justify;
    font-size: 1.2rem;
}
@media (max-width: 991.98px) {
    .wrapper > section > .row {
        margin-left: 0;
        margin-right: 0;
    }
    .wrapper > section > .row > [class*="col"] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .wrapper > section h2 {
        overflow-wrap: anywhere;
    }
    .blog-container p, .blog-container div {
        text-align: start;
        overflow-wrap: break-word;
    }
}

.blog-container img {
    width: initial!important;
    max-width: 100%;
    height: auto;
    margin: auto !important;
    margin-bottom: .5rem !important;

}
    @media (min-width: 912px){
        .blog-container img {
            width: initial!important;
            height: auto;
            margin: auto !important;

        }
    }

    
.post_card a .card-img-container{
    width: 100%;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post_card:hover a{
    color:var(--theme-red)!important;
}
.post_card:hover img{
    opacity: .9;
}
.feed-post {
    display: block;
    height: 100%;
    color: inherit;
}
.feed-post .card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.feed-post .card-img-container,
.feed-post .feed-post-thumb {
    overflow: hidden;
}
.feed-post .feed-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media (min-width: 992px) {
    .feed-post .feed-post-thumb {
        position: relative;
        min-height: 132px;
    }
    .feed-post .feed-post-thumb img {
        position: absolute;
        inset: 0;
        height: 100%;
    }
}
.feed-post img {
    transition: transform 0.45s ease;
}
.feed-post:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(44, 49, 54, 0.14) !important;
}
.feed-post:hover img {
    transform: scale(1.045);
    opacity: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
    .feed-post .card,
    .feed-post img {
        transition: none;
    }
    .feed-post:hover .card,
    .feed-post:hover img {
        transform: none;
    }
}
.post_card:hover .btn{
    color: #fff !important;
    opacity: .9;
}

@media only screen and (min-width: 768px) {
    .post_card a .card-img-container{
        height: 200px;
    }
    .post_card a .card-img-container .post_thumb {
        object-fit: cover;
        height: 100%;
        width: 100%;
        object-position:50% 0%;
    }
}

@media only screen and (min-width: 800px) {
    .post_card a .card-img-container{
        height: 210px;
    }
}

/* @media only screen and (min-width: 992px) {
    .post_card a .card-img-container{
        height: 33vh;
    }
} */

@media only screen and (min-width: 1024px) {
    .post_card a .card-img-container{
        height: 160px;
    }
}

@media only screen and (min-width: 1200px) {
    .post_card a .card-img-container{
        height: 280px;
    }
}
@media only screen and (min-width: 1280px) {
    .post_card a .card-img-container{
        height: 210px;
    }
}
@media only screen and (min-width: 1366px) {
    .post_card a .card-img-container{
        height: 225px;
    }
}
@media only screen and (min-width: 1440px) {
    .post_card a .card-img-container{
        height: 240px;
    }
}
@media only screen and (min-width: 1600px) {
    .post_card a .card-img-container{
        height: 270px;
    }
}

@media only screen and (min-width: 1920px) {
    .post_card a .card-img-container{
        height: 330px;
    }
}






.related-post {
    display: flex;
    flex-direction: column;
}
.post_card .post_title {
    min-height: 50px;
}

@media (max-width:992px){
    .related-post {
        margin-top: 1rem;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .related-post .post_card{
        width: 45%;
        margin: 1rem .5rem;

    }
}


/* pagination */
#pagination .active a,
#pagination .page-item.active .page-link {
    background: var(--theme-red)!important;
    border-color: var(--theme-red)!important;
    color:#fff!important;
}
#pagination .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
}


/*=========Gallery===========*/
/* The Modal (background) */
#myModal  {
  display: none;
}
#myModal .modals {
    
    position: fixed;
    z-index: 9999;
    padding-top: 2rem;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgb(0, 0, 0, .9);
  }
  
  /* Modal Content */
  #myModal .modal-content {
    position: relative;
    background:none;
    margin: auto;
    padding: 1rem 0;
    width: 100%;
    height: 80vh;
    max-height: 80vh;
  }
  
  /* Hide the slides by default */
  .mySlides {
      position: fixed;
      top: calc(50% - 40vh);
      left: calc(50% - 30%);
      opacity: 0;
      margin: auto;
      width: 60%;
      height: 80vh;
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .mySlides img{
      object-fit: contain;
      margin: auto;
      width: 100%;
      max-height: 500px;
  
  }
  
  .cursor {
    cursor: pointer;
  }
  
  /* The Close Button */
  #myModal .close {
      color: white;
      position: absolute;
      top: 1rem;
      right: 2rem;
      font-size: 3rem;
      padding: 1rem;
      width: 5rem;
      height: 5rem;
      font-weight: bold;
      z-index: 2;
  }
  
  #myModal  .close:hover,
  #myModal  .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    z-index: 9999;
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 2rem;
    /* margin-top: calc(50% - 40vh); */
    color: white;
    font-weight: bold;
    font-size: 2rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .active,
  .demo:hover {
    opacity: 1;
  }
  
  img.hover-shadow {
    transition: 0.3s;
  }
  
  .hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  .img-border {
      padding: .3rem;
      -webkit-border-radius: .3rem;
      -moz-border-radius: .2rem;
      border-radius: .2rem;
      -webkit-box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.2); 
      box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.2);
  }

/*=========End of Gallery===========*/


/*=========iFrame===========*/
.iframe-container{
    position: relative;
    /* width: 90%; */
    padding-bottom: 56.25%; 
    height: 0;
}

@media (max-width:992px){
    .iframe-container{
        position: relative;
        width: 100%;
    }
}


.iframe-container iframe{
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*=========End of iFrame===========*/

/* Match hkhearthealth.com/drawing-competition: 14px type, 20px line box, banner under the nav. */
#content.drawing-page {
    margin-top: var(--header-height, 80px);
    font-size: 14px;
    line-height: 1.4285em;
}
#content.drawing-page > img {
    display: block;
    width: 100%;
    height: auto;
}
#mission-subnav .nav {
    flex-wrap: wrap;
}
#mission-subnav .nav-link {
    font-size: 14px;
    line-height: 20px;
    padding: 7px 14px;
    white-space: nowrap;
}

/*Your Heart Mission*/
.content-box:nth-child(even) {
    background: #f5f5f5 !important;
}

.content-box .content-heading{
    color: #000 !important;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, .8);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    padding: 3.5rem;
    background-image: url(../../images/paint-bg.png);
    background-size: 200px ;
    background-repeat: no-repeat;
    background-position: center;
}

#mission-subnav .nav .nav-item .active{
    -webkit-box-shadow: 0px -4px 7px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px -4px 7px 0px rgba(0,0,0,0.1);
    box-shadow: 0px -4px 7px 0px rgba(0,0,0,0.1);
}

#mission-subnav .nav .nav-item:hover > .nav-link{
    opacity: .7;
    background: #fff;
    color: #000!important;
}


#mission-subnav .nav .nav-item:hover > .active{
    opacity: 1!important;
    color: #000!important;
}
#steps {
    position: relative;
}
#steps:before{
    position: absolute;
    content: "";
    border: 1px solid rgb(245, 245, 245);
    width: 60%;
    left: 20%;
    top: 45%;
    z-index: -1;
}
#steps .step-box{
    text-align: center;
    color:rgb(206, 206, 206);
    position: relative;

}
#steps .step-box:after{
    position: absolute;
    content: "";
    background: rgb(245, 245, 245);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1rem solid #fff;
    top: -1.5rem;
    left: calc(100%/2 - 60px);
    z-index: -1;
}


#steps .active-step{
    color: rgb(79, 79, 79);
}
#steps a.step-box{
    color: rgb(206, 206, 206);
}
#steps a.step-box.active-step{
    color: rgb(79, 79, 79);
}
#register .card-header{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
}
#register .register-step-kicker{
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}
#register .register-step-title{
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
}
#register .card-footer{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #fff;
    padding: 1rem 1.5rem;
}
#register .register-action{
    min-width: 12rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#register a.register-action,
#register a.register-action:hover,
#register a.register-action:focus{
    color: #fff !important;
}
#register .register-thanks-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    background: #fff5f5;
    color: #dc3545;
}
#register .register-drop{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 18rem;
    margin-bottom: 1rem;
    padding: 2rem 1.25rem;
    border: 2px dashed #ced4da;
    border-radius: 0.75rem;
    background: #f8f9fa;
    color: #212529;
    text-align: center;
    cursor: pointer;
}
#register .register-drop.is-over{
    border-color: #dc3545;
    background: #fff5f5;
}


.has-search .form-control {
    padding-left: 2.375rem;
    
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: flex;
    padding-top:.5rem;
    width: 1.8rem;
    height: 1.8rem;
    line-height: 1.5rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

#gallery .gallery-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    overflow: hidden;
}
#gallery .gallery-search:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
#gallery .gallery-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
#gallery .gallery-search-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    color: #adb5bd;
    pointer-events: none;
}
#gallery .gallery-search-input {
    width: 100%;
    height: 100%;
    min-height: 2.5rem;
    margin: 0;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 0;
    background: transparent;
    color: #212529;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
}
#gallery .gallery-search-input::placeholder {
    color: #adb5bd;
}
#gallery .gallery-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
#gallery .gallery-search-btn {
    flex: none;
    margin: 0;
    padding: 0 1rem;
    border: 0;
    border-left: 1px solid #ced4da;
    background: #dc3545;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
#gallery .gallery-search-btn:hover,
#gallery .gallery-search-btn:focus {
    background: #bb2d3b;
    color: #fff;
}

#gallery .draw-container { 
    width: 100%; 
    height: 300px;
    max-height: 300px;
    background: rgb(244, 244, 244);
}
#gallery .draw-container img{ 
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-img-container {
    width: 100%; 
    height: 500px;
    max-height: 500px;
}
.modal-img-container img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Artwork modal: entire dialog fits the viewport; image scales to show fully (no scroll). */
#gallery .modal {
    overflow: hidden;
    padding: 0 !important;
}
#gallery .gallery-modal-dialog,
#gallery .modal.fade .gallery-modal-dialog,
#gallery .modal.show .gallery-modal-dialog {
    position: fixed;
    top: max(0.75rem, calc((100svh - min(90svh, 780px)) / 2));
    left: 0;
    right: 0;
    transform: none !important;
    width: min(96vw, 1100px);
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: min(90svh, 780px);
    max-height: min(90svh, 780px);
}
#gallery .gallery-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
}
#gallery .gallery-modal-header {
    flex: none;
    padding: 0.65rem 1rem;
}
#gallery .gallery-modal-header .modal-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 0.5rem;
}
#gallery .gallery-modal-heading {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#gallery .gallery-modal-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    padding: 0.75rem 1rem;
    overflow: hidden;
    background: #f5f6f6;
}
#gallery .gallery-modal-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.5rem 2.75rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(23, 58, 60, 0.08);
}
#gallery .gallery-modal-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#gallery .gallery-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #243b3d;
    box-shadow: 0 2px 10px rgba(23, 58, 60, 0.18);
    transform: translateY(-50%);
    cursor: pointer;
}
#gallery .gallery-modal-nav:hover,
#gallery .gallery-modal-nav:focus {
    background: #fff;
    color: #dc3545;
    outline: none;
}
#gallery .gallery-modal-nav-prev {
    left: 0.35rem;
}
#gallery .gallery-modal-nav-next {
    right: 0.35rem;
}
#gallery .gallery-modal-meta {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(23, 58, 60, 0.08);
}
#gallery .gallery-modal-number {
    margin-bottom: 0.15rem;
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
#gallery .gallery-modal-name {
    margin: 0;
    color: #243b3d;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
}
#gallery .gallery-modal-school {
    margin-top: 0.15rem;
    color: #6c7d7e;
    font-size: 0.85rem;
}
#gallery .gallery-modal-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 2.5rem;
    color: #6c7d7e;
    font-size: 0.95rem;
    line-height: 1;
}
#gallery .gallery-modal-footer {
    flex: none;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-top: 1px solid rgba(23, 58, 60, 0.08);
    background: #fff;
}
#gallery .gallery-modal-footer .btn {
    padding: 0.45rem 2rem;
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    #gallery .gallery-modal-dialog,
    #gallery .modal.fade .gallery-modal-dialog,
    #gallery .modal.show .gallery-modal-dialog {
        top: max(0.35rem, calc((100svh - min(90svh, 700px)) / 2));
        width: calc(100vw - 0.75rem);
        height: min(90svh, 700px);
        max-height: min(90svh, 700px);
    }
    #gallery .gallery-modal-body {
        padding: 0.55rem 0.65rem;
        gap: 0.5rem;
    }
    #gallery .gallery-modal-stage {
        padding: 0.4rem 2.25rem;
    }
    #gallery .gallery-modal-nav {
        width: 2.15rem;
        height: 2.15rem;
    }
    #gallery .gallery-modal-meta {
        align-items: center;
        padding: 0.45rem 0.6rem;
    }
    #gallery .gallery-modal-name {
        font-size: 1.05rem;
    }
    #gallery .gallery-modal-footer .btn {
        width: 100%;
    }
}

#gallery .btn-group .btn {
    font-size: 1.25em;
    padding: 7px 14px;
    color: #6c757d !important;
    background: #fff;
    border-color: #f8f9fa;
    opacity: 1;
}
#gallery .btn-group .btn:hover {
    color: #6c757d !important;
    opacity: 1;
}
#gallery .btn-group .btn-danger,
#gallery .btn-group .btn-danger:hover {
    color: #fff !important;
    background-color: #dc3545;
    border-color: #dc3545;
}
#gallery .album-year-label {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

#vote.vote-shell {
    margin: 1.75rem auto 2.5rem;
}
#vote .vote-back {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: #1d6b6e;
    font-size: 1rem;
    text-decoration: none;
}
#vote .vote-back:hover {
    text-decoration: underline;
}
#vote .vote-title {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    margin: 0.25rem 0 0.75rem;
    padding: 0;
    letter-spacing: 0;
    background: none;
    text-shadow: none;
}
#vote .card-body {
    padding: 1.35rem 1.4rem 1.5rem;
}
#vote .vote-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23, 58, 60, 0.08);
}
#vote .vote-card h3 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
    font-weight: 600;
    text-align: center;
    color: #1d3c3e;
}
#vote .vote-note {
    margin: -0.35rem 0 1rem;
    color: #5f6f70;
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}
#vote .vote-sent-card .card-body {
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
}
#vote .vote-sent-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d6b6e;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0%, transparent 55%),
        linear-gradient(160deg, #d8f1f2 0%, #b8e0e2 100%);
    box-shadow: 0 8px 20px rgba(72, 170, 173, 0.18);
}
#vote .vote-sent-card h3 {
    margin-bottom: 0.65rem;
}
#vote .vote-sent-lead {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}
#vote .vote-sent-email {
    margin: 0 auto 1rem;
    max-width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    background: #f4fafa;
    color: #1d6b6e;
    font-size: 1.05rem;
    font-weight: 600;
    word-break: break-all;
}
#vote .vote-sent-hint {
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
    color: #6a7a7b;
}
#vote .vote-result {
    text-align: center;
}
#vote .vote-result-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(72, 170, 173, 0.18);
}
#vote .vote-result.is-ok .vote-result-icon {
    color: #1d6b6e;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0%, transparent 55%),
        linear-gradient(160deg, #d8f1f2 0%, #b8e0e2 100%);
}
#vote .vote-result.is-bad .vote-result-icon {
    color: #9b3b3b;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0%, transparent 55%),
        linear-gradient(160deg, #fdeeee 0%, #f5d0d0 100%);
    box-shadow: 0 8px 20px rgba(180, 70, 70, 0.14);
}
#vote .vote-result h3 {
    margin: 0 0 0.55rem;
}
#vote .vote-result.is-bad h3 {
    color: #8a3030;
}
#vote .vote-result-msg {
    margin: 0;
}
#vote .vote-status {
    margin-top: 0.15rem;
    padding: 1rem 1rem 0.85rem;
    background: #f4fafa;
    border-radius: 14px;
    text-align: center;
}
#vote .vote-status p {
    margin: 0 0 0.9rem;
    color: #1d3c3e;
    font-size: 1.05rem;
    line-height: 1.55;
}
#vote .vote-status .vote-actions {
    margin-top: 0;
}
#vote .vote-text-btn {
    align-self: center;
    padding: 0;
    border: 0;
    background: none;
    color: #1d6b6e;
    font-size: 0.95rem;
}
#vote .vote-text-btn:hover {
    text-decoration: underline;
}
#vote .vote-field {
    display: block;
    margin-bottom: 0.85rem;
}
#vote .vote-field > span {
    display: block;
    margin-bottom: 0.35rem;
    color: #5c6b6c;
    font-size: 0.95rem;
    font-weight: 600;
}
#vote .vote-control {
    position: relative;
    display: block;
}
#vote .vote-control .form-control {
    padding: 0.7rem 2.75rem 0.7rem 0.9rem;
}
#vote .form-control {
    border-radius: 12px;
    border-color: #d7e2e2;
    background: #fff;
}
#vote .form-control:focus {
    border-color: #48aaad;
    box-shadow: 0 0 0 3px rgba(72, 170, 173, 0.16);
}
#vote .vote-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 0.35rem;
}
#vote .vote-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
#vote .vote-actions a:not(.btn) {
    color: #1d6b6e;
    font-size: 0.95rem;
    text-decoration: none;
}
#vote .vote-actions a:not(.btn):hover {
    text-decoration: underline;
}
#vote form.mb-5 {
    margin-bottom: 0 !important;
}
#vote > .container {
    max-width: 34rem;
    font-size: 1.2rem;
}
#vote .form-control,
#vote .input-group-text,
#vote .btn {
    font-size: 1.2rem;
}
#vote .form-control,
#vote .input-group-text {
    padding: 0.7rem 0.9rem;
}
#vote h5,
#vote p {
    font-size: 1.2rem;
    line-height: 1.6;
}
#vote .card-header {
    background-color: #0dcaf0;
}
#vote .card-header,
#vote .card-header h3 {
    color: #fff !important;
}
#vote .card-header h3 {
    margin: 0;
    font-size: 1.6rem;
}
#vote .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6d7c7d;
}
#vote .password-toggle:hover,
#vote .password-toggle:focus {
    background: #f3f7f7;
    color: #1d3c3e;
}
#vote .requirement-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0.35rem 1rem;
    text-align: left;
    background: #f4fafa;
    border-radius: 14px;
}
#vote .requirement-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.4rem 0;
    color: #8b9499;
    font-size: 1.15rem;
}
#vote .requirement-list li + li {
    border-top: 1px solid #e4eeee;
}
#vote .requirement-list .mark {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    border: 1.5px solid #c9d4d4;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    flex: none;
    color: transparent;
}
#vote .requirement-list li.met {
    color: #1d6b6e;
}
#vote .requirement-list li.met .mark {
    background: #48aaad;
    border-color: #48aaad;
    color: #fff;
}
#vote .btn-lg {
    font-size: 1.25em;
    padding: 7px 42px;
}
#vote .btn-info,
#vote .btn-info:hover {
    color: #fff !important;
    background-color: #48aaad;
    border-color: #48aaad;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    opacity: 1;
}
#vote .btn-info:disabled,
#vote .btn-info:disabled:hover {
    opacity: 0.45;
    cursor: not-allowed;
}
#vote .btn-info.is-pending:disabled,
#vote .btn-info.is-pending:disabled:hover {
    opacity: 1;
    cursor: progress;
}
#vote .vote-spinner {
    width: 0.95em;
    height: 0.95em;
    margin-right: 0.45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    vertical-align: -0.12em;
    animation: vote-spin 0.7s linear infinite;
}
#vote .vote-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 8rem;
    color: #1d6b6e;
}
#vote .vote-loading .vote-spinner {
    margin-right: 0;
}
#vote .vote-input {
    position: relative;
    display: block;
}
#vote .vote-input.is-looking .form-control {
    padding-right: 2.75rem;
}
#vote .vote-field-status {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: #48aaad;
    line-height: 0;
}
#vote .vote-field-status .vote-spinner {
    margin-right: 0;
}
@keyframes vote-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    #vote .vote-spinner {
        animation: none;
        border-right-color: currentColor;
        opacity: 0.65;
    }
}
#vote a.btn-info,
#vote a.btn-info:hover,
#vote a.btn-danger,
#vote a.btn-danger:hover {
    color: #fff !important;
    opacity: 1;
}
#vote a.btn-danger,
#vote a.btn-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}
#vote a.text-primary,
#vote a.text-primary:hover {
    color: #0d6efd !important;
    opacity: 1;
}

.drawing-notice {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.55);
}
.drawing-notice .card {
    width: 100%;
    max-width: 28rem;
}
.drawing-notice .btn-info,
.drawing-notice .btn-info:hover {
    color: #000;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}
.drawing-notice-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drawing-notice-icon.is-ok {
    color: #1d6b6e;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0%, transparent 55%),
        linear-gradient(160deg, #d8f1f2 0%, #b8e0e2 100%);
    box-shadow: 0 8px 20px rgba(72, 170, 173, 0.18);
}
.drawing-notice-countdown {
    margin: 0;
    color: #6a7a7b;
    font-size: 0.95rem;
}
.drawing-page-loading {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
}
.drawing-page-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    min-width: 11rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(23, 58, 60, 0.12);
    color: #1d6b6e;
    font-size: 1.1rem;
    font-weight: 600;
}
.drawing-page-loading .vote-spinner {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0;
    border: 2.5px solid #48aaad;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: vote-spin 0.7s linear infinite;
}

#gallery .vote .btn-info,
#gallery .vote .btn-info:hover,
#gallery .btn-hover-white:hover, 
#resultBox .btn-hover-white:hover{
    color:#fff!important;
}
#gallery .vote-btn:hover {
    opacity: .5;
}

#gallery .gallery-copy-btn .gallery-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    background: #212529;
    color: #fff;
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 5;
}
#gallery .gallery-copy-btn .gallery-copy-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}
.share-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: #fff;
    color: #6c757d;
    border: 1px solid #e7e7e7;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.45;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #f3f3f3;
  }
  .videoWrapper iframe,
  .videoWrapper .fb-video,
  .videoWrapper .fb-video > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .videoWrapper .fb-video iframe {
    width: 100% !important;
    height: 100% !important;
  }
  .videoWrapper a img,
  .videoWrapper > img,
  .videoWrapper .video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 0;
  }
  .videoWrapper .video-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    background: #ececec;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .videoWrapper .video-fallback i {
    opacity: 0.7;
  }
  .videoWrapper a.video-fallback:hover {
    color: #dc3545;
    background: #e6e6e6;
  }
.hover-video-link {
    display: block;
    color: inherit;
}
.hover-video {
    background: #111;
}
.hover-video iframe {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.hover-video.is-playing iframe,
.hover-video.is-native iframe {
    opacity: 1;
}
.hover-video.is-native iframe {
    pointer-events: auto;
}
.hover-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
.hover-video.is-playing .hover-poster {
    opacity: 0;
    pointer-events: none;
}
.hover-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hover-poster::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.38));
}
.hover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 50%;
    background: var(--theme-red);
    color: #fff;
    font-size: 1.15rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease;
}
.hover-play svg {
    margin-left: 2px;
}
.hover-video:hover .hover-poster img {
    transform: scale(1.06);
}
.hover-video:hover .hover-play {
    transform: translate(-50%, -50%) scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
    .hover-poster,
    .hover-poster img,
    .hover-play,
    .hover-video iframe {
        transition: none;
    }
    .hover-video:hover .hover-poster img,
    .hover-video:hover .hover-play {
        transform: translate(-50%, -50%);
    }
    .hover-video:hover .hover-poster img {
        transform: none;
    }
}
.video-detail {
    max-width: 960px;
    margin: 0.25rem auto 0;
}
.video-detail-kicker {
    margin: 0 0 0.55rem;
    color: var(--theme-red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.video-detail-title {
    margin: 0 0 0.7rem;
    color: #2c3136;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 650;
    line-height: 1.35;
}
.video-detail-meta {
    margin: 0 0 1.15rem;
    color: #6b7278;
    font-size: 0.98rem;
}
.video-detail-player {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(28, 32, 36, 0.12);
}
.video-detail-player .videoWrapper {
    border-radius: 14px;
}




/* =======Slider =======*/

/* #homeSlider .carousel {
  height: 300px;
  width: 100%;
} */
#homeSlider .carousel-inner {
  height: 410px;
  width: 100%;
  background-color: rgb(232, 232, 232);
}
#homeSlider .carousel-item.active,
#homeSlider .carousel-item.active > a {
  height: 100%;
}
#homeSlider .carousel-inner img{
  width: 100%;
  height: 100%;
  max-height: 410px;
  object-fit: cover;
}
@media (max-width: 500px) {
  #homeSlider{
    margin-top: 0;
    padding-top: 0;
  }
  #homeSlider .carousel-inner {
    height:110px;
    background-color: #fff;
    border-bottom: 1px solid rgb(245, 245, 245);
  }
  #homeSlider .carousel-inner img{
    height: 100%;
    max-height: 110px;
    object-fit: cover;
  }
}
@media only screen and (min-width: 768px) {
  #homeSlider .carousel-inner {
    height: 200px;
  }
  #homeSlider .carousel-inner img{
    height: 100%;
    max-height: 200px;
    object-fit: cover;
  }
}
@media only screen and (min-width: 1024px) {
  #homeSlider .carousel-inner {
    height: 260px;
  }
  #homeSlider .carousel-inner img{
    height: 100%;
    max-height: 260px;
    object-fit: cover;
  }
}
@media only screen and (min-width: 1200px) {
  #homeSlider{
    /* padding-top: -1rem; */
  }
  #homeSlider .carousel-inner {
    height: 410px;
    width: 100%;
    background-color: rgb(232, 232, 232);
  }
  #homeSlider .carousel-inner img{
    width: 100%;
    height: 100vh;
    max-height: 410px;
    height: 100%;
    object-fit: cover;
  }
}
@media only screen and (min-width: 1366px) {
  #homeSlider{
    padding-top: 0rem;
  }
  #homeSlider .carousel-inner {
    height: 410px;
    width: 100%;
    background-color: rgb(232, 232, 232);
  }
  #homeSlider .carousel-inner img{
    width: 100%;
    height: 100vh;
    max-height: 410px;
    height: 100%;
    object-fit: cover;
  }
}

#homeSlider .carousel-indicators {
  display: flex;
  z-index: 3;
  margin-bottom: 0.85rem;
}
#homeSlider .carousel-indicators button {
  width: 28px;
  height: 4px;
  margin: 0 4px;
  border: 0;
  border-radius: 999px;
  background-color: #fff;
  opacity: 0.55;
}
#homeSlider .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--theme-red);
}

.slider {
  margin-top: calc(var(--header-height, 80px));
}
/* =======End of Slider =======*/

.enquiry-sent {
  max-width: 640px;
  margin: 1.5rem auto 3rem;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(56, 60, 58, 0.08);
}
.enquiry-sent-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--theme-red);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(190, 22, 34, 0.28);
}
.enquiry-sent-kicker {
  margin-bottom: 0.4rem;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--theme-red);
}
.enquiry-sent h1 {
  margin-bottom: 0.85rem;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--theme-grey);
}
.enquiry-sent p:last-of-type {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  line-height: 1.8;
  color: #5c615f;
}
.enquiry-sent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}