/* === INSTRUCTORS SECTION – Base === */
.instructors-section {
    background: linear-gradient(135deg, #2c2c2c, #444, #2c2c2c);
    border-top: 2px solid limegreen;
    border-bottom: 2px solid limegreen;
    padding: 3rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.instructors-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
}

/* === Shared Instructor Card Style === */
.instructor-card {
    flex: 0 0 clamp(260px, 75%, 365px); /* wider on small screens */
    max-width: 360px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;

    background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
    color: #111;
    padding: 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #bbb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(200, 200, 200, 0.3);
}



/* === Name === */
.instructor-card h3 {
    font-size: 1.45rem;
    margin: 0 0 0.5rem;
    color: #333;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    /*min-height: 2rem;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Bio === */
/* === Bio (center + justified) === */
.instructor-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1rem;

}

/* === Buttons (pinned bottom) === */
.instructor-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: auto;      /* ✅ pushes buttons to bottom if content is short */
}

.instructor-buttons a {
    padding: 0.6rem 1.4rem; /* default slightly larger */
    background-color: #00c853;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 255, 0, 0.3);
}

.instructor-buttons a:hover {
    background-color: limegreen;
    transform: translateY(-2px);
    box-shadow: 0 0 40px 15px rgba(0, 255, 0, 0.5);
}


/* === Instructor Picture Wrapper === */
.instructor-picture {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 200px;
    height: 285px;          /* fixed square frame */
    margin: 0 auto 1rem;
    border-radius: 10%;
    overflow: hidden;
    border: 3px solid #aaa; /* border wraps whole picture */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    background: #fff;       /* ✅ fills gaps with white (or any color) */
}

/* Instructor Image */
.instructor-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;    /* ✅ no cropping */
    border-radius: inherit;
}

/* === Tooltip for Instructor Picture === */


/* === Layout Modes === */
/* Desktop & Large screens → Centered grid */
@media (min-width: 992px) {
    .instructors-carousel {
        display: flex;
        justify-content: center; /* ✅ center cards in a row */
        flex-wrap: wrap; /* allow wrapping into multiple rows */
        gap: 2rem;
        overflow: visible; /* no scrolling */
        scroll-snap-type: none; /* disable carousel snap */
    }
}

/* Mobile & Tablets → Carousel */
@media (max-width: 991px) {
    .instructors-section {
        padding: 3rem 2rem;
    }

    .instructors-carousel {
        display: flex;
        justify-content: flex-start;
        gap: 1.3rem;
        overflow-x: auto; /* ✅ horizontal scroll */
        -ms-overflow-style: none; /* IE/Edge */
        scrollbar-width: none; /* Firefox */
    }

    .instructors-carousel::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .instructor-card{
        padding: 1rem;
    }

    .instructor-card h3 {
        font-size: 1.4rem;
        margin: 0 0 0.45rem;

    }

    .instructor-card p {
        font-size: 0.9rem; /* slightly smaller */
    }

    .instructor-buttons a {
        padding: 0.65rem 1.45rem;
        font-size: 1rem;
    }

    .instructor-picture {
        width: 180px;
        height: 260px;
    }

    .instructor-picture .tooltip {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}