body {
    background-image: url(https://cdnb.artstation.com/p/assets/images/images/003/704/285/large/dusica-neskovic-muzejdanfinal.jpg?1476637309);
}

h1, h2, h3, h4, h5, h6 {
    /* No styles currently defined */
}

section {
    margin-top: 150px; /* Adjust as needed */
}

a, a:hover, a:focus, a:active {
    text-decoration: none;
    outline: none;
}

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

.site-heading h2 {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.site-heading h2 span {
    color: #ff5a6e;
}

.site-heading h4 {
    display: inline-block;
    padding-bottom: 20px;
    position: relative;
    text-transform: capitalize;
    z-index: 1;
}

.site-heading h4::before {
    background: #ff5a6e;
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    margin-left: -25px;
    position: absolute;
    width: 50px;
}

.site-heading {
    margin-bottom: 60px;
    overflow: hidden;
    margin-top: -5px;
}

.team-area .single-item {
    margin-bottom: 30px;
}

.team-area .item .thumb {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.team-area .item .thumb::after {
    background: #232323;
    content: "";
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.35s ease-in-out;
    width: 100%;
}

.team-area .item:hover .thumb::after {
    opacity: 0.7;
}

.team-area .item .thumb .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust dark effect */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* Fade in/out */
    z-index: -1; /* Initially behind image */
}

.team-area .item:hover .thumb .overlay {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease; /* Smooth fade */
    z-index: 1; /* Bring overlay to the front */
}

.team-area .item .thumb .overlay p {
    color: #ffffff;
}

.team-area .item .thumb .overlay h4 {
    color: #ffffff;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
}

.team-area .item .thumb img {
    display: block;
    width: 100%; /* Ensure image fills container */
    height: auto; /* Maintain aspect ratio */
    transition: all 0.35s ease-in-out; /* Smooth transition */
}

.team-area .item:hover .thumb img {
    opacity: 0.6;
}

.team-area .item .thumb .social li {
    display: inline-block;
}

.team-area .item .thumb .social li a {
    border-radius: 50%;
    color: #ffffff;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin: 0;
    text-align: center;
    width: 40px;
}

.team-area .info {
    background: #ffffff;
    box-shadow: 0 0 10px #cccccc;
    padding: 40px 20px 20px;
    position: relative;
    text-align: center;
    z-index: 9;
}

.team-area .info .message {
    height: 50px;
    line-height: 10px;
    margin-left: -25px;
    margin-top: -25px;
    position: absolute;
    text-align: center;
    top: 0;
    width: 50px;
    display: flex;
    align-items: center;
}

.team-area .info .message a {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #cccccc;
    box-sizing: border-box;
    color: #ff5a6e;
    display: inline-block;
    font-size: 20px;
    height: 50px;
    line-height: 50px;
    width: 50px;
}

.team-area .info .message a i {
    font-weight: 500;
}

.team-area .info h4 {
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: capitalize;
    color: #bf9b30;
}

.team-area .info span {
    color: #041C3F;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.info p span {
    display: block;
    margin: 2px 0;
    line-height: 1;
}

.team-area .social li.twitter a {
    background-color: #00b6f1;
}

.team-area .social li.pinterest a {
    background-color: #bd081c;
}

.team-area .social li.facebook a {
    background-color: #3b5998;
}

.team-area .social li.google-plus a {
    background-color: #df4a32;
}

.team-area .social li.vimeo a {
    background-color: #1ab7ea;
}

.team-area .social li.instagram a {
    background-color: #cd486b;
}

.facebook a {
    color: #1877F2;
}

.linkedin a {
    color: #0077b5 !important;
    font-size: 24px;
}

.x-twitter a {
    color: #000000;
}

.detail_team {
    color: white;
    font-weight: bold;
    text-align: justify;
    font-size: 0.75rem;
}

.team-items .single-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-items .single-item .info {
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thumb {
    position: relative;
}

.thumb img {
    display: block;
    width: 100%;
}

.xxxxoverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the overlay content */
    background: rgba(0, 0, 0, 0.5); /* Adjust as needed for the dark effect */
    visibility: hidden; /* Start with the overlay hidden */
    opacity: 0; /* Invisible initially */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* Fade in/out smoothly */
    z-index: -1; /* Ensure overlay is behind the image */
    padding: 20px; /* Adds space around the text */
    text-align: center; /* Center align the text */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Adjust as needed for the dark effect */
    visibility: hidden; /* Start with the overlay hidden */
    opacity: 0; /* Invisible initially */
    transition: opacity 0.3s ease, visibility 0s 0.3s; /* Fade in/out smoothly */
    z-index: -1; /* Ensure overlay is behind the image */
    padding: 20px; /* Adds space around the text */
    text-align: center; /* Center align the text */
}

.thumb:hover .overlay {
    visibility: visible; /* Make the overlay visible on hover */
    opacity: 1; /* Fade in */
    transition: opacity 0.3s ease; /* Smooth fade */
    z-index: 1; /* Bring overlay to the front when hovered */
}

.thumb .overlay h4, .thumb .overlay p {
    margin: 10px 0; /* Adds margin to the text */
    color: #ffffff;
}


