/*
Theme Name:     BuildPro Child
Description:    Make your modifications to [Parent Theme] in this child theme.
Author:         OceanThemes
Version:        1.1.0
Template:       buildpro
*/

@import url("../buildpro/style.css");
 
/* ------------------------------------------------------- */

/* Keep brochure preview images visible and inside the viewport. */
.hover-container-b {
    overflow: visible !important;
    z-index: 20;
}

.hover-container-b .hover-preview {
    top: 50% !important;
    left: calc(100% + 20px) !important;
    transform: translateY(-50%);
    z-index: 9999 !important;
}

.hover-container-b:hover .hover-preview,
.hover-container-b:focus-within .hover-preview {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 991px) {
    .hover-container-b .hover-preview {
        top: 100% !important;
        left: 0 !important;
        transform: none;
    }
}

/* Keep the desktop navigation footprint identical across translations while
   giving every label a natural, even amount of breathing room. */
@media (min-width: 980px) {
    header.de_header_2:not(.smaller):not(.header-mobile) {
        height: 70px;
    }

    header:not(.header-mobile) nav {
        width: 880px;
        max-width: calc(100% - 180px);
    }

    header:not(.header-mobile) #mainmenu {
        display: flex;
        float: none;
        width: 100%;
        justify-content: space-between;
        gap: 16px;
        align-items: stretch;
    }

    header:not(.header-mobile) #mainmenu > li {
        display: block;
        float: none;
        flex: 0 0 auto;
        text-align: center;
    }

    header:not(.header-mobile) #mainmenu > li > a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 70px;
        line-height: 1.2;
        padding-top: 0;
        padding-bottom: 0;
        padding-right: 0;
        padding-left: 0;
        white-space: nowrap;
    }

    header:not(.header-mobile) #mainmenu.no-separator > li > a::after {
        display: none;
    }

    header:not(.header-mobile) #mainmenu > li > ul {
        top: 70px;
    }

    header.smaller:not(.header-mobile) #mainmenu > li > a {
        height: 70px;
    }

    header.smaller:not(.header-mobile) #mainmenu > li > ul {
        top: 70px;
    }

    /* The white and color logo files have different intrinsic dimensions.
       A shared box prevents the header from jumping when the image switches. */
    header:not(.smaller):not(.header-mobile) #logo,
    header:not(.smaller):not(.header-mobile) #logo a,
    header:not(.smaller):not(.header-mobile) #logo img {
        width: 75px;
        height: 60px;
    }

    header:not(.smaller):not(.header-mobile) #logo img {
        object-fit: contain;
    }
}

/* CEO message: keep all translated prose consistently black. */
body.page-id-2183 .wpb-content-wrapper .wpb_text_column p,
body.page-id-2183 .wpb-content-wrapper .wpb_text_column p *,
body.page-id-2183 .wpb-content-wrapper .wpb_text_column li,
body.page-id-2183 .wpb-content-wrapper .wpb_text_column li * {
    color: #000000 !important;
}

/* Product overview cards: avoid stretched word spacing from justified text. */
body.page-id-1436 .wpb-content-wrapper .wpb_text_column p,
body.page-id-1436 .wpb-content-wrapper .wpb_text_column p * {
    text-align: left !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

/* Company navigation: keep long English and Thai labels optically centered. */
body.page-id-8549 h2 > a.btn.btn-line-white,
body.th.page-id-1408 h2 > a.btn.btn-line-white {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    padding-right: 10px !important;
    padding-left: 10px !important;
    text-align: center !important;
    line-height: 20px;
    text-indent: 0;
    transition: color .3s ease, text-indent .3s ease;
}

/* On hover, slide the label left and reveal the arrow in its own right-side gap. */
body.page-id-8549 h2 > a.btn.btn-line-white.btn-fx:hover,
body.th.page-id-1408 h2 > a.btn.btn-line-white.btn-fx:hover {
    padding-right: 10px !important;
    padding-left: 10px !important;
    text-indent: -10px;
}

body.page-id-8549 h2 > a.btn.btn-line-white.btn-fx:hover::after,
body.th.page-id-1408 h2 > a.btn.btn-line-white.btn-fx:hover::after {
    right: 4px;
}

/* Server-rendered SET quote card: stable in both local and production builds. */
body.page-id-9267 .bjchi-stock-price-card {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    min-height: 220px;
    padding: 24px 20px;
    border: 1px solid #e3e7ec;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

body.page-id-9267 .bjchi-stock-price-unavailable {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

body.page-id-9267 .bjchi-stock-price-card > span,
body.page-id-9267 .bjchi-stock-price-card > a {
    display: block;
}

body.page-id-9267 .bjchi-stock-symbol {
    color: #1657a6;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
}

body.page-id-9267 .bjchi-stock-label {
    margin-top: 5px;
    color: #68717d;
    font-size: 12px;
    text-transform: uppercase;
}

body.page-id-9267 .bjchi-stock-value {
    margin-top: 2px;
    color: #222;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

body.page-id-9267 .bjchi-stock-value small {
    font-size: 13px;
    font-weight: 600;
}

body.page-id-9267 .bjchi-stock-change {
    margin-top: 5px;
    font-weight: 600;
}

body.page-id-9267 .bjchi-stock-change.is-positive {
    color: #16833b;
}

body.page-id-9267 .bjchi-stock-change.is-negative {
    color: #c62828;
}

body.page-id-9267 .bjchi-stock-updated {
    margin-top: 4px;
    color: #87909a;
    font-size: 11px;
}

body.page-id-9267 .bjchi-stock-source {
    margin-top: 12px;
    color: #1657a6;
    font-size: 11px;
}

@media (min-width: 980px) and (max-width: 1199px) {
    header:not(.header-mobile) nav {
        width: 780px;
        max-width: calc(100% - 150px);
    }

    header:not(.header-mobile) #mainmenu {
        gap: 10px;
        font-size: 11px;
    }
}

/* Top-of-page header hover: white surface, dark navigation and color logo. */
@media (min-width: 980px) {
    header:not(.smaller):not(.header-mobile) {
        transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    header:not(.smaller):not(.header-mobile):hover,
    header:not(.smaller):not(.header-mobile):focus-within {
        background-color: #ffffff !important;
        border-bottom-color: rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    header:not(.smaller):not(.header-mobile):hover #mainmenu > li > a,
    header:not(.smaller):not(.header-mobile):focus-within #mainmenu > li > a {
        color: #171717 !important;
    }

    header:not(.smaller):not(.header-mobile):hover #logo .logo,
    header:not(.smaller):not(.header-mobile):focus-within #logo .logo {
        display: none !important;
    }

    header:not(.smaller):not(.header-mobile):hover #logo .logo-2,
    header:not(.smaller):not(.header-mobile):focus-within #logo .logo-2 {
        display: inline-block !important;
    }
}
