/* ============================================================
   ΝΟΗΣΙS+ — Teachers/Team Pages
   Enhances original theme classes and adds slider support
   ============================================================ */

/* ======================= Team Cards (Archive) ======================= */

/* Card as clickable link */
.team-card-item {
    display: block;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
}

.team-card-item:hover {
    border-color: #2c7373;
    box-shadow: 0 15px 35px rgba(44, 115, 115, 0.15);
    transform: translateY(-4px);
}

.team-card-item .team-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef3f3 100%);
}

.team-card-item .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-card-item .team-content a.theme-btn,
.team-card-item .team-content span.theme-btn {
    margin-top: 16px;
    padding: 12px 28px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ======================= Team Details (Single) ======================= */

.team-details-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-details-image > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Teacher Image Slider */
.teacher-slider {
    border-radius: 16px;
    overflow: hidden;
}

.teacher-slider .swiper-slide {
    position: relative;
}

.teacher-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.teacher-slider .swiper-pagination {
    bottom: 16px;
    z-index: 10;
}

.teacher-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: all 0.3s ease;
}

.teacher-slider .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.teacher-slider .swiper-button-next,
.teacher-slider .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(44, 115, 115, 0.9);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.teacher-slider .swiper-button-next:after,
.teacher-slider .swiper-button-prev:after {
    font-size: 18px;
}

.teacher-slider .swiper-button-next:hover,
.teacher-slider .swiper-button-prev:hover {
    background: rgba(44, 115, 115, 1);
}

.teacher-slider .swiper-button-next {
    right: 16px;
}

.teacher-slider .swiper-button-prev {
    left: 16px;
}

/* Profile Content Styling */
.team-details-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #143F3F;
    margin: 0 0 16px;
    line-height: 1.2;
}

/* Meta Badges */
.teacher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.teacher-role-badge {
    display: inline-block;
    padding: 10px 20px;
    background: #2c7373;
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-specialization {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(44, 115, 115, 0.12);
    color: #2c7373;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Experience Badge */
.teacher-exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #e35d45, #c74d38);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px rgba(227, 93, 69, 0.3);
}

.teacher-exp-badge i {
    font-size: 20px;
}

/* Social Icons */
.team-details-content .social-icon {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    gap: 12px;
}

.team-details-content .social-icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(44, 115, 115, 0.1);
    color: #2c7373;
    font-size: 18px;
    transition: all 0.3s ease;
}

.team-details-content .social-icon li a:hover {
    background: #2c7373;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 115, 115, 0.2);
}

/* Education Section */
.teacher-education {
    margin-bottom: 32px;
}

.teacher-education h4 {
    font-size: 18px;
    font-weight: 600;
    color: #143F3F;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.teacher-education h4 i {
    color: #2c7373;
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.education-list li {
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 15px;
    color: #4a5a5a;
    border-left: 4px solid #2c7373;
    transition: background 0.3s ease;
}

.education-list li:hover {
    background: #f0f4f4;
}

/* Bio Content */
.team-bio {
    font-size: 17px;
    line-height: 1.85;
    color: #4a5a5a;
    margin-bottom: 32px;
}

.team-bio p {
    margin-bottom: 18px;
}

.team-bio h2,
.team-bio h3 {
    color: #143F3F;
    margin-top: 32px;
    margin-bottom: 16px;
}

.team-bio h2 {
    font-size: 26px;
}

.team-bio h3 {
    font-size: 20px;
}

.team-bio ul,
.team-bio ol {
    margin: 0;
}

.team-bio li {
    margin-bottom: 10px;
}

.team-bio li::marker {
    color: #e35d45;
}

/* Related Teachers Card */
.team-card-simple {
    background: #fff;
    border: 1px solid #e7eded;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.team-card-simple:hover {
    border-color: #2c7373;
    box-shadow: 0 15px 35px rgba(44, 115, 115, 0.12);
    transform: translateY(-4px);
}

.team-card-simple a {
    text-decoration: none;
    display: block;
    height: 100%;
}

.team-card-img {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef3f3 100%);
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.team-card-simple:hover .team-card-img img {
    transform: scale(1.05);
}

.team-card-body {
    padding: 20px;
    text-align: center;
}

.team-card-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #143F3F;
    margin: 0 0 8px;
}

.team-card-body span {
    font-size: 13px;
    font-weight: 500;
    color: #2c7373;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======================= Responsive ======================= */
@media (max-width: 991px) {
    .team-details-content h2 {
        font-size: 32px;
    }

    .teacher-slider .swiper-button-next,
    .teacher-slider .swiper-button-prev {
        width: 38px;
        height: 38px;
    }

    .teacher-slider .swiper-button-next:after,
    .teacher-slider .swiper-button-prev:after {
        font-size: 16px;
    }

    .teacher-slider .swiper-button-next {
        right: 12px;
    }

    .teacher-slider .swiper-button-prev {
        left: 12px;
    }
}

@media (max-width: 575px) {
    .team-details-content h2 {
        font-size: 26px;
    }

    .teacher-meta {
        flex-direction: column;
    }

    .teacher-exp-badge {
        width: 100%;
        justify-content: center;
    }

    .team-details-content .social-icon {
        justify-content: center;
    }

    .teacher-slider .swiper-button-next,
    .teacher-slider .swiper-button-prev {
        display: none;
    }
}
