/*
Theme Name: X – Child Theme
Theme URI: https://theme.co/x/
Author: Themeco
Author URI: https://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.5
Template: x
*/

/* WPML Language Switcher - Centered & Responsive */
.wpml-ls-statics-footer {
    padding: 7px !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

.wpml-ls-legacy-list-horizontal ul {
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto !important;
    white-space: normal !important;
    /* Allow wrapping */
}

/* Ensure items are inline-block for centering and can wrap */
.wpml-ls-legacy-list-horizontal ul li {
    display: inline-block !important;
    float: none !important;
}

/* Spacing and style for links */
.wpml-ls-statics-footer .wpml-ls-link {
    color: #444444 !important;
    padding: 5px 10px !important;
    /* Spacing around text */
    text-decoration: none;
    display: inline-block;
}

/* Remove scrollbars as we wrap content now */
.wpml-ls-legacy-list-horizontal ul::-webkit-scrollbar {
    display: none;
}

/* Add spacing between flag and language text */
.wpml-ls-statics-footer .wpml-ls-flag {
    margin-right: 8px !important;
}

body {
    background-color: #FFFBF9 !important;
}

/* Fix Elementor height overlap issue on Desktop/Tablet */
@media (min-width: 768px) {
    .elementor-section.elementor-section-height-full {
        height: auto !important;
    }
}

/* Hide homepage illustration on mobile */
@media (max-width: 768px) {
    .home-illustration-img {
        display: none !important;
    }
}

/* Fix mobile browser zoom issue caused by 100vw ignoring scrollbars */
.modal-fullscreen,
.w-100vw {
    width: 100% !important;
    max-width: 100% !important;
}

/* Custom Elementor Button Override for Standalone Pages */
.elementor-button {
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    text-align: center !important;
    text-shadow: none !important;
    justify-content: center !important;
}

.elementor-button * {
    color: inherit !important;
    text-shadow: none !important;
}

.elementor-button:hover {
    background-color: #339BA8 !important;
    /* Lighter shade of #008088 */
    color: #ffffff !important;
    /* Enforce white text */
}