:root {
--accent: #73a8af !important;
--primary: #383095 !important;
--secondary: #383095 !important;
--primary-font: IBM Plex Sans Arabic, sans-serif;
--secondary-font: IBM Plex Sans Arabic, sans-serif;
}

.cs_blog_details ol li::before {
right:-25px;
}

/* Modern Header & Footer Enhancements */

/* 1. Header Modernization */
.cs_site_header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.cs_site_header .cs_main_header_in {
    height: 90px; /* Taller, more spacious header */
}

/* Navigation Links Hover Effect */
.cs_nav_list > li > a {
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 30px 0;
}

.cs_nav_list > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0; /* Position under text */
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.cs_nav_list > li:hover > a::after {
    width: 100%;
}

/* Modern User Button */
.cs_header_user_btn {
    background: var(--accent);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.cs_header_user_btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.3);
    color: #fff !important;
    background-color: var(--primary);
}

/* =============================================
   2. Footer — Blade (non-React) Layout
   ============================================= */

/* Pre-footer CTA wrapper */
.cs_pre_footer_cta_wrap {
    padding: 60px 0 0;
    background: transparent;
}

/* Pre-Footer CTA card */
.cs_footer_pre_cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    color: #fff;
    position: relative;
    overflow: hidden;
}
/* Re-apply RTL text alignment for content inside */
.rtl .cs_footer_pre_cta .cs_cta_content {
    text-align: right;
}
.cs_footer_pre_cta::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.cs_cta_title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.cs_cta_subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}
.cs_btn.cs_white_bg {
    background-color: #fff;
    color: var(--primary);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
}
.cs_btn.cs_white_bg:hover {
    background-color: #f0f0f0;
    color: var(--accent);
}
@media (max-width: 991px) {
    .cs_footer_pre_cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
}

/* Main footer container */
.cs_footer:not(.cs_style_1) {
    background-color: #f0f7f9;
    color: #555;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

/* Footer grid */
.cs_footer:not(.cs_style_1) .cs_footer_main {
    padding: 60px 0 40px;
}
.cs_footer:not(.cs_style_1) .cs_footer_in {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* Logo box */
.cs_footer_logo_box {
    margin-bottom: 20px;
}
.cs_footer_logo_img {
    max-width: 160px;
    height: auto;
}
.cs_footer_about_text {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Widget titles */
.cs_footer:not(.cs_style_1) .cs_widget_title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}
.cs_footer:not(.cs_style_1) .cs_widget_title::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -6px;
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Menu widget */
.cs_footer:not(.cs_style_1) .cs_menu_widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cs_footer:not(.cs_style_1) .cs_menu_widget ul li {
    margin-bottom: 12px;
    padding-inline-start: 18px;
    position: relative;
}
.cs_footer:not(.cs_style_1) .cs_menu_widget ul li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    inset-inline-start: 0;
    font-size: 14px;
    line-height: 1.6;
}
.cs_footer:not(.cs_style_1) .cs_menu_widget ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
    display: inline-block;
}
.cs_footer:not(.cs_style_1) .cs_menu_widget ul li a:hover {
    color: var(--accent);
}

/* Contact widget */
.cs_footer:not(.cs_style_1) .cs_contact_widget {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cs_footer:not(.cs_style_1) .cs_contact_widget li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}
.cs_footer:not(.cs_style_1) .cs_contact_widget li i {
    color: #fff;
    background-color: var(--accent);
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    margin-top: 2px;
}
.cs_footer:not(.cs_style_1) .cs_contact_widget li a {
    color: #555;
    text-decoration: none;
    transition: color 0.25s;
}
.cs_footer:not(.cs_style_1) .cs_contact_widget li a:hover {
    color: var(--accent);
}

/* Newsletter form */
.cs_footer:not(.cs_style_1) .cs_newsletter_form {
    display: flex;
    flex-direction: row;
    direction: ltr;
    background: #fff;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e8ec;
    margin-top: 16px;
}
.cs_footer:not(.cs_style_1) .cs_newsletter_form input {
    border: none;
    padding: 10px 16px;
    flex: 1;
    border-radius: 50px;
    outline: none;
    color: #333;
    font-size: 14px;
    background: transparent;
}
.cs_footer:not(.cs_style_1) .cs_newsletter_form button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}
.cs_footer:not(.cs_style_1) .cs_newsletter_form button:hover {
    background: var(--primary);
}
.cs_footer:not(.cs_style_1) .cs_newsletter_form button span {
    display: none;
}

/* Social icons */
.cs_footer:not(.cs_style_1) .cs_social_links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cs_footer:not(.cs_style_1) .cs_social_links a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    border: 1px solid #dde8ec;
}
.cs_footer:not(.cs_style_1) .cs_social_links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* Footer bottom bar */
.cs_footer:not(.cs_style_1) .cs_footer_bottom {
    background-color: var(--accent);
    border-top: none;
    padding: 22px 0;
    text-align: center;
}
.cs_footer:not(.cs_style_1) .cs_footer_bottom .cs_copyright {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.cs_footer:not(.cs_style_1) .cs_footer_bottom_in {
    padding: 0;
}


.cs_footer.cs_style_1 .cs_footer_logo_wrap {
    background-image: none !important;
}

/* Header Pages Menu Dropdown Styles */
.cs_nav_list > li.menu-item-has-children {
    position: relative;
    padding-right: 15px;
}

.cs_nav_list > li.menu-item-has-children > a::after {
    /* Removed custom underline logic for dropdown parent to avoid conflict with arrow or look cleaner */
    /* width: 0; Keep it if you want the underline, or override */
}

/* Custom Dropdown Arrow */
.cs_nav_list > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.cs_nav_list > li.menu-item-has-children > a:after {
    /* This overrides the underline from previous step if the selector matches. 
       Actually previous underline selector was: .cs_nav_list > li > a::after (bottom: 25px)
       We can add an arrow */
    content: '' !important; /* Reset existing if needed, or use a separate element */
}
/* Re-implementing arrow using a pseudo-element on the link text wrapper if possible, 
   but simplistic approach: */
.cs_nav_list > li.menu-item-has-children > a::before {
    content: "\f107"; /* FontAwesome Angle Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
    order: 2; /* If flex */
}

.cs_nav_list > li.menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

/* Dropdown Menu Box */
.cs_nav_list ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 15px 0;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.cs_nav_list li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.cs_nav_list ul li {
    display: block;
    margin: 0;
}

.cs_nav_list ul li a {
    padding: 10px 25px;
    display: block;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    border-bottom: none; /* Reset */
}

.cs_nav_list ul li a:hover {
    color: var(--accent);
    background-color: rgba(0,0,0,0.02);
    padding-left: 30px; /* Slide effect */
}

/* Nested Dropdown */
.cs_nav_list ul ul {
    left: 100%;
    top: 0;
    margin-top: -10px;
}
