/*
	Theme Name: Rehub child theme
	Theme URI: https://wpsoul.com
	Description: A Hybrid magazine/shop/review/news Wordpress Theme
	Author: Sizam
	Author URI: https://wpsoul.com
	Version: 9.4
	Template: rehub-theme
*/

/* =Theme customization starts here
-------------------------------------------------------------- */
/* ==========================================================
   CHONTOUR — PREMIUM EDITORIAL TYPOGRAPHY
   Minimal Edition
   Elementor Text Editor & WordPress Post Content
   ========================================================== */


/* ----------------------------------------------------------
   01. DESIGN TOKENS
   ---------------------------------------------------------- */

:where(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) {
    --ct-editor-heading: #203329;
    --ct-editor-secondary: #147B40;
    --ct-editor-text: #333333;

    --ct-editor-h1: 36px;
    --ct-editor-h2: 28px;
    --ct-editor-h3: 23px;
    --ct-editor-h4: 19px;
    --ct-editor-h5: 17px;
    --ct-editor-h6: 15px;

    --ct-editor-heading-gap: 8px;
    --ct-editor-paragraph-gap: 14px;
    --ct-editor-line-height: 1.75;
}


/* ----------------------------------------------------------
   02. BASE HEADING STYLES
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) :is(h1, h2, h3, h4, h5, h6):not(.elementor-heading-title) {
    font-family: inherit;
    color: var(--ct-editor-heading);
    line-height: 1.35;
    letter-spacing: -0.025em;
    text-transform: none;
    margin-top: 1.2em;
    margin-bottom: var(--ct-editor-heading-gap);
    padding: 0;
}


/* ----------------------------------------------------------
   03. HEADING H1
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) h1:not(.elementor-heading-title) {
    font-size: var(--ct-editor-h1);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-top: 1em;
    margin-bottom: 12px;
}


/* ----------------------------------------------------------
   04. HEADING H2 — MAIN SECTION
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) h2:not(.elementor-heading-title) {
    font-size: var(--ct-editor-h2);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-top: 32px;
    margin-bottom: 8px;
}


/* ----------------------------------------------------------
   05. HEADING H3 — SUBSECTION
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) h3:not(.elementor-heading-title) {
    font-size: var(--ct-editor-h3);
    font-weight: 650;
    color: var(--ct-editor-secondary);
    line-height: 1.35;
    letter-spacing: -0.025em;
    margin-top: 24px;
    margin-bottom: 7px;
}


/* ----------------------------------------------------------
   06. HEADING H4
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) h4:not(.elementor-heading-title) {
    font-size: var(--ct-editor-h4);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -0.015em;
    margin-top: 20px;
    margin-bottom: 6px;
}


/* ----------------------------------------------------------
   07. HEADING H5
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) h5:not(.elementor-heading-title) {
    font-size: var(--ct-editor-h5);
    font-weight: 650;
    line-height: 1.45;
    letter-spacing: -0.01em;
    margin-top: 18px;
    margin-bottom: 5px;
}


/* ----------------------------------------------------------
   08. HEADING H6
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) h6:not(.elementor-heading-title) {
    font-size: var(--ct-editor-h6);
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    margin-top: 16px;
    margin-bottom: 5px;
}


/* ----------------------------------------------------------
   09. PARAGRAPH TYPOGRAPHY
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) p {
    line-height: var(--ct-editor-line-height);
    margin-top: 0;
    margin-bottom: var(--ct-editor-paragraph-gap);
}


/* ----------------------------------------------------------
   10. HEADING FOLLOWED BY PARAGRAPH
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) :is(h1, h2, h3, h4, h5, h6):not(.elementor-heading-title) + p {
    margin-top: 0;
}


/* ----------------------------------------------------------
   11. CONSECUTIVE HEADINGS
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) :is(h1, h2, h3, h4, h5, h6):not(.elementor-heading-title)
+ :is(h2, h3, h4, h5, h6):not(.elementor-heading-title) {
    margin-top: 12px;
}


/* ----------------------------------------------------------
   12. HEADING FOLLOWED BY LIST
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) :is(h1, h2, h3, h4, h5, h6):not(.elementor-heading-title)
+ :is(ul, ol) {
    margin-top: 4px;
}


/* ----------------------------------------------------------
   13. STRONG & BOLD TEXT
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content,
    .entry-content:not(:has(.elementor))
) :is(strong, b) {
    font-weight: 650;
}


/* ----------------------------------------------------------
   14. REMOVE UNNECESSARY OUTER SPACING
   ---------------------------------------------------------- */

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content
) > .elementor-widget-container > :first-child,
.elementor-widget-text-editor .elementor-text-editor > :first-child,
.entry-content:not(:has(.elementor)) > :first-child {
    margin-top: 0;
}

:is(
    .elementor-widget-text-editor,
    .elementor-widget-theme-post-content
) > .elementor-widget-container > :last-child,
.elementor-widget-text-editor .elementor-text-editor > :last-child,
.entry-content:not(:has(.elementor)) > :last-child {
    margin-bottom: 0;
}


/* ----------------------------------------------------------
   15. TABLET RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 1024px) {

    :where(
        .elementor-widget-text-editor,
        .elementor-widget-theme-post-content,
        .entry-content:not(:has(.elementor))
    ) {
        --ct-editor-h1: 32px;
        --ct-editor-h2: 26px;
        --ct-editor-h3: 21px;
        --ct-editor-h4: 18px;
        --ct-editor-h5: 16px;
        --ct-editor-h6: 14px;

        --ct-editor-paragraph-gap: 13px;
        --ct-editor-line-height: 1.75;
    }

}


/* ----------------------------------------------------------
   16. MOBILE RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 767px) {

    :where(
        .elementor-widget-text-editor,
        .elementor-widget-theme-post-content,
        .entry-content:not(:has(.elementor))
    ) {
        --ct-editor-h1: 28px;
        --ct-editor-h2: 23px;
        --ct-editor-h3: 19px;
        --ct-editor-h4: 17px;
        --ct-editor-h5: 15px;
        --ct-editor-h6: 14px;

        --ct-editor-heading-gap: 6px;
        --ct-editor-paragraph-gap: 12px;
        --ct-editor-line-height: 1.7;
    }

    :is(
        .elementor-widget-text-editor,
        .elementor-widget-theme-post-content,
        .entry-content:not(:has(.elementor))
    ) h2:not(.elementor-heading-title) {
        margin-top: 26px;
        margin-bottom: 7px;
    }

    :is(
        .elementor-widget-text-editor,
        .elementor-widget-theme-post-content,
        .entry-content:not(:has(.elementor))
    ) h3:not(.elementor-heading-title) {
        margin-top: 20px;
        margin-bottom: 6px;
    }

    :is(
        .elementor-widget-text-editor,
        .elementor-widget-theme-post-content,
        .entry-content:not(:has(.elementor))
    ) h4:not(.elementor-heading-title) {
        margin-top: 16px;
        margin-bottom: 5px;
    }

}


/* ==========================================================
   END — CHONTOUR PREMIUM EDITORIAL TYPOGRAPHY
   ========================================================== */

/* ========================================
   ChonTour - Global Sticky Header
   Desktop / Tablet / Mobile
   ======================================== */

/* Global Sticky Header */
#main_header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 3px 16px rgba(32, 51, 41, 0.06);
}

/* Preserve original ChonTour Header layout */
#main_header .ct-site-header {
    position: relative !important;
    top: auto !important;
}

/* WordPress Admin Bar - Desktop */
body.admin-bar #main_header {
    top: 32px !important;
}

/* Tablet & Mobile */
@media (max-width: 1024px) {

    #main_header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        align-self: flex-start;
        flex-shrink: 0;
    }

    /* Prevent ancestor overflow from breaking sticky */
    body :has(> #main_header),
    body :has(#main_header):not(#main_header) {
        overflow: visible;
    }

}

/* WordPress Admin Bar - Tablet */
@media (max-width: 782px) {
    body.admin-bar #main_header {
        top: 46px !important;
    }
}

/* WordPress Admin Bar - Mobile */
@media (max-width: 600px) {
    body.admin-bar #main_header {
        top: 0 !important;
    }
}
/* ==================================================
   CHONTOUR - PREMIUM TEXT EDITOR LISTS
   Safe Scope | Version 2.0
   ================================================== */

/*
 * Only target plain content lists directly inside
 * Elementor Text Editor or explicit ct-prose content.
 *
 * Do not target lists with custom classes, IDs,
 * functional roles or nested component wrappers.
 */

/* Safe list scope - up to 3 levels */
:is(
    .elementor-widget-text-editor > .elementor-widget-container,
    .elementor-widget-text-editor > .elementor-widget-container > .elementor-text-editor,
    .elementor-widget-text-editor.elementor-widget-empty,
    .ct-prose
) > :is(ul, ol):not([class], [id], [role]),
:is(
    .elementor-widget-text-editor > .elementor-widget-container,
    .elementor-widget-text-editor > .elementor-widget-container > .elementor-text-editor,
    .ct-prose
) > :is(ul, ol):not([class], [id], [role])
  > li:not([class], [id], [role])
  > :is(ul, ol):not([class], [id], [role]),
:is(
    .elementor-widget-text-editor > .elementor-widget-container,
    .elementor-widget-text-editor > .elementor-widget-container > .elementor-text-editor,
    .ct-prose
) > :is(ul, ol):not([class], [id], [role])
  > li:not([class], [id], [role])
  > :is(ul, ol):not([class], [id], [role])
  > li:not([class], [id], [role])
  > :is(ul, ol):not([class], [id], [role]) {

    --ct-list-indent: 26px;
    --ct-list-spacing: 10px;
    --ct-list-bullet-size: 6px;

    margin: 12px 0 20px;
    padding-inline-start: var(--ct-list-indent);
    list-style-position: outside;

    /* Safe unordered lists */
    &:is(ul) {
        list-style-type: none;
    }

    /* Native ordered lists */
    &:is(ol):not([type]) {
        list-style-type: decimal;
    }

    /* Plain text list items only */
    & > li:not([class], [id], [role]) {
        position: relative;
        display: list-item;
        padding: 0;
        margin: 0 0 var(--ct-list-spacing);
        line-height: 1.75;
    }

    /* Premium green bullet */
    &:is(ul) > li:not([class], [id], [role]) {
        list-style-type: none;
    }

    &:is(ul) > li:not([class], [id], [role])::marker {
        content: "";
    }

    &:is(ul) > li:not([class], [id], [role])::before {
        content: "";
        display: block;
        position: absolute;
        top: 0.875em;
        left: -21px;
        width: var(--ct-list-bullet-size);
        height: var(--ct-list-bullet-size);
        background: #50CC81;
        border: 0;
        border-radius: 50%;
        box-shadow: 0 0 0 4px rgba(80, 204, 129, 0.15);
        transform: translateY(-50%);
        margin: 0;
        padding: 0;
        pointer-events: none;
    }

    /* Ordered list numbering */
    &:is(ol) > li:not([class], [id], [role])::marker {
        color: #147B40;
        font-weight: 700;
    }

    &:is(ol) > li:not([class], [id], [role])::before {
        content: none;
    }

    /* Paragraphs inside text lists */
    & > li:not([class], [id], [role]) > p {
        margin: 0 0 8px;
    }

    & > li:not([class], [id], [role]) > p:last-child {
        margin-bottom: 0;
    }

    /* Last item spacing */
    & > li:not([class], [id], [role]):last-child {
        margin-bottom: 0;
    }

    /* Nested text lists */
    & > li:not([class], [id], [role])
      > :is(ul, ol):not([class], [id], [role]) {
        margin-top: 10px;
        margin-bottom: 6px;
    }

    /* Nested bullet variation */
    &:is(ul) > li:not([class], [id], [role])
      > ul:not([class], [id], [role])
      > li:not([class], [id], [role])::before {
        background: transparent;
        border: 1.5px solid #279A5D;
        box-shadow: none;
        width: 7px;
        height: 7px;
        box-sizing: border-box;
    }

    /* Mobile optimization */
    @media (max-width: 767px) {
        --ct-list-indent: 23px;
        --ct-list-spacing: 8px;
    }
}

/* =========================================
   ChonTour - Disclaimer Sticky TOC
   ========================================= */

.ct-disclaimer-layout,
.ct-disclaimer-layout > .e-con-inner,
.ct-disclaimer-sidebar,
.ct-disclaimer-sidebar > .e-con-inner {
    overflow: visible !important;
}

.ct-disclaimer-layout {
    --ct-disclaimer-header-offset: 130px;
}

/* Desktop */
@media (min-width: 1025px) {

    .ct-disclaimer-layout,
    .ct-disclaimer-layout > .e-con-inner {
        align-items: stretch !important;
    }

    .ct-disclaimer-sidebar {
        align-self: stretch !important;
        flex: 0 0 280px !important;
        width: 280px !important;
        max-width: 280px;
        height: auto !important;
        display: flex;
        flex-direction: column;
    }

    .ct-disclaimer-sidebar > .e-con-inner {
        flex-grow: 1;
        min-height: 100%;
        align-items: stretch;
    }

    .ct-disclaimer-toc {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--ct-disclaimer-header-offset);
        align-self: flex-start !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        width: 100%;
        height: fit-content !important;
        z-index: 10;
    }

    .ct-disclaimer-toc .elementor-toc__body {
        max-height: calc(100vh - 210px);
        max-height: calc(100dvh - 210px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #C4DACC transparent;
    }
}

/* Anchor offset */
.ct-disclaimer-content h2,
.ct-disclaimer-content [id] {
    scroll-margin-top:
        var(--ct-disclaimer-header-offset, 114px);
}

/* TOC links */
.ct-disclaimer-toc .elementor-toc__list-item-text {
    transition: color 0.2s ease;
    text-decoration: none;
}

.ct-disclaimer-toc .elementor-toc__list-item-text:hover,
.ct-disclaimer-toc .elementor-toc__list-item-text.elementor-item-active {
    color: #147B40;
}

/* Tablet & Mobile */
@media (max-width: 1024px) {

    .ct-disclaimer-layout {
        --ct-disclaimer-header-offset: 100px;
    }

    .ct-disclaimer-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ct-disclaimer-toc {
        position: static !important;
        width: 100%;
    }
}

@media (max-width: 767px) {

    .ct-disclaimer-layout {
        --ct-disclaimer-header-offset: 90px;
    }
}
/* Disclaimer - Related policy cards */

.ct-disclaimer-policy-card {
    transition: transform 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    .ct-disclaimer-policy-card:hover {
        transform: translateY(-3px);
        border-color: #B9DFC6;
        box-shadow: 0 10px 28px rgba(32, 51, 41, 0.06);
    }
}

.ct-disclaimer-policy-card:focus-within {
    border-color: #50CC81;
}

.ct-disclaimer-policy-card .elementor-button-icon {
    transition: transform 0.2s ease;
}

.ct-disclaimer-policy-card .elementor-button:hover
.elementor-button-icon {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {

    .ct-disclaimer-policy-card,
    .ct-disclaimer-policy-card .elementor-button-icon {
        transition: none;
    }

    .ct-disclaimer-policy-card:hover,
    .ct-disclaimer-policy-card .elementor-button:hover
    .elementor-button-icon {
        transform: none;
    }
}
