/* Tab styling - Teachers specific */
.teachers-by-program-container .program-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
    font-family: 'Inter', sans-serif;
}

.teachers-by-program-container .program-tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #003366;
}

.teachers-by-program-container .program-tab:hover {
    background-color: #ffd1a680;
    color: #ff8800;
}

.teachers-by-program-container .program-tab.active {
    background-color: #ffffff;
    border-bottom: 3px solid #ff8800;
    font-weight: 600;
    color: #ff8800;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Teacher card styling */
.teachers-by-program-container .program-content {
    display: none;
    font-family: 'Inter', sans-serif;
}

.teachers-by-program-container .program-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.teacher-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.teacher-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.teacher-card:hover .teacher-image {
    filter: brightness(1.05);
}

.teacher-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;
}

.teacher-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #003366;
    line-height: 1.3;
}

.teacher-position {
    color: #ff8800;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

.teacher-qualification {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
    font-style: italic;
}

.teacher-programs {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #6c757d;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.teacher-short-description {
    font-size: 15px;
    color: #333;
    margin-top: 12px;
    line-height: 1.6;
}

.teacher-short-description p {
    margin: 0 0 10px;
}

.teacher-short-description {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    line-height: 1.4;
}

.teacher-short-description p {
    margin: 0 0 8px;
}

/* Teacher Plugin Styles */

/* Duplicate styles removed to prevent conflicts */

/* Duplicate styles removed - using main styles above */

/* Flip Card Functionality */
.teacher-card.flip-enabled {
    background-color: transparent !important;
    perspective: 1000px;
    border: none;
    box-shadow: none;
}

.teacher-card.flip-enabled:hover {
    transform: none !important;
    box-shadow: none !important;
}


.teacher-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    min-height: 480px;
}

.teacher-card.flip-enabled:hover .teacher-card-inner {
    transform: rotateY(180deg);
}

.teacher-card-front,
.teacher-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.teacher-card-front {
    z-index: 2;
}

.teacher-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* background: linear-gradient(135deg, #ffdebc 0%, #ff7b43 100%); */
    background-color: #ffdebc;
    color: #324158;
}

/* Fade effects during flip */
.teacher-card.flip-enabled:hover .teacher-card-front {
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}

.teacher-card.flip-enabled:hover .teacher-card-back {
    opacity: 1;
    transition: opacity 0.3s ease 0.3s;
}

.teacher-card.flip-enabled .teacher-card-back {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-back-content {
    text-align: center;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.teacher-back-image {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s ease;
}

.teacher-card.flip-enabled:hover .teacher-back-image {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.4s ease 0.3s;
}

.teacher-back-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.teacher-back-photo:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    background-color: #ffd1a680;
}


.teacher-card.flip-enabled:hover .teacher-back-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease 0.4s;
}

.teacher-back-content .teacher-name {
    color: #324158;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.teacher-card.flip-enabled:hover .teacher-back-content .teacher-name {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease 0.5s;
}

.teacher-excerpt {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.teacher-card.flip-enabled:hover .teacher-excerpt {
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.3s ease 0.6s;
}

.teacher-read-more {
    background-color: #ff8800;
    color: white;
    border: 2px solid #ff8800;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
}

.teacher-card.flip-enabled:hover .teacher-read-more {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.1s ease 0.1s;
}

.teacher-card.flip-enabled:hover .teacher-read-more:hover {
    background-color: #4a7ba7;
    color: white;
    border: 2px solid #4a7ba7;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
    transition: all 0.1s ease;
}

/* Teacher Modal Styles */
.teacher-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.teacher-modal-content {
    background: white;
    padding: 0;
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease;
}

.teacher-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

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

.teacher-modal-header {
    display: flex;
    gap: 2rem;
    padding: 2rem 2rem 0 2rem;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.teacher-modal-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    max-width: 100%;
}

.teacher-modal-info {
    flex-grow: 1;
    text-align: center;
}

.teacher-modal-title {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.teacher-modal-position {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
}

.teacher-modal-programs,
.teacher-modal-qualification {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.teacher-modal-content-body {
    padding: 2rem;
}

.teacher-modal-short-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.teacher-modal-full-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.teacher-modal-full-content h1,
.teacher-modal-full-content h2,
.teacher-modal-full-content h3,
.teacher-modal-full-content h4,
.teacher-modal-full-content h5,
.teacher-modal-full-content h6 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.teacher-modal-full-content p {
    margin-bottom: 1rem;
}

.teacher-modal-full-content ul,
.teacher-modal-full-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.teacher-modal-error {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 2rem;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInModal {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .teacher-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .teacher-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .teacher-modal-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem auto;
    }
    
    .teacher-modal-title {
        font-size: 1.5rem;
    }
    
    .teacher-modal-position {
        font-size: 1.1rem;
    }
    
    .teacher-modal-content-body {
        padding: 1.5rem;
    }
    
    .teacher-modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
}

.teacher-image {
    width: 100%;
    flex: 0 0 60%;
    object-fit: cover;
    display: block;
}

.teacher-image-placeholder {
    width: 100%;
    flex: 0 0 60%;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-info {
    padding: 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
}

.teacher-name {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}




.teacher-short-description {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #444;
}

/* Community Signup Box */
.community-signup-box {
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    max-width: 600px;
}

.community-box-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #333;
}

.community-box-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.community-box-input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.community-box-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #ff8800;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.community-box-button:hover {
    background-color: #ffd1a680;
}

@media screen and (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .community-signup-box {
        padding: 1.5rem;
    }
    
    .community-box-title {
        font-size: 1.5rem;
    }
    
    .community-box-description {
        font-size: 1rem;
    }
}/* Cache bust: Sun Jul 27 01:59:11 EDT 2025 */
