/* ========================================
   MODERN TEACHER DETAIL STYLES
======================================== */
.teacher-detail-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ========================================
   TEACHER HERO SECTION
======================================== */
.td-teacher-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.td-teacher-hero-content {
    width: 100%;
}

.td-teacher-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.td-teacher-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.td-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-teacher-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.td-teacher-info {
    color: white;
}

.td-teacher-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.td-teacher-rank {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.td-teacher-department,
.td-teacher-specialization {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.td-teacher-department i,
.td-teacher-specialization i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.td-teacher-academic-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.td-academic-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.td-academic-info-item i {
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.td-teacher-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.td-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.td-contact-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.td-contact-item i {
    font-size: 0.9rem;
    width: 14px;
    text-align: center;
}

/* ========================================
   CONTENT SECTIONS
======================================== */
.td-content-section {
    padding: 30px 0;
}

.td-section-title {
    text-align: center;
    margin-bottom: 25px;
}

.td-section-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.td-section-title p {
    font-size: 0.9rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.td-info-card {
    background: white;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.td-info-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.td-info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.td-info-card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.td-info-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* ========================================
   COURSES GRID - Full Width
======================================== */
.td-courses-section {
    background-color: #f8f9fa;
    padding: 30px 0;
}

.td-courses-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

/* Desktop: 5 columns */
@media (min-width: 1400px) {
    .td-courses-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Laptop: 4 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    .td-courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .td-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .td-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
}

.td-course-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.td-course-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.td-course-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f3f4f6;
}

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

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

.td-course-content {
    padding: 12px;
}

.td-course-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.td-course-program {
    color: #6c757d;
    font-size: 0.75rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: inline-block;
}

.td-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #6c757d;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1200px) {
    .td-teacher-hero-grid {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .td-teacher-contact-info {
        display: none;
    }
    
    .td-teacher-name {
        font-size: 1.6rem;
    }
    
    .td-teacher-avatar,
    .td-teacher-avatar-placeholder {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .td-teacher-hero {
        padding: 30px 0;
    }
    
    .td-teacher-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .td-teacher-name {
        font-size: 1.5rem;
    }
    
    .td-teacher-avatar,
    .td-teacher-avatar-placeholder {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .td-content-section {
        padding: 20px 0;
    }
    
    .td-info-card {
        padding: 15px;
    }
    
    .td-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .td-teacher-hero {
        padding: 25px 0;
    }
    
    .td-teacher-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }
    
    .td-teacher-name {
        font-size: 1.3rem;
    }
    
    .td-teacher-avatar,
    .td-teacher-avatar-placeholder {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }
    
    .td-content-section {
        padding: 15px 0;
    }
    
    .td-info-card {
        padding: 12px;
    }
    
    .td-courses-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
