/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 1.0.0
*/

/* All @font-face rules are registered in functions.php for optimal performance. */
/* Custom CSS rules below. */


/* ========================== */
/* ✅ General Layout Styles   */
/* ========================== */
body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background-color: #f4f4f4;
    line-height: 1.6;
}

/*
 * Switch to Open Sans once the font has finished loading.
 * Using html.fonts-loaded avoids !important on every element — inheritance
 * propagates the family change cleanly through the document.
 */
html.fonts-loaded body {
    font-family: "Open Sans", Arial, sans-serif;
}


/* ========================== */
/* ✅ Header Styles           */
/* ========================== */
.logo_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.et_pb_fullwidth_header_container {
    padding: 20px;
    text-align: center;
    min-height: 60vh;
}


/* ========================== */
/* ✅ Footer — Hidden by Default, shown per language */
/* ========================== */
.cc-footer {
    display: none;
}

/* Show only the footer matching the active language */
html[lang="ru-RU"] #ru-footer,
html[lang="en-US"] #eg-footer,
html[lang="pt-PT"] #pt-footer,
html[lang="fr-FR"] #fr-footer,
html[lang="ar"]    #ar-footer,
html[lang="hu-HU"] #hu-footer {
    display: block !important;
}


/* ========================== */
/* ✅ Responsive Images       */
/* ========================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.loaded {
    opacity: 1;
}

/* Ensure lazy images remain visible when JS is unavailable */
noscript img[loading="lazy"] {
    opacity: 1 !important;
}


/* ========================== */
/* ✅ CLS Prevention          */
/* ========================== */
.img-cover {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center center;
}

.img-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aspect-ratio-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.aspect-ratio-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-ratio {
    aspect-ratio: 16 / 9;
}


/* ========================== */
/* ✅ Menu Styles             */
/* ========================== */
.main-menu .et_pb_row {
    max-width: 1280px;
}

.menu-nav-row {
    width: 80% !important;
    margin-right: 0 !important;
}

.menu-icon-row {
    width: 20% !important;
    padding: 18px 0;
}

.menu-icon-row .et_pb_social_media_follow li {
    margin-bottom: 0;
    margin-top: 5px;
}

.menu-icon-row .et_pb_social_media_follow li a {
    margin-right: 0 !important;
}

.et_pb_menu .et_pb_menu__search-input {
    color: #000;
    border: 1px solid #808080b8;
    padding: 10px;
    border-radius: 10px;
}

.et-menu li li.menu-item-has-children > a:first-child::after {
    right: 0;
}


/* ========================== */
/* ✅ Slider Styles           */
/* ========================== */
.cus-ver-slider.et_pb_slider .et_pb_slide {
    min-height: 650px;
    padding: 0;
}

.cus-ver-slider .et_pb_slide_description,
.cus-ver-slider .et_pb_slider_fullwidth_off .et_pb_slide_description {
    background: rgba(255, 255, 255, 0.8);
    text-align: left;
    padding: 60px !important;
    max-width: 50%;
    margin-right: 0;
}

.cus-ver-slider .et_pb_slides .et_pb_slider_container_inner {
    vertical-align: bottom;
}

.cus-ver-slider .et_pb_slide_description .et_pb_slide_content {
    width: 80%;
}

.cus-ver-slider {
    min-height: auto !important;
}

.et_pb_module.et_pb_slider.et_pb_slider_0.cus-ver-slider {
    margin-bottom: 0 !important;
}

.ar-sec-4 {
    margin-top: 10px;
    margin-left: 8px;
}

.cus-ver-slider .et-pb-arrow-next,
.cus-ver-slider .et-pb-arrow-prev {
    opacity: 1;
    top: auto;
    bottom: 20px;
}

.cus-ver-slider .et-pb-arrow-next {
    right: 22px;
    transform: rotate(270deg);
}

.cus-ver-slider .et-pb-arrow-prev {
    left: auto !important;
    right: 50px;
    transform: rotate(-90deg);
}


/* ========================== */
/* ✅ Partners / About        */
/* ========================== */
.partners-row {
    display: flex;
    align-items: center;
}

.partners-row .et_pb_module.et_pb_image,
.about-sec .et_pb_module.et_pb_image {
    text-align: center;
}

.about-sec .et_pb_image_wrap {
    max-width: 380px;
}


/* ========================== */
/* ✅ Mobile Menu Styles      */
/* ========================== */

/*
 * FIX #6: All content values now use correct CSS Unicode escape syntax (\XXXX).
 * Previously "4d", "33", "32" were literal strings — not icon characters.
 */

/* Hamburger → × when opened */
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
    content: "\4d"; /* ETModules close/× glyph */
}

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
    width: 44px;
    height: 100%;
    padding: 0 !important;
    max-height: 44px;
    border: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 999;
    background-color: transparent;
}

ul.et_mobile_menu > li.menu-item-has-children,
ul.et_mobile_menu > li.page_item_has_children,
ul.et_mobile_menu > li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu > li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu > li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu > li.menu-item-has-children .sub-menu li.menu-item-has-children {
    position: relative;
}

.et_mobile_menu .menu-item-has-children > a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children > a {
    background-color: transparent;
}

ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
    display: none !important;
    visibility: hidden !important;
}

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
    display: block !important;
    visibility: visible !important;
}

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
    text-align: center;
    opacity: 1;
}

/* Dropdown arrow — expand ▼ */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
    top: 10px;
    position: relative;
    font-family: "ETModules";
    content: "\33"; /* ETModules ▼ glyph */
    color: #000;
    border-radius: 50%;
    padding: 3px;
}

/* Dropdown arrow — collapse ▲ */
ul.et_mobile_menu li.menu-item-has-children.dt-open > .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open > .mobile-toggle::after {
    content: "\32"; /* ETModules ▲ glyph */
}

.et_pb_menu_0.et_pb_menu .et_mobile_menu::after {
    position: absolute;
    right: 5%;
    margin-left: -20px;
    top: -14px;
    width: 0;
    height: 0;
    content: '';
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #fff;
}

.mobile_menu_bar {
    position: relative;
    display: block;
    bottom: 10px;
    line-height: 0;
}

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
    background-color: #fff !important;
    border-radius: 10px;
}


/* ========================== */
/* ✅ Archive / Blog Styles   */
/* ========================== */
.arch-grid .et_pb_ajax_pagination_container {
    display: grid;
    grid-template-columns: repeat(4, 25%);
    gap: 20px;
}

.arch-grid .et_pb_post a img {
    max-width: 100px !important;
}

.arch-grid .entry-featured-image-url {
    text-align: center;
}

.et_pb_posts .et_pb_post {
    padding: 20px 10px;
    background: #f2f2f2;
    border-radius: 10px;
    min-height: 350px !important;
}

.et_pb_posts .et_pb_post:hover {
    box-shadow: 1px 1px 5px 3px #00000024;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arch-grid .entry-title {
    min-height: 60px;
    font-size: 15px;
    text-align: center;
    position: relative;
}

.arch-grid .entry-title a::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 60px;
    height: 2px;
    margin: 0 0 0 -30px;
    background: #e41c26;
    top: 36px;
}

.arch-grid .post-content {
    text-align: center;
}

.blog-arch .et_pb_post {
    min-height: 420px !important;
}

.blog-arch .entry-featured-image-url {
    min-height: 140px !important;
}

.blog-arch .et_pb_post a img {
    max-width: 200px !important;
    height: 150px;
    object-fit: cover;
}

.blog-arch .entry-title {
    min-height: 70px;
}

.blog-arch .entry-title a::after {
    display: none;
}

.blog-arch {
    position: relative;
}

.blog-arch .alignleft {
    position: absolute;
    left: 0;
}

.blog-pg .et_pb_post {
    min-height: 436px;
}

.blog-pg .et_pb_blog_grid h2 a {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    min-height: 43px;
}

.blog-pg .post-content {
    line-height: 1.3;
}

/*
 * FIX #6: content value corrected — was "25BA 020" (literal string).
 * \25BA is the Unicode right-pointing pointer ► which renders correctly
 * in every browser as the bullet indicator.
 */
.sidebar-recent-post ul li {
    position: relative;
    padding-left: 15px !important;
    border-bottom: 1px dotted lightgray;
    margin: 10px 0;
}

.sidebar-recent-post ul li::before {
    content: "\25BA"; /* ► right-pointing pointer */
    font-size: 8px !important;
    position: absolute;
    top: 0;
    left: 0;
}


/* ========================== */
/* ✅ Form Styles             */
/* ========================== */
.join-form {
    width: 100%;
    padding: 30px;
    background: #fff;
    margin: -120px 0 0;
    box-shadow: 0 0 10px #ddd;
}

.join-form input,
.join-form textarea,
.join-form select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 3px 10px;
    border: 1px solid #ddd;
    margin: 0;
    width: 100%;
    outline: none;
    max-height: 130px;
}

.join-form .wpcf7-submit {
    background: #fff;
    transition: all 0.5s ease;
    border: 1px solid #ddd;
    color: #000;
    outline: none;
    box-shadow: 3px 4px 0 #fc0000;
    cursor: pointer;
}

.contact-pg input,
.contact-pg textarea,
.contact-pg select {
    text-align: left;
    margin-bottom: 20px;
}

.contact-pg .wpcf7-submit {
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #cf2e2e;
}

.arabic-lang-form input,
.arabic-lang-form textarea,
.arabic-lang-form select {
    text-align: right !important;
}

.arabic-lang-form .wpcf7-submit {
    text-align: center !important;
}


/* ========================== */
/* ✅ Language-Specific Styles */
/* ========================== */
.fr-lang .menu-nav-row,
.hu-lang .menu-nav-row,
.ru-lang .menu-nav-row,
.pt-lang .menu-nav-row {
    width: 85% !important;
}

.fr-lang .menu-icon-row,
.hu-lang .menu-icon-row,
.ru-lang .menu-icon-row,
.pt-lang .menu-icon-row {
    width: 15% !important;
}

.ar-lang .et_pb_row.et_pb_row_1_tb_header.et_pb_row--with-menu {
    display: flex;
}

.ar-lang .et_pb_text_align_right {
    text-align: left !important;
}

.ar-lang .et_pb_menu__wrap.et_pb_no_animation.et_pb_menu__wrap--visible,
.ar-lang .et_pb_menu__wrap {
    justify-content: space-evenly !important;
}

.ar-lang .et_pb_text_inner {
    text-align: start;
}


/* ========================== */
/* ✅ Carousel / Page         */
/* ========================== */
.custom-page-image .et_pb_title_featured_container {
    border: 5px solid #fff;
    box-shadow: 0 0 5px #ddd;
}

.carousel-section .et_pb_row {
    max-width: 100% !important;
}

.carousel-section .et_pb_row .contect-sec {
    max-width: 1280px !important;
    margin: 0 auto;
}

.page-carosuel .slick-active .wdcl-image-title {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 2px 3px #000;
}

.page-carosuel .wdcl-image-title {
    color: #fff;
    text-shadow: 1px 2px 3px #000;
}

.page-carosuel .wdcl-image-subtitle {
    color: #fff;
    margin-top: 10px;
    line-height: 1.2;
    text-shadow: 1px 2px 3px #000;
}

.page-carosuel .wdcl-image-carousel .content--left {
    justify-content: end !important;
}

.page-carosuel .wdcl-image-carousel .content--absolute {
    bottom: 20px;
}

.et_overlay {
    display: none;
}

.legal-serv-imgs .et_pb_image img {
    object-fit: cover;
}


/* ========================== */
/* ✅ Footer Styles           */
/* ========================== */
.footer-form-heading {
    color: #e41c26;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-form {
    margin: 0;
    box-shadow: none;
}

.footer-form input,
.footer-form textarea {
    text-align: left;
    margin-bottom: 10px;
}

.footer-form textarea {
    max-height: 80px;
}

.footer-form .wpcf7-submit {
    text-align: center;
}

.footer-social-icons li a::before {
    width: 16px !important;
}

.footer-links p {
    padding-bottom: 5px;
}

.footer-links p a {
    color: #fff !important;
}

.footer-links p a:hover {
    color: #e41c26 !important;
}

.footer-links p a:active {
    color: #fff !important;
}

#ar-footer .footer-links p,
.footer-ar-form input,
.footer-ar-form textarea {
    text-align: right;
}

#eg-footer,
.footer-links p a,
#eg-footer p,
#eg-footer a {
    color: #e41c26;
}

#eg-footer a {
    text-decoration: none;
}


/* ========================== */
/* ✅ Pagination              */
/* ========================== */
.pagination .alignright a,
.pagination .alignleft a {
    font-weight: bold;
}


/* ========================== */
/* ✅ Arabic Alignment        */
/* ========================== */
.ar-aling {
    display: flex;
}

.ar-aling .et_pb_column_1 {
    margin-right: 0;
    margin-left: 5.5%;
}


/* ========================================================= */
/* ✅ Media Queries                                           */
/* ========================================================= */

@media (min-width: 981px) {
    .et_pb_menu .et_pb_menu__wrap {
        justify-content: space-between;
    }
}

@media screen and (min-width: 1180px) and (min-height: 820px) and (orientation: landscape) {
    .main-menu {
        padding: 0 20px !important;
    }
    .menu-nav-row {
        width: 82% !important;
    }
    .menu-nav-row .et_pb_menu--style-left_aligned .et_pb_menu__logo {
        margin-right: 15px;
    }
    .menu-icon-row {
        width: 18% !important;
    }
    .menu-icon-row .et_pb_social_media_follow li a.icon {
        margin-right: 0 !important;
    }
    .services-row {
        width: 80% !important;
    }
    #eg-footer,
    #fr-footer,
    #hu-footer,
    #ru-footer,
    #pt-footer,
    #ar-footer {
        padding: 30px;
    }
}

/*
 * FIX #17: Replaced deprecated `device-width` / `device-height` media features
 * (removed from CSS Media Queries Level 4) with a precise width + orientation
 * range query targeting the same 1024×768 landscape viewport.
 */
@media screen and (min-width: 1024px) and (max-width: 1024px) and (min-height: 768px) and (max-height: 768px) and (orientation: landscape) {
    .top-bar {
        display: block !important;
        padding: 10px 20px !important;
    }
    .top-bar .et_pb_section_0_tb_header,
    .top-bar .et_pb_social_media_follow_0_tb_header {
        display: block !important;
    }
    .top-bar .et_pb_menu .et_pb_menu__menu {
        display: block !important;
    }
    .top-bar .et_pb_menu .et_mobile_nav_menu {
        display: none !important;
    }
    .et_pb_menu .et_pb_menu__menu {
        display: none !important;
    }
    .et_mobile_nav_menu {
        display: block !important;
    }
    .main-menu .menu-icon-row {
        display: none !important;
    }
    .menu-nav-row {
        width: 100% !important;
        padding: 20px 0 !important;
    }
    .services-row {
        width: 90% !important;
    }
    .menu-nav-row .et_pb_menu .et_pb_menu__wrap {
        justify-content: end !important;
    }
    .menu-nav-row .et_pb_module .mobile_menu_bar::before {
        top: 10px !important;
    }
    .desktop-nav ul li:last-child {
        display: none !important;
    }
    #eg-footer,
    #fr-footer,
    #hu-footer,
    #ru-footer,
    #pt-footer,
    #ar-footer {
        padding: 30px;
    }
    div#et-boc .et-l .et_builder_inner_content .top-bar,
    div#et-boc .et-l .et_builder_inner_content .top-bar .et_pb_social_media_follow_0_tb_header {
        display: block !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .services-row {
        width: 80% !important;
    }
    .arch-grid .et_pb_ajax_pagination_container {
        grid-template-columns: 50% 50% !important;
        gap: 20px !important;
    }
}

@media (max-width: 980px) {
    .fr-lang .menu-nav-row,
    .hu-lang .menu-nav-row,
    .ru-lang .menu-nav-row,
    .pt-lang .menu-nav-row {
        width: 100% !important;
    }
    .fr-lang .menu-icon-row,
    .hu-lang .menu-icon-row,
    .ru-lang .menu-icon-row,
    .pt-lang .menu-icon-row {
        width: 100% !important;
    }
    .ar-lang .et_pb_row.et_pb_row_1_tb_header.et_pb_row--with-menu {
        display: block;
    }
    .ar-lang .et_pb_text_align_right {
        text-align: right !important;
    }
    .cus-ver-slider .et_pb_slide_description,
    .cus-ver-slider .et_pb_slider_fullwidth_off .et_pb_slide_description {
        max-width: 100%;
        padding: 40px !important;
    }
    .cus-ver-slider .et_pb_slide_description .et_pb_slide_content {
        width: 100%;
    }
    .menu-nav-row {
        width: 100% !important;
        margin-bottom: 0;
    }
    .et_pb_menu .et_mobile_menu {
        padding: 0 5%;
    }
    .menu-nav-row .et_mobile_nav_menu {
        margin-top: 15px !important;
    }
    .menu-icon-row {
        padding: 0;
    }
    .top-bar-lang .et_pb_menu__menu {
        display: block !important;
    }
    .top-bar-lang .et_mobile_nav_menu {
        display: none !important;
    }
    .top-bar-lang .et_pb_menu__wrap {
        justify-content: flex-start !important;
    }
    .top-bar-lang .sub-menu {
        border-color: #fff;
        width: 130px;
    }
    .top-bar-lang .sub-menu li {
        padding-left: 0;
    }
    .lang-col {
        width: 30% !important;
        margin: 0;
    }
    .icon-col {
        width: 70% !important;
    }
    .icon-col .et_pb_social_media_follow li a {
        margin-right: 0;
    }
    .top-row {
        display: flex;
    }
    .top-row .lang-col {
        max-width: 30% !important;
        margin-bottom: 0 !important;
    }
    .partners-row .et_pb_column.et_pb_column_1_5 {
        margin: 30px 0;
    }
    .arch-grid .et_pb_ajax_pagination_container {
        grid-template-columns: 100%;
        gap: 0;
    }
    .partners-row img {
        max-width: 200px !important;
    }
    .desktop-nav ul li:last-child {
        display: none;
    }
    .banner-text p {
        text-align: justify;
    }
    .blog-arch .et_pb_post a img {
        max-width: 100% !important;
    }
    .blog-pg .post-content {
        margin-top: 10px;
    }
    .join-form {
        margin: 0;
    }
    .page-carosuel .slick-active .wdcl-image-title {
        font-size: 22px;
    }
    .page-carosuel .wdcl-image-subtitle {
        font-size: 14px;
    }
    .page-carosuel .wdcl-image-carousel .content--absolute {
        bottom: 0;
    }
    .wdcl_image_carousel_0 .slick-prev {
        left: 35% !important;
    }
    .et_pb_menu__logo img {
        max-width: 100px;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 785px) {
    .et_pb_row {
        max-width: 100%;
        width: 90%;
    }
    .home-sec-4 .et_pb_column_3 {
        padding: 0 0 2rem;
    }
    .home-sec-4 .et_pb_column_4 {
        padding: 0 1rem 3rem;
    }
    body .et_pb_sticky_module {
        padding: 0 !important;
    }
    .et_pb_section.et_pb_section_1_tb_header .et_pb_row .et_pb_module.et_pb_menu {
        padding: 0;
    }
    .top-bar a::before {
        width: 20px !important;
        height: 20px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .top-bar li {
        margin: 0 !important;
        transform: none !important;
        display: block !important;
        height: auto !important;
        width: auto !important;
    }
    .top-bar a {
        margin: 0 !important;
        width: auto !important;
        height: auto !important;
    }
    .top-bar .et_pb_social_media_follow {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }
    .top-bar-lang li a {
        padding-bottom: 0 !important;
    }
    .top-bar .et_pb_row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    .top-bar.et_pb_section_0_tb_header.et_pb_section {
        padding: 0.5rem 0 !important;
    }
    .et_pb_section_0_tb_header.et_pb_sectio.top-bar {
        padding: 1rem 0 !important;
    }
    .top-bar .icon-col,
    .top-bar .lang-col {
        width: auto !important;
        max-width: 100% !important;
    }
    .top-bar .et_pb_row::after {
        display: none;
    }
    ul#mobile_menu2 {
        width: 112%;
        left: -6%;
        border-top: 1px solid #dfdfdf;
    }
}
