/*
Theme Name: Company
Theme URI: https://rtl-theme.com/
Author: Mostafa Kalantari Fard
Author URI: https://rtl-theme.com/author/mostafa-kf/
Description: Company exclusive WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: company
*/

/* Global styles */
.center-absolute-horizontal {
    position: absolute;
    left: 50% !important;
    right: inherit !important;
    transform: translateX(-50%) !important;
}

@media screen and (max-width: 1024px) {
    .center-absolute-horizontal-tablet {
        position: absolute;
        left: 50% !important;
        right: inherit !important;
        transform: translateX(-50%) !important;
    }
}

@media screen and (max-width: 767px) {
    .center-absolute-horizontal-mobile {
        position: absolute;
        left: 50% !important;
        right: inherit !important;
        transform: translateX(-50%) !important;
    }
}

selector iframe,
selector video {
    object-fit: contain;
    background-color: black;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.back-to-top.show {
    display: block;
    opacity: 0.5;
}

.back-to-top:hover {
    opacity: 1;
}

/* Hide only before header is ready */
html:not(.header-ready) body:not(.elementor-editor-active):not(.elementor-editor-preview) .top-nav,
html:not(.header-ready) body:not(.elementor-editor-active):not(.elementor-editor-preview) .header-container {
    visibility: hidden;
    opacity: 0;
    min-height: 80px;
}

/* Show when header is ready */
html.header-ready .top-nav,
html.header-ready .header-container {
    visibility: visible;
    opacity: 1;
    transition: .3s;
}
/* /Global styles */

