/*
Template: cesis
Theme Name: cesis child theme
Theme URI: http://cesis.co
Description: <strong>A superflexible and responsive Business Theme by Tranmautritam team</strong>
Version: 1.0
Author: Tranmautritam Team
*/

/************************************************************************************
 REMOVED (now handled by itg-nav-footer.css):
   - All #header_container header { ... } rules (conflicted with #desktop-nav pill)
   - All .header_main { ... } rules
   - All body.cesis_body_boxed .cesis_sticky / .cesis_stuck rules for header
   - All header scrolling rules (@media min-width:1100px header#cesis_header.scrolling)
   - .footer_main / .footer_sub rules (replaced by itg-footer classes)
   
 KEPT:
   - Disclaimer banner styles
   - Flex utility classes
   - WPBakery button overrides
   - body/main container rules
   - Navigation menu styles (for the Cesis nav that still renders — hidden by our CSS)
   - Carousel navigation wrapper
   - Media queries for layout
   - Print styles
   - Accessibility styles
*************************************************************************************/

/* ── Disclaimer banners ─────────────────────────────────────────────────── */
#site-disclaimer-2.disclaimerBanner {
    padding: .25rem;
    background: #fff;
    margin-top: 0;
    transition: .2s !important;
}
#site-disclaimer-3.disclaimerBanner {
    padding: .25rem;
    background: #fff;
}
#site-disclaimer-2.disclaimerBanner .innerBanner {
    border: none;
    padding: 1rem .5rem 0;
}
#site-disclaimer-3.disclaimerBanner .innerBanner {
    border: none;
    padding: 1rem .5rem;
}
#site-disclaimer-2.disclaimerBanner p,
#site-disclaimer-3.disclaimerBanner p {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 10px;
    margin: 0;
    text-align: center;
    line-height: 1;
}
#site-disclaimer-2.disclaimerBanner p a,
#site-disclaimer-3.disclaimerBanner p a {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}
body.page-id-12790 .cesis_slider_rev_ctn {
    height: calc(100vh - 75px) !important;
    overflow: hidden;
}

/* ── Flex utilities ─────────────────────────────────────────────────────── */
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }
@media only screen and (min-width: 1100px) {
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-none { display: none !important; }
}
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.w-100 { width: 100%; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.col {
    flex: 1 0 0%;
    width: 100%;
    max-width: 100%;
    display: flex;
}

/* ── WPBakery button overrides ──────────────────────────────────────────── */
.vc_general.vc_btn3 { display: inline-flex !important; }
body .vc_btn3-center {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}
body .vc_btn3-container a,
body button.vc_btn3-shape-round {
    padding: 0 0 0 22px !important;
    display: inline-flex;
    align-items: center;
}
body .vc_btn3-container a:after,
body button.vc_btn3-shape-round:after {
    content: url('/wp-content/themes/cesis_child_theme/images/btn-arrow.svg');
    width: 48px;
    height: 48px;
    margin-left: 10px;
    display: flex;
}

/* ── Body / main container ──────────────────────────────────────────────── */
body {
    max-width: 100% !important;
}
body.cesis_body_boxed {
    max-width: 100%;
    position: relative;
    top: 0;
}
body #wrap_all main {
    max-width: 1200px;
    margin: auto;
}

/* ── Existing Cesis header container — neutralised ──────────────────────── */
/*
 * These rules make the Cesis #header_container and its header element
 * transparent/neutral so our #desktop-nav (which sits INSIDE the header)
 * can position itself freely without interference.
 */
body.cesis_has_header:not(.cesis_custom_breakpoint):not(.cesis_has_topbar) #header_container.cesis_opaque_header,
body.cesis_body_boxed #wrap_all #header_container {
    background: transparent;
    position: static;
    width: 100%;
}

/* Reset the header element itself — our #desktop-nav handles its own positioning */
body.cesis_has_header:not(.cesis_custom_breakpoint):not(.cesis_has_topbar) #header_container.cesis_opaque_header header,
body #wrap_all #header_container header {
    all: unset;
    display: block;
}

/* Hide the OLD Cesis header_main (our template part replaces it) */
body #wrap_all #header_container header .header_main {
    display: none !important;
}

/* ── Cesis nav styles (suppressed — our nav replaces them) ──────────────── */
body #site-disclaimer.disclaimerBanner .innerBanner {
    border: 1px solid #000;
    padding: 0.3rem 0;
}
body #site-navigation { width: 100%; }

/* ── Slider / Rev Slider ────────────────────────────────────────────────── */
body.home .cesis_slider_rev_ctn {
    height: calc(100vh - 50px) !important;
    overflow: hidden;
}
body .rs-slides {
    height: calc(100vh - 20px) !important;
}

/* ── Carousel navigation wrapper ────────────────────────────────────────── */
body #carouselNavigationWrapper {
    position: relative;
    bottom: 69px;
    width: calc(100% - 40px);
    max-width: 1280px;
    margin: 0 auto;
    display: none;
}
body #carouselNavigationWrapper ul {
    align-items: center;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
body #carouselNavigationWrapper ul li {
    margin-right: 10px;
    flex: 1;
    transition: .2s;
    display: block;
    margin: 0 10px 0 0;
    width: 100%;
    position: relative;
}
body #carouselNavigationWrapper ul li:last-child { margin: 0; }
body #carouselNavigationWrapper ul li button {
    position: relative;
    display: flex;
    background-color: #ff7321;
    border: 0;
    outline: 0;
    font-family: inherit;
    color: #fff;
    padding: 34px 40px 26px;
    border-radius: 5px;
    overflow: hidden;
    font-size: 1.15em;
    background-size: 34px;
    background-position: center right 40px;
    background-repeat: no-repeat;
    transition: .2s;
    width: 100%;
}
body #carouselNavigationWrapper ul li button:before {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 8px;
    background-color: #ce6018;
    content: "";
}
body #carouselNavigationWrapper ul li button:after {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 8px;
    background-color: #fff;
    content: "";
    transition: 0;
}
body #carouselNavigationWrapper ul li button.__bscarousel-active:after {
    width: 100%;
    transition: 5s;
}
body #carouselNavigationWrapper ul li:hover {
    flex: 1.2;
    padding: 0;
    transition: .2s;
}
body #carouselNavigationWrapper ul li button {
    cursor: pointer;
    transition: .4s;
    font-weight: 600;
}
body #carouselNavigationWrapper ul li button .__bscarousel-pageindex { display: none; }

/* ── Disclaimer banners (general) ───────────────────────────────────────── */
.disclaimerBanner.desktopBanner { display: block; }
.disclaimerBanner.mobileBanner { display: none; }
.disclaimerBanner {
    padding: .25rem;
    background: #fff;
}
.disclaimerBanner .innerBanner {
    border: 1px solid #000;
    padding: 1rem .5rem;
}
.disclaimerBanner p {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 12px;
    margin: 0;
    text-align: center;
    line-height: 1;
}
.disclaimerBanner p a {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}

/* ── Accessibility ──────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
}

/* ── Misc ───────────────────────────────────────────────────────────────── */
.vc_custom_1657228277866 a {
    background-color: rgba(56, 40, 35, 0.49) !important;
}
a:focus,
a.vc_btn3:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media only screen and (max-width: 978px) {
    body #site-disclaimer.disclaimerBanner { display: block; }
    body .disclaimerBanner.mobileBanner { display: none; }
    .disclaimerBanner.desktopBanner { display: none; }
    .disclaimerBanner.mobileBanner { display: block; }
    .disclaimerBanner .innerBanner { padding: 1rem; }
    .disclaimerBanner p { font-size: 12px; line-height: 1.3; }
}

@media only screen and (max-width: 768px) {
    body .introColumn > div { margin: 0 20px 20px !important; }
    body #carouselNavigationWrapper { bottom: 210px; height: 0; }
    body #carouselNavigationWrapper ul { flex-direction: column; }
    body #carouselNavigationWrapper ul li {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    body #carouselNavigationWrapper ul li button {
        padding: 24px 40px 16px;
        background-position: top 15px right 40px;
    }
}

/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
    html, body { height: auto; }
    .entry-content > div {
        display: block;
        width: auto !important;
        max-width: 1040px !important;
        margin: auto !important;
        float: left !important;
    }
    .entry-content > div .wpb_column.vc_column_container.vc_col-sm-6,
    .entry-content > div .wpb_column.vc_column_container.vc_col-sm-4,
    .entry-content > div .wpb_column.vc_column_container.vc_col-sm-3 {
        width: 100% !important;
    }
    a[href]:after { content: none !important; }
}
