/* -----------------------------
   General Section Styling
------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.team-slider-section {
    padding: 0rem 2rem;
    color: #333;
}

.team-slider-section h2 {
    text-align: center;
    color: var(--violet-dark);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: bold;
}

/* -----------------------------
   Slider Container Styles
------------------------------ */
.team-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    z-index: 1; /* Ensure parent has a context */
}

.team-slider-wrapper::before,
.team-slider-wrapper::after {
    content: "";
    position: absolute;
    width: 3px; /* border thickness */
    height: 360px; /* length of the border */
    background-color: #6e0f79; /* violet color */
    top: 42%;  /* center vertically */
    transform: translateY(-50%);
    z-index: 9999; /* ensures it renders above everything */
    pointer-events: none; /* optional: allows clicks to go through */
}

.team-slider-wrapper::before {
    left: 0;
}

.team-slider-wrapper::after {
    right: 0;
}



.team-slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s ease;
    will-change: transform;
    padding: 2rem;
}

/* Individual Slide/Card */
.team-slider-member {
    background: var(--lavender-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    min-width: calc(100% / 3 - 1.33rem);
    box-sizing: border-box;
}

.team-slider-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Photo Styling */
.team-slider-photo img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.team-slider-member:hover .team-slider-photo img {
    transform: scale(1.05);
}

/* Info Styling */
.team-slider-info {
    text-align: center;
}

.team-slider-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.team-slider-name:hover {
    color: var(--violet-dark);
}

.team-slider-job-title {
    font-style: italic;
    font-size: 1rem;
    color: var(--violet-dark);
    margin-bottom: 1.2rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Read More Button */
.team-slider-member a {
    color: var(--violet-dark);
    text-decoration: none;
    padding: 8px 16px;
    background: #fff;
    border-radius: 25px;
    border: 2px solid var(--violet-dark);
    transition: background-color 0.3s, color 0.3s;
}

.team-slider-member a:hover {
    background-color: var(--violet-dark);
    color: #fff;
}

/* -----------------------------
   Arrow Navigation
------------------------------ */
.team-slider-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

.team-slider-nav button {
    background: var(--violet-dark);
    color: #fff;
    border: none;
    padding: 0.75rem;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;

    animation: buttonPulse 10s infinite;
    animation-play-state: running;

    /* Prevent clipping by setting overflow and spacing */
    overflow: visible;
}

/* Pause regular pulse and do a quick pulse on hover */
.team-slider-nav button:hover {
    animation-play-state: paused;
    animation: buttonPulse 0.6s ease;
}

/* Click pulse: restart pulse when button is active */
.team-slider-nav button:active {
    animation: none; /* cancel ongoing animation */
    transform: scale(0.95); /* visual feedback */
    box-shadow: 0 0 0 8px rgba(110, 15, 121, 0.4);
}

/* Keyframe: Subtle pulse using box-shadow */
@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(110, 15, 121, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(110, 15, 121, 0);
    }
}

.team-slider-nav button i {
    font-size: 1.5rem; /* Controls the size of the icons */
}

.team-slider-nav button:hover {
    background: var(--violet-dark);
}

/* -----------------------------
   Responsive Adjustments
------------------------------ */
@media (max-width: 1024px) {
    .team-slider-member {
        min-width: calc(100% / 2 - 1rem);
    }
}

@media (max-width: 768px) {
    .team-slider-member {
        min-width: 100%;
    }

    .team-slider-nav {
        gap: 1rem;
    }
}
