.footer {
    padding: 50px;
    background-color: #222;
    color: #fff;
	position: relative;
}
.footer-container {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 50px;
}
@media only screen and (max-width: 1050px) {
	.footer-container {
		flex-direction: column;
		justify-content: space-around;
	}
}
@media only screen and (max-width: 400px) {
	.footer {
		padding: 50px 20px;
	}
}
@media only screen and (max-width: 1050px) {
	.footer-treatments::after,
	.footer-gallery::after,
	.footer-details::after,
	.footer-pages::after {
		content: '';
		position: absolute;
		bottom: -30px; 
		left: 50%;
		width: 50vw; 
		height: 1px;
		background-color: #fff;
		transform: translateX(-50%); 
	}
}



.footer-treatments {
    max-width: 600px;
	position: relative;
}


@media only screen and (max-width: 1050px) {
	.footer-treatments  {
		margin: auto;
	}
}
.footer-treatments h3 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}
#arrow {
    display: none;
    font-size: 1rem;
    transform: rotate(-90deg);
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
}

@media only screen and (max-width: 600px) {
    #arrow {
        display: inline;
    }
}
.footer-treatments ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 0;
    max-width: 600px;
}

@media only screen and (max-width: 600px) {
    .footer-treatments ul {
        max-height: 0;
        overflow: hidden;
        display: block;
        transition: max-height 0.4s ease-in-out;
    }
	.footer-treatments li {
		margin-bottom: 10px;
	}
    /* When active, smoothly expand the list */
    .footer-treatments ul.active {
        max-height: 500px;
    }
}
@media only screen and (max-width: 600px) {
    .footer-treatments h3.active #arrow {
        transform: rotate(90deg);
    }
}


.footer-treatments li {
    white-space: nowrap;
    max-width: 200px;
}

.footer-treatments a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s ease;
}

.footer-treatments a:hover {
    color: rgba(128, 159, 255, 1);
}




.footer-gallery {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    position: relative;
}
@media only screen and (max-width: 1050px) {
	.footer-gallery {
		margin: auto;
	}
}
.gallery-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
}




.footer-details {
	position: relative;
}
@media only screen and (max-width: 1050px) {
	.footer-details  {
		margin: auto;
	}
}
.footer-details h3 {
	display: flex;
	justify-content: center;
    margin-bottom: 20px;
	font-weight: bold;
}
.footer-details ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
/*----------- phone img / number ------------*/
.footer-phone-number {
    list-style: none;
    display: flex;
    align-content: center;
    align-items: center;
    gap: 10px;
}
.footer-phone-number img {
    width: 25px;
}
.footer-phone-number li:nth-of-type(2) {
    position: relative;
    text-decoration: none;
}
.footer-phone-number li:nth-of-type(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0.5px;
    background-color: #fff;
    transition: width 0.15s ease, left 0.15s ease;
}
.footer-phone-number li:nth-of-type(2):hover::before {
    width: 100%;
    left: 0;
}




/*----------- email img / email ------------*/
.footer-email {
    list-style: none;
    display: flex;
    align-content: center;
    align-items: center;
    gap: 10px;
}
.footer-email img {
    width: 25px;
}
.footer-email li:nth-of-type(2) {
    position: relative;
    text-decoration: none;
}
.footer-email li:nth-of-type(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0.5px;
    background-color: #fff;
    transition: width 0.15s ease, left 0.15s ease;
}
.footer-email li:nth-of-type(2):hover::before {
    width: 100%;
    left: 0;
}




.footer-pages {
	position: relative;
}
@media only screen and (max-width: 1050px) {
	.footer-pages  {
		margin: auto;
	}
}
.footer-pages h3 {
	display: flex;
	justify-content: center;
    margin-bottom: 20px;
}
.footer-pages ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-pages li {
    white-space: nowrap;
	max-width: 200px
}
.footer-pages a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s ease;
}
.footer-pages a:hover {
    color: rgba(128, 159, 255, 1);
}




.footer-copyright {
	font-size: 0.75rem;
	margin-top: 50px;
	text-align: center;
}
.footer-copyright-link {
	text-decoration: none;
    color: #fff;
    transition: color 0.2s ease;
}
.footer-copyright-link:hover {
	color: rgba(128, 159, 255, 1);
}




