/*
Theme Name: Doob Child
Theme URI: https://rainbowthemes.net/themes/doob/
Template: doob
Author: Rainbow-Themes
Author URI: http://rainbowit.net/
Description: Child theme for Doob theme with custom header navigation based on ACF fields
Version: 1.0.32
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doob-child
Tags: custom-header, custom-menu, custom-logo, featured-images, flexible-header
*/

/* Import parent theme styles */
@import url("../doob/style.css");

/* Custom styles for child theme */
/* Header customizations will go here */

/** HEADER START */
body.active-light-mode .header-default {
    background-color: #fff !important;
}

html body.active-light-mode .doob-header.sticky,
html body.active-light-mode .rainbow-header.sticky {
    background-color: #fff !important;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.05);
}

/** HEADER END */

#header-wrapper .with-megamenu .rainbow-megamenu,
#header-wrapper .with-megamenu .rainbow-megamenu .mega-wrapper {
    width: fit-content;
    margin: 0 auto;
}

body.active-light-mode .popup-mobile-menu .mainmenu-item li.menu-item>a {
    color: #67686C;
    font-size: 22px;
    font-weight: 600;
}

.doob-header .mega-wrapper.wrapper,
.rainbow-header .mega-wrapper.wrapper {
    background-color: #fff !important;
}

body.active-light-mode .popup-mobile-menu .inner {
    background: #fff !important;
    width: 375px;
    max-width: 100%;
}

.popup-mobile-menu .elementor-widget-social-icons .elementor-icon {
    display: inline-flex !important;
}

body.active-light-mode .popup-mobile-menu .mainmenu-item .rainbow-megamenu a {
    color: #000;
}

body.active-light-mode .popup-mobile-menu .mainmenu-item .rainbow-megamenu li {
    border: none;
}

.popup-mobile-menu .mainmenu-item .with-megamenu>a::after {
    content: "\e92e" !important;
    font-size: 24px;
}

.popup-mobile-menu .mainmenu-item .with-megamenu>a.open::after {
    content: "\e931" !important;
}

#mobile-menu>li>a {
    padding: 16px 0;
}

.popup-mobile-menu .mainmenu-item .rainbow-megamenu {
    padding-left: 20px !important;
    border-top: 1px solid rgba(103, 104, 108, .20);
}

.popup-mobile-menu .close-menu svg {
    width: 42px;
    height: 42px;
    color: #000;
}

.popup-mobile-menu .logo,
header .logo {
    margin-bottom: 0;
}

.popup-mobile-menu .logo img,
header .logo img {
    margin-top: 6px;
}

.popup-mobile-menu .btn-read-more {
    padding: 0;
}

body.active-light-mode .btn-read-more:hover span::before {
    background-color: #000 !important;
}

body.active-light-mode .button-text::after {
    content: none;
}

body.active-light-mode .btn-read-more:hover span {
    color: #000 !important;
}

.popup-mobile-menu .mainmenu-item .elementor-icon-list-item a {
    display: flex;
}

.popup-mobile-menu .mainmenu-item .elementor-widget-icon-box a {
    padding: 0;
}

body .mainmenu-nav a {
    transition: all .3s ease-in-out;
}

.mainmenu-nav {
    margin: 0 auto;
}

body.active-light-mode .mainmenu-nav .mainmenu>li>a {
    color: #000 !important;
}

body.active-light-mode .mainmenu-nav .mainmenu>li>a,
.rainbow-megamenu a:not(.btn-read-more):not(.rbt-button):not(.elementor-social-icon) {
    background: linear-gradient(90deg, #7648CE 0%, #F9514E 50%, #000 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    background-size: 200% 100%;
    background-repeat: no-repeat;
    background-position: center right;
}

body.active-light-mode .mainmenu-nav .mainmenu>li>a:hover,
body.active-light-mode .mainmenu-nav .mainmenu>li.current-menu-item>a,
body.active-light-mode .mainmenu-nav .mainmenu>li:hover>a,
.rainbow-megamenu a:not(.btn-read-more):not(.rbt-button):not(.elementor-social-icon):hover {
    background-position: top right 100%;
}

body.active-light-mode .mainmenu-nav .mainmenu>li>a::after {
    content: '';
    width: calc(100% - 30px);
    height: 1px;
    background-image: linear-gradient(90deg, #7648CE 0%, #F9514E 100%);
    position: absolute;
    bottom: 2.875rem;
    left: 50%;
    transform: translateX(-50%);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s ease-in-out !important;
}

body.active-light-mode .mainmenu-nav .mainmenu>li.current-menu-item>a::after,
body.active-light-mode .mainmenu-nav .mainmenu>li:hover>a::after {
    background-size: 100% 100%;
}

.popup-mobile-menu .mainmenu-item .elementor-icon-list-item>a {
    padding: 0;
}

/** MENU-RECENT-ARTICLES-START */
.menu-recent-articles .ekit_post_list_content_wraper {
    padding: 10px 10px 10px 0;
}

.menu-recent-articles .elementor-icon-list-item {
    border-radius: 10px;
    transform: translateZ(0);
    overflow: hidden;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
    background-color: #FFF;
}

.menu-recent-articles .elementor-icon-list-text {
    padding-left: 0 !important;
    font-size: 14px;
    font-weight: 400;
}

.menu-recent-articles .elementor-icon-list-item>a {
    align-items: stretch !important;
}

.menu-recent-articles .wp-post-image {
    min-height: 100%;
    object-fit: cover;
}

@media only screen and (min-width: 992px) {
    .menu-recent-articles .elementor-icon-list-item {
        box-shadow: none;
        background-color: #FFF;
    }
}

/** MENU-RECENT-ARTICLES END */

/** MENU-ELEMENTOR-TEMPLATE START */
.doob-header .menu-elementor-template,
.rainbow-header .menu-elementor-template {
    display: none;
}

.popup-mobile-menu .menu-elementor-template .elementor-column {
    width: 100%;
}

.menu-cta-col-1::after {
    content: '';
    width: 25px;
    height: 1px;
    background: linear-gradient(90deg, #7648CE 0%, #F9514E 100%);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media only screen and (min-width: 992px) {
    .menu-cta-col-1::after {
        width: 1px;
        height: 25px;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
    }
}

/** MENU-ELEMENTOR-TEMPLATE END */

/** ICONS-WITH-GRADIENT-BORDER START */
.icons-with-gradient-border .elementor-icon-list-icon,
.icons-with-gradient-border .elementor-icon {
    border-radius: 50%;
    background-color: #fff;
    min-width: 27px;
    width: 27px;
    height: 27px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icons-with-gradient-border .elementor-icon-list-icon::before,
.icons-with-gradient-border .elementor-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    /* szerokość obramowania */
    background: linear-gradient(90deg, #7648CE, #F9514E);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
    z-index: 0;
    width: 27px;
    height: 27px;
    top: 50%;
    left: calc(50% - 2px);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.icons-with-gradient-border .elementor-icon::before {
    left: 50%;
}

.icons-with-gradient-border .elementor-icon-list-icon svg,
.icons-with-gradient-border .elementor-icon-list-icon i,
.icon-disable-color-change .elementor-icon-list-item svg,
.icon-disable-color-change .elementor-icon-list-item i {
    z-index: 10;
    -webkit-text-fill-color: #000;
    width: fit-content;
}

.icons-with-gradient-border .elementor-icon svg,
.icons-with-gradient-border .elementor-icon i {
    width: 16px;
}

/** ICONS-WITH-GRADIENT-BORDER END */
