/* ==========================================================================
   Home Hero Section (Premium Layout & Floating Visuals)
   ========================================================================== */
.hero-like-reference {
    position: relative;
    min-height: 640px;
    padding: 80px 0;
    background: var(--color-white);
    overflow: hidden;
}

.hero-reference-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

.hero-reference-content {
    position: relative;
    z-index: 5;
}

.hero-reference-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-pill);
    background: var(--color-secondary-soft);
    border: 1px solid rgba(0, 114, 206, 0.12);
    color: var(--color-secondary-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-reference-content h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: var(--color-dark);
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-reference-content p {
    max-width: 600px;
    margin: 0 0 32px;
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.75;
}

.hero-reference-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 680px;
}

.hero-reference-features span {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-xs);
    color: var(--color-dark);
    font-size: 14.5px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.hero-reference-features span:hover {
    border-color: var(--color-primary-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.hero-reference-features i {
    color: var(--color-primary);
    font-size: 18px;
}

/* الدوائر الضوئية الخلفية */
.hero-reference-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.6;
}

.hero-reference-circle-blue {
    width: 320px;
    height: 320px;
    left: -20px;
    top: 10px;
    background: var(--color-secondary);
    animation: floatingObject 8s ease-in-out infinite alternate;
}

.hero-reference-circle-green {
    width: 300px;
    height: 300px;
    right: -40px;
    bottom: 10px;
    background: var(--color-primary);
    animation: floatingObject 8s ease-in-out infinite alternate-reverse;
}

/* القسم البصري */
.hero-reference-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* إطار الصورة */
.hero-reference-image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid #ffffff;
    padding: 12px;
    background-color: #ffffff;
    margin: 0 auto;
    transition: var(--transition);
}

.hero-reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s ease;
}

.hero-reference-image:hover img {
    transform: scale(1.05);
}

/* كرت الإحصائية العائم */
.hero-reference-stat {
    position: absolute;
    z-index: 3;
    inset-inline-start: 20px;
    bottom: 25px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: floatingObject 6s ease-in-out infinite alternate;
}

.hero-reference-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-reference-stat span {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* الأيقونات العائمة الجانبية */
.hero-reference-side-icons {
    position: fixed;
    z-index: 99;
    inset-inline-end: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 12px;
}

.hero-reference-side-icons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color-soft);
    transition: var(--transition-fast);
}

.hero-reference-side-icons a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-primary-glow);
}


/* ==========================================================================
   Global Section Settings
   ========================================================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-light {
    background: var(--color-light);
}

.section-title {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-title span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
}

.section-title h1,
.section-title h2 {
    margin: 0 0 16px;
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.25;
}

.section-title h1 { font-size: clamp(28px, 3vw, 40px); }
.section-title h2 { font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -0.01em; }

.section-title p {
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.7;
}

.center-actions {
    margin-top: 40px;
    text-align: center;
}


/* ==========================================================================
   Statistics Component
   ========================================================================== */
.stats-grid {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    min-height: 190px;
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 140, 90, 0.2);
    box-shadow: var(--shadow-lg), var(--shadow-primary-glow);
}

.stat-icon-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition-fast);
}

.stat-card:hover .stat-icon-wrap {
    background: var(--color-primary);
    color: var(--color-white);
}

.stat-card strong {
    color: var(--color-dark);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.stat-card span {
    color: var(--color-muted);
    font-size: 14.5px;
    font-weight: 600;
}


/* ==========================================================================
   Success Stories
   ========================================================================== */
.success-stories-section {
    background: var(--color-white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    background: var(--color-white);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 232, 240, 1);
    box-shadow: var(--shadow-lg);
}

.story-image {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

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

.quote-mark {
    color: rgba(0, 140, 90, 0.15);
    font-size: 48px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: -10px;
    font-family: serif;
}

.story-card h3 {
    margin: 0 0 12px;
    color: var(--color-dark);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.story-card p {
    margin: 0;
    color: var(--color-text);
    font-size: 14.5px;
    line-height: 1.7;
    flex-grow: 1;
}

.story-person {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color-soft);
}

.story-person strong {
    display: block;
    color: var(--color-dark);
    font-size: 15px;
    font-weight: 700;
}

.story-person span {
    display: block;
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 13px;
}


/* ==========================================================================
   Partners Marquee
   ========================================================================== */
.supporters-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 24px;
    padding: 32px 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.6);
    background: var(--color-white);
    box-shadow: var(--shadow-xs);
}

.supporters-marquee::before,
.supporters-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.supporters-marquee::before {
    inset-inline-start: 0;
    background: linear-gradient(to var(--direction-to-right, right), var(--color-white) 20%, rgba(255,255,255,0));
}

.supporters-marquee::after {
    inset-inline-end: 0;
    background: linear-gradient(to var(--direction-to-left, left), var(--color-white) 20%, rgba(255,255,255,0));
}

.supporters-marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: max-content;
    padding-inline: 24px;
    animation: supporters-marquee-ltr 40s linear infinite;
}

html[dir="rtl"] .supporters-marquee-track {
    animation-name: supporters-marquee-rtl;
}

.supporters-marquee:hover .supporters-marquee-track {
    animation-play-state: paused;
}

.supporter-marquee-item {
    min-width: 220px;
    height: 88px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(226, 232, 240, 0.5);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-fast);
}

.supporter-marquee-item:hover {
    border-color: rgba(226, 232, 240, 1);
    box-shadow: var(--shadow-sm);
    transform: scale(1.02);
}

.supporter-marquee-item img {
    max-width: 64px;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition-fast);
}

.supporter-marquee-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.supporter-marquee-item strong {
    color: var(--color-dark);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
}

.supporter-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.supporter-placeholder span {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}


/* ==========================================================================
   Keyframes Animations
   ========================================================================== */
@keyframes floatingObject {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

@keyframes supporters-marquee-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes supporters-marquee-rtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(50%); }
}


.board-message-section {
    padding: 30px 0 10px;
}

.board-message-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.board-message-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
}

.board-message-content {
    flex: 1;
}

.board-message-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
    margin: 20px 0;
}

.board-message-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-message-footer strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.board-message-footer span {
    color: #777;
}

@media (max-width: 768px) {
    .board-message-card {
        flex-direction: column;
        text-align: center;
    }

    .board-message-image img {
        width: 180px;
        height: 180px;
    }
}