﻿/* ========================================================================
   Component Styles (flattened) — derived from user-supplied nested CSS
   ========================================================================
   Notes:
   • All SCSS-style nesting removed; selectors fully qualified.
   • Corrected a few selector typos (e.g., missing leading '.' before stock-stats-box).
   • Kept media-query structure; inner rules flattened.
   • Preserved specificity + intent; minimal stylistic cleanup.
   ------------------------------------------------------------------------ */

/* ----------------------------------
   Header Block Links
---------------------------------- */
.header-block .header a {
    color: #333;
}

    .header-block .header a:hover {
        color: #cccc33;
    }

/* ----------------------------------
   Post Hero Content
---------------------------------- */
.post-hero-content .subheadline {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: auto;
    padding: 0;
    font-weight: 500;
}

.post-hero-content .post-heading {
    margin-top: 0;
    padding-top: 0;
}

/* ----------------------------------
   Disclaimer Collapsible
---------------------------------- */
.disclaimer-collapsible {
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

    .disclaimer-collapsible.active, .disclaimer-collapsible:hover {
        text-decoration: underline;
    }

    .disclaimer-collapsible:after {
        content: "\002B";
        color: #cccc33;
        font-weight: bold;
        float: right;
        margin-left: 10px;
    }

    .disclaimer-collapsible.active:after {
        content: "\2212";
    }

.disclaimer-collapsible-content {
    padding-top: 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
}


/* ----------------------------------
   Sticky Stock Data
---------------------------------- */

.sticky-stock-data {
    display: block;
    position: sticky;
    top: 80px;
    z-index: 999;
    width: 100%;
    /* background-color: #cccc33; */
    /* background-color: rgba(204, 204, 51, 0.6); */
    background-color: rgba(255, 255, 255, 0.85); /* translucent white */
    backdrop-filter: blur(4px); /* optional glassy feel; requires browser support */
    display: none;
    padding: 15px;
    box-shadow: 0 -1px 0 0 #e6e6e6, 0 1px 0 0 rgba(21, 21, 21, 0.11);
}

    .sticky-stock-data td {
        padding-right: 10px;
        font-size: 14px;
    }


@media (max-width:986px) {
    .sticky-stock-data {
        display: block;
    }
}

/* ----------------------------------
   Rich Text Images
---------------------------------- */
.w-richtext img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.w-richtext .e-img-wrap {
    max-width: 100% !important;
}

.w-richtext .e-img-inner {
    font-size: 14px !important;
    padding-left: 5px;
    display: inline-block;
}

/* ----------------------------------
   Disclaimer List
---------------------------------- */
ul.disclaimer-list {
    margin: 5px 0 15px;
    margin-top: 0;
    padding: 0;
}

.disclaimer-list li {
    list-style: none;
    position: relative;
    padding: 0 0 0 24px;
    padding-bottom: 25px;
    line-height: 26px;
    font-size: 16px;
}

.disclaimer-list .disclaimer-checkbox {
    position: absolute;
    top: 7px;
    left: 0;
}

/* ----------------------------------
   News List (standard + featured)
---------------------------------- */
.news-list, .news-list-featured {
    margin-right: 15px;
    margin-left: 15px;
}

    .news-list p, .news-list-featured p {
        padding: 14px 14px;
        margin: 0;
        color: #151515;
    }

    .news-list .item, .news-list-featured .item {
        display: flex;
        border-bottom: 1px solid #e6e6e6;
    }

        .news-list .item:hover, .news-list-featured .item:hover {
            background-color: #e6e6e6;
            transition: background-color .3s linear;
        }

    .news-list .date, .news-list-featured .date {
        width: 100px;
    }

    .news-list .stock-logo-wrapper, .news-list-featured .stock-logo-wrapper {
        width: 100px;
        padding-left: 14px;
    }

@media screen and (max-width:767px) {
    .news-list .item {
        display: block;
        padding: 10px 8px;
    }

    .news-list-featured .stock-logo-wrapper {
        width: 100px;
        padding-right: 15px;
    }

    .news-list-featured .item {
        display: flex;
        padding: 10px 8px;
    }

    .news-list-featured .stock-logo-wrapper {
        width: 100px;
        padding-left: 0;
    }

    .news-list p, .news-list-featured p {
        padding: 0;
    }

    .message-popup {
        position: fixed;
        left: 0;
        top: auto;
        right: auto;
        bottom: 0;
        z-index: 10;
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        padding: 24px;
        border-radius: 0;
        background-color: #fff;
        box-shadow: 0 4px 16px 0 rgba(0,0,0,.8);
    }
}

.news-list-stockimage {
    margin-top: 5px;
    width: 65px;
    height: 65px;
}

/* ----------------------------------
   Stock Card
---------------------------------- */
.stock-card {
    border: 1px solid #dfdfdf;
    padding: 20px;
    border-radius: 8px;
}

    .stock-card .content-top {
        display: flex;
    }

    .stock-card h1 {
        margin: 0;
        padding: 0;
        font-family: 'Noto Sans HK',sans-serif;
        font-size: 26px;
        line-height: 40px;
        font-weight: 700;
    }

    .stock-card h2 {
        margin: 0;
        padding: 0;
    }

    .stock-card p {
        margin: 0;
        padding: 0;
    }

    .stock-card .price {
        padding-top: 20px;
        font-size: 24px;
        font-weight: 700;
    }

    .stock-card img {
        margin-right: 25px;
        display: block;
        max-width: 300px;
        max-height: 80px;
        width: auto;
        height: auto;
        object-fit: scale-down;
    }

    .stock-card .content-price {
        display: flex;
    }

    .stock-card .price-date {
        margin-left: auto;
        margin-top: auto;
    }

    .stock-card .price-date-val {
        font-size: 14px;
        font-weight: 600;
    }

@media screen and (max-width:767px) {
    .stock-card .content-top {
        display: block;
    }

        .stock-card .content-top img {
            margin-bottom: 10px;
        }

    .stock-card .content-price {
        display: block;
    }

    .stock-card .price-date {
        margin-left: 0;
        margin-top: 0;
        padding-top: 5px;
    }
}

/* ----------------------------------
   Research Box
---------------------------------- */
.research-box {
    margin-top: 1rem;
    display: block;
    align-items: center;
}

    .research-box .research-txt {
        font-size: 15px;
        font-weight: 400;
        color: #151515;
        display: block;
        margin-left: 15px;
    }

    .research-box .research-submit {
        max-width: 300px;
        display: inline-block;
    }

.research-box-head p {
    font-size: 15px;
}

@media screen and (max-width:2500px) { /* as provided */
    .research-box-head {
        text-align: center;
    }

    .research-box {
        display: block;
        align-items: normal;
    }

        .research-box button {
            width: 100%;
        }

        .research-box .research-txt {
            margin-left: 0;
            padding-top: 10px;
        }
}

/* ----------------------------------
   Like Box
---------------------------------- */
.like-box {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

    .like-box .like-txt {
        font-size: 15px;
        font-weight: 400;
        color: #151515;
        display: block;
        margin-left: 15px;
    }

@media screen and (max-width:767px) {
    .like-box-head {
        text-align: center;
    }

    .like-box {
        display: block;
        align-items: normal;
        text-align: center;
    }

        .like-box button {
            width: 100%;
        }

        .like-box .like-txt {
            margin-left: 0;
            padding-top: 10px;
        }
}

/* ----------------------------------
   Responsive Video
---------------------------------- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

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

.video-wrapper {
    width: 100%;
    max-width: 772px;
}

/* ----------------------------------
   Custom Block (rich media blocks)
---------------------------------- */
.custom-block h2 {
    margin: 0;
    padding: 0;
    padding-bottom: 0;
}

.custom-block .img-block {
    padding: 0 !important;
    margin: 0 !important;
}

.img-block img {
    border-radius: 6px;
    border: 1px solid #e6e6e6;
}

/* ----------------------------------
   Block Wrapper + Text Blocks
---------------------------------- */
.block-wrapper {
    margin-bottom: 40px;
}

.txt-block ol, .txt-block ul {
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 1rem !important;
}

.txt-block li {
    font-size: 16px;
    line-height: 26px;
    padding-top: 0;
    margin: 0 20px;
}

    .txt-block li:not(:last-child) {
        padding-bottom: 20px !important;
    }

    .txt-block li:last-child {
        padding-bottom: 0 !important;
    }

.block-wrapper .txt-block > p:last-child {
    padding: 0 !important;
    margin: 0 !important;
}

.block-wrapper .txt-block {
    font-size: 16px;
    line-height: 26px;
}

/* ----------------------------------
   Highlight / Reasons / Risks Wrappers
---------------------------------- */
.ten-reasons-wrapper {
    background-color: #dfe6f0;
    padding: 25px 25px;
    border-radius: 6px;
}

.risk-factors-wrapper {
    background-color: #dfe6f0;
    padding: 25px 25px;
    border-radius: 6px;
}

    .ten-reasons-wrapper h2, .risk-factors-wrapper h2 {
        padding-bottom: 30px;
        line-height: 40px;
    }

ul.risk-factors-list {
    margin: 0;
    padding: 0;
    padding-left: 20px;
}

.ten-reasons-list {
    padding: 0;
    margin: 0;
    list-style-type: decimal;
    padding-left: 35px !important;
}

    .ten-reasons-list li {
        font-size: 16px;
        line-height: 26px;
        padding-bottom: 10px;
    }

    .ten-reasons-list > li::marker {
        font-weight: bold;
    }

.risk-factors-list li {
    position: relative;
    list-style-type: none;
    font-size: 16px;
    line-height: 26px;
    padding-bottom: 10px;
}

    .risk-factors-list li:before {
        content: "";
        position: absolute;
        top: 5px;
        left: -20px;
        width: 20px;
        height: 20px;
        background-image: url('icons/check.svg');
    }

.caption-link {
    color: #808080 !important;
}

.highlightbox-wrapper {
    background-color: #dfe6f0 !important;
    padding: 25px 25px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 26px;
}

    .highlightbox-wrapper ol, .highlightbox-wrapper ul {
        padding: 0 !important;
        margin: 0 !important;
        padding-left: 20px !important;
    }

    .highlightbox-wrapper li {
        font-size: 16px;
        line-height: 26px;
        padding-top: 0;
    }

        .highlightbox-wrapper li:not(:last-child) {
            padding-bottom: 20px !important;
        }

        .highlightbox-wrapper li:last-child {
            padding-bottom: 0 !important;
        }

@media screen and (max-width:767px) {
    .highlightbox-wrapper {
        padding: 10px;
    }

    .ten-reasons-wrapper {
        padding: 10px;
    }

    .risk-factors-wrapper {
        padding: 10px;
    }

        .ten-reasons-wrapper h2, .risk-factors-wrapper h2, .highlightbox-wrapper h2 {
            padding-bottom: 10px;
            line-height: 30px;
        }

    .highlightbox-wrapper .header-block {
        margin-bottom: 10px;
        padding-bottom: 0;
    }

    .highlightbox-wrapper li {
        font-size: 16px;
        line-height: 26px;
        padding-top: 0;
    }

        .highlightbox-wrapper li:not(:last-child) {
            padding-bottom: 5px !important;
        }
}

/* ----------------------------------
   Carousel / Slider
---------------------------------- */
.slider-wrapper {
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    width: 100%;
}

    .slider-wrapper .slide {
        flex: 0 0 auto;
        width: 100%;
        height: 0;
        padding-bottom: 66.66667%;
        transition: .8s;
        background-position: center;
        background-size: cover;
    }

.slider-caption-wrapper {
    padding-top: 5px;
    display: flex;
    position: relative;
    overflow: hidden;
}

    .slider-caption-wrapper .caption {
        flex: 0 0 auto;
        width: 100%;
        transition: .8s;
    }

.slider-wrapper .s-nav label {
    display: block;
    position: absolute;
    top: 50%;
    padding: 5px 10px;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: .6;
}

    .slider-wrapper .s-nav label::before, .slider-wrapper .s-nav label::after {
        content: "";
        display: block;
        width: 8px;
        height: 24px;
        background-color: #fff;
    }

.slider-wrapper:hover .s-nav label {
    opacity: 1;
}

.slider-wrapper .s-nav label::before {
    margin-bottom: -12px;
}

.slider-wrapper .s-nav label.left {
    left: 20px;
}

    .slider-wrapper .s-nav label.left::before {
        transform: rotate(45deg);
    }

    .slider-wrapper .s-nav label.left::after {
        transform: rotate(-45deg);
    }

.slider-wrapper .s-nav label.right {
    right: 20px;
}

    .slider-wrapper .s-nav label.right::before {
        transform: rotate(-45deg);
    }

    .slider-wrapper .s-nav label.right::after {
        transform: rotate(45deg);
    }

.custom-block .img-caption-block {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 22px;
}

.custom-block .video-caption-block {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    padding-top: 5px !important;
    line-height: 22px;
}

.custom-block .img-source-block {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 22px;
}

/* ----------------------------------
   Multi-Select (custom widget)
---------------------------------- */
.multi-select {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
    width: 100%;
    user-select: none;
}

    .multi-select .multi-select-header {
        border: 1px solid #dee2e6;
        padding: 7px 30px 7px 12px;
        overflow: hidden;
        gap: 7px;
        min-height: 35px;
    }

        .multi-select .multi-select-header::after {
            content: "";
            display: block;
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23949ba3' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
            height: 12px;
            width: 12px;
        }

        .multi-select .multi-select-header.multi-select-header-active {
            border-color: #c1c9d0;
        }

            .multi-select .multi-select-header.multi-select-header-active::after {
                transform: translateY(-50%) rotate(180deg);
            }

            .multi-select .multi-select-header.multi-select-header-active + .multi-select-options {
                display: flex;
            }

        .multi-select .multi-select-header .multi-select-header-placeholder {
            color: #9f9f9f;
            font-size: 13px;
        }

        .multi-select .multi-select-header .multi-select-header-option {
            display: inline-flex;
            align-items: center;
            background-color: #f3f4f7;
            font-size: 14px;
            padding: 3px 8px;
            border-radius: 5px;
        }

        .multi-select .multi-select-header .multi-select-header-max {
            font-size: 13px;
            color: #65727e;
        }

    .multi-select .multi-select-options {
        display: none;
        box-sizing: border-box;
        flex-flow: wrap;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        margin-top: 5px;
        padding: 5px;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,.1);
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
    }

        .multi-select .multi-select-options::-webkit-scrollbar {
            width: 5px;
        }

        .multi-select .multi-select-options::-webkit-scrollbar-track {
            background: #f0f1f3;
        }

        .multi-select .multi-select-options::-webkit-scrollbar-thumb {
            background: #cdcfd1;
        }

            .multi-select .multi-select-options::-webkit-scrollbar-thumb:hover {
                background: #b2b6b9;
            }

        .multi-select .multi-select-options .multi-select-option, .multi-select .multi-select-options .multi-select-all {
            padding: 4px 12px;
            height: 32px;
        }

            .multi-select .multi-select-options .multi-select-option .multi-select-option-radio,
            .multi-select .multi-select-options .multi-select-all .multi-select-option-radio {
                margin-right: 14px;
                height: 16px;
                width: 16px;
                border: 1px solid #ced4da;
                border-radius: 4px;
            }

            .multi-select .multi-select-options .multi-select-option .multi-select-option-text,
            .multi-select .multi-select-options .multi-select-all .multi-select-option-text {
                box-sizing: border-box;
                flex: 1;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                color: inherit;
                font-size: 13px;
                line-height: 20px;
            }

            .multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio,
            .multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio {
                border-color: #cccd34;
                background-color: #cccd34;
            }

                .multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio::after,
                .multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio::after {
                    content: "";
                    display: block;
                    width: 3px;
                    height: 7px;
                    margin: .21em 0 0 .38em;
                    border: solid #fff;
                    border-width: 0 .15em .15em 0;
                    transform: rotate(45deg);
                }

            .multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-text,
            .multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-text {
                color: #cccd34;
            }

            .multi-select .multi-select-options .multi-select-option:hover,
            .multi-select .multi-select-options .multi-select-option:active,
            .multi-select .multi-select-options .multi-select-all:hover,
            .multi-select .multi-select-options .multi-select-all:active {
                background-color: #f3f4f7;
            }

        .multi-select .multi-select-options .multi-select-all {
            border-bottom: 1px solid #f1f3f5;
            border-radius: 0;
        }

        .multi-select .multi-select-options .multi-select-search {
            padding: 7px 10px;
            border: 1px solid #dee2e6;
            border-radius: 5px;
            width: 100%;
            outline: none;
            font-size: 13px;
        }

            .multi-select .multi-select-options .multi-select-search::placeholder {
                color: #b2b5b9;
            }

    .multi-select .multi-select-header, .multi-select .multi-select-option, .multi-select .multi-select-all {
        display: flex;
        flex-wrap: wrap;
        box-sizing: border-box;
        align-items: center;
        border-radius: 5px;
        cursor: pointer;
        width: 100%;
        font-size: 13px;
        color: #212529;
    }

    /* Width overrides (optional alt usage) */
    .multi-select.multi-select-inline {
        position: relative;
        display: inline-block;
        width: 150px;
    }

        .multi-select.multi-select-inline .multi-select-options {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 1000;
            width: 400px;
            max-height: 600px;
            overflow-y: auto;
            background: #fff;
            border: 1px solid #ddd;
            box-shadow: 0 2px 8px rgba(0,0,0,.1);
            box-sizing: border-box;
            display: none;
        }

        .multi-select.multi-select-inline .multi-select-header-active .multi-select-options {
            display: block;
        }

.multi-select-cloned {
    background-color: #f0f8ff;
}

.multi-select-options :nth-last-child(1 of .multi-select-cloned) {
    margin-bottom: 10px;
}

/* ----------------------------------
   Responsive Tables
---------------------------------- */
.table-responsive {
    margin-bottom: 1rem;
}

.historical-data-table, .stockdata-table {
    width: 100%;
}

    .stockdata-table th, .stockdata-table td, .historical-data-table th, .historical-data-table td {
        padding: 12px 0;
        text-align: left;
        font-size: 13px;
    }

    .historical-data-table th, .stockdata-table th {
        font-weight: 600;
        color: #495057;
        font-size: 11px;
    }

/* Column alignment helpers (scoped to .stock-stats-box) */
.stock-stats-box .date-col {
    text-align: left;
}

.stock-stats-box .price-col, .stock-stats-box .change-col, .stock-stats-box .volume-col {
    text-align: right;
}

/* Tab Navigation (subnav variant) */
.tab-contentsubnav {
    width: 100%;
}

.tab-panelsubnav {
    display: none;
}

    .tab-panelsubnav.active {
        display: block;
    }

.tabsubnav {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #666;
}

    .tabsubnav.active {
        color: #000;
    }

/* Tablet breakpoint */
@media (max-width:768px) {
    .hide-mobile {
        display: none;
    }

    .historical-data-table { /* min-width:500px; */
    }
}

/* Hide calendar labels at 786px and below */
@media (max-width:786px) {
    .stock-stats-box .calendar-wrapper .label {
        display: none;
    }

    .hide-mobile {
        display: none;
    }
}

/* Mobile breakpoint */
@media (max-width:480px) {
    .hide-mobile {
        display: none;
    }

    .historical-data-table { /* min-width:350px; */
    }

        .historical-data-table th, .historical-data-table td {
            padding: 6px 8px;
            font-size: .9rem;
        }

    .stock-stats-box .date-col { /* min-width:80px; */
    }

    .stock-stats-box .price-col, .stock-stats-box .change-col { /* min-width:70px; */
    }
}

@media (max-width:360px) {
    .historical-data-table th, .historical-data-table td {
        padding: 4px 6px;
        font-size: .85rem;
    }
}

/* Section header inside stock-stats-box */
.stock-stats-box .section-header {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stock tab subnav container alignment */
.stock-tab-subnav {
    display: flex;
    align-items: center;
}
