/* Teachers Page PC Styles */

/* Custom button width for join team section */
.join-team-section .enroll-btn {
    width: auto;
    display: inline-block;
    padding: 12px 30px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFE4E1 0%, #E6E6FA 25%, #F0F8FF 50%, #F5FFFA 75%, #FFF8DC 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Teachers Hero */
.teachers-hero {
    background: linear-gradient(45deg, #DDA0DD, #E6E6FA);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.teachers-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.teachers-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Teachers Section */
.teachers-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Teacher Cards */
.teacher-card,
.program-card.teacher-card,
.program-card {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-top: 4px solid #DDA0DD !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 2rem !important;
}

.teacher-card:hover,
.program-card.teacher-card:hover,
.program-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
    border-top-color: #BA55D3 !important;
}

.teacher-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-card:hover .teacher-overlay {
    opacity: 1;
}

.view-profile-btn {
    background: white;
    color: #DDA0DD;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.teacher-info {
    padding: 2rem !important;
    text-align: center !important;
    flex-grow: 1 !important;
}

.teacher-info h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.teacher-subject {
    font-size: 1.1rem !important;
    color: #DDA0DD !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.teacher-specialty {
    font-size: 1rem !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 85%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.teacher-profile-image {
    position: sticky;
    top: 2rem;
}

.teacher-profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.teacher-profile-info h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.teacher-profile-info .teacher-subject {
    font-size: 1.2rem;
    color: #DDA0DD;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-profile-info .teacher-specialty {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.teacher-bio,
.teacher-philosophy,
.teacher-subjects,
.teacher-qualifications,
.teacher-achievements {
    margin-bottom: 2rem;
}

.teacher-bio h3,
.teacher-philosophy h3,
.teacher-subjects h3,
.teacher-qualifications h3,
.teacher-achievements h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #DDA0DD;
    padding-bottom: 0.5rem;
}

.teacher-bio p,
.teacher-philosophy p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-tag {
    background: #DDA0DD;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.teacher-qualifications ul,
.teacher-achievements ul {
    list-style: none;
    padding: 0;
}

.teacher-qualifications li,
.teacher-achievements li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.teacher-qualifications li::before,
.teacher-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Join Team Section */
.join-team-section {
    background: white;
    padding: 80px 0;
    text-align: center;
}

.join-team-section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.join-team-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.team-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h4 {
    font-size: 1.2rem;
    color: #DDA0DD;
    margin-bottom: 1rem;
}

.benefit-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Animation for teacher cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-card {
    animation: fadeInUp 0.6s ease forwards;
}

.teacher-card:nth-child(1) { animation-delay: 0.1s; }
.teacher-card:nth-child(2) { animation-delay: 0.2s; }
.teacher-card:nth-child(3) { animation-delay: 0.3s; }
.teacher-card:nth-child(4) { animation-delay: 0.4s; }
.teacher-card:nth-child(5) { animation-delay: 0.5s; }
.teacher-card:nth-child(6) { animation-delay: 0.6s; }
.teacher-card:nth-child(7) { animation-delay: 0.7s; }
.teacher-card:nth-child(8) { animation-delay: 0.8s; }

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #DDA0DD;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #E6E6FA;
}