.services-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 15px;
    padding: 30px 25px;
    width: 350px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3e9b7a;
}

.service-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 48px;
    color: #3e9b7a;
    transition: all 0.3s ease;
}

.service-number {
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: #3e9b7a;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
}

.service-card h4 {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: right;
    direction: rtl;
}

.service-arrow {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-arrow i {
    color: #3e9b7a;
    font-size: 14px;
}

.service-card:hover .service-arrow {
    background: #3e9b7a;
    transform: translateX(-3px);
}

.service-card:hover .service-arrow i {
    color: white;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 1200px) {
    .service-card {
        width: 320px;
        padding: 25px 20px;
    }

    .service-icon i {
        font-size: 42px;
    }

    .service-card h4 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .services-row {
        gap: 15px;
    }

    .service-card {
        width: calc(50% - 7.5px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .services-row {
        flex-direction: column;
        align-items: center !important;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
        margin-bottom: 15px;
    }

    .service-card p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px 15px;
    }

    .service-icon i {
        font-size: 36px;
    }

    .service-card h4 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

.position-relative {
    position: relative !important;
}

.mt-95px {
    margin-block-start: 95px;
}

@media (min-width: 768px) {
    .mb-md-95px {
        margin-block-end: 95px !important;
    }

    .mt-md-150px {
        margin-block-start: 150px !important;
    }
}

.bg-primary-s {
    background-color: #f2f9f8 !important;
}

*,
:before,
:after {
    box-sizing: border-box;
}

:-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

:-webkit-scrollbar-thumb {
    background: #0d8f75;
    border-radius: 5px;
}

:-webkit-scrollbar-track {
    background: #f1f1f1;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.py-34px {
    padding-block: 34px;
}

@media (min-width: 768px) {
    .py-md-50px {
        padding-block: 50px !important;
    }
}

:-webkit-scrollbar-thumb:hover {
    background: #12a875;
}

@media (min-width: 768px) {
    .f-md-lg {
        font-size: 18px;
    }
}

.f-md {
    font-size: 16px;
}

.position-absolute {
    position: absolute !important;
}

.bottom-50 {
    bottom: 50% !important;
}

.rounded-5 {
    border-radius: var(--bs-border-radius-xxl) !important;
}

.w-270px {
    width: 270px;
}

@media (min-width: 768px) {
    .w-md-500px {
        width: 500px !important;
    }

    .end-md-50px {
        inset-inline-end: 50px !important;
    }
}

.end--10px {
    inset-inline-end: -10px;
}

@media (min-width: 768px) {
    .bottom-md--180px {
        inset-block-end: -180px !important;
    }

    .pb-md-40px {
        padding-block-end: 40px !important;
    }

    .my-md-100px {
        margin-block: 100px !important;
    }
}

[data-aos="fade-right"] {
    transform: translate3d(-100px, 0, 0);
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

@media (min-width: 768px) {
    .fs-md-32px {
        font-size: 32px !important;
    }

    .order-md-0 {
        order: 0 !important;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }
}

.justify-content-around {
    justify-content: space-around !important;
}

.align-items-center {
    align-items: center !important;
}

.order-1 {
    order: 1 !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-2 {
    margin-inline-end: .5rem !important;
}

.h-60px {
    height: 60px;
}

.w-110px {
    width: 110px;
}

@media (min-width: 768px) {
    .w-md-200px {
        width: 200px !important;
    }
}

.py-32px {
    padding-block: 32px;
}

.my-80px {
    margin-block: 30px;
}

.waqf-home-wrapper {
    position: relative;
}

*,
:before,
:after {
    box-sizing: border-box;
}

.waqf-home-wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #009174;
    opacity: .05;
}

:-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

:-webkit-scrollbar-thumb {
    background: #0d8f75;
    border-radius: 5px;
}

:-webkit-scrollbar-track {
    background: #f1f1f1;
}

.position-relative {
    position: relative !important;
}

.z-1 {
    z-index: 1 !important;
}

@media (min-width: 768px) {
    .text-md-start {
        text-align: start !important;
    }
}

.container {
    --bs-gutter-x: 1.5rem;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

[data-aos="fade-left"] {
    transform: translate3d(100px, 0, 0);
}

[data-aos^="fade"][data-aos^="fade"] {
    opacity: 0;
    transition-property: opacity, transform;
}

body[data-aos-duration="400"] [data-aos] {
    transition-duration: .4s;
}

body[data-aos-easing="ease"] [data-aos] {
    transition-timing-function: ease;
}

[data-aos][data-aos][data-aos-duration="2000"] {
    transition-duration: 2s;
}

[data-aos^="fade"][data-aos^="fade"].aos-animate {
    opacity: 1;
    transform: translateZ(0);
}

:-webkit-scrollbar-thumb:hover {
    background: #12a875;
}

.position-absolute {
    position: absolute !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.end-0 {
    inset-inline-end: 0 !important;
}

.z-2 {
    z-index: 2 !important;
}

.w-175px {
    width: 175px;
}

@media (min-width: 768px) {
    .w-md-270px {
        width: 270px !important;
    }
}

.end-0 {
    inset-inline-end: 0;
}

.bottom-0 {
    inset-block-end: 0;
}

[data-aos="fade-right"] {
    transform: translate3d(-100px, 0, 0);
}

.f-md {
    font-size: 16px;
}

.about-section-clean * {
    box-sizing: border-box;
}

/* تأثيرات التفاعل */
.about-section-clean a:hover {
    background-color: #2d7a5f !important;
    transform: translateY(-2px);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 992px) {
    .top-section {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .top-section>div:last-child {
        height: 200px !important;
    }

    .text-content {
        padding: 25px !important;
    }

    .bottom-cards {
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .about-section-clean {
        padding: 30px 0 !important;
    }

    .text-content h2 {
        font-size: 18px !important;
    }

    .text-content p {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    .bottom-cards {
        flex-direction: column !important;
    }

    .vision-card,
    .mission-card {
        margin: 5px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .text-content {
        padding: 20px !important;
    }

    .text-content a {
        width: 100% !important;
        justify-content: center !important;
        margin: 10px 0 !important;
    }

    .vision-card h3,
    .mission-card h3 {
        font-size: 18px !important;
    }

    .vision-card p,
    .mission-card p {
        font-size: 14px !important;
        line-height: 22px !important;
    }
}

/* تأثيرات الحركة */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

/* تصميم البطاقة الجديد - بأسماء فئات مميزة لتجنب التداخل */
.charity-card-ehsan {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* الطبقة المظللة */
.charity-card-ehsan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 73, 58, 0) 0%, rgba(0, 73, 58, 0.7) 100%);
    border-radius: 16px;
}

/* تأثير التفاعل */
.charity-card-ehsan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.charity-card-ehsan:hover::before {
    background: linear-gradient(180deg, rgba(0, 73, 58, 0.1) 0%, rgba(0, 73, 58, 0.8) 100%);
}

/* محتوى البطاقة */
.card-content-ehsan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.card-text-ehsan {
    display: flex;
    flex-direction: column;
    color: white;
}

.card-title-ehsan {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: white;
}

.card-description-ehsan {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    opacity: 0.9;
    display: none;
    color: white;
}

/* زر السهم */
.card-arrow-ehsan {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    margin-right: 12px;
    text-decoration: none;
}

.card-arrow-ehsan:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-2px);
    text-decoration: none;
}

.arrow-icon-ehsan {
    width: 6px;
    height: 10px;
    fill: white;
}

/* الاستجابة للشاشات الوسطة */
@media (min-width: 768px) {
    .card-description-ehsan {
        display: block;
    }

    .card-title-ehsan {
        margin-bottom: 8px;
    }
}

/* الاستجابة للشاشات الكبيرة */
@media (min-width: 1200px) {
    .charity-cards-grid-new {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* الاستجابة للشاشات المتوسطة */
@media (min-width: 992px) and (max-width: 1199px) {
    .charity-cards-grid-new {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* الاستجابة للشاشات الصغيرة */
@media (min-width: 768px) and (max-width: 991px) {
    .charity-cards-grid-new {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* الاستجابة للشاشات الصغيرة جداً */
@media (max-width: 767px) {
    .charity-cards-grid-new {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .charity-card-ehsan {
        height: 180px;
        padding: 12px;
        margin-bottom: 12px;
    }

    .card-title-ehsan {
        font-size: 15px;
    }

    .card-arrow-ehsan {
        min-width: 36px;
        height: 28px;
        padding: 6px 10px;
    }
}