/* ==============================
   Root Variables (الألوان والثيم الأساسي)
   ============================== */
:root {
    --primary-color: #4e54c8;         /* اللون الأساسي */
    --secondary-color: #8f94fb;       /* اللون الثانوي */
    --accent-color: #ff6b6b;          /* لون مميز إضافي */
    --text-color: #090909;               /* لون النصوص */
    --light-text: #070707;               /* لون النصوص الفاتح */
    --background: #fff;               /* خلفية بيضاء أساسية */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15); 
    --transition: all 0.3s ease;      
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --hero-bg: linear-gradient(135deg, rgba(78, 84, 200, 0.9) 0%, rgba(143, 148, 251, 0.85) 100%);
}

/* ==============================
   Reset
   ============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==============================
   Hero Section
   ============================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;

    /* خلفية متدرجة (ملونة) */
    background: linear-gradient(135deg, #4e54c8, #383c84);
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

body.home-page {
    background: radial-gradient(1200px 700px at 80% -10%, rgba(78, 84, 200, 0.45), transparent 55%),
      radial-gradient(900px 600px at 10% 15%, rgba(53, 178, 107, 0.35), transparent 55%),
      linear-gradient(135deg, #0b1220, #121a35 55%, #0a1020);
    background-size: cover;
    background-attachment: fixed;
}

/* خلي hero-section شفاف بحيث يبان الخلفية */
.hero-section {
    padding: 6rem 0 4rem;
    background: transparent;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #35b26b, #252dcb);
    z-index: -1;
}

/* ==============================
   Hero Content
   ============================== */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}


.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--light-text);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--light-text);
}

.hero-subtitle {
    font-size: 1.2rem !important;
    margin: 2rem 0 !important;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: inline-block;
    backdrop-filter: blur(5px);
    animation: glow 2s infinite alternate;
    color: var(--light-text);
}



/* ==============================
   Buttons
   ============================== */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-modern {
    background: var(--light-text);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.btn-modern.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
    border-radius: 50px;
}

.btn-modern:hover::before {
    opacity: 1;
}

.btn-modern:hover {
    color: var(--light-text);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==============================
   Landing Sections (Home Page)
   ============================== */
.landing-section {
    padding: 72px 0;
    position: relative;
}

.landing-section:nth-of-type(even) {
    background: rgba(15, 23, 42, 0.03);
}

.landing-section .container {
    position: relative;
}

.section-head {
    margin-bottom: 18px;
    max-width: 900px;
}

body.home-page .section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
    line-height: 1.25;
}

body.home-page .section-head h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(10px);
}

.section-head p {
    color: rgba(15, 23, 42, 0.72);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.section-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(6px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.section-card:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

.section-card h3 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
    margin: 8px 0 6px;
    line-height: 1.35;
}

.section-card p {
    color: rgba(15, 23, 42, 0.72);
    font-size: 0.98rem;
    margin: 0;
    line-height: 1.8;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.14));
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.card-icon i {
    color: #2563eb;
    font-size: 1.15rem;
}

.section-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-section .btn-modern {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.landing-section .btn-modern::before {
    opacity: 0;
}

.landing-section .btn-modern:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

body.home-page .landing-section {
    color: rgba(255, 255, 255, 0.92);
}

body.home-page .landing-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.04);
}

body.home-page .section-head h2 {
    color: #ffffff;
}

body.home-page .section-head p {
    color: rgba(255, 255, 255, 0.78);
}

body.home-page .section-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

body.home-page .section-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

body.home-page .section-card h3 {
    color: #ffffff;
}

body.home-page .section-card p {
    color: rgba(255, 255, 255, 0.78);
}

body.home-page .card-icon {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.home-page .card-icon i {
    color: #ffffff;
}

body.home-page .landing-section .btn-modern {
    background: rgba(255, 255, 255, 0.92);
    color: #0b1220;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

body.home-page .landing-section .btn-modern:hover {
    color: #0b1220;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.home-page .dynamic-courses,
body.home-page .about-platform,
body.home-page .testimonials {
    padding: 84px 0;
}

body.home-page .dynamic-courses .section-head,
body.home-page .about-platform .section-head,
body.home-page .testimonials .section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 920px;
    margin-bottom: 26px;
}

body.home-page .dynamic-courses .section-head p,
body.home-page .about-platform .section-head p,
body.home-page .testimonials .section-head p {
    max-width: 760px;
    margin: 10px auto 0;
}

body.home-page .dc-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    padding: 18px;
}

body.home-page .dynamic-courses {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

body.home-page .dynamic-courses::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #252dcb, #35b26b);
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

body.home-page .dc-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

body.home-page .dc-select-wrap {
    flex: 1;
    min-width: 260px;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.home-page .dc-select-wrap i {
    color: rgba(255, 255, 255, 0.90);
    font-size: 1.05rem;
}

body.home-page .dc-select {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.02rem;
    font-family: "Cairo", sans-serif;
    padding: 4px 6px;
    appearance: none;
}

body.home-page .dc-select option {
    color: #0f172a;
    background: #ffffff;
}

body.home-page .dc-select-wrap {
    position: relative;
}

body.home-page .dc-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

[dir="rtl"] body.home-page .dc-select-wrap::after { left: 14px; }
[dir="ltr"] body.home-page .dc-select-wrap::after { right: 14px; }

body.home-page .dc-select-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.home-page .dc-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

body.home-page .dc-tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 900;
    font-size: 0.98rem;
    transition: transform 160ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body.home-page .dc-tab:hover {
    transform: translateY(-1px);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

body.home-page .dc-tab.is-active {
    background: rgba(255, 255, 255, 0.92);
    color: #0b1220;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

body.home-page .dc-universe {
    position: relative;
    margin-top: 14px;
    border-radius: 22px;
    overflow: hidden;
    background: radial-gradient(1200px 700px at 50% 0%, rgba(16, 185, 129, 0.20), transparent 55%),
      linear-gradient(135deg, rgba(6, 20, 14, 0.92), rgba(9, 20, 24, 0.88) 60%, rgba(6, 16, 14, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

body.home-page .dc-universe.is-swapping {
    animation: dcSwap 260ms ease;
}

body.home-page .dc-universe.is-exiting .dc-stage {
    transform: none;
}

body.home-page .dc-ambient {
    position: absolute;
    inset: -1px;
    background:
      radial-gradient(850px 360px at 40% 25%, rgba(16, 185, 129, 0.22), transparent 60%),
      radial-gradient(900px 380px at 70% 60%, rgba(34, 197, 94, 0.16), transparent 62%),
      radial-gradient(700px 340px at 10% 80%, rgba(5, 150, 105, 0.12), transparent 60%);
    opacity: 0.9;
    filter: blur(0px);
    pointer-events: none;
}

body.home-page .dc-particles {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
      radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.10) 0 1px, transparent 2px),
      radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
      radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.10) 0 1px, transparent 2px);
    background-size: 220px 220px, 260px 260px, 300px 300px, 280px 280px;
    opacity: 0.55;
    animation: none;
    pointer-events: none;
}

@keyframes dcParticles {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -120px, 0); }
}

body.home-page .dc-viewport {
    position: relative;
    height: auto;
    perspective: 1200px;
    perspective-origin: 50% 40%;
}

body.home-page .dc-stage {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-content: stretch;
    padding: 18px;
    transform-style: preserve-3d;
    transition: none;
    will-change: transform;
}

body.home-page .dc-open-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(900px 520px at 50% 30%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.86));
    transition: opacity 520ms ease;
    pointer-events: none;
}

body.home-page .dc-open-overlay.is-active {
    opacity: 1;
}

@keyframes dcSwap {
    from { opacity: 0.55; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

body.home-page .dc-card {
    position: relative;
    width: 100%;
    height: 360px;
    display: block;
    text-decoration: none;
    border-radius: 24px;
    transform-style: preserve-3d;
    will-change: transform, filter;
    transform: none;
    transition:
      transform 720ms cubic-bezier(.2,.8,.2,1),
      filter 520ms ease,
      opacity 520ms ease;
    opacity: 1;
    filter: saturate(0.95) brightness(0.9);
}

body.home-page .dc-card {
    animation: dcEnter 720ms cubic-bezier(.2,.8,.2,1) both;
    animation-delay: var(--enter, 0ms);
}

@keyframes dcEnter {
    from {
        opacity: 0;
        transform:
          translate3d(var(--x, 0px), calc(var(--y, 0px) + 40px), calc(var(--z, 0px) - 380px))
          rotateX(calc(var(--rx, 0deg) + 8deg))
          rotateY(var(--ry, 0deg));
    }
    to {
        opacity: 1;
    }
}

body.home-page .dc-card.is-center {
    filter: saturate(1.06) brightness(1.05);
}

body.home-page .dc-card:hover {
    transform:
      translate3d(var(--x, 0px), var(--y, 0px), var(--z, 0px))
      rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg));
}

body.home-page .dc-card.is-opening {
    transform:
      translate3d(0px, 0px, 160px)
      rotateX(0deg)
      rotateY(0deg)
      scale(1.04);
    z-index: 10;
}

body.home-page .dc-layers {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.12) inset;
    backdrop-filter: blur(16px);
}

body.home-page .dc-edge {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.20), transparent 40%),
      radial-gradient(600px 200px at 25% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.75;
}

body.home-page .dc-sweep {
    position: absolute;
    inset: -80px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
    transform: translateX(-40%);
    opacity: 0;
    transition: opacity 240ms ease;
}

body.home-page .dc-card:hover .dc-sweep {
    opacity: 0;
    animation: none;
}

@keyframes dcSweep {
    from { transform: translateX(-55%); }
    to { transform: translateX(55%); }
}

body.home-page .dc-thumb {
    height: 150px;
    background: radial-gradient(700px 220px at 20% 15%, rgba(255, 255, 255, 0.30), transparent 60%),
      linear-gradient(135deg, rgba(16, 185, 129, 0.78), rgba(5, 150, 105, 0.55));
    position: relative;
    transform: translateZ(42px);
}

body.home-page .dc-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(480px 180px at 20% 10%, rgba(255, 255, 255, 0.25), transparent 55%);
}

body.home-page .dc-thumb-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

body.home-page .dc-thumb-inner i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2.1rem;
}

body.home-page .dc-thumb-img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

body.home-page .dc-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateZ(20px);
    text-align: center;
    align-items: center;
}

body.home-page .dc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-weight: 900;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    z-index: 3;
}

body.home-page .dc-badge.is-theory {
    background: rgba(255, 255, 255, 0.92);
    color: #0b1220;
}

body.home-page .dc-badge.is-practical {
    background: rgba(34, 197, 94, 0.88);
    color: #08130d;
}

body.home-page .dc-uni-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.92rem;
    line-height: 1;
    letter-spacing: 0.2px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    z-index: 3;
    max-width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .dc-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.08rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.35em * 2);
    width: 100%;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.2px;
    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.home-page .dc-doctor,
body.home-page .dc-lessons {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    font-size: 0.94rem;
}

body.home-page .dc-doctor {
    width: 100%;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    color: rgba(255, 255, 255, 0.86);
}

body.home-page .dc-cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body.home-page .dc-cta i {
    font-size: 0.95rem;
}

body.home-page .dc-empty {
    grid-column: 1 / -1;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

@media (max-width: 1100px) {
    body.home-page .dc-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    body.home-page .dc-stage {
        grid-template-columns: 1fr;
    }
}

body.home-page .dc-empty-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
}

body.home-page .dc-empty-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

body.home-page .about-platform .ap-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
}

body.home-page .about-platform .ap-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    padding: 18px;
}

body.home-page .about-platform .ap-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.home-page .about-platform .ap-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

body.home-page .about-platform .ap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.24);
}

body.home-page .about-platform .ap-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    margin-bottom: 10px;
}

body.home-page .about-platform .ap-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

body.home-page .about-platform .ap-card h3 {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0 0 6px;
}

body.home-page .about-platform .ap-card p {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    line-height: 1.8;
    margin: 0;
}

body.home-page .about-platform .ap-counters {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.home-page .about-platform .ap-counter {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

body.home-page .about-platform .ap-num {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1;
}

body.home-page .about-platform .ap-label {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

body.home-page .about-platform .ap-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
}

body.home-page .about-platform .ap-blob {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at 25% 20%, rgba(34, 197, 94, 0.40), transparent 55%),
      radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.45), transparent 55%);
    filter: blur(8px);
}

body.home-page .about-platform .ap-illustration {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

body.home-page .about-platform .ap-illustration-inner {
    width: min(320px, 100%);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
    padding: 22px;
    text-align: center;
}

body.home-page .about-platform .ap-illustration-inner i {
    color: rgba(255, 255, 255, 0.96);
    font-size: 2.3rem;
}

body.home-page .about-platform .ap-illus-text {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 900;
    font-size: 1.05rem;
}

body.home-page .testimonials .ts-wrap {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
    padding: 18px;
}

body.home-page .testimonials .ts-track {
    position: relative;
    min-height: 210px;
}

body.home-page .testimonials .ts-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms ease, transform 420ms ease;
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
}

body.home-page .testimonials .ts-card.is-active {
    opacity: 1;
    transform: translateY(0);
}

body.home-page .testimonials .ts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

body.home-page .testimonials .ts-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

body.home-page .testimonials .ts-meta {
    flex: 1;
}

body.home-page .testimonials .ts-name {
    color: #ffffff;
    font-weight: 900;
}

body.home-page .testimonials .ts-uni {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
    margin-top: 2px;
}

body.home-page .testimonials .ts-stars {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    letter-spacing: 1px;
}

body.home-page .testimonials .ts-text {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    line-height: 1.9;
}

body.home-page .testimonials .ts-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

body.home-page .testimonials .ts-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.22);
    transition: width 200ms ease, background 200ms ease;
}

body.home-page .testimonials .ts-dot.is-active {
    width: 26px;
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
    body.home-page .dc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.home-page .dc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .about-platform .ap-layout {
        grid-template-columns: 1fr;
    }

    body.home-page .about-platform .ap-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.home-page .dc-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .dc-panel,
    body.home-page .about-platform .ap-content,
    body.home-page .testimonials .ts-wrap {
        padding: 14px;
    }
}

@media (max-width: 992px) {
    .section-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .landing-section {
        padding: 44px 0;
    }

    .section-head h2 {
        font-size: 1.7rem;
    }

    .section-cards {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Hero Illustration
   ============================== */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-illustration {
    width: 500px;
    height: 500px;
    background: linear-gradient(to bottom, #f5f7fa, #e4e7ec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-medium);
    animation: heroFloat 3s ease-in-out infinite alternate;
    margin-left: -400px;
}

/* دوائر متحركة */
.hero-illustration::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: heroRotate 10s linear infinite;
}

.hero-illustration::after {
    content: '';
    position: absolute;
    top: -40px; left: -40px; right: -40px; bottom: -40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: heroRotate 15s linear infinite reverse;
}

.logo-image-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    border-radius: 50%;
    overflow: hidden;
    animation: heroRotate 20s linear infinite;
    background: white;
    padding: 5%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-illustration:hover .hero-logo-image {
    transform: scale(1.05);
}

/* Animations */
@keyframes heroFloat {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(0px); }
    
}

@keyframes heroRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1200px) {
    .hero-illustration {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-illustration {
        width: 350px;
        height: 350px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .btn-modern.large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-illustration {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-illustration {
        width: 250px;
        height: 250px;
    }
    
    .hero-illustration::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
    
    .hero-illustration::after {
        top: -30px;
        left: -30px;
        right: -30px;
        bottom: -30px;
    }
}


/* تحسينات إضافية للريسبونسيف */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-illustration {
        width: 320px;
        height: 320px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn-modern {
        font-size: 1rem;
        padding: 0.8rem 1.6rem;
    }

    .hero-illustration {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .btn-modern {
        width: 100%;
        max-width: 220px;
        font-size: 0.95rem;
    }

    .hero-illustration {
        width: 200px;
        height: 200px;
    }
}



/* حجم مناسب للـ hero illustration */
.hero-illustration {
    margin-left: 0; /* منع الخروج برا الشاشة */
    margin-right: 0;
}

/* للأجهزة أقل من 1200px */
@media (max-width: 1200px) {
  .hero-illustration {
    width: 380px;
    height: 380px;
    margin: 0 auto; /* يخليها في النص */
  }
}

/* للأجهزة أقل من 992px (تابلت) */
@media (max-width: 992px) {
  .hero-illustration {
    width: 300px;
    height: 300px;
    margin: 0 auto; /* يخليها بالنص */
  }
}

/* للأجهزة أقل من 768px (موبايل كبير) */
@media (max-width: 768px) {
  .hero-illustration {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
}

/* للأجهزة أقل من 576px (موبايل صغير) */
@media (max-width: 576px) {
  .hero-illustration {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}

/* ======================= */
/* النصوص في التابلت       */
/* ======================= */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column; /* يخلي النص فوق واللوجو تحت */
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.4rem;   /* أصغر من الديسكتوب */
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 500px; /* يمنع النص يمد أوي */
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
}

/* ======================= */
/* النصوص في الموبايل      */
/* ======================= */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 400px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-modern {
    width: 100%;
    max-width: 250px;
  }
}

/* ======================= */
/* النصوص في الموبايل الصغير */
/* ======================= */
@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}
