/* =====================================================
   Teachers & Staff Page Templates
   Shared by: template-community-teachers.php
              template-staff.php
   ===================================================== */

/* Intro Section */
.teachers-intro-section { padding: 60px 0 20px;   background-color: #f4f4f4;}
.teachers-intro-title   { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.teachers-intro-desc p  { font-size: 1rem; color: #555; line-height: 1.8; }

/* Carousel */
.teachers-carousel-section { padding: 40px 0 20px;   background-color: #f4f4f4;}
.teachers-carousel-track {
    display: flex;
    gap: 1.25rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.teachers-carousel-track::-webkit-scrollbar { display: none; }
.teachers-carousel-track.grabbing           { cursor: grabbing; }

.teachers-carousel-card {
    flex: 0 0 240px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.teachers-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teachers-no-photo { background: #e9ecef; }

.teachers-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    padding: 1.5rem 1rem 1rem;
    color: #fff;
}

.teachers-carousel-name  { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.2rem; }
.teachers-carousel-title { font-size: 0.8rem; margin: 0 0 0.6rem; opacity: 0.85; }

/* CV Button */
.teachers-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: #B92525;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.teachers-cv-btn:hover { background: #8e1a1a; color: #fff; }

/* Progress Bar */
.teachers-carousel-progress-wrapper { padding: 8px 2rem 0; }
.teachers-carousel-progress-bar {
    height: 3px;
    background: #e0e0e0;
    border-radius: 99px;
    overflow: hidden;
}
.teachers-carousel-progress-fill {
    height: 100%;
    width: 0;
    background: #B92525;
    border-radius: 99px;
    transition: width 0.1s linear;
}

/* Grid */
.teachers-grid-section { padding: 60px 0;  background-color: #f4f4f4; }
.teachers-grid-section .row { justify-content: center; }

.teachers-grid-title {
    text-align: center;
  font-size: 40px;
  font-weight: 800;
    color: var(--color-primary);
      font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.teachers-grid-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.teachers-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.teachers-grid-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.teachers-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    padding: 1.5rem 1rem 1rem;
    color: #fff;
}

.teachers-grid-name { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.2rem; }
.teachers-grid-job  { font-size: 0.8rem; margin: 0 0 0.6rem; opacity: 0.85; }

/* Load More */
.teachers-grid-hidden { display: none; }

.teachers-load-more-btn {
    background: transparent;
    border: 2px solid #B92525;
    color: #B92525;
    padding: 0.65rem 2.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.teachers-load-more-btn:hover  { background: #B92525; color: #fff; }
.teachers-load-more-btn.d-none { display: none !important; }
