/*
Theme Name: Enfold Child SCCM
Theme URI: https://www.stemcells.center/
Description: Child theme for Stem Cell Center Malaysia code-level GEO, Polylang, performance, and design fixes.
Author: Stem Cell Center Malaysia
Template: enfold
Version: 2026.07.11.1
Text Domain: enfold-child-sccm
*/

:root {
    --luxe-green: #0D3B36;
    --luxe-green-deep: #082722;
    --luxe-gold: #C2A154;
    --luxe-gold-deep: #9C7A35;
    --luxe-gold-light: #EADDB8;
    --luxe-cream: #FAF7F0;
    --luxe-ink: #333333;
    --luxe-line: #E6E0D2;
}

/* Prevent the homepage hero from flashing white while slide images load. */
.home .avia-slideshow,
.home .avia-slideshow-inner,
.home .avia-fullwidth-slider,
.home .avia-slideshow li,
.home .avia-slideshow li .avia-slide-wrap {
    background-color: var(--luxe-green-deep);
}

/* Enfold + Polylang fallback: hide duplicated current-language home menu item only if PHP routing is not enough. */
html[lang="ar"] #avia-menu .menu-item-home + .menu-item-home,
html[lang="zh-CN"] #avia-menu .menu-item-home + .menu-item-home,
html[lang="id-ID"] #avia-menu .menu-item-home + .menu-item-home {
    display: none;
}

/* RTL homepage polish for Arabic language pages. */
html[dir="rtl"] .av-special-heading,
html[lang="ar"] .av-special-heading {
    text-align: right;
}

html[dir="rtl"] .togglecontainer .toggler,
html[lang="ar"] .togglecontainer .toggler {
    text-align: right;
    padding-right: 54px;
    padding-left: 24px;
}

html[dir="rtl"] .togglecontainer .toggler .toggle_icon,
html[lang="ar"] .togglecontainer .toggler .toggle_icon {
    right: 20px;
    left: auto;
}

/* FAQ / accordion visual polish. */
.togglecontainer {
    border: 0;
}

.togglecontainer .toggler {
    border: 1px solid var(--luxe-line);
    border-radius: 10px;
    background: #fff;
    color: var(--luxe-green-deep);
    box-shadow: 0 10px 28px rgba(8, 39, 34, 0.08);
    margin: 12px 0;
    padding: 18px 22px 18px 54px;
    font-weight: 700;
}

.togglecontainer .toggler:hover,
.togglecontainer .toggler.activeTitle {
    border-color: rgba(194, 161, 84, 0.65);
    color: var(--luxe-green);
    background: linear-gradient(180deg, #fff 0%, var(--luxe-cream) 100%);
}

.togglecontainer .toggle_wrap {
    border: 1px solid var(--luxe-line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    margin: -12px 0 14px;
    padding: 22px;
    background: #fff;
}

.togglecontainer .toggle_icon {
    border-color: var(--luxe-gold);
    color: var(--luxe-gold);
}

/* Button polish, scoped to common Enfold button classes. */
.avia-button,
.avia-button-wrap .avia-button,
input[type="submit"],
.button {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.avia-button:hover,
.avia-button-wrap .avia-button:hover,
input[type="submit"]:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(8, 39, 34, 0.14);
}

/* Trust section and cards polish. */
.avia-content-slider .slide-entry,
.avia-icon-list-container,
.avia_ajax_form,
.avia-testimonial {
    border-radius: 10px;
}

/* Keep body copy readable and avoid overly light text in medical content. */
.entry-content,
.template-page .entry-content-wrapper {
    color: var(--luxe-ink);
}

