/*
Theme Name: قالب أبو عمر
Theme URI: https://abuomar.com
Author: أبو عمر
Author URI: https://abuomar.com
Description: قالب WordPress شخصي احترافي لأبو عمر - خبير البرمجيات والذكاء الاصطناعي. يتضمن صفحة رئيسية بتصميم Hero Section مع Timeline متحرك لعرض الخبرات المهنية، وصفحات مدونة متكاملة مع دعم كامل لـ Yoast SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qedama
Tags: blog, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, one-column, two-columns

قالب أبو عمر - موقع شخصي احترافي
*/

/* استيراد خط Tajawal من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* =============================================
   المتغيرات الأساسية
   ============================================= */
:root {
    /* الألوان */
    --linkedin-blue: #0077B5;
    --linkedin-blue-hover: #005885;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F5F5F5;
    --lighter-gray: #E8E8E8;
    --white: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* الخط */
    --font-family: 'Tajawal', sans-serif;

    /* الأحجام */
    --header-height: 70px;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* الانتقالات */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================================
   إعادة التعيين والأساسيات
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--linkedin-blue);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* =============================================
   الحاوية الرئيسية
   ============================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   الهيدر
   ============================================= */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* إخفاء admin bar offset */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.header__logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--medium-gray);
    transition: color var(--transition-fast);
    position: relative;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--linkedin-blue);
    transition: width var(--transition-normal);
}

.header__nav a:hover,
.header__nav a.current-menu-item a,
.header__nav .current_page_item a {
    color: var(--linkedin-blue);
}

.header__nav a:hover::after,
.header__nav .current-menu-item a::after,
.header__nav .current_page_item a::after {
    width: 100%;
}

/* قائمة WordPress */
.header__nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header__nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav li {
    margin: 0;
    padding: 0;
}

/* أزرار التواصل في الهيدر */
.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid var(--lighter-gray);
}

.header__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: #FFFFFF !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header__btn:hover,
.header__btn:focus,
.header__btn:active,
.header__btn:visited {
    color: #FFFFFF !important;
}

.header__btn svg {
    width: 16px;
    height: 16px;
    fill: #FFFFFF !important;
}

.header__btn span {
    position: relative;
    z-index: 1;
    color: #FFFFFF !important;
}

/* تأثير اللمعة المشترك */
.header__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.header__btn:hover::before {
    left: 100%;
}

.header__btn:hover {
    color: var(--white);
    transform: translateY(-1px);
}

/* زر لينكد إن */
.header__btn--linkedin {
    background-color: var(--linkedin-blue);
}

.header__btn--linkedin:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

/* زر واتساب */
.header__btn--whatsapp {
    background-color: #25D366;
}

.header__btn--whatsapp:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* تجاوب الهيدر للموبايل */
@media (max-width: 992px) {
    .header__actions {
        margin-right: 15px;
        padding-right: 15px;
        gap: 8px;
    }

    .header__btn span {
        display: none;
    }

    .header__btn {
        padding: 10px;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    .header__btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {

    /* إظهار اسم الموقع في الموبايل */
    .header__logo span {
        display: inline !important;
        font-size: 1rem;
    }

    /* إخفاء القائمة العادية وأزرار التواصل */
    .header__nav>ul,
    .header__actions {
        display: none;
    }

    /* زر المنيو */
    .header__menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .header__menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--dark-gray);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .header__menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header__menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header__menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* القائمة المنسدلة */
    .header__mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 10px 30px var(--shadow-color);
        padding: 20px;
        flex-direction: column;
        gap: 5px;
    }

    .header__mobile-menu.active {
        display: flex;
    }

    .header__mobile-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        border-radius: 8px;
        color: var(--dark-gray);
        font-weight: 500;
        transition: background-color 0.2s ease;
    }

    .header__mobile-menu a:hover {
        background-color: var(--light-gray);
    }

    .header__mobile-menu a svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .header__mobile-menu .mobile-menu__btn--whatsapp {
        background-color: #25D366;
        color: #FFFFFF !important;
        margin-top: 10px;
    }

    .header__mobile-menu .mobile-menu__btn--whatsapp svg {
        fill: #FFFFFF;
    }

    .header__mobile-menu .mobile-menu__btn--whatsapp:hover {
        background-color: #128C7E;
    }

    .header__mobile-menu .mobile-menu__btn--linkedin {
        background-color: var(--linkedin-blue);
        color: #FFFFFF !important;
    }

    .header__mobile-menu .mobile-menu__btn--linkedin svg {
        fill: #FFFFFF;
    }

    .header__mobile-menu .mobile-menu__btn--linkedin:hover {
        background-color: #005885;
    }
}

/* قسم تسجيل الدخول في الهيدر */
.header__auth {
    display: flex;
    align-items: center;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid var(--lighter-gray);
}

/* إخفاء زر المنيو على الشاشات الكبيرة */
@media (min-width: 769px) {

    .header__menu-toggle,
    .header__mobile-menu {
        display: none !important;
    }

    .header__login-icon {
        display: none !important;
    }
}

/* تنسيقات الموبايل لقسم تسجيل الدخول */
@media (max-width: 768px) {
    .header__auth {
        display: none;
    }

    .header__login-icon {
        display: flex;
        margin-left: 10px;
    }

    .header__login-icon--user {
        padding: 0;
        background: transparent;
    }

    .header__login-icon--user .header__user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .mobile-menu__btn--login,
    .mobile-menu__btn--profile {
        background-color: var(--linkedin-blue) !important;
        color: #FFFFFF !important;
        margin-top: 10px;
    }

    .mobile-menu__btn--login svg,
    .mobile-menu__btn--profile svg {
        fill: #FFFFFF;
    }

    .mobile-menu__btn--logout {
        color: #dc3545 !important;
    }

    .mobile-menu__btn--logout svg {
        fill: #dc3545;
    }
}

/* =============================================
   Breadcrumbs - المسار
   ============================================= */
.breadcrumbs {
    background-color: var(--light-gray);
    padding: 15px 0;
    margin-top: var(--header-height);
}

.admin-bar .breadcrumbs {
    margin-top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .breadcrumbs {
        margin-top: calc(var(--header-height) + 46px);
    }
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs__link {
    color: var(--medium-gray);
    transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
    color: var(--linkedin-blue);
}

.breadcrumbs__separator {
    color: var(--lighter-gray);
    font-size: 0.8rem;
}

.breadcrumbs__current {
    color: var(--linkedin-blue);
    font-weight: 600;
}

/* =============================================
   Breadcrumbs مضمّن (Inline) - بين العنوان والوصف
   ============================================= */
.breadcrumbs-inline {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

/* Breadcrumbs في صفحة المقال - على اليمين */
.post__header .breadcrumbs-inline {
    justify-content: flex-start;
}

.post__header .breadcrumbs-inline__list {
    justify-content: flex-start;
}

.breadcrumbs-inline__list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 10px 20px;
    background-color: var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem;
}

.breadcrumbs-inline__item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs-inline__link {
    color: var(--medium-gray);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 3px;
}

.breadcrumbs-inline__link:hover {
    color: var(--linkedin-blue);
}

.breadcrumbs-inline__link svg {
    opacity: 0.7;
}

.breadcrumbs-inline__separator {
    color: var(--lighter-gray);
    font-size: 0.75rem;
    margin: 0 2px;
}

.breadcrumbs-inline__current {
    color: var(--linkedin-blue);
    font-weight: 600;
}

/* تنسيق Yoast Breadcrumbs المضمّن */
.breadcrumbs-inline .yoast-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.breadcrumbs-inline a {
    color: var(--medium-gray);
    transition: color var(--transition-fast);
}

.breadcrumbs-inline a:hover {
    color: var(--linkedin-blue);
}

.breadcrumbs-inline .breadcrumb_last {
    color: var(--linkedin-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumbs-inline__list {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

/* =============================================
   Hero Section - الصفحة الرئيسية
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: var(--container-width);
    width: 100%;
    align-items: center;
}

/* القسم الأيمن - الصورة والشركات */
.hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 20px 60px rgba(0, 119, 181, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero__image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--linkedin-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* شعارات الشركات */
.hero__companies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 350px;
}

.hero__company {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px var(--shadow-color);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.hero__company:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
}

.hero__company svg {
    width: 35px;
    height: 35px;
    fill: var(--medium-gray);
}

/* أعلام الدول */
.hero__countries {
    gap: 12px;
}

.hero__country {
    filter: none;
    opacity: 1;
    background-color: transparent;
    box-shadow: none;
    width: 45px;
    height: 45px;
    padding: 0;
}

.hero__country img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.hero__country:hover {
    transform: translateY(-3px) scale(1.1);
    filter: none;
}

/* القسم الأيسر - النص والتايم لاين */
.hero__left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero__intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero__greeting {
    font-size: 1.25rem;
    color: var(--linkedin-blue);
    font-weight: 500;
}

.hero__name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1.2;
}

.hero__typewriter-wrapper {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.hero__typewriter {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--medium-gray);
    border-left: 3px solid var(--linkedin-blue);
    padding-left: 10px;
}

.hero__typewriter .cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--linkedin-blue);
    margin-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* أزرار التواصل */
.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn--primary {
    background-color: var(--linkedin-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn--primary:hover {
    background-color: var(--linkedin-blue-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn--primary:active::after {
    width: 200px;
    height: 200px;
}

.btn--outline {
    background-color: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--lighter-gray);
}

.btn--outline:hover {
    border-color: var(--linkedin-blue);
    color: var(--linkedin-blue);
    transform: translateY(-3px);
}

.btn--icon {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* زر الدخول في الصفحة الرئيسية (Hero) */
.hero__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #e8e8e8;
    color: var(--dark-gray);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero__login-btn:hover {
    background-color: #d0d0d0;
    color: var(--linkedin-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero__login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.hero__login-btn:hover::before {
    left: 100%;
}

.hero__login-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* المستخدم في الصفحة الرئيسية - يستخدم نفس ستايل header__user */
.hero__user {
    /* تأكد من ظهور الستايل بشكل صحيح في الـ hero */
}

.hero__buttons .header__user {
    /* نفس ستايل header__user من auth.css */
}

/* التايم لاين */
.hero__timeline {
    position: relative;
    padding: 30px 0;
    margin-top: 20px;
}

.timeline__year {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: var(--light-gray);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
}

.timeline__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 280px;
    overflow: hidden;
}

.timeline__items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.timeline__line {
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--linkedin-blue), var(--lighter-gray));
    border-radius: 10px;
}

.timeline__item {
    display: flex;
    gap: 25px;
    padding-right: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.timeline__item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline__item::before {
    content: '';
    position: absolute;
    right: 14px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--linkedin-blue);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--linkedin-blue);
}

.timeline__logo {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-color);
    flex-shrink: 0;
    overflow: hidden;
}

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

.timeline__logo span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--linkedin-blue);
}

.timeline__content {
    flex: 1;
}

.timeline__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.timeline__company-name {
    font-size: 0.95rem;
    color: var(--linkedin-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline__description {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.timeline__period {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 5px;
}

/* =============================================
   صفحة المدونة
   ============================================= */
.blog-page {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.blog-page--with-header {
    padding-top: calc(var(--header-height) + 40px);
}

.admin-bar .blog-page--with-header {
    padding-top: calc(var(--header-height) + 32px + 40px);
}

@media screen and (max-width: 782px) {
    .admin-bar .blog-page--with-header {
        padding-top: calc(var(--header-height) + 46px + 40px);
    }
}

.blog-page__header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-page__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.blog-page__subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.blog-page__content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* بطاقات المدونات */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 119, 181, 0.15);
}

.blog-card__image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 25px;
}

.blog-card__category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 119, 181, 0.1);
    color: var(--linkedin-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
}

.blog-card__category a {
    color: inherit;
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title,
.blog-card__title:hover {
    color: var(--linkedin-blue);
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.blog-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__date svg {
    width: 16px;
    height: 16px;
    fill: var(--medium-gray);
}

.blog-card__read-more {
    color: var(--linkedin-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__read-more svg {
    width: 16px;
    height: 16px;
    fill: var(--linkedin-blue);
    transform: rotate(180deg);
    transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card__read-more svg {
    transform: rotate(180deg) translateX(5px);
}

/* السايد بار */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* السايد بار - بدون تثبيت */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar__widget,
.widget {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.sidebar__title,
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.sidebar__title::after,
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--linkedin-blue);
}

/* البحث */
.search-form {
    position: relative;
}

.search-form input[type="search"],
.search-form__input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--lighter-gray);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.search-form input[type="search"]:focus,
.search-form__input:focus {
    outline: none;
    border-color: var(--linkedin-blue);
}

.search-form button[type="submit"],
.search-form__btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    padding: 5px;
    border: none;
    cursor: pointer;
}

.search-form button[type="submit"] svg,
.search-form__btn svg {
    width: 22px;
    height: 22px;
    fill: var(--medium-gray);
    transition: fill var(--transition-fast);
}

.search-form button[type="submit"]:hover svg,
.search-form__btn:hover svg {
    fill: var(--linkedin-blue);
}

/* التصنيفات */
.categories-list,
.widget_categories ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-list__item,
.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    transition: all var(--transition-fast);
}

.categories-list__item:last-child,
.widget_categories li:last-child {
    border-bottom: none;
}

.categories-list__item:hover,
.widget_categories li:hover {
    padding-right: 10px;
}

.categories-list__item a,
.widget_categories li a {
    font-weight: 500;
    color: var(--dark-gray);
}

.categories-list__item:hover a,
.widget_categories li:hover a {
    color: var(--linkedin-blue);
}

.categories-list__count {
    background-color: var(--light-gray);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* الوسوم */
.tags-cloud,
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud__tag,
.tagcloud a {
    padding: 8px 18px;
    background-color: var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem !important;
    color: var(--medium-gray);
    transition: all var(--transition-fast);
}

.tags-cloud__tag:hover,
.tagcloud a:hover {
    background-color: var(--linkedin-blue);
    color: var(--white);
}

/* أحدث المقالات */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 15px;
    align-items: center;
}

.recent-post__image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--light-gray);
}

.recent-post__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

.recent-post__content {
    flex: 1;
}

.recent-post__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post:hover .recent-post__title {
    color: var(--linkedin-blue);
}

.recent-post__date {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination__item,
.nav-links a,
.nav-links span.current {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    color: var(--medium-gray);
    background-color: var(--white);
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all var(--transition-fast);
}

.pagination__item:hover,
.pagination__item.active,
.nav-links a:hover,
.nav-links span.current {
    background-color: var(--linkedin-blue);
    color: var(--white);
}

.pagination__item svg,
.nav-links .prev svg,
.nav-links .next svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =============================================
   صفحة المدونة الفردية
   ============================================= */
.post-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.post-page__content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.post {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.post__header {
    padding: 40px 40px 30px;
}

.post__category {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(0, 119, 181, 0.1);
    color: var(--linkedin-blue);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
}

.post__category a {
    color: inherit;
}

.post__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1.3;
    margin-bottom: 20px;
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.post__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post__meta-item svg {
    width: 18px;
    height: 18px;
    fill: var(--linkedin-blue);
}

/* صورة الكاتب */
.post__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post__featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.post__body {
    padding: 40px;
    font-size: 1.1rem;
}

.post__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 30px 0 15px;
}

.post__body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 25px 0 12px;
}

.post__body p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--dark-gray);
}

.post__body ul,
.post__body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.post__body li {
    margin-bottom: 10px;
    line-height: 1.8;
    list-style: disc;
}

.post__body ol li {
    list-style: decimal;
}

.post__body blockquote {
    background-color: var(--light-gray);
    border-right: 4px solid var(--linkedin-blue);
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    color: var(--medium-gray);
}

.post__body code {
    background-color: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.post__body pre {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    margin: 25px 0;
}

.post__body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* المشاركة */
.post__share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 40px;
    border-top: 1px solid var(--light-gray);
}

.post__share-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.post__share-buttons {
    display: flex;
    gap: 10px;
}

.post__share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-gray);
    transition: all var(--transition-fast);
}

.post__share-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--medium-gray);
    transition: fill var(--transition-fast);
}

.post__share-btn:hover {
    background-color: var(--linkedin-blue);
}

.post__share-btn:hover svg {
    fill: var(--white);
}

/* مقالات ذات صلة */
.related-posts {
    margin-top: 50px;
}

.related-posts__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* =============================================
   الفوتر
   ============================================= */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    z-index: 999;
}

/* مساحة للفوتر الثابت */
body {
    padding-bottom: 70px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* القسم الأيمن - السلايدر */
.footer__right {
    flex: 1;
}

.footer__slider {
    position: relative;
    overflow: hidden;
    height: 24px;
}

.footer__slider-track {
    position: relative;
    height: 100%;
}

.footer__slide {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    white-space: nowrap;
}

.footer__slide--active {
    opacity: 1;
    transform: translateY(0);
}

.footer__wp-logo {
    width: 18px;
    height: 18px;
    fill: #9ca3af;
}

.footer__slide span {
    color: #6b7280;
    font-size: 0.85rem;
}

/* القسم الأيسر - الحقوق */
.footer__left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.footer__copyright {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
}

.footer__links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--linkedin-blue);
}

.footer__separator {
    color: #d1d5db;
}

/* الموبايل - إخفاء السلايدر */
@media (max-width: 768px) {
    .footer__right {
        display: none;
    }

    .footer__content {
        justify-content: center;
    }

    .footer__left {
        align-items: center;
        text-align: center;
    }

    body {
        padding-bottom: 80px;
    }
}

/* =============================================
   صفحة 404
   ============================================= */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-404__content {
    max-width: 500px;
}

.error-404__title {
    font-size: 8rem;
    font-weight: 900;
    color: var(--linkedin-blue);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.error-404__text {
    color: var(--medium-gray);
    margin-bottom: 30px;
}

/* =============================================
   الاستجابة - Responsive
   ============================================= */

/* التابلت */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__right {
        order: 1;
    }

    .hero__left {
        order: 2;
        text-align: center;
        align-items: center;
    }

    .hero__buttons {
        justify-content: center;
        width: 100%;
    }

    /* التأكد من ظهور أزرار التواصل في الموبايل */
    .hero__buttons .btn--social {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* زر الدخول في الموبايل */
    .hero__login-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* المستخدم في الموبايل */
    .hero__buttons .header__user {
        padding: 4px;
        background: transparent;
    }

    .hero__buttons .header__user-name {
        display: none;
    }

    .hero__buttons .header__user-avatar {
        width: 44px;
        height: 44px;
    }

    .hero__timeline {
        width: 100%;
        max-width: 500px;
    }

    .timeline__year {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .blog-page__content,
    .post-page__content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
        /* السايد بار يظهر بعد المحتوى */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-main,
    .post {
        order: 1;
        /* المحتوى يظهر أولاً */
    }

    .sidebar__widget:first-child,
    .sidebar .widget:first-child {
        grid-column: 1 / -1;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* الموبايل */
@media (max-width: 768px) {
    .hero {
        padding: 30px 15px;
        min-height: auto;
        padding-top: 80px;
    }

    .hero__image {
        width: 200px;
        height: 200px;
    }

    .hero__name {
        font-size: 2rem;
    }

    .hero__typewriter {
        font-size: 1.1rem;
    }

    .hero__companies {
        max-width: 280px;
    }

    .hero__company {
        width: 50px;
        height: 50px;
    }

    .timeline__year {
        font-size: 5rem;
    }

    .timeline__container {
        max-height: 220px;
    }

    .hero__timeline {
        margin-top: 30px;
        padding: 20px 0;
    }

    .timeline__year {
        font-size: 4rem;
        opacity: 0.3;
    }

    .hero__intro {
        text-align: center;
    }

    .hero__typewriter-wrapper {
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-page__title {
        font-size: 1.8rem;
    }

    .post__header {
        padding: 25px;
    }

    .post__title {
        font-size: 1.6rem;
    }

    .post__body {
        padding: 25px;
        font-size: 1rem;
    }

    .post__share {
        padding: 20px 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .header__nav {
        display: none;
    }

    .header__logo span {
        display: none;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .breadcrumbs__list {
        font-size: 0.85rem;
    }
}

/* الموبايل الصغير */
@media (max-width: 480px) {
    .hero__image {
        width: 160px;
        height: 160px;
    }

    .hero__name {
        font-size: 1.7rem;
    }

    .hero__typewriter {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn--icon {
        width: 42px;
        height: 42px;
    }

    /* التأكد من ظهور أزرار التواصل في الموبايل الصغير */
    .hero__buttons .btn--social {
        display: flex !important;
        width: 42px;
        height: 42px;
    }

    /* زر الدخول في الموبايل الصغير */
    .hero__login-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero__buttons .header__user-avatar {
        width: 38px;
        height: 38px;
    }

    .timeline__item {
        padding-right: 40px;
    }

    .timeline__logo {
        width: 40px;
        height: 40px;
    }

    .sidebar__widget,
    .widget {
        padding: 20px;
    }
}

/* =============================================
   أنيميشن الظهور
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease-out;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease-out;
}

/* =============================================
   تحسينات التابلت
   ============================================= */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero__name {
        font-size: 2.5rem;
    }

    .hero__typewriter {
        font-size: 1.3rem;
    }
}

/* =============================================
   Yoast SEO Breadcrumbs تنسيق
   ============================================= */
.yoast-breadcrumbs {
    padding: 15px 0;
    font-size: 0.95rem;
}

.yoast-breadcrumbs a {
    color: var(--medium-gray);
    transition: color var(--transition-fast);
}

.yoast-breadcrumbs a:hover {
    color: var(--linkedin-blue);
}

.yoast-breadcrumbs .breadcrumb_last {
    color: var(--linkedin-blue);
    font-weight: 600;
}

/* =============================================
   WordPress Core Styles
   ============================================= */

/* Alignments */
.alignleft {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-align: center;
    padding: 10px 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--light-gray);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--dark-gray);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    right: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip Link */
.skip-link {
    position: absolute;
    right: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.skip-link:focus,
.skip-link:active {
    color: var(--dark-gray);
    background-color: var(--white);
    right: 5px;
    top: 5px;
    width: auto;
    height: auto;
    overflow: auto;
    z-index: 100000;
    padding: 15px 23px 14px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* =============================================
   إصلاحات إضافية للموبايل
   ============================================= */

/* إصلاح أيقونات واتساب ولينكدإن في الموبايل للصفحة الرئيسية */
@media (max-width: 768px) {
    .hero__buttons .btn--social {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero__buttons .btn--social svg {
        width: 22px !important;
        height: 22px !important;
        fill: currentColor !important;
    }

    /* مقالات ذات صلة في الموبايل */
    .related-posts__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .related-posts__grid .blog-card {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero__buttons .btn--social {
        width: 44px !important;
        height: 44px !important;
    }

    .hero__buttons .btn--social svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* =============================================
   Podcast Card Overlay - بطاقة المقال مع بودكاست
   ============================================= */

.blog-card--has-podcast .blog-card__image-wrapper {
    position: relative;
}

.blog-card__podcast-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    z-index: 5;
    pointer-events: none;
}

/* الخلفية المتدرجة تظهر فقط عند hover */
.blog-card__podcast-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.blog-card--has-podcast:hover .blog-card__podcast-overlay::before {
    opacity: 1;
}

/* Badge - شارة البودكاست (ظاهرة دائماً) */
.blog-card__podcast-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 119, 181, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.blog-card__podcast-badge svg {
    flex-shrink: 0;
}

/* Actions - أزرار التحكم (تظهر عند hover فقط) */
.blog-card__podcast-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    pointer-events: none;
}

.blog-card--has-podcast:hover .blog-card__podcast-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.blog-card__podcast-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.blog-card__podcast-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.blog-card__podcast-play svg {
    margin-right: -2px;
}

.blog-card__podcast-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.blog-card__podcast-link:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--linkedin-blue);
}

/* =============================================
   Global Podcast Player - المشغل الثابت أسفل الصفحة
   ============================================= */

.global-podcast-player {
    position: fixed;
    bottom: 75px;
    /* أعلى من الفوتر */
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    z-index: 998;
    max-width: 480px;
    width: calc(100% - 40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-podcast-player.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.global-podcast-player__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* القسم الأيمن - معلومات البودكاست */
.global-podcast-player__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.global-podcast-player__image-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.global-podcast-player__image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--linkedin-blue);
}

.global-podcast-player__image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--linkedin-blue), #00a8cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.global-podcast-player__image:not([src=""])+.global-podcast-player__image-placeholder {
    display: none;
}

.global-podcast-player__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.global-podcast-player__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Wave Animation */
.global-podcast-player__wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.global-podcast-player__wave .wave-bar {
    width: 3px;
    background: var(--linkedin-blue);
    border-radius: 2px;
    height: 4px;
    transition: height 0.15s ease;
}

.global-podcast-player.is-playing .wave-bar:nth-child(1) {
    animation: waveAnim 0.5s ease-in-out infinite alternate;
    animation-delay: 0s;
}

.global-podcast-player.is-playing .wave-bar:nth-child(2) {
    animation: waveAnim 0.5s ease-in-out infinite alternate;
    animation-delay: 0.1s;
}

.global-podcast-player.is-playing .wave-bar:nth-child(3) {
    animation: waveAnim 0.5s ease-in-out infinite alternate;
    animation-delay: 0.2s;
}

.global-podcast-player.is-playing .wave-bar:nth-child(4) {
    animation: waveAnim 0.5s ease-in-out infinite alternate;
    animation-delay: 0.3s;
}

.global-podcast-player.is-playing .wave-bar:nth-child(5) {
    animation: waveAnim 0.5s ease-in-out infinite alternate;
    animation-delay: 0.15s;
}

@keyframes waveAnim {
    0% {
        height: 4px;
    }

    100% {
        height: 16px;
    }
}

/* Controls - أزرار التحكم */
.global-podcast-player__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-podcast-player__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--light-gray);
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.global-podcast-player__btn:hover {
    background: var(--lighter-gray);
    color: var(--dark-gray);
}

.global-podcast-player__btn--main {
    width: 48px;
    height: 48px;
    background: var(--linkedin-blue);
    color: #fff;
}

.global-podcast-player__btn--main:hover {
    background: var(--linkedin-blue-hover);
    color: #fff;
    transform: scale(1.05);
}

.global-podcast-player__btn--main .play-icon {
    margin-right: -2px;
}

.global-podcast-player__btn--main .pause-icon {
    display: none;
}

.global-podcast-player.is-playing .global-podcast-player__btn--main .play-icon {
    display: none;
}

.global-podcast-player.is-playing .global-podcast-player__btn--main .pause-icon {
    display: block;
}

#globalPodcastAudio {
    display: none;
}

/* Responsive - التجاوب */
@media (max-width: 768px) {
    .global-podcast-player {
        bottom: 70px;
        padding: 10px 16px;
        max-width: 100%;
        width: calc(100% - 30px);
        border-radius: 14px;
    }

    .global-podcast-player__image-wrapper {
        width: 42px;
        height: 42px;
    }

    .global-podcast-player__image {
        width: 42px;
        height: 42px;
    }

    .global-podcast-player__title {
        font-size: 0.85rem;
    }

    .global-podcast-player__btn {
        width: 32px;
        height: 32px;
    }

    .global-podcast-player__btn--main {
        width: 42px;
        height: 42px;
    }

    /* في التابلت والموبايل: جعل عناصر البودكاست ظاهرة دائماً (لا يوجد hover) */
    .blog-card__podcast-overlay::before {
        opacity: 1;
    }

    .blog-card__podcast-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .global-podcast-player {
        bottom: 65px;
        padding: 10px 14px;
        width: calc(100% - 20px);
        border-radius: 12px;
    }

    .global-podcast-player__container {
        gap: 10px;
    }

    .global-podcast-player__right {
        gap: 10px;
    }

    .global-podcast-player__image-wrapper {
        width: 38px;
        height: 38px;
    }

    .global-podcast-player__image {
        width: 38px;
        height: 38px;
    }

    .global-podcast-player__wave {
        display: none;
    }

    .global-podcast-player__title {
        font-size: 0.8rem;
    }

    .global-podcast-player__btn {
        width: 34px;
        height: 34px;
    }

    .global-podcast-player__btn--main {
        width: 44px;
        height: 44px;
    }

    .global-podcast-player__btn--main svg {
        width: 20px;
        height: 20px;
    }

    /* تكبير أزرار البطاقة للمس */
    .blog-card__podcast-play {
        width: 48px;
        height: 48px;
    }

    .blog-card__podcast-link {
        width: 40px;
        height: 40px;
    }

    /* في الموبايل: جعل كل عناصر البودكاست ظاهرة دائماً (لا يوجد hover) */
    .blog-card__podcast-overlay::before {
        opacity: 1;
    }

    .blog-card__podcast-actions {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* =============================================
   Hero Posts Slider - سلايدر آخر المقالات
   ============================================= */

.hero__posts-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    width: 100%;
    max-width: 340px;
    /* زيادة 20% من 280px */
}

/* إخفاء في الموبايل */
.hero__posts-slider--desktop {
    display: flex;
}

/* عبارة تابع على مدونتي */
.hero__posts-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--medium-gray);
    margin-bottom: 5px;
    text-align: center;
}

/* أعلام الدول */
.hero__flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.hero__flags img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.hero__flags img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* زر التنقل السفلي - سهم بسيط */
.hero__posts-nav {
    width: 32px;
    height: 24px;
    border: none;
    background: transparent;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    align-self: center;
}

.hero__posts-nav:hover {
    color: var(--linkedin-blue);
}

/* Viewport للسلايدر */
.hero__posts-viewport {
    position: relative;
    width: 100%;
    height: 70px;
    overflow: hidden;
}

/* بطاقة المقال */
.hero__post-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.hero__post-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero__post-card:hover {
    border-color: var(--linkedin-blue);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.12);
}

/* Animation Classes */
.hero__post-card.slide-out-up {
    opacity: 0;
    transform: translateY(-30px);
}

.hero__post-card.slide-out-down {
    opacity: 0;
    transform: translateY(30px);
}

.hero__post-card.slide-in-up {
    animation: slideInUp 0.3s ease forwards;
}

.hero__post-card.slide-in-down {
    animation: slideInDown 0.3s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* صورة المقال */
.hero__post-image-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.hero__post-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.hero__post-image-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Badge البودكاست مع تأثير الدوائر الصوتية */
.hero__post-podcast-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--linkedin-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 2px solid #fff;
    z-index: 1;
}

/* دوائر الموجات الصوتية */
.hero__post-podcast-badge .podcast-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--linkedin-blue);
    border-radius: 50%;
    opacity: 0;
    animation: podcastWaveAnim 2s ease-out infinite;
}

.hero__post-podcast-badge .podcast-wave:nth-child(1) {
    animation-delay: 0s;
}

.hero__post-podcast-badge .podcast-wave:nth-child(2) {
    animation-delay: 0.6s;
}

.hero__post-podcast-badge .podcast-wave:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes podcastWaveAnim {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.hero__post-podcast-badge svg {
    position: relative;
    z-index: 2;
}

/* معلومات المقال */
.hero__post-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.hero__post-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.hero__post-date {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

/* =============================================
   Hero Posts Slider - Responsive
   ============================================= */

@media (max-width: 768px) {

    /* إخفاء السلايدر والأعلام في الموبايل */
    .hero__posts-slider--desktop {
        display: none !important;
    }
}

/* السلايدر مخفي في الموبايل - لا حاجة لستايلات 480px */

/* =============================================
   Blog Hero Mode - وضع الهيرو للمدونة الرئيسية
   ============================================= */

/* وضع الهيرو - الهيدر في المنتصف */
/* وضع الهيرو - يترك 20% من ارتفاع الكروت ظاهرة في الأسفل */
.blog-page--hero-mode .blog-page__header--hero {
    min-height: calc(100vh - var(--header-height) - 280px);
    min-height: calc(100dvh - var(--header-height) - 280px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: min-height 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.8s ease;
}

/* أنيميشن الانتقال - حالة وسطية */
.blog-page--hero-mode.is-transitioning .blog-page__header--hero {
    transform: translateY(-30px);
    opacity: 0.9;
}

.admin-bar .blog-page--hero-mode .blog-page__header--hero {
    min-height: calc(100vh - var(--header-height) - 32px - 280px);
    min-height: calc(100dvh - var(--header-height) - 32px - 280px);
}

@media screen and (max-width: 782px) {
    .admin-bar .blog-page--hero-mode .blog-page__header--hero {
        min-height: calc(100vh - var(--header-height) - 46px - 220px);
        min-height: calc(100dvh - var(--header-height) - 46px - 220px);
    }
}

/* زر اكتشف المقالات */
.blog-hero__scroll-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--linkedin-blue);
    transition: all var(--transition-normal);
}

.blog-hero__scroll-btn:hover {
    transform: translateY(-3px);
}

.blog-hero__scroll-text {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
}

.blog-hero__scroll-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--linkedin-blue);
    color: var(--white);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.35);
    transition: all var(--transition-normal);
}

.blog-hero__scroll-btn:hover .blog-hero__scroll-icon {
    box-shadow: 0 6px 25px rgba(0, 119, 181, 0.45);
    transform: scale(1.05);
}

.blog-hero__scroll-icon svg {
    fill: currentColor;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(4px);
    }

    50% {
        transform: translateY(8px);
    }

    75% {
        transform: translateY(4px);
    }
}

/* أنيميشن اختفاء زر الاكتشاف */
.blog-page--hero-mode.is-transitioning .blog-hero__scroll-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* قسم المقالات في وضع الهيرو */
.blog-posts-section--hero {
    opacity: 1;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.8s ease;
}

/* أثناء الانتقال - المقالات تنزلق للأعلى */
.blog-page--hero-mode.is-transitioning .blog-posts-section--hero {
    transform: translateY(-20px);
}

/* ===== بعد الانتقال للوضع العادي ===== */

/* الهيدر يصبح عادي */
.blog-page--hero-mode.is-normal-view .blog-page__header--hero {
    min-height: auto;
}

/* إخفاء زر اكتشف المقالات */
.blog-page--hero-mode.is-normal-view .blog-hero__scroll-btn {
    display: none;
}

/* ===== التجاوب ===== */
@media (max-width: 768px) {
    .blog-page--hero-mode .blog-page__header--hero {
        min-height: calc(100vh - var(--header-height) - 200px);
        min-height: calc(100dvh - var(--header-height) - 200px);
    }

    .blog-hero__scroll-btn {
        margin-top: 30px;
        gap: 8px;
    }

    .blog-hero__scroll-icon {
        width: 44px;
        height: 44px;
    }

    .blog-hero__scroll-icon svg {
        width: 22px;
        height: 22px;
    }

    .blog-hero__scroll-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-page--hero-mode .blog-page__header--hero {
        min-height: calc(100vh - var(--header-height) - 180px);
        min-height: calc(100dvh - var(--header-height) - 180px);
    }

    .blog-hero__scroll-btn {
        margin-top: 25px;
        padding: 10px 20px;
    }

    .blog-hero__scroll-icon {
        width: 40px;
        height: 40px;
    }

    .blog-hero__scroll-text {
        font-size: 0.85rem;
    }
}

/* =============================================
   صفحة المدونة بدون سايد بار - التصميم الجديد
   ============================================= */

/* إزالة السايد بار وتحويل الشبكة إلى 3 أعمدة */
.blog-page--no-sidebar .blog-page__content {
    display: block;
}

.blog-page--no-sidebar .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* تحسين عنوان الصفحة */
.blog-page--no-sidebar .blog-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-page--no-sidebar .blog-page__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.blog-page--no-sidebar .blog-page__subtitle {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

/* =============================================
   محرك البحث الجديد
   ============================================= */

.blog-search-wrapper {
    width: 100%;
    max-width: 700px;
    min-width: 600px;
    margin: 0 auto 30px;
}

@media (max-width: 768px) {
    .blog-search-wrapper {
        min-width: auto;
    }
}

.blog-search-form {
    position: relative;
}

.blog-search-form__input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--lighter-gray);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
}

.blog-search-form__input-wrapper:focus-within {
    border-color: var(--linkedin-blue);
    box-shadow: 0 6px 30px rgba(0, 119, 181, 0.15);
}

.blog-search-form__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-gray);
    background: transparent;
    padding: 12px 0;
}

.blog-search-form__input::placeholder {
    color: var(--medium-gray);
    transition: opacity 0.3s ease;
}

.blog-search-form__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--linkedin-blue), #0099cc);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.blog-search-form__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.blog-search-form__btn:hover::before {
    left: 100%;
}

.blog-search-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.35);
}

.blog-search-form__btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* =============================================
   أسهم السلايدر المشتركة
   ============================================= */

.blog-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #bbb;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}

.blog-slider__arrow:hover {
    color: var(--linkedin-blue);
}

.blog-slider__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blog-slider__arrow:disabled:hover {
    color: #bbb;
}

/* =============================================
   سلايدر التصنيفات
   ============================================= */

.blog-categories-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-categories-viewport {
    overflow: hidden;
    flex: 1;
    max-width: 780px;
}

.blog-categories {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease;
}

.blog-categories__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--lighter-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    white-space: nowrap;
}

.blog-categories__item:hover {
    border-color: var(--linkedin-blue);
    color: var(--linkedin-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.15);
}

.blog-categories__item--active {
    background: var(--linkedin-blue);
    border-color: var(--linkedin-blue);
    color: var(--white);
}

.blog-categories__item--active:hover {
    background: var(--linkedin-blue-hover);
    border-color: var(--linkedin-blue-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.blog-categories__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--light-gray);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--medium-gray);
}

.blog-categories__item--active .blog-categories__count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* أيقونة الرئيسية في التصنيفات */
.blog-categories__item--home {
    padding: 10px 16px;
}

.blog-categories__item--home svg {
    fill: currentColor;
}

.blog-categories__item--home.blog-categories__item--active svg {
    fill: var(--white);
}

/* =============================================
   سلايدر الوسوم
   ============================================= */

.blog-tags-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.blog-tags-slider .blog-slider__arrow {
    width: 30px;
    height: 30px;
}

.blog-tags-slider .blog-slider__arrow svg {
    width: 16px;
    height: 16px;
}

.blog-tags-viewport {
    overflow: hidden;
    flex: 1;
    max-width: 650px;
}

.blog-tags {
    display: flex;
    gap: 10px;
    transition: transform 0.5s ease;
}

.blog-tags__item {
    display: inline-block;
    padding: 6px 14px;
    background: var(--light-gray);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--medium-gray);
    text-decoration: none;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    white-space: nowrap;
}

.blog-tags__item:hover {
    background: var(--linkedin-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.blog-tags__item--active {
    background: var(--dark-gray);
    color: var(--white);
}

.blog-tags__item--active:hover {
    background: var(--dark-gray);
    color: var(--white);
}

/* =============================================
   مؤشر التحميل - Infinite Scroll
   ============================================= */

.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    margin-top: 30px;
    min-height: 100px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.infinite-scroll-loader .loader-spinner,
.infinite-scroll-loader .loader-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infinite-scroll-loader.is-loading .loader-spinner,
.infinite-scroll-loader.is-loading .loader-text {
    opacity: 1;
}

.loader-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    background: var(--linkedin-blue);
    border-radius: 50%;
    animation: loaderBounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loaderBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* رسالة نهاية المحتوى */
.infinite-scroll-end {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
}

.infinite-scroll-end span {
    display: inline-block;
    padding: 10px 25px;
    background: var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* =============================================
   صفحة المدونة الجديدة - التجاوب
   ============================================= */

/* التابلت */
@media (max-width: 1024px) {

    /* التأكد من إلغاء أي order أو flex في صفحة المدونة بدون سايد بار */
    .blog-page--no-sidebar .blog-page__content {
        display: block;
    }

    .blog-page--no-sidebar .blog-main {
        display: block;
        order: unset;
    }

    .blog-page--no-sidebar .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-page--no-sidebar .blog-page__title {
        font-size: 2.2rem;
    }

    .blog-search-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }

    .blog-categories {
        gap: 10px;
    }

    .blog-categories__item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .blog-tags__item {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* الموبايل */
@media (max-width: 768px) {

    /* التأكد من إلغاء أي order أو flex/grid على الـ containers */
    .blog-page--no-sidebar .blog-page__content {
        display: block;
    }

    .blog-page--no-sidebar .blog-main {
        display: block;
        order: unset;
    }

    .blog-page--no-sidebar .blog-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-page--no-sidebar .blog-page__title {
        font-size: 1.8rem;
    }

    .blog-page--no-sidebar .blog-page__subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .blog-search-wrapper {
        padding: 0;
        margin-bottom: 25px;
    }

    .blog-search-form__input-wrapper {
        padding: 4px 4px 4px 15px;
    }

    .blog-search-form__input {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .blog-search-form__btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .blog-search-form__btn span {
        display: none;
    }

    .blog-search-form__btn svg {
        width: 20px;
        height: 20px;
    }

    /* إخفاء سلايدر التصنيفات والوسوم في الموبايل */
    .blog-categories-slider,
    .blog-tags-slider {
        display: none !important;
    }
}

/* الموبايل الصغير */
@media (max-width: 480px) {
    .blog-page--no-sidebar .blog-page__title {
        font-size: 1.5rem;
    }

    .blog-page--no-sidebar .blog-page__header {
        margin-bottom: 30px;
    }
}

/* =============================================
   Header New Design (Glassmorphism)
   ============================================= */

/* Header Container */
.qh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 9999;
    transition: all 0.4s ease;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.qh-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Common Glass Styles */
.qh-pill,
.qh-circle {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    /* Re-enable clicks */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Right Side: Pill (Logo + Nav) */
.qh-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 25px;
    border-radius: 50px;
}

.qh-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.qh-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.qh-site-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-gray);
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 1;
    max-width: 200px;
    /* Adjust as needed */
}

.qh-divider {
    width: 1px;
    height: 20px;
    background-color: #ccc;
    transition: all 0.4s ease;
}

.qh-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qh-nav a {
    font-weight: 500;
    color: var(--medium-gray);
    font-size: 1rem;
    transition: color 0.2s ease;
}

.qh-nav a:hover {
    color: var(--linkedin-blue);
}

/* Left Side: Circles (Actions) */
.qh-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qh-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    /* Start as circle-ish or pill depending on content */
    padding: 0;
    text-decoration: none;
    color: var(--medium-gray);
    position: relative;
    overflow: hidden;
}

/* Special Case: User/Login might look like a Pill initially due to text */
.qh-user,
.qh-login {
    width: auto;
    padding: 0 15px;
    /* Add padding for text (only if text is visible) */
    gap: 10px;
}

.qh-circle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.qh-circle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.qh-circle:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--linkedin-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.qh-circle:hover svg {
    fill: var(--linkedin-blue);
}

.qh-text {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.4s ease;
    opacity: 1;
    max-width: 100px;
}

/* LinkedIn & WhatsApp - ensure they are circles */
.qh-linkedin,
.qh-whatsapp {
    width: 50px;
    padding: 0;
}

/* =============================================
   Scroll Effects (Scrolled State)
   ============================================= */
.qh-scrolled .qh-pill {
    padding: 6px 15px;
    /* Shrink padding */
}

.qh-scrolled .qh-logo img {
    width: 32px;
    height: 32px;
}

.qh-scrolled .qh-site-name {
    opacity: 0;
    max-width: 0;
    margin: 0;
}

/* Hide divider on scroll */
.qh-scrolled .qh-divider {
    opacity: 0;
    width: 0;
    margin: 0;
}

/* Shrink Circles */
.qh-scrolled .qh-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    /* Removing padding turns pill back to circle */
}

.qh-scrolled .qh-circle svg {
    width: 18px;
    height: 18px;
}

.qh-scrolled .qh-circle img {
    width: 28px;
    height: 28px;
}

.qh-scrolled .qh-text {
    opacity: 0;
    max-width: 0;
    margin: 0;
    display: none;
    /* Ensure it doesn't take space */
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 992px) {
    .qh-site-name {
        display: none;
        /* Always hide site name on tablet/mobile */
    }

    .qh-divider {
        display: none;
    }

    .qh-pill {
        padding: 8px 15px;
        /* Smaller padding */
    }

    .qh-nav {
        gap: 15px;
    }

    /* Ensure user text is hidden on tablet/mobile as typically requested for responsive */
    .qh-text {
        display: none;
    }

    /* Reset Login/User to circle dimensions on mobile since text is hidden */
    .qh-user,
    .qh-login {
        width: 45px;
        height: 45px;
        padding: 0;
        justify-content: center;
    }

    .qh-circle {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .qh-header {
        padding: 10px 0;
    }

    /* Hide standard WP/Theme Mobile Menu toggle if it exists outside */
    .header__menu-toggle {
        display: none !important;
    }

    .qh-container {
        padding: 0 15px;
    }

    .qh-nav {
        gap: 12px;
    }

    .qh-nav a {
        font-size: 0.9rem;
    }

    .qh-pill {
        gap: 10px;
    }

    .qh-actions {
        gap: 8px;
    }

    .qh-circle {
        width: 38px;
        height: 38px;
    }

    .qh-circle svg {
        width: 18px;
        height: 18px;
    }

    .qh-circle img {
        width: 28px;
        height: 28px;
    }

    /* On mobile, maybe shrink logo too */
    .qh-logo img {
        width: 32px;
        height: 32px;
    }
}

/* =============================================
   Single Post Redesign - تصميم صفحة المقال الجديد
   ============================================= */

/* Hero Section with Featured Image */
.qp-single-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: -100px;
    /* Overlap content */
}

.qp-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(255, 255, 255, 1) 100%);
}

/* Content Container */
.qp-content-container {
    position: relative;
    max-width: 950px;
    /* Wider reading area */
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
}

/* Content Box Styling */
.qp-content-box {
    background-color: #ffffff;
    border-radius: 30px;
    /* More rounded as requested */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 50px;
    margin-bottom: 50px;
    overflow: hidden;
    /* Ensure rounded corners clip content */
}

/* Ensure Post Header is clean inside box */
.qp-content-box .post__header {
    margin-bottom: 30px;
    text-align: center;
}

.qp-content-box .post__title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Related Posts 4-Column Grid */
.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    /* Force 4 columns */
    gap: 20px;
    margin-top: 30px;
}

/* Related Posts Title Style */
.related-posts__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-right: 15px;
}

.related-posts__title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--linkedin-blue);
    border-radius: 3px;
}

/* =============================================
   Responsive Design for Single Post
   ============================================= */

@media (max-width: 1024px) {
    .related-posts__grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .qp-single-hero {
        height: 50vh;
        margin-bottom: -60px;
    }

    .qp-content-box {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .qp-content-box .post__title {
        font-size: 1.6rem;
    }

    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .qp-single-hero {
        height: 40vh;
    }

    .related-posts__grid {
        grid-template-columns: 1fr !important;
    }
}

/* =============================================
   Single Post Refinements (Step Id: 92)
   ============================================= */

/* 1. Reduce white space and Align Right */
.qp-content-box .post__header {
    margin-bottom: 20px;
    /* Reduced from 30px */
    text-align: right;
    /* Changed from center to right */
    padding-top: 0;
}

/* Ensure Breadcrumbs are right aligned */
.breadcrumbs-inline__list {
    justify-content: flex-start;
    /* Align start (right in RTL) */
}

/* Author Meta Alignment */
.post__meta {
    justify-content: flex-start;
    /* Align start (right in RTL) */
}

/* 2. Related Posts & Latest Posts Grid Update */
.related-posts__grid,
.latest-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    /* Changed from 4 to 3 */
    gap: 25px;
    margin-top: 30px;
}

/* Latest Posts Title Style (Same as Related) */
.latest-posts__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-right: 15px;
}

.latest-posts__title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--linkedin-blue);
    border-radius: 3px;
}

/* Responsive updates for 3 columns */
@media (max-width: 992px) {

    .related-posts__grid,
    .latest-posts__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {

    .related-posts__grid,
    .latest-posts__grid {
        grid-template-columns: 1fr !important;
    }
}