/*
Theme Name: Manon Child
Theme URI: https://manon.qodeinteractive.com/
Description: A child theme of Manon Theme
Author: Edge Themes
Author URI: http://themeforest.net/user/edge-themes
Version: 1.0.3
Text Domain: manon
Template: manon
*/

#edgtf-back-to-top {
	right: -5px !important;
}

.edgtf-page-header .edgtf-vertical-align-containers {
    padding: 0 30px;
}

.edgtf-search-opener {
	margin-right: 30px;
}

/* Vertical slider */
.edgtf-vertical-split-slider { 
	min-height: calc(100dvh);
}

/* Language Switcher */
.wp-block-polylang-language-switcher {
	list-style-type: none;
	margin-right: 50px;
}

.edgtf-language-switcher.widget ul {
	margin: 2em 0 0;
}

.edgtf-language-switcher.widget ul li {
		// padding-left: 1em;
}

/* Mobile language switcher */
.edgtf-mobile-header .edgtf-mobile-lang-switcher {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

.edgtf-mobile-header .edgtf-mobile-lang-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.edgtf-mobile-header .edgtf-mobile-lang-switcher li {
    display: inline-block;
}

.edgtf-mobile-header .edgtf-mobile-lang-switcher img {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

/** End: language switcher **/

/** Portfolio right menu **/
.edgtf-content-right-side {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 90px;
    background-color: #fff;
    z-index: 1000;
}

.edgtf-content-right-side:not(.edgtf-content-side-fixed) {
    position: absolute;
}

.edgtf-header-vertical-right {
	position: absolute;
	left: 0;
}

.edgtf-content-right-side .edgtf-content-side-holder-outer {
    height: 100%;
}

.edgtf-content-right-side .edgtf-content-side-holder-inner {
    position: absolute;
    top: 100px;
    left: 45px;
    transform: translateX(-50%);
}

.edgtf-header-vertical-right .edgtf-vertical-right-menu > ul {
	height: auto;
}

/* Push page content */
body.has-content-side-right .edgtf-wrapper .edgtf-content,
body.has-content-side-right .edgtf-wrapper .edgtf-container {
    padding-right: 90px;
}

.edgtf-vertical-align-containers .edgtf-position-left {
	z-index: 101;
}

/** Footer **/
.edgtf-page-footer {
	margin-top: 200px;
}

.edgtf-side-menu nav.edgtf-sidearea-menu > ul > li a {
	font-size: 55px
}

.elementor-section-full_width .elementor-container {
	width: 100%;
}

/** Circle styling for home page **/
.presis-circle { 
	aspect-ratio: 1 / 1; 
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center !important;
}

/** Responsiveness fixes for Philosophy Vertical Split slider **/
@media only screen and (max-width: 1024px) {
	.elementor-widget-edgtf_vertical_split_slider {
		width: 100%;
	}
	
    /* 1. RESET ALL SECTION PADDING (including the 15.7%) */
    .edgtf-vss-ms-section.ms-section.ms-table {
        padding: 0 20px !important; /* Forces 20px on left/right and 0 on top/bottom */
        height: auto !important;
        //min-height: 100vh !important;
		width: 100% !important;
        display: block !important;
        overflow: visible !important;
    }

    /* 2. Standardize spacing inside the table cells */
    .edgtf-vss-ms-section.ms-section.ms-table .ms-tableCell {
        display: block !important;
        height: auto !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important; /* Replaces the large bottom padding */
    }

    /* 3. Continue reducing the massive 85% padding on nested Elementor sections */
    .edgtf-vss-ms-section.ms-section.ms-table .elementor-top-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        margin-top: 0 !important;
    }

    /* 4. Ensure container wrappers expand to fit the newly sized content */
    .edgtf-vss-responsive, 
    .ms-left, 
    .ms-right {
        height: auto !important;
    }
}

/** Philosophy page responsive Vertical Slider order **/
/* 1. ENABLE GRID on the parent to allow reordering without flex side-effects */
    .edgtf-vss-responsive {
        display: grid !important;
        grid-template-columns: 1fr !important; /* One full-width column */
        height: auto !important;
    }

    /* 2. REORDER THE CHILDREN */
    /* Slide 4 (Image) moves to row 3 */
    .edgtf-vss-responsive > .ms-section:nth-child(4) {
        grid-row: 3 !important;
    }
    
    /* Slide 3 (Text) moves to row 4 */
    .edgtf-vss-responsive > .ms-section:nth-child(3) {
        grid-row: 4 !important;
    }

    /* 3. ENSURE SECTIONS RETAIN PROPER HEIGHT */
    /* Text sections (often without background images) grow naturally */
    .edgtf-vss-ms-section.ms-section {
        height: auto !important;
        display: block !important;
    }

    /* 4. SET MIN-HEIGHT FOR IMAGE-ONLY SECTIONS */
    /* Targeting by background-image url starting with "http" */
    .edgtf-vss-responsive > .ms-section[style*='background-image: url("http'],
    .edgtf-vss-responsive > .ms-section[style*='background-image: url(\"http'] {
        height: 400px !important; /* Fixed height for image-only containers */
        min-height: 400px !important;
    }
