/* S T Y L I N G   F O R   C A T E G O R Y   T A B S */
.tab-head {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

ul.modern-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.modern-tabs li {
    margin: 0 10px;
}

ul.modern-tabs li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-transform: capitalize;
    cursor: pointer;
}

ul.modern-tabs li a:hover {
    color: #000;
}

ul.modern-tabs li.active a {
    color: #000;
    border-bottom-color: #c8a165; /* Theme primary color */
}

/* S T Y L I N G   F O R   U P D A T E D   T E A M   S E C T I O N */
.team-section-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.team-card {
    background-color: #fff;
    text-align: center;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-card .team-card-img {
    padding-top: 25px; /* Add space above the image */
    padding-bottom: 15px; /* Add space below the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Styles for Team Images --- */
.team-card .team-card-img img {
    width: 200px;  /* Fixed width for same size */
    height: 200px; /* Fixed height for same size */
    border-radius: 50%; /* Makes the image a circle */
    border: 8px solid #e74c3c; /* RED BORDER */
    object-fit: cover; /* Prevents image distortion */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-card .team-card-content {
    padding: 0 25px 25px 25px;
}

.team-card .team-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}

.team-card .team-designation {
    font-size: 15px;
    color: #c8a165; /* Theme primary color */
    display: block;
    margin: 0;
}

/* --- Styles for Social Icons on Hover --- */
.team-card .team-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
    margin-top: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

.team-card:hover .team-social-icons {
    opacity: 1; /* Appear on card hover */
}

.team-card .team-social-icons a {
    color: #e74c3c; /* Red color for icons */
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.team-card .team-social-icons a:hover {
    transform: translateY(-3px);
    color: #c0392b; /* Darker red on hover */
}

/* S T Y L I N G   F O R   H O R I Z O N T A L   C A R D S */
.horizontal-team-cards {
    display: flex;
    flex-wrap: nowrap; /* Prevents cards from wrapping to a new line */
    gap: 20px; /* Adds space between cards */
    overflow-x: auto; /* Enables horizontal scrolling if needed */
    padding-bottom: 20px; /* Adds space for the scrollbar */
    -webkit-overflow-scrolling: touch; /* Improves scrolling on iOS devices */
}

/* Optional: Add styles to make the cards flex equally */
.horizontal-team-cards .team-card {
    flex-shrink: 0; /* Prevents cards from shrinking */
    width: 300px; /* Optional: Set a fixed width for each card */
}

/* Hide scrollbar for a cleaner look */
.horizontal-team-cards::-webkit-scrollbar {
    height: 8px;
}

.horizontal-team-cards::-webkit-scrollbar-thumb {
    background-color: #c8a165; /* Theme color for scrollbar */
    border-radius: 10px;
}

/* ======================================================= */
/* Swipe Card Effect for Mobile/Small Screens (Max-767px) */
/* ======================================================= */
@media (max-width: 767px) {
    .row.justify-content-center {
        display: flex;
        flex-wrap: nowrap; /* Forces a single row on mobile */
        gap: 15px;
        overflow-x: auto;
    }
    
    .col-lg-4.col-md-6.col-sm-12, .col-4 {
        flex-basis: auto; /* Resets the flex basis */
        max-width: none;
        flex-shrink: 0;
    }
}