/* Specialization page max-width override */
.content-area {
    max-width: 900px;
}


/* Specialization Stages Section */
.specialization-stages {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-padding) 0;
    position: relative;
    background-color: var(--background-light);
}

.specialization-stages .specialization-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.specialization-stages .pixel-element {
    position: absolute;
    background-color: var(--cta-blue-color);
    opacity: 0;
}

.specialization-stages .pixel-1 {
    width: 20px;
    height: 20px;
    top: 10%;
    left: 5%;
    animation: pixelFloat1 8s ease-in-out infinite;
}

.specialization-stages .pixel-2 {
    width: 15px;
    height: 15px;
    top: 20%;
    right: 10%;
    background-color: var(--cta-color);
    animation: pixelFloat2 10s ease-in-out infinite 1s;
}

.specialization-stages .pixel-3 {
    width: 25px;
    height: 25px;
    top: 50%;
    left: 8%;
    animation: pixelFloat3 12s ease-in-out infinite 2s;
}

.specialization-stages .pixel-4 {
    width: 18px;
    height: 18px;
    bottom: 30%;
    right: 6%;
    background-color: var(--cta-color);
    animation: pixelFloat4 9s ease-in-out infinite 3s;
}

.specialization-stages .pixel-5 {
    width: 22px;
    height: 22px;
    bottom: 15%;
    left: 12%;
    animation: pixelFloat5 11s ease-in-out infinite 4s;
}

.specialization-stages .pixel-6 {
    width: 16px;
    height: 16px;
    top: 70%;
    right: 15%;
    background-color: var(--cta-color);
    animation: pixelFloat6 13s ease-in-out infinite 2.5s;
}

.specialization-stages .pixel-7 {
    width: 14px;
    height: 14px;
    top: 8%;
    left: 30%;
    background-color: var(--cta-color);
    animation: pixelFloat2 9s ease-in-out infinite 1.5s;
}

.specialization-stages .pixel-8 {
    width: 18px;
    height: 18px;
    top: 14%;
    right: 28%;
    animation: pixelFloat3 10s ease-in-out infinite 0.8s;
}

.specialization-stages .pixel-9 {
    width: 20px;
    height: 20px;
    top: 26%;
    left: 18%;
    background-color: var(--cta-color);
    animation: pixelFloat4 11s ease-in-out infinite 2.2s;
}

.specialization-stages .pixel-10 {
    width: 12px;
    height: 12px;
    top: 35%;
    right: 22%;
    animation: pixelFloat5 12s ease-in-out infinite 1.1s;
}

.specialization-stages .pixel-11 {
    width: 16px;
    height: 16px;
    top: 42%;
    left: 26%;
    background-color: var(--cta-color);
    animation: pixelFloat1 9s ease-in-out infinite 2.8s;
}

.specialization-stages .pixel-12 {
    width: 22px;
    height: 22px;
    top: 55%;
    right: 32%;
    animation: pixelFloat3 13s ease-in-out infinite 0.5s;
}

.specialization-stages .pixel-13 {
    width: 17px;
    height: 17px;
    top: 62%;
    left: 22%;
    background-color: var(--cta-color);
    animation: pixelFloat2 10s ease-in-out infinite 3.1s;
}

.specialization-stages .pixel-14 {
    width: 19px;
    height: 19px;
    top: 72%;
    right: 26%;
    animation: pixelFloat4 12s ease-in-out infinite 1.9s;
}

.specialization-stages .pixel-15 {
    width: 15px;
    height: 15px;
    top: 18%;
    left: 55%;
    background-color: var(--cta-color);
    animation: pixelFloat5 11s ease-in-out infinite 0.6s;
}

.specialization-stages .pixel-16 {
    width: 21px;
    height: 21px;
    top: 28%;
    right: 46%;
    animation: pixelFloat6 14s ease-in-out infinite 2.4s;
}

.specialization-stages .pixel-17 {
    width: 13px;
    height: 13px;
    top: 48%;
    left: 48%;
    background-color: var(--cta-color);
    animation: pixelFloat1 9s ease-in-out infinite 1.7s;
}

.specialization-stages .pixel-18 {
    width: 24px;
    height: 24px;
    top: 58%;
    right: 52%;
    animation: pixelFloat2 12s ease-in-out infinite 2.9s;
}

.specialization-stages .pixel-19 {
    width: 18px;
    height: 18px;
    top: 66%;
    left: 60%;
    background-color: var(--cta-color);
    animation: pixelFloat3 11s ease-in-out infinite 0.9s;
}

.specialization-stages .pixel-20 {
    width: 16px;
    height: 16px;
    top: 75%;
    right: 60%;
    animation: pixelFloat4 10s ease-in-out infinite 3.3s;
}

.specialization-stages .pixel-21 {
    width: 12px;
    height: 12px;
    top: 22%;
    left: 70%;
    background-color: var(--cta-color);
    animation: pixelFloat5 9s ease-in-out infinite 1.4s;
}

.specialization-stages .pixel-22 {
    width: 20px;
    height: 20px;
    top: 32%;
    right: 68%;
    animation: pixelFloat6 13s ease-in-out infinite 0.7s;
}

.specialization-stages .pixel-23 {
    width: 14px;
    height: 14px;
    top: 46%;
    left: 72%;
    background-color: var(--cta-color);
    animation: pixelFloat1 10s ease-in-out infinite 2s;
}

.specialization-stages .pixel-24 {
    width: 18px;
    height: 18px;
    top: 56%;
    right: 72%;
    animation: pixelFloat2 11s ease-in-out infinite 1.2s;
}

.specialization-stages .pixel-25 {
    width: 22px;
    height: 22px;
    top: 68%;
    left: 78%;
    background-color: var(--cta-color);
    animation: pixelFloat3 12s ease-in-out infinite 2.6s;
}

.specialization-stages .pixel-26 {
    width: 15px;
    height: 15px;
    top: 78%;
    right: 74%;
    animation: pixelFloat4 10s ease-in-out infinite 1.8s;
}

.specialization-stages .pixel-27 {
    width: 13px;
    height: 13px;
    top: 12%;
    left: 82%;
    background-color: var(--cta-color);
    animation: pixelFloat5 9s ease-in-out infinite 0.4s;
}

.specialization-stages .pixel-28 {
    width: 19px;
    height: 19px;
    top: 24%;
    right: 82%;
    animation: pixelFloat6 14s ease-in-out infinite 2.1s;
}

.specialization-stages .pixel-29 {
    width: 17px;
    height: 17px;
    top: 40%;
    left: 88%;
    background-color: var(--cta-color);
    animation: pixelFloat1 11s ease-in-out infinite 3.4s;
}

.specialization-stages .pixel-30 {
    width: 21px;
    height: 21px;
    top: 60%;
    right: 86%;
    animation: pixelFloat2 12s ease-in-out infinite 1.6s;
}

@keyframes pixelFloat1 {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        opacity: 0.6;
        transform: translate(30px, -20px) rotate(90deg);
    }

    50% {
        opacity: 0.8;
        transform: translate(60px, 10px) rotate(180deg);
    }

    75% {
        opacity: 0.4;
        transform: translate(30px, 40px) rotate(270deg);
    }
}

@keyframes pixelFloat2 {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }

    30% {
        opacity: 0.7;
        transform: translate(-40px, 30px) scale(1.3);
    }

    60% {
        opacity: 0.5;
        transform: translate(-20px, -25px) scale(0.8);
    }
}

@keyframes pixelFloat3 {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }

    40% {
        opacity: 0.6;
        transform: translateY(-50px) rotate(180deg);
    }

    80% {
        opacity: 0.3;
        transform: translateY(30px) rotate(360deg);
    }
}

@keyframes pixelFloat4 {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }

    35% {
        opacity: 0.8;
        transform: translate(-35px, -30px);
    }

    70% {
        opacity: 0.4;
        transform: translate(20px, 25px);
    }
}

@keyframes pixelFloat5 {

    0%,
    100% {
        opacity: 0;
        transform: scale(1) rotate(0deg);
    }

    25% {
        opacity: 0.5;
        transform: scale(1.5) rotate(90deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.7) rotate(180deg);
    }

    75% {
        opacity: 0.3;
        transform: scale(1.2) rotate(270deg);
    }
}

@keyframes pixelFloat6 {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        opacity: 0.6;
        transform: translate(40px, -35px) rotate(120deg);
    }

    66% {
        opacity: 0.4;
        transform: translate(-25px, 20px) rotate(240deg);
    }
}

.specialization-stages .content-area {
    position: relative;
    z-index: 1;
}

.specialization-stages.direction-en .decoration {
    position: absolute;
    right: 20px;
    top: 0;
}

.specialization-stages.direction-ar>.decoration {
    position: absolute;
    left: 20px;
    top: 0;
}

.specialization-stages-title {
    text-align: center;
}

.stages-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Stage Cards */
.stage-card {
    padding: 30px 30px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 8px 8px 0px var(--cta-blue-color);
    border: 2PX solid black;
    background-color: white;
}

.stage-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.stage-info .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stage-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

.stage-title {
    margin: 0;
}

.stage-description {
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media only screen and (max-width: 1300px) {
    .content-area {
        width: 85%;
    }
}

@media only screen and (max-width: 900px) {
    .specialization-introduction {
        padding: 40px 0;
    }

    .specialization-stages {
        padding: 60px 0;
    }

    .stage-card {
        flex-direction: column;
        padding: 25px;
        box-shadow: 6px 6px 0px var(--cta-blue-color);
    }

    .stage-info {
        flex-direction: column;
        gap: 20px;
    }

    .stage-image {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
}

@media only screen and (max-width: 600px) {
    .specialization-introduction {
        padding: 30px 0;
    }

    .specialization-title {
        font-size: 1.8rem;
    }

    .specialization-description {
        font-size: 0.95rem;
    }

    .specialization-stages {
        padding: 40px 0;
    }

    .specialization-stages-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .stages-list {
        gap: 20px;
    }

    .stage-card {
        padding: 20px;
        gap: 15px;
        box-shadow: 4px 4px 0px var(--cta-blue-color);
    }

    .stage-number {
        font-size: 1rem;
    }

    .stage-info {
        gap: 15px;
    }

    .stage-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .stage-title {
        font-size: 1.2rem;
    }

    .stage-description {
        font-size: 0.9rem;
    }


    .specialization-stages.direction-en .decoration {
        width: 50px;
    }

    .specialization-stages.direction-ar>.decoration {
        width: 50px;
    }

}

@media only screen and (max-width: 400px) {
    .stage-card {
        padding: 15px;
        box-shadow: 3px 3px 0px var(--cta-blue-color);
    }

    .stage-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}