/*
  Theme Name:   Intilaqa Kadence Child
  Template:     kadence
*/

/* =============================================
   TAJAWAL LOCAL FONTS (Extracted from Header)
   ============================================= */
@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/uploads/fonts/tajawal/tajawal-v11-arabic_latin-300.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/uploads/fonts/tajawal/tajawal-v11-arabic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/uploads/fonts/tajawal/tajawal-v11-arabic_latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/uploads/fonts/tajawal/tajawal-v11-arabic_latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/uploads/fonts/tajawal/tajawal-v11-arabic_latin-800.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/uploads/fonts/tajawal/tajawal-v11-arabic_latin-900.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* =============================================
   HEADER STYLES (Extracted from Header)
   ============================================= */
.header-premium-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.modern-header-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Tajawal', sans-serif;
    transition: top 0.4s ease, margin-top 0.4s ease;
}

/* حالة التمرير: الهيدر يلتصق بأعلى الشاشة (ديسكتوب فقط) */
@media (min-width: 992px) {
    .modern-header-wrapper.scrolled {
        top: 0;
        margin-top: 0;
    }
}

/* جعل الهيدر يختفي عند التمرير في صفحات المقالات فقط */
.single .modern-header-wrapper {
    position: absolute;
}

/* جسر الهوفر */
.modern-header-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 22px;
    display: block;
}

.modern-header-wrapper .pill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 12px 35px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.4s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* عند التمرير: إزالة انحناء الزوايا العلوية فقط (ديسكتوب فقط) */
@media (min-width: 992px) {
    .modern-header-wrapper.scrolled .pill-header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 60px;
        border-bottom-right-radius: 60px;
    }
}

.modern-header-wrapper:hover .pill-header {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.modern-header-wrapper .brand-logo {
    margin: 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.modern-header-wrapper .brand-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.modern-header-wrapper .brand-logo:hover {
    transform: scale(1.02);
}

.modern-header-wrapper .nav-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    /* White by default */
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* Color when scrolled or on single pages */
.modern-header-wrapper.header-scrolled .nav-trigger,
.single .modern-header-wrapper .nav-trigger,
.page-template-page-privacy .modern-header-wrapper .nav-trigger,
.error404 .modern-header-wrapper .nav-trigger {
    color: #E69605;
    text-shadow: none;
}

.modern-header-wrapper .nav-trigger i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
}

.modern-header-wrapper:hover .nav-trigger {
    background: rgba(230, 150, 5, 0.1);
}

.modern-header-wrapper:hover .nav-trigger .ph-caret-down {
    transform: rotate(180deg);
    color: currentColor;
}

.modern-header-wrapper .portal-btn {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    will-change: transform;
}

.modern-header-wrapper.header-scrolled .portal-btn,
.single .modern-header-wrapper .portal-btn {
    color: #E69605;
    border-color: rgba(230, 150, 5, 0.5);
}

.modern-header-wrapper .portal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.modern-header-wrapper .primary-btn {
    background: #E69605;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 24px rgba(230, 150, 5, 0.4);
    display: inline-block;
    border: none;
    will-change: transform;
}

.modern-header-wrapper .primary-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 32px rgba(230, 150, 5, 0.6);
    color: #fff;
    background: #E69605;
}

.modern-header-wrapper .hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.modern-header-wrapper .hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modern-header-wrapper .hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #E69605;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header-wrapper .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #E69605;
}

.modern-header-wrapper .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.modern-header-wrapper .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #E69605;
}

.modern-header-wrapper .bento-mega-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    right: 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 30px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.98);
    transform-origin: top center;
    will-change: transform, opacity;
    transition:
        transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 0s 0.4s;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (min-width: 992px) {
    .modern-header-wrapper:hover .bento-mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        transition:
            transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
            visibility 0s 0s;
    }
}

.modern-header-wrapper .bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease;
    will-change: transform;
}

.modern-header-wrapper .bento-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.modern-header-wrapper .bento-title {
    color: #2D63A6 !important;
    font-size: 14px !important;
    font-weight: 700;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(230, 150, 5, 0.4);
    display: inline-block;
    position: relative;
}

.modern-header-wrapper .bento-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E69605;
    vertical-align: middle;
}
.modern-header-wrapper[dir="rtl"] .bento-title::before { margin-left: 10px; margin-right: 0; }
.modern-header-wrapper[dir="ltr"] .bento-title::before { margin-right: 10px; margin-left: 0; }

.modern-header-wrapper .main-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.modern-header-wrapper .mega-link {
    color: #362715;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modern-header-wrapper .mega-link:hover {
    color: #E69605;
    transform: translateX(-8px);
}

.modern-header-wrapper .link-icon {
    background: rgba(230, 150, 5, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    color: #E69605;
    border: 1px solid rgba(230, 150, 5, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease;
    text-shadow: none;
    will-change: transform;
}

.modern-header-wrapper .mega-link:hover .link-icon {
    background: rgba(230, 150, 5, 0.15);
    border-color: #E69605;
    color: #E69605;
    transform: scale(1.1) rotate(5deg);
}

.modern-header-wrapper .uni-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-left: 5px;
}

.modern-header-wrapper .uni-list::-webkit-scrollbar {
    width: 4px;
}

.modern-header-wrapper .uni-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.modern-header-wrapper .uni-list::-webkit-scrollbar-thumb {
    background: rgba(230, 150, 5, 0.3);
    border-radius: 10px;
}

.modern-header-wrapper .uni-list::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 150, 5, 0.5);
}

.modern-header-wrapper .uni-tag {
    background: rgba(255, 255, 255, 0.5);
    color: #362715;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    text-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.modern-header-wrapper .uni-tag i {
    color: #E69605;
    font-size: 16px;
    transition: transform 0.3s ease;
    text-shadow: none;
}

.modern-header-wrapper .uni-tag:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: #E69605;
    color: #E69605;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
}

.modern-header-wrapper .uni-tag:hover i {
    transform: translateX(-5px);
}

.modern-header-wrapper .contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.modern-header-wrapper .contact-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(230, 150, 5, 0.1);
    border: 1px solid rgba(230, 150, 5, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #E69605;
    font-size: 32px;
    will-change: transform;
    transform: translateZ(0);
    animation: floatContactHeader 3s ease-in-out infinite;
    text-shadow: none;
}

@keyframes floatContactHeader {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.modern-header-wrapper .contact-card p {
    color: #2D63A6;
    font-size: 14px;
    font-weight: 700;
    text-shadow: none;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.modern-header-wrapper .whatsapp-btn {
    background: #25D366;
    border: 1px solid #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

@keyframes pulse-whatsapp-header {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.modern-header-wrapper .whatsapp-btn:hover {
    background: #25D366;
    animation: pulse-whatsapp-header 1.5s infinite;
}

/* زر إغلاق القائمة — داخل صف mobile-menu-header فقط */
.modern-header-wrapper .mobile-menu-close {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(230, 150, 5, 0.1);
    color: #E69605;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: 1px solid rgba(230, 150, 5, 0.2);
    transition: all 0.3s ease;
}

/* صف رأس القائمة — مخفي دائماً بشكل افتراضي */
.modern-header-wrapper .mobile-menu-header {
    display: none;
}

.modern-header-wrapper .mobile-menu-close:hover {
    background: #E69605;
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 991px) {
    .modern-header-wrapper {
        width: 95%;
    }

    .modern-header-wrapper .pill-header {
        padding: 10px 15px 10px 20px;
        backdrop-filter: blur(10px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
    }

    .modern-header-wrapper .nav-trigger {
        display: none;
    }

    .modern-header-wrapper .hamburger-menu {
        display: flex;
    }

    .modern-header-wrapper .primary-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .modern-header-wrapper .bento-mega-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        z-index: 990;
        padding: 0 20px 40px;
        overflow-y: auto;
        display: flex;
        gap: 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.98);
        will-change: transform, opacity;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
    }

    /* صف رأس القائمة — يظهر فقط عند mobile-active */
    .modern-header-wrapper .mobile-menu-header {
        width: 100%;
        max-width: 450px;
        align-items: center;
        justify-content: space-between;
        padding: 20px 4px 8px;
        flex-shrink: 0;
    }

    .modern-header-wrapper .bento-mega-menu.mobile-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }

    .modern-header-wrapper .bento-mega-menu.mobile-active .mobile-menu-header {
        display: flex;
    }
    .modern-header-wrapper .bento-mega-menu.mobile-active .mobile-menu-close {
        display: flex;
    }

    .modern-header-wrapper .bento-item {
        width: 100%;
        max-width: 450px;
        padding: 20px;
        text-align: right;
        background: rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .modern-header-wrapper .contact-card {
        text-align: center;
        margin-bottom: 30px;
    }

    .modern-header-wrapper .contact-card p {
        color: #2D63A6;
        text-shadow: none;
    }

    .modern-header-wrapper .bento-title {
        color: #2D63A6 !important;
        font-size: 14px !important;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(45, 99, 166, 0.1);
        padding-bottom: 10px;
    }

    .modern-header-wrapper .main-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modern-header-wrapper .mega-link {
        color: #362715;
        background: rgba(255, 255, 255, 0.5);
        padding: 10px 15px;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        text-shadow: none;
    }

    .modern-header-wrapper .mega-link .link-icon {
        color: #E69605;
        background: rgba(230, 150, 5, 0.1);
        border-color: rgba(230, 150, 5, 0.2);
    }

    .modern-header-wrapper .mega-link:hover {
        transform: translateX(-5px);
        background: #fff;
        color: #E69605;
    }

    .modern-header-wrapper .uni-tag {
        color: #362715;
        background: rgba(255, 255, 255, 0.5);
        border-color: rgba(0, 0, 0, 0.05);
        text-shadow: none;
    }

    .modern-header-wrapper .uni-tag i {
        color: #E69605;
    }

    .modern-header-wrapper .uni-tag:hover {
        background: #fff;
    }
}

@media (max-width: 480px) {
    .modern-header-wrapper .brand-logo {
        font-size: 20px;
    }

    .modern-header-wrapper .primary-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .modern-header-wrapper .pill-header {
        padding: 8px 12px 8px 15px;
    }
}

.low-end-device .modern-header-wrapper .bento-mega-menu::before {
    display: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.low-end-device .modern-header-wrapper .bento-mega-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

@media (prefers-reduced-motion: reduce) {
    .modern-header-wrapper .bento-mega-menu::before {
        display: none !important;
    }

    .modern-header-wrapper .bento-mega-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        transition: opacity 0.2s ease, visibility 0s 0.2s !important;
    }

    .modern-header-wrapper .bento-mega-menu.mobile-active {
        transition: opacity 0.2s ease, visibility 0s 0s !important;
    }
}


/* =============================================
   FOOTER STYLES (Extracted from Footer)
   ============================================= */
.footer-premium-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

.mature-footer-wrapper {
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 30px 0;
    position: relative;
    z-index: 10;
    font-family: 'Tajawal', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.mature-footer-wrapper[dir="rtl"] { direction: rtl; text-align: right; }
.mature-footer-wrapper[dir="ltr"] { direction: ltr; text-align: left; }

.single .mature-footer-wrapper {
    background: #2B6CB0;
}

.mature-footer-wrapper .footer-content {
    width: 80% !important;
    max-width: 1500px !important;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 20px;
}

.mature-footer-wrapper .footer-card {
    padding: 35px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.4s ease;
    background: #ffffff;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    will-change: transform;
}

.mature-footer-wrapper .footer-card:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.11);
}

.mature-footer-wrapper .fc-large {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.mature-footer-wrapper .cta-content {
    flex: 1;
}
.mature-footer-wrapper[dir="rtl"] .cta-content { text-align: right; }
.mature-footer-wrapper[dir="ltr"] .cta-content { text-align: left; }

.mature-footer-wrapper .fc-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.mature-footer-wrapper .fc-small {
    grid-column: span 1;
}

.mature-footer-wrapper .fc-large h2 {
    color: #E69605 !important;
    font-size: 38px;
    font-weight: 700;
    margin: 20px 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mature-footer-wrapper .fc-large p {
    color: #362715;
    opacity: 0.8;
    font-size: 18px;
    margin: 0 0 30px 0;
    max-width: 80%;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.mature-footer-wrapper .footer-logo {
    height: 75px !important;
    width: auto !important;
    max-width: 140px !important;
    display: inline-block;
    object-fit: contain;
}

.mature-footer-wrapper .footer-cta-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mature-footer-wrapper .trust-badges {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mature-footer-wrapper .trust-badge {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.mature-footer-wrapper .trust-badge:hover {
    transform: scale(1.05);
}

.mature-footer-wrapper .footer-card h3 {
    color: #2D63A6 !important;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(230, 150, 5, 0.4);
    display: inline-block;
    position: relative;
}

.mature-footer-wrapper .footer-card h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E69605;
    vertical-align: middle;
}
.mature-footer-wrapper[dir="rtl"] .footer-card h3::before { margin-left: 10px; margin-right: 0; }
.mature-footer-wrapper[dir="ltr"] .footer-card h3::before { margin-right: 10px; margin-left: 0; }

.mature-footer-wrapper .footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mature-footer-wrapper .footer-links a {
    color: #362715;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mature-footer-wrapper .footer-links a i {
    color: #E69605;
    font-size: 18px;
}

.mature-footer-wrapper .footer-links a:hover {
    color: #E69605;
}
.mature-footer-wrapper[dir="rtl"] .footer-links a:hover { transform: translateX(-5px); }
.mature-footer-wrapper[dir="ltr"] .footer-links a:hover { transform: translateX(5px); }

.mature-footer-wrapper .social-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.mature-footer-wrapper .social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* مطابق للـ HTML الأصلي */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* مطابق للـ HTML الأصلي */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #362715;
    text-decoration: none;
    font-size: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    will-change: transform;
}

.mature-footer-wrapper .social-btn:hover {
    background: #E69605;
    border-color: #E69605;
    transform: translateY(-4px) scale(1.05);
    color: #fff;
}

.mature-footer-wrapper .copyright-text {
    grid-column: span 3;
    text-align: center;
    color: #362715;
    opacity: 0.5;
    font-size: 14px;
    margin-top: 40px;
    font-weight: 500;
}

.mature-footer-wrapper .footer-primary-btn {
    background: #E69605;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 24px rgba(230, 150, 5, 0.4);
    display: inline-block;
    border: none;
    will-change: transform;
}

.mature-footer-wrapper .footer-primary-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 32px rgba(230, 150, 5, 0.6);
    color: #fff;
    background: #E69605;
}

@media (max-width: 991px) {
    .mature-footer-wrapper {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff;
        padding: 40px 0;
    }

    .single .mature-footer-wrapper {
        background: #2B6CB0;
    }

    .mature-footer-wrapper .footer-content {
        width: 90% !important;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mature-footer-wrapper .fc-large,
    .mature-footer-wrapper .fc-tall,
    .mature-footer-wrapper .fc-small,
    .mature-footer-wrapper .copyright-text {
        grid-column: span 1;
        grid-row: auto;
    }

    .mature-footer-wrapper .footer-card {
        padding: 25px;
        background: #ffffff;
        /* لون صلب للهاتف لسرعة الأداء */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-color: rgba(0, 0, 0, 0.05);
    }

    .mature-footer-wrapper .fc-large h2 {
        color: #E69605 !important;
        font-size: 28px;
    }

    .mature-footer-wrapper .fc-large p {
        font-size: 16px;
        max-width: 100%;
    }

    .mature-footer-wrapper .footer-logo {
        height: 18px !important;
        max-width: 110px !important;
    }

    .mature-footer-wrapper .footer-card h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .mature-footer-wrapper .fc-large {
        flex-direction: column;
        gap: 20px;
    }
    .mature-footer-wrapper[dir="rtl"] .fc-large { text-align: right; }
    .mature-footer-wrapper[dir="ltr"] .fc-large { text-align: left; }
}

/* Footer content width: 90% on blog (7813) and universities (11247) pages */
body.page-id-7813 .mature-footer-wrapper .footer-content,
body.page-id-11247 .mature-footer-wrapper .footer-content {
    width: 90% !important;
}

/* ── زر البحث في الهيدر (ديسكتوب فقط) ── */
.header-search-btn {
    display:         none; /* مخفي على الموبايل — الـ Dock يتولاه */
}
@media (min-width: 768px) {
    .header-search-btn {
        display:         flex;
        align-items:     center;
        justify-content: center;
        width:           40px;
        height:          40px;
        border-radius:   50%;
        background:      rgba(255, 255, 255, 0.12);
        border:          1px solid rgba(255, 255, 255, 0.25);
        color:           #ffffff;
        font-size:       20px;
        text-decoration: none;
        transition:      background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        flex-shrink:     0;
    }

    /* نفس منطق nav-trigger: برتقالي عند التمرير وعلى صفحات معينة */
    .modern-header-wrapper.header-scrolled .header-search-btn,
    .single .modern-header-wrapper .header-search-btn,
    .page-template-page-privacy .modern-header-wrapper .header-search-btn,
    .error404 .modern-header-wrapper .header-search-btn {
        color:        #E69605;
        background:   rgba(230, 150, 5, 0.08);
        border-color: rgba(230, 150, 5, 0.35);
    }

    .header-search-btn:hover {
        background:   rgba(230, 150, 5, 0.25);
        border-color: rgba(230, 150, 5, 0.5);
        color:        #E69605;
        transform:    scale(1.08);
    }
    .header-search-btn i { line-height: 1; }
}

/* ==============================================
   LANGUAGE SWITCHER
   ============================================== */

/* Desktop: \u0646\u0641\u0633 \u0637\u0631\u0627\u0632 \u0632\u0631 \u0627\u0644\u0628\u062d\u062b */
.header-lang-btn {
    display: none;
}
@media (min-width: 768px) {
    .header-lang-btn {
        display:         flex;
        align-items:     center;
        justify-content: center;
        gap:             5px;
        height:          40px;
        padding:         0 12px;
        border-radius:   20px;
        background:      rgba(255, 255, 255, 0.12);
        border:          1px solid rgba(255, 255, 255, 0.25);
        color:           #ffffff;
        font-size:       18px;
        text-decoration: none;
        transition:      background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
        flex-shrink:     0;
        margin:          0 4px;
    }
    .header-lang-btn span {
        font-size:   13px;
        font-weight: 700;
        font-family: 'Tajawal', sans-serif;
        line-height: 1;
    }
    .modern-header-wrapper.header-scrolled .header-lang-btn,
    .single .modern-header-wrapper .header-lang-btn,
    .page-template-page-privacy .modern-header-wrapper .header-lang-btn,
    .error404 .modern-header-wrapper .header-lang-btn {
        color:        #E69605;
        background:   rgba(230, 150, 5, 0.08);
        border-color: rgba(230, 150, 5, 0.35);
    }
    .header-lang-btn:hover {
        background:   rgba(230, 150, 5, 0.25);
        border-color: rgba(230, 150, 5, 0.5);
        color:        #E69605;
        transform:    scale(1.08);
    }
    .header-lang-btn i { line-height: 1; }
}

/* Mobile: \u0646\u0641\u0633 \u0634\u0643\u0644 \u0632\u0631 \u0627\u0644\u0625\u063a\u0644\u0627\u0642 (\u0623\u0635\u0641\u0631 \u062f\u0627\u0626\u0631\u064a) */
.mobile-lang-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             5px;
    min-width:       44px;
    height:          44px;
    padding:         0 12px;
    border-radius:   22px;
    background:      rgba(230, 150, 5, 0.1);
    border:          1px solid rgba(230, 150, 5, 0.2);
    color:           #E69605;
    text-decoration: none;
    font-size:       22px;
    font-family:     'Tajawal', sans-serif;
    cursor:          pointer;
    transition:      all 0.3s ease;
    flex-shrink:     0;
}
.mobile-lang-btn span {
    font-size:   13px;
    font-weight: 700;
    line-height: 1;
}
.mobile-lang-btn:hover {
    background: #E69605;
    color:      #fff;
    transform:  scale(1.08);
}
