/* ============================================================
   about_founder — the founder card (photo + name + bio) beside the
   "الخلفية التعليمية والخبرة" list.
   Light / Dark / wallpaper / RTL aware. Palette via CSS vars only.
   ============================================================ */

.about-founder-section {
    position: relative;
    padding: clamp(16px, 2.5vw, 32px) 0 clamp(24px, 4vw, 56px);
}

.about-founder__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
}

/* ---- Founder card ---- */
.about-founder__card {
    padding: clamp(20px, 2.4vw, 34px);
    border-radius: 22px;
    border: 1.5px solid var(--primary);
    background: #fbdefcf8;
    box-shadow: 0 14px 30px rgba(62, 0, 95, 0.10);
    text-align: center;
}
body.dark-mode .about-founder__card,
body.home-wallpaper-active:not(.dark-mode) .about-founder__card {
    background: rgba(31, 15, 51, 0.45);
    border-color: rgba(180, 143, 255, 0.55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.about-founder__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: clamp(0.85rem, 1vw, 0.98rem);
    color: var(--primary);
}
.about-founder__label-orn { color: var(--accent); font-size: 0.7em; }
body.dark-mode .about-founder__label,
body.home-wallpaper-active:not(.dark-mode) .about-founder__label { color: #f5d8ff; }

.about-founder__name {
    margin: 8px 0 clamp(16px, 2vw, 22px);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    color: var(--dark);
}
body.dark-mode .about-founder__name { color: #ffffff; }
body.home-wallpaper-active:not(.dark-mode) .about-founder__name {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(20, 0, 40, 0.35);
}

.about-founder__photo {
    width: clamp(160px, 20vw, 230px);
    aspect-ratio: 1;
    margin: 0 auto clamp(16px, 2vw, 22px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 16px 40px rgba(20, 0, 40, 0.35);
    background: radial-gradient(circle at 50% 30%, rgba(150, 90, 220, 0.28), rgba(20, 6, 38, 0.2));
}
.about-founder__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-founder__bio {
    text-align: start;
    font-size: clamp(0.86rem, 1vw, 0.98rem);
    line-height: 1.95;
    color: var(--gray-500);
}
body.dark-mode .about-founder__bio,
body.home-wallpaper-active:not(.dark-mode) .about-founder__bio { color: rgba(255, 255, 255, 0.82); }

/* ---- الخلفية التعليمية والخبرة (centered header) ---- */
.about-founder__background {
    padding-top: clamp(6px, 1vw, 14px);
    text-align: center;
}
.about-founder__bg-title {
    margin: 0 0 clamp(16px, 2vw, 24px);
    font-weight: 800;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    color: var(--dark);
}
body.dark-mode .about-founder__bg-title { color: #ffffff; }
body.home-wallpaper-active:not(.dark-mode) .about-founder__bg-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(20, 0, 40, 0.35);
}

.about-founder__bg-rows {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.6vw, 18px);
}
/* Icon sits on the reading-END side (left in RTL) as in the design. */
.about-founder__bg-row {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.4vw, 18px);
    padding-bottom: clamp(12px, 1.6vw, 18px);
    border-bottom: 1px solid rgba(180, 143, 255, 0.25);
}
.about-founder__bg-row:last-child { border-bottom: 0; padding-bottom: 0; }
.about-founder__bg-text {
    flex: 1 1 auto;
    text-align: start;
    font-size: clamp(0.84rem, 0.98vw, 0.95rem);
    line-height: 1.7;
    color: var(--gray-500);
}
body.dark-mode .about-founder__bg-text,
body.home-wallpaper-active:not(.dark-mode) .about-founder__bg-text { color: rgba(255, 255, 255, 0.82); }
.about-founder__bg-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(42px, 4.2vw, 52px);
    height: clamp(42px, 4.2vw, 52px);
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-btn-color);
    box-shadow: 0 8px 18px rgba(62, 0, 95, 0.22);
}
.about-founder__bg-icon svg { width: 52%; height: 52%; }
.about-founder__bg-icon img { width: 52%; height: 52%; object-fit: contain; filter: brightness(0) invert(1); }

/* ============================================================
   Responsive — 1199 / 991 / 767 / 575
   ============================================================ */
@media (max-width: 991px) {
    .about-founder__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 575px) {
    .about-founder__card { padding: 20px 16px; border-radius: 18px; }
    .about-founder__bg-icon { width: 42px; height: 42px; }
}
