/*
Theme Name: ALZAYAT Divi Child
Theme URI: https://alzayatfirm.com/
Template: Divi
Author: Alzayat Law Firm
Author URI: https://alzayatfirm.com/
Description: Divi 5 child theme for ALZAYAT Law Firm. Presentation-only customizations with site functionality kept outside the theme.
Version: 2.4.0
*/

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


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

/* ========================== */
/* ✅ Header Styles           */
/* ========================== */
.et_pb_fullwidth_header_container {
    padding: 20px;
    text-align: center;
}


/* ========================== */
/* ✅ Footer */
/* ========================== */
.cc-footer {
    display: block;
}

/* ========================== */
/* ✅ Responsive Images       */
/* ========================== */
.et_pb_image img,
.et_pb_post_content img,
.et_pb_text img,
.et_pb_gallery_image img {
    max-width: 100%;
    height: auto;
}

.et_pb_image img {
    display: block;
    margin-inline: auto;
}

/*
 * Removed 2026-10-24: `img[loading="lazy"] { opacity: 0 }` hid every natively
 * lazy-loaded image until a `.loaded` class was added, and no script on the
 * site adds that class. No page uses loading="lazy" today, so removing the
 * rule changes nothing now and prevents invisible images when lazy loading is
 * enabled later (WordPress core, WP Rocket or Divi).
 */


/* ========================== */
/* ✅ 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.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;
}


/* ========================== */
/* ✅ Divi 5 Native Mobile Menu */
/* ========================== */

/* Divi 5 owns submenu state through .et_pb_collapsible_menu_open. */
.main-menu .et_pb_menu--collapsible-mobile .et_mobile_menu li.menu-item-has-children,
.main-menu .et_pb_menu--collapsible-mobile .et_mobile_menu li.page_item_has_children {
    position: relative;
}

.main-menu .et_pb_menu--collapsible-mobile .mobile-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
}

.main-menu .et_pb_menu--collapsible-mobile .et_mobile_menu {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-top: 3px solid #e41c26;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    overflow: auto;
    max-height: min(72vh, 680px);
}

.main-menu .et_pb_menu--collapsible-mobile .et_mobile_menu a {
    border-bottom: 1px solid #f0f0f0;
}

.main-menu .et_pb_menu--collapsible-mobile .et_mobile_menu .sub-menu {
    background: #fafafa;
}

#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";
}

.mobile_menu_bar {
    position: relative;
    display: block;
    line-height: 1;
}


/* ========================== */
/* ========================== */
/* ✅ 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;
}

.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--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:first-child {
    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;
    }
}

@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--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 {
        margin: 30px 0;
    }
    .arch-grid .et_pb_ajax_pagination_container {
        grid-template-columns: 100%;
        gap: 0;
    }
    .partners-row img {
        max-width: 200px !important;
    }
    /* Preserve the final link in each mobile navigation submenu. */
    .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:nth-child(1) {
        padding: 0 0 2rem;
    }
    .home-sec-4 .et_pb_column:nth-child(2) {
        padding: 0 1rem 3rem;
    }
    body .et_pb_sticky_module {
        padding: 0 !important;
    }
    .main-menu .et_pb_row .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 {
        padding: 0.5rem 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;
    }
}


/* DIVI 5 LAB CANDIDATE — keyboard focus restoration.
 * Production currently suppresses outlines on join-form controls. Keep the
 * visual resting state unchanged while restoring a visible keyboard-only focus.
 */
.join-form input:focus-visible,
.join-form textarea:focus-visible,
.join-form select:focus-visible,
.join-form .wpcf7-submit:focus-visible,
.mobile-toggle:focus-visible,
.mobile_menu_bar:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
