*, *::before, *::after {
    box-sizing: border-box;
}

.executive-bio-section {
    background-color: #FFFFFF;
    padding: 6rem 5%;
    font-family: 'Tajawal', sans-serif;
    overflow: hidden;
    position: relative;
}

.executive-bio-section .bio-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.executive-bio-section .section-badge {
    display: inline-block;
    color: var(--gold-dark, #9B7D23);
    background-color: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.executive-bio-section .section-title {
    color: var(--primary, #0A1128);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.executive-bio-section .bio-quote {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.8;
    font-weight: 500;
    border-right: 4px solid var(--gold, #D4AF37);
    padding-right: 1.5rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.executive-bio-section .bio-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.executive-bio-section .bio-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.executive-bio-section .icon-box {
    background-color: var(--primary, #0A1128);
    color: var(--gold, #D4AF37);
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(10, 17, 40, 0.1);
}

.executive-bio-section .text-box {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #64748B;
    text-align: right;
}

.executive-bio-section .bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary, #0A1128);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--gold, #D4AF37);
    padding-bottom: 5px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.executive-bio-section .bio-btn:hover {
    gap: 1.2rem;
    color: var(--gold-dark, #9B7D23);
}

/* تجهيز الصورة والحاويات */
.executive-bio-section .bio-visual {
    position: relative;
    padding: 2rem;
    width: 100%;
}

.executive-bio-section .image-wrapper {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.executive-bio-section .dynamic-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.executive-bio-section .gold-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background-color: var(--gold, #D4AF37);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.2;
}

.executive-bio-section .floating-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary, #0A1128);
    color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    box-shadow: 0 15px 30px rgba(10, 17, 40, 0.2);
    border-bottom: 4px solid var(--gold, #D4AF37);
}

.executive-bio-section .badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold, #D4AF37);
    line-height: 1;
}

.executive-bio-section .badge-text {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* --- الشاشات المتوسطة والتابلت --- */
@media (max-width: 992px) {
    .executive-bio-section {
        padding: 4rem 5%;
    }
    .executive-bio-section .bio-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .executive-bio-section .bio-content {
        order: 2;
    }
    .executive-bio-section .bio-visual {
        order: 1;
        padding: 1rem;
    }
    .executive-bio-section .section-title {
        font-size: 2.2rem;
    }
    .executive-bio-section .floating-badge {
        bottom: -20px;
        right: 0px;
        padding: 1rem;
    }
}

/* --- شاشات الموبايل (حل مشكلة الخروج عن الشاشة) --- */
@media (max-width: 768px) {
    .executive-bio-section {
        padding: 3.5rem 1.2rem;
    }
    .executive-bio-section .bio-container {
        gap: 2.5rem;
    }
    .executive-bio-section .section-title {
        font-size: 1.8rem;
        line-height: 1.35;
    }
    .executive-bio-section .bio-quote {
        font-size: 1rem;
        line-height: 1.7;
        padding-right: 1rem;
        margin-bottom: 2rem;
    }
    .executive-bio-section .bio-visual {
        padding: 0.5rem;
        max-width: 320px;
        margin: 0 auto;
    }
    .executive-bio-section .gold-box {
        top: -8px;
        left: -8px;
        border-radius: 16px;
    }
    /* ضمان عدم خروج البطاقة العائمة خارج حافة الشاشة إطلاقاً */
    .executive-bio-section .floating-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
        padding: 0.8rem 1.2rem;
        border-radius: 12px;
        gap: 0.8rem;
    }
    .executive-bio-section .badge-number {
        font-size: 1.8rem;
    }
    .executive-bio-section .badge-text {
        font-size: 0.85rem;
    }
    .executive-bio-section .bio-highlights {
        gap: 1.2rem;
        margin-bottom: 2rem;
    }
    .executive-bio-section .bio-highlights li {
        gap: 0.8rem;
    }
    .executive-bio-section .icon-box {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
    .executive-bio-section .text-box {
        font-size: 0.95rem;
    }
}

/* --- LTR Styles for English Executive Bio --- */
.executive-bio-section[dir="ltr"],
.executive-bio-section.pe-ltr {
    font-family: 'Outfit', 'Inter', sans-serif;
    direction: ltr;
    text-align: left;
}

.executive-bio-section[dir="ltr"] .bio-content,
.executive-bio-section.pe-ltr .bio-content {
    text-align: left;
}

.executive-bio-section[dir="ltr"] .bio-quote,
.executive-bio-section.pe-ltr .bio-quote {
    border-right: none;
    border-left: 4px solid var(--gold, #D4AF37);
    padding-right: 0;
    padding-left: 1.5rem;
}

.executive-bio-section[dir="ltr"] .gold-box,
.executive-bio-section.pe-ltr .gold-box {
    left: auto;
    right: -20px;
}

.executive-bio-section[dir="ltr"] .floating-badge,
.executive-bio-section.pe-ltr .floating-badge {
    right: auto;
    left: -30px;
}

@media (max-width: 992px) {
    .executive-bio-section[dir="ltr"] .gold-box,
    .executive-bio-section.pe-ltr .gold-box {
        right: -8px;
        left: auto;
    }
    .executive-bio-section[dir="ltr"] .floating-badge,
    .executive-bio-section.pe-ltr .floating-badge {
        left: auto;
        right: auto;
    }
}