html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F3F3F3;
    color: #333;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}

body,
html {
scroll-behavior: smooth;
}

body.loaded {
visibility: visible;
opacity: 1;
transition-delay: 0s; 
}

#menu-container {
    width: 100%;
}

.team-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
width: 90%;
max-width: 1100px;
margin: 40px auto;
padding: 20px;
border-radius: 10px;
}

.team-grid {
display: flex; 
gap: 12px; 
overflow-x: auto; 
scroll-behavior: smooth; 
padding: 20px 0;
width: 100%; 
max-width: 1200px;
scroll-snap-type: x mandatory; 

}
.team-member {
scroll-snap-align: center;
}

/* Optional: Hide the default scrollbar */
.team-grid::-webkit-scrollbar {
height: 8px;
}

.team-grid::-webkit-scrollbar-thumb {
background-color: #ccc;
border-radius: 10px;
}

.team-grid::-webkit-scrollbar-track {
background-color: transparent;
}

.team-member {
flex: 0 0 auto; /* Prevent shrinking and set fixed width */
width: 200px; /* Adjust based on your design */
overflow: hidden; 
text-overflow: ellipsis; /* Shows "..." if text overflows */
height: 300px;
background: #f8f8f8;
border-radius: 5px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
text-align: center;
}

.team-member:hover {
transform: scale(1.02); /* Scale effect on hover */
}
.tab{
display: flex;
flex-direction: column;
letter-spacing: 3px;
}

.tab img{
width: 150px;
padding-bottom: 10px;
}

.team-member img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
    letter-spacing: 2px;
    font-weight: 400;
}

.team-member p {
    font-size: 0.9em;
    color: #817C76;
    margin: 0;
}

.submenu {
    width: 100%;
    max-width: 1400px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.submenu ul {
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    display: flex; /* Make the list horizontal */
    justify-content: center; /* Center the list items horizontally */
}


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

.submenu ul li a {
    position: relative;
    width: 270px;
    min-width: 270px;
    height: 370px;
    background-color: #F3F3F3;
    margin: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    cursor: pointer;
}
.slider-container {
position: relative;
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
.prev-btn, .next-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: #f3f3f3;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
z-index: 10;
display: flex; /* Ensure buttons are displayed */
justify-content: center;
align-items: center;
}
.prev-btn img, .next-btn img{
width: 15px;
}
.prev-btn {
left: 0;
}

.next-btn {
right: 0;
}

.image-modal {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
-webkit-backdrop-filter: blur(2rem);
backdrop-filter: blur(2rem);    
background-color: rgba(209, 209, 209, 0.8);
z-index: 99999;
}

.close-button {
position: absolute;
top: 15px;
right: 30px;
color: white;
font-size: 40px;
cursor: pointer;
z-index: 999999;
}

.close-button:hover {
color: #bbb;
}

.fullscreen-image {
max-width: 90%;
max-height: 90%;
}

@media (max-width:1270px) {
.service-container .card {
width: 230px;
height: 300px;
min-width: 270px;

}
}
@media (max-width:1270px) {
    .submenu ul li a {
        width: 230px;
        height: 300px;
        min-width: 270px;
    }
}

.submenu ul li a:hover,
.submenu ul li a.tab-active {
    color: #817C76;
    border-bottom: 2px solid #817C76; 
    width: auto;
    background-color: #817c761f;
}

.submenu ul li a {
    cursor: pointer;
}

@media (max-width:1150px){
    .team-container{
        max-width: 820px;
    }
}

@media (max-width:860px){
    .team-container{
        max-width: 530px;
    }
}

.center{
    padding: 10px;
    color: #6F676B;
    font-weight: 550;
}
/* Tab styling */
.tab {
    text-decoration: none;
    font-weight: bold;
    color: black;
    padding: 10px;
}

.tab-active {
    color: red;
}

/* Centered link styling */
.center {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.center a {
    font-weight: bold;
    text-decoration: none;
}


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

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.team-member h3 {
    margin: 10px 0;
}

.divider {
    width: 100%;
    border-top: 1px solid #000;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.prev-btn img, .next-btn img {
    width: 20px;
    height: 20px;
}

.no-decor{
    text-decoration: none;
}
.width-10{
    width: 10px;
}