:root{
	--primary-page-color:#66C7CC;
	--secondary-page-color:#091c47;
	--red-page-color:#c71e1e;
}

.text-white{
	color:#fff;
}
.text-red{
	color:red;
}
a{
	text-decoration: none;
}
.slider img{
	height:100%;
	width:100%;
	overflow:hidden !important;
}


.sec_2, .sec_3{
	padding:4rem 0 1rem;
}

.sec_4{
	padding:4rem 0 1rem;
}


.neuro_specialist{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:2rem;
}


.neuro-head{
	 position: relative;
    top: -18%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    /* line-height: 2; */
    color: var(--secondary-page-color);
    font-size: 30px;
    /* font-family: verdana; */
    letter-spacing: 4px;
    /* padding: 5px; */
    padding-left: 5px;
    /* padding-right: 5px; */
    font-weight: 500;
	display:inline-flex;
	
}

.neuro-head::before,
.neuro-head::after,
.neuro-head>span::before,
.neuro-head>span::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: transparent;
  transition: 1s;
}

.neuro-head::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid red;
  border-left: 2px solid red;
}
.neuro-head::after {
  top: -2px;
  right: -2px;
  border-top: 2px solid red;
  border-right: 2px solid red;
}

.neuro-head span::before {
  bottom: -2px;
  left: -2px;
  border-bottom: 2px solid #66C7CC;
  border-left:2px solid #66C7CC;
}
.neuro-head span::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid #66C7CC;
  border-right: 2px solid #66C7CC;
}


.neuro-head:hover::before,
.neuro-head:hover::after,
.neuro-head:hover span::before,
.neuro-head:hover span::after  {
  width: calc( 270px / 2);
  height: calc( 50px / 2);
}

.inner_specialist{
	background-image:url(../img/bg-pattern.png);
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	background-size:cover;
	z-index:1;
	position:relative;
	padding:4rem 1rem;
	cursor:pointer;
	border-radius:10px;
	overflow: hidden;
}

.inner_specialist span{
	background:url(../img/specialist.jpeg);
	background-size:cover;
	background-position:center;
	position:absolute;
	inset:0;
	opacity:0.5;
	z-index:-1;
	width:0;
	transition:0.8s ease;
	border-radius:10px;
	
}

.inner_specialist:hover span{
	width:100%;
}

.inner_content{
	color:var(--primary-page-color);
	text-align:left;
	font-weight:500;
}

.neuro_blue{
	position:absolute;
	width:45px;
	height:45px;
	top: 15px;
    right: 10px;
}
.neuro_white{
	display:block;
	position:absolute;
	width:45px;
	height:45px;
	top: -50px;
}
.inner_specialist:hover .inner_content{
	position:relative;
	z-index:1;
	color:var(--secondary-page-color);
}

.inner_specialist:hover .neuro_white{
	display:block;
}

.inner_specialist:hover .neuro_blue{
	display:none;
}


.about_content{
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.1);
	padding:4rem 4rem;
	border-radius:10px;
}

.about_content .about_row{
	display:flex;
	justify-content:space-between;
	gap:2rem;
}

.about_image img{
	width:300px;
	height:300px;
	border:10px solid var(--primary-page-color);
	border-radius:50%;
	 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	 object-fit:cover;
}

.about_content h6{
	color:var(--primary-page-color);
	font-size:15px;
	font-weight:500;
}

.about_content h3{
	font-size:1.5rem;
	color:var(--secondary-page-color);
	font-weight:500;
	margin:10px 0px;
}

.about_content p{
	text-align:justify;
	margin-bottom:6px;
	color:var(--primary-page-color);
}

.about_content p strong{
	color:var(--red-page-color);
    font-weight: 500;
	text-decoration:underline;
}

/* ********************gallery-css***************** */


.gallery_intro h2, .contact_intro h2{
	 text-align: center;
    font-size: 35px;
    margin-bottom: 15px;
    color: var(--secondary-page-color);
	font-weight:500;
}


.gallery_intro .gallery_row{
	display:flex;
	justify-content:center;
	flex-wrap:wrap;
	gap:24px;
}
.gallery_row>div{
	position:relative;
	border-radius: 5px;
	box-shadow:0px 0px 10px #6a6a6a;
	transition: all .5s ease;
}
.gallery_row>div:hover{
	transform: scale(1.04);
}
.gallery_row figure{
	width:300px;
	height:250px;
}
.gallery_row figure img{
	border-radius:5px;
}
.gallery_row .gallery_content{
	position:absolute;
	bottom:0;
	right:0;
	left:0;
	padding:10px 15px;
	background-color: var(--primary-page-color);
	border-radius: 0px 0px 5px 5px;
}

.gallery_content .bx{
	font-size: 20px;
    position: relative;
    top: 4px;
    left: -5px;
}



@media(max-width:767px){
	/* Stack elements vertically */
    .neuro_specialist {
        flex-direction: column;
		padding:0 2rem;
    }

    /* Adjust padding for about section */
    .about_content {
        padding: 2rem;
    }

    /* Stack about section rows vertically */
    .about_content .about_row {
        flex-direction: column;
    }

    /* Ensure about section images are fully responsive */
    .about_image img {
        width: 100%;
        height: 100%;
		border-radius:4px;
    }
}



/* For Tab */
@media (min-width: 768px) and (max-width: 1024px) {	
	/* Display neuro specialist section in two columns */
    .neuro_specialist {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Stack about section rows vertically */
    .about_content .about_row {
        flex-direction: column;
    }

    /* Ensure about section images are fully responsive */
    .about_image img {
        width: 100%;
        height: 100%;
		border-radius:4px;
    }    
}
