/* Impact Section Styles */

.impact-section {
    padding: 20px 20px;
    animation: fadeIn 0.8s ease;
    width: 100%;
    margin: 0 auto;
    position: relative;
    color: white;
}

.impact-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Fixed aspect ratio or min-height to maintain structure */
    min-height: 600px;
}

/* Connector Image */
.impact-connector-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered exactly */
    width: 50%;
    min-width: 600px;
    /* Ensure lines reach */
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

/* Central Circle */
.impact-circle {
    position: absolute;
    top: 33%;
    /* Much higher up */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: linear-gradient(0deg, #1B8B61 0%, #2EF1A8 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 50px rgba(46, 241, 168, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* border: 4px solid rgba(255, 255, 255, 0.2); */
}

.impact-magic-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.impact-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Cards Shared Styles */
.impact-card {
    position: absolute;
    background: #FFFFFF33;
    /* backdrop-filter: blur(15px); */
    /* -webkit-backdrop-filter: blur(15px); */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    /* Fully rounded pill */
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 320px; */
    z-index: 5;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.card-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Cairo', sans-serif;
    line-height: 1;
    margin-left: 15px;
    /* Space between content and number */
}

[dir="ltr"] .card-number {
    margin-left: 0;
    margin-right: 15px;
}

/* RTL Number Positioning adjustment */
/* In Arabic layout (RTL), content flows right-to-left. 
   If card is RTL: number is on left.
*/

.card-content {
    flex: 1;
}

.card-title {
    color: #2EF1A8;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.card-desc {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
}

.connector-dot {
    width: 10px;
    height: 10px;
    background: #2EF1A8;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 8px #2EF1A8;
    /* Positioning relative to card */
    top: -5px;
    /* On top edge */
}

/* Absolute Positioning Coordinates */

/* Top Left Card (Socially) */
.pos-top-left {
    top: 41%;
    left: 5%;
    /* Far left */
}

/* Dot position for Top Left */
.container-dot-top-left {
    position: absolute;
    top: -5px;
    right: 20%;
}

/* Top Right Card (Culturally) */
.pos-top-right {
    top: 41%;
    right: 5%;
    /* Far right */
}

/* Dot position for Top Right */
.container-dot-top-right {
    position: absolute;
    top: -5px;
    left: 15%;
}

/* Bottom Left Card (Touristically) */
.pos-bottom-left {
    top: 69%;
    left: 15%;
    /* Inner left */
}

[dir="ltr"] .pos-bottom-left {
    left: 10%;
}

[dir="ltr"] .pos-bottom-right {
    right: 10%;
}

/* Dot position for Bottom Left */
.container-dot-bottom-left {
    position: absolute;
    top: -5px;
    right: 50%;
}

/* Bottom Right Card (Digitally) */
.pos-bottom-right {
    top: 69%;
    right: 15%;
    /* Inner Right */
}

/* Dot position for Bottom Right */
.container-dot-bottom-right {
    position: absolute;
    top: -5px;
    left: 50%;
}


/* Responsive */
@media (max-width: 1024px) {
    [dir="rtl"] .impact-container {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 100px;
    }

    [dir="rtl"] .impact-connector-img {
        display: none;
        /* Hide complex background on mobile */
    }

    [dir="rtl"] .impact-circle {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 40px;
    }

    [dir="rtl"] .impact-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 400px;
    }

    [dir="rtl"] .connector-dot {
        display: none;
    }
}

/* Responsive */
@media (max-width: 1220px) {
    [dir="ltr"] .impact-container {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 100px;
    }

    [dir="ltr"] .impact-connector-img {
        display: none;
        /* Hide complex background on mobile */
    }

    [dir="ltr"] .impact-circle {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 40px;
    }

    [dir="ltr"] .impact-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 400px;
    }

    [dir="ltr"] .connector-dot {
        display: none;
    }
}