/* Footer Styles */
/* .footer {
    position: relative;
} */


/* Footer Styles */


.footer {
    background-image: var(--gradient-color);
    color: white;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 350px;
    contain-intrinsic-size: 350px;
}

/* White card styles */
.white-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0px 10px 100px rgba(0, 0, 0, 0.24);
    padding: 15px;
    max-width: 50%;
    width: 50%;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
}


/* Contact section styles */
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item a {
    color: var(--tertiary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    /* Ensure the items are aligned vertically */
    gap: 10px;
    /* Ensure gap between items inside the link */
}



.contact-item a:hover {
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3D3D3D;
    font-size: 20px;
    font-weight: var(--font-weight-medium);
}

.contact-item img {
    width: 50px;
    height: 50px;
}

.separator {
    height: 40px;
    width: 2px;
    background-color: #d3d3d3;
    margin: 0 20px;
}


/* Main content section styles */
.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1170px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Logo and vision statement styles */
.logo-vision {
    max-width: 300px;
    flex: 1;
    text-align: left;
    margin-bottom: 20px;
}

.footer-logo {
    width: 220px;
    height: auto;
    margin-bottom: 20px;
}

.vision-text {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.social-icons a {
    margin-right: 20px;
}

/* .social-icons a:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 30px;
    background-color: #d3d3d3;
    margin-left: 15px;
} */

.social-icons a img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
/* Quick links section styles */
.quick-links {
    max-width: 200px;

    text-align: left;
    margin-bottom: 20px;
}

.quick-links h3 {
    margin-bottom: 20px;
    /* font-size: 28px; */
    color: white;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    color: white;
    font-size: 18px;
    transition: color 0.3s;
    text-decoration: none;
}

.quick-links ul li a:hover {
    color: #E5D4FF;
}

/* Address and working hours section styles */
.address-working-hours {
    max-width: 300px;
    flex: 1;
    text-align: left;
    margin-bottom: 20px;
}

.address h3,
.working-hours h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--color-white);
}

.address p {
    line-height: 1.5;
}

.address p,
.working-hours p {
    margin: 0 0 15px 0;
    font-size: 17px;

}

.working-hours p {
    margin: 0 0 5px 0;
}

/* Horizontal line styles */
.horizontal-line {
    border-top: 1px solid #d3d3d3;
    width: 100%;
    max-width: 1170px;
    margin: 20px 0;
}

/* Copyright section styles */
.copyright {
    text-align: center;
    font-size: 18px;
    width: 100%;
    max-width: 1170px;
}



/******* RTL styles for Arabic language ********/
#footer[dir="rtl"] .footer-content {
    direction: rtl;
    text-align: right;
}

#footer[dir="rtl"] .contact-item {
    justify-content: flex-end;
    text-align: right;
}

#footer[dir="rtl"] .contact-item img {
    margin-left: 0;
    margin-right: 0;
}


#footer[dir="rtl"] .social-icons {
    justify-content: right;
}

#footer[dir="rtl"] .social-icons a {
    margin-left: 10px;
    margin-right: 0;
}

#footer[dir="rtl"] .social-icons a:not(:last-child)::after {
    margin-left: 0;
    margin-right: 15px;
}

#footer[dir="rtl"] .quick-links ul li a {
    text-align: right;
}

#footer[dir="rtl"] .quick-links {
    text-align: right;
}

#footer[dir="rtl"] .logo-vision,
#footer[dir="rtl"] .address,
#footer[dir="rtl"] .working-hours {
    text-align: right;
}

#footer[dir="rtl"] .vision-text {
    text-align: right;
}


/* Arrow Button Styles */
.back-to-top {
    position: fixed;
    bottom: 75px;
    /* Adjusted to position above the WhatsApp button */
    right: 20px;
    background-color: #5b388c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
    display: none;
    width: 50px;
    height: 50px;
    text-align: center;
    padding: 13px;
    /* Initially hidden */
}

.back-to-top:hover {
    background-color: #7956a1;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* WhatsApp Button Styles */
.whatsapp-button {

    /* Initially visible */
    text-align: center;
    text-decoration: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366, #25D366);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.4s ease;
    z-index: 9999;
    overflow: hidden;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #1EBEA5;
    /* Darker green on hover */
    transform: translateY(-5px);
}

.whatsapp-button i {
    font-size: 26px;

}



/********************* Responsiveness for Footer **********************/



@media (max-width: 1215px) {
    .white-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        background: var(--color-white);
        border-radius: 15px;
        box-shadow: 0px 10px 100px rgba(0, 0, 0, 0.24);
        padding: 15px;
        max-width: 60%;
        width: 60%;
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
    }


    /* Contact section styles */
    .contact {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-item a {
        color: #3D3D3D;
        text-decoration: none;
    }

    .contact-item a:hover {
        text-decoration: underline;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #3D3D3D;
        font-size: 20px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 50px;
        height: 50px;
    }

    .separator {
        height: 40px;
        width: 2px;
        background-color: #d3d3d3;
        margin: 0 20px;
    }
}

@media (max-width: 1160px) {
    .footer-logo {
        width: 180px;
        height: auto;
        margin-bottom: 20px;
    }

    .social-icons a img {
        width: 33px;
        height: 33px;
        border-radius: 10px;
    }
}


@media (max-width: 950px) {

    .footer-content {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        width: 95%;
        max-width: 970px;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .copyright {
        text-align: center;
        font-size: 15px;
        width: 100%;
        max-width: 1170px;
    }


    .white-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        background: var(--color-white);
        border-radius: 15px;
        box-shadow: 0px 10px 100px rgba(0, 0, 0, 0.24);
        padding: 10px;
        max-width: 60%;
        width: 60%;
        position: absolute;
        top: -35px;
        left: 50%;
        transform: translateX(-50%);
    }


    /* Contact section styles */
    .contact {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-item a {
        color: #3D3D3D;
        text-decoration: none;
    }

    .contact-item a:hover {
        text-decoration: underline;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #3D3D3D;
        font-size: 17px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 45px;
        height: 45px;
    }

    .separator {
        height: 40px;
        width: 2px;
        background-color: #d3d3d3;
        margin: 0 20px;
    }

    .logo-vision {
        max-width: 260px;
        flex: 1;
        text-align: left;
        margin-bottom: 20px;
    }

    .footer-logo {
        width: 180px;
        height: auto;
        margin-bottom: 20px;
    }

    .vision-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .social-icons a {
        margin-right: 10px;
    }

    .social-icons a img {
        width: 33px;
        height: 33px;
        border-radius: 7px;
    }

    .quick-links h3 {
        margin-bottom: 15px;
        font-size: 22px;
        font-weight: 550;
    }

    .quick-links ul li {
        margin-bottom: 15px;
    }

    .quick-links ul li a {
        font-size: 16px;
        font-weight: 400;

    }

    .rtl .quick-links ul li a {
        font-size: 14px;
        font-weight: 400;
    }

    .address h3 {
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: 550;

    }

    .working-hours h3 {
        margin-bottom: 15px;
        font-size: 18px;
        font-weight: 550;
    }

    .address p {
        margin: 0 0 5px 0;
        font-size: 15px;
    }

    .working-hours p {
        margin: 0 0 5px 0;
        font-size: 15px;
    }


}

@media (max-width: 850px) {
    .rtl .quick-links {
        margin-left: 10px;
        margin-right: 10px;
    }
}


@media (max-width: 900px) {

    #footer[dir="rtl"] .social-icons a:not(:last-child)::after {
        margin-left: 0;
        margin-right: 15px;
    }
}


@media (max-width: 821px) {

    #footer[dir="rtl"] .social-icons a:not(:last-child)::after {
        margin-left: 0;
        margin-right: 12px;
    }
}


@media (max-width: 819px) {
    .footer {
        padding: 40px;
    }

    .white-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        background: var(--color-white);
        border-radius: 15px;
        box-shadow: 0px 10px 100px rgba(0, 0, 0, 0.24);
        padding: 10px;
        max-width: 70%;
        width: 70%;
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-vision,
    .quick-links,
    .address-working-hours {
        text-align: center;
        max-width: 100%;
        width: 50%;
        margin-bottom: 10px;
    }

    .footer-logo {
        width: 160px;
        height: auto;
        margin-bottom: 10px;
    }

    .vision-text {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 10px;
        font-weight: 500;
    }

    .social-icons {
        display: flex;
        align-items: center;
        margin-top: 5px;
    }

    .horizontal-line {
        border-top: 1px solid #d3d3d3;
        width: 100%;
        max-width: 1170px;
        margin: 15px 0;
    }



    /* Contact section styles */
    .contact {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #3D3D3D;
        font-size: 16px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 40px;
        height: 40px;
    }

    .separator {
        height: 40px;
        width: 2.5px;
        background-color: #d3d3d3;
        margin: 0 30px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .logo-vision,
    .quick-links,
    .address-working-hours {
        text-align: center;
        max-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    /* RTL styles for Arabic language */
    #footer[dir="rtl"] .footer-content {
        direction: rtl;
        text-align: center;
    }

    #footer[dir="rtl"] .contact-item {
        justify-content: flex-end;
        text-align: center;
    }

    #footer[dir="rtl"] .contact-item img {
        margin-left: 0;
        margin-right: 0;
    }



    #footer[dir="rtl"] .social-icons {
        justify-content: center;
    }

    #footer[dir="rtl"] .social-icons a {
        margin-left: 10px;
        margin-right: 0;
    }

    #footer[dir="rtl"] .social-icons a:not(:last-child)::after {
        margin-left: 0;
        margin-right: 15px;
    }

    #footer[dir="rtl"] .quick-links ul li a {
        text-align: center;
    }

    #footer[dir="rtl"] .quick-links {
        text-align: center;
    }

    #footer[dir="rtl"] .logo-vision,
    #footer[dir="rtl"] .address,
    #footer[dir="rtl"] .working-hours {
        text-align: center;
    }

    #footer[dir="rtl"] .vision-text {
        text-align: center;
    }
}

@media (max-width: 670px) {
    .white-card {
        padding: 13px;
        gap: 8px;
        max-width: 80%;
        width: 80%;
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        font-size: 14px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 35px;
        height: 35px;
    }

    .separator {
        margin: 0 10px;
        height: 35x;
        width: 1.5;
    }


}



@media (max-width: 588px) {

    .footer {
        padding: 40px;
    }

    .white-card {
        padding: 11px;
        gap: 8px;
        max-width: 80%;
        width: 80%;
        position: absolute;
        top: -26px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-logo {
        width: 150px;
        height: auto;
        margin-bottom: 10px;
    }

    .contact-item {
        font-size: 12px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 25px;
        height: 25px;
    }

    .separator {
        margin: 0 5px;
        height: 25px;
        width: 2px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
        margin-top: 28px;
    }

    .logo-vision,
    .quick-links,
    .address-working-hours {
        text-align: center;
        max-width: 100%;
        width: 80%;

    }

    .social-icons {
        justify-content: center;
        width: 100%;
    }


}


@media (max-width: 391px) {
    .white-card {
        gap: 8px;
        max-width: 85%;
        width: 85%;
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        font-size: 11px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 25px;
        height: 25px;
    }

    #footer[dir="rtl"].contact-item img {
        margin-left: 0;
    }

    .separator {
        height: 25px;
        width: 1.5px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .logo-vision,
    .quick-links,
    .address-working-hours {
        text-align: center;
        max-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons a img {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

}

@media (max-width: 364px) {
    .rtl .social-icons a:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 345px) {
    .white-card {
        gap: 8px;
        max-width: 65%;
        width: 65%;
        position: absolute;
        top: -35px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-content {
        padding: 15px;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .contact {
        flex-direction: column;

    }


    .contact {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 5px;
    }

    .rtl .contact {
        display: flex;
        gap: 5px;
        justify-content: flex-start;
    }

    .social-icons a:not(:last-child)::after {
        display: none;
    }

    .contact-item {
        font-size: 11px;
        font-weight: var(--font-weight-medium);
    }

    .contact-item img {
        width: 25px;
        height: 25px;
    }

    #footer[dir="rtl"].contact-item img {
        margin-left: 0;
    }

    .separator {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        width: 100%;
    }

    .logo-vision,
    .quick-links,
    .address-working-hours {
        text-align: center;
        max-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

}
