/* ==========================================================================
   ST. LAWRENCE JUNIOR SCHOOL KABOWA — TEACHERS DIRECTORY & PROFILE REDESIGN
   Institutional, Human-Made, Clean Editorial Design
   Official School Colors: Deep Navy (#0b3366), School Red (#dc3545), White (#ffffff)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TEACHERS HERO SECTION (LIGHT & EDITORIAL)
   -------------------------------------------------------------------------- */
.teachers-hero-editorial {
    background-color: #ffffff;
    padding: 50px 0 30px 0;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.teachers-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.teachers-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
}

/* Left Hero Column */
.teachers-hero-left {
    padding-right: 20px;
}

.teachers-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 20px;
}

.teachers-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.teachers-breadcrumb a:hover {
    color: #0b3366;
}

.teachers-breadcrumb .separator {
    color: #cbd5e1;
}

.teachers-breadcrumb .current {
    color: #0b3366;
    font-weight: 600;
}

.teachers-eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.teachers-eyebrow-bar {
    width: 36px;
    height: 3px;
    background-color: #dc3545;
    border-radius: 2px;
    display: inline-block;
}

.teachers-eyebrow-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #dc3545;
    text-transform: uppercase;
}

.teachers-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #0b3366;
    margin: 0 0 16px 0;
    letter-spacing: -0.025em;
}

.teachers-hero-title .text-red {
    color: #dc3545;
}

.teachers-hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    max-width: 580px;
}

/* Right Hero Quote Box */
.teachers-hero-quote-box {
    border-left: 2px solid #cbd5e1;
    padding: 12px 0 12px 24px;
    position: relative;
}

.teachers-hero-quote-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.12rem;
    line-height: 1.6;
    color: #0b3366;
    margin: 0;
}

/* --------------------------------------------------------------------------
   2. DIRECTORY CONTROLS (SEARCH, FILTERS, COUNT)
   -------------------------------------------------------------------------- */
.teachers-directory-section {
    background-color: #f8fafc;
    padding: 50px 0 90px 0;
    min-height: 500px;
}

.teachers-directory-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.teachers-controls-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(11, 51, 102, 0.03);
    flex-wrap: wrap;
}

.teachers-search-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.teachers-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.teachers-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px 10px 38px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}

.teachers-search-input:focus {
    border-color: #0b3366;
    box-shadow: 0 0 0 3px rgba(11, 51, 102, 0.12);
}

.teachers-filters-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teachers-filter-select {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 32px 10px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
}

.teachers-filter-select:focus {
    border-color: #0b3366;
}

.teachers-count-badge {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    padding-left: 8px;
}

/* --------------------------------------------------------------------------
   3. DYNAMIC TEACHER GRID & CARDS
   -------------------------------------------------------------------------- */
.teachers-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.teacher-directory-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(11, 51, 102, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.teacher-directory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(11, 51, 102, 0.08);
    border-color: #cbd5e1;
}

.teacher-card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.teacher-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.teacher-directory-card:hover .teacher-card-img {
    transform: scale(1.02);
}

.teacher-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.teacher-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0b3366;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.teacher-card-role {
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.teacher-card-accent-line {
    width: 32px;
    height: 2px;
    background-color: #dc3545;
    margin-bottom: 18px;
}

.teacher-card-footer {
    margin-top: auto;
}

.teacher-card-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b3366;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.teacher-card-view-btn i {
    font-size: 0.85rem;
    color: #0b3366;
    transition: color 0.2s ease;
}

.teacher-card-view-btn:hover {
    color: #dc3545;
    gap: 10px;
}

.teacher-card-view-btn:hover i {
    color: #dc3545;
}

/* Loading & Empty States */
.teachers-loading-state,
.teachers-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.teachers-loading-state i {
    font-size: 2rem;
    color: #0b3366;
    margin-bottom: 12px;
}

.teachers-empty-state i {
    font-size: 2.2rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.teachers-empty-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b3366;
    margin: 0 0 6px 0;
}

.teachers-empty-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 20px 0;
}

.teachers-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0b3366;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.teachers-clear-btn:hover {
    background: #08254a;
}

/* --------------------------------------------------------------------------
   4. DEDICATED TEACHER PROFILE PAGE STYLES
   -------------------------------------------------------------------------- */
.teacher-profile-page-section {
    background-color: #f8fafc;
    padding: 40px 0 90px 0;
}

.teacher-profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Back Link */
.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.profile-back-link:hover {
    color: #0b3366;
    transform: translateX(-3px);
}

/* Profile Header Card */
.profile-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: 0 4px 20px rgba(11, 51, 102, 0.04);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: center;
    margin-bottom: 32px;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.profile-avatar-wrap {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    flex-shrink: 0;
    background: #f1f5f9;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.profile-header-meta h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0b3366;
    margin: 0 0 6px 0;
    letter-spacing: -0.015em;
}

.profile-header-meta .profile-role {
    font-size: 1.05rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 14px 0;
}

.profile-quote-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 0.96rem;
    line-height: 1.5;
    color: #0b3366;
    margin: 0;
    position: relative;
    padding-top: 10px;
}

.profile-quote-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: #dc3545;
}

/* Quick Contact Mini Card */
.profile-quick-contact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-quick-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
}

.profile-quick-item i {
    font-size: 1rem;
    color: #0b3366;
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.profile-quick-item .label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 2px;
}

.profile-quick-item .value {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.profile-quick-item a.value:hover {
    color: #0b3366;
    text-decoration: underline;
}

/* Profile Details Grid (2 Columns) */
.profile-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(11, 51, 102, 0.03);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-card-header i {
    color: #0b3366;
    font-size: 1.1rem;
}

.profile-card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b3366;
    margin: 0;
}

.profile-body-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Detail items list */
.profile-details-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-detail-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-detail-box i {
    font-size: 1.35rem;
    color: #0b3366;
    flex-shrink: 0;
}

.profile-detail-box .detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.profile-detail-box .detail-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

/* Responsibilities List */
.profile-responsibilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-responsibilities-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #334155;
}

.profile-responsibilities-list li i {
    color: #0284c7;
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .teachers-directory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .teachers-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .teachers-hero-quote-box {
        border-left: none;
        border-top: 2px solid #cbd5e1;
        padding: 16px 0 0 0;
    }
    
    .teachers-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .profile-header-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .profile-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .teachers-hero-title {
        font-size: 2.3rem;
    }

    .teachers-controls-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .teachers-filters-group {
        flex-direction: column;
        align-items: stretch;
    }

    .teachers-filter-select {
        width: 100%;
    }

    .teachers-count-badge {
        padding-left: 0;
        text-align: center;
    }

    .teachers-directory-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .profile-header-left {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .profile-avatar-wrap {
        margin: 0 auto;
    }

    .profile-quote-text::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-details-list {
        grid-template-columns: 1fr;
    }
}
