/* ===========================
   TEAM PAGE - team-page.css
   Стилі для сторінки команди
   =========================== */

/* ===========================
   BREADCRUMBS
   =========================== */

.breadcrumbs {
    background-color: var(--light-gray);
    padding: 15px 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .separator {
    color: var(--text-light);
}

.breadcrumb-nav .current {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===========================
   TEAM HERO
   =========================== */

.team-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.team-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.8) 100%);
}

.team-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(145, 208, 114, 0.2);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge svg {
    stroke: var(--primary-color);
}

.team-hero-title {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.team-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ===========================
   DOCTORS SECTION
   =========================== */

.doctors-section {
    padding: 40px 0 80px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: rgba(145, 208, 114, 0.6);
}

.section-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header-center .section-title {
    margin-bottom: 15px;
}

.section-header-center .section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin: 0;
}

/* ===========================
   DOCTORS GRID
   =========================== */

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.doctor-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.doctor-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ===========================
   DOCTOR IMAGE
   =========================== */

.doctor-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--light-gray);
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.doctor-card:hover .doctor-image {
    transform: scale(1.1);
}

.doctor-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(44, 62, 80, 0.9);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-head {
    background: rgba(41, 128, 185, 0.9);
}

.badge-professor {
    background: rgba(142, 68, 173, 0.9);
}

.doctor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(145, 208, 114, 0.85), rgba(145, 208, 114, 0.4) 40%, transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

.view-profile {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.doctor-card:hover .view-profile {
    transform: translateY(0);
}

/* ===========================
   DOCTOR CONTENT
   =========================== */

.doctor-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    color: var(--secondary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doctor-position {
    color: #666;
    font-size: 0.938rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-description {
    color: var(--text-light);
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* ===========================
   SPECIALTIES TAGS
   =========================== */

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #2c3e50;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.doctor-card:hover .specialty-tag {
    background: #e0e0e0;
    color: #2c3e50;
}

/* ===========================
   ABOUT OUR TEAM
   =========================== */

.about-team {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title-center {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.team-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
}

.team-feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.team-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(145, 208, 114, 0.3);
}

.feature-icon-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(145, 208, 114, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon-corner svg {
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

.team-feature-card:hover .feature-icon-corner {
    background: var(--primary-color);
    transform: rotate(5deg);
}

.team-feature-card:hover .feature-icon-corner svg {
    stroke: white;
}

.team-feature-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
    padding-right: 60px;
}

.team-feature-card:hover h3 {
    color: #1a252f;
}

.team-feature-card p {
    font-size: 0.938rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Додаткові декоративні елементи */
.team-features-grid::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.03) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.about-team {
    position: relative;
}

/* ===========================
   CTA SECTION
   =========================== */

.team-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7bc05a 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

.cta-buttons .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-buttons .btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .team-hero {
        min-height: 350px;
        margin-bottom: 60px;
    }

    .team-hero-content {
        padding: 50px 0;
    }

    .team-hero-title {
        font-size: 2rem;
    }

    .team-hero-subtitle {
        font-size: 1rem;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctor-image-wrapper {
        height: 350px;
    }

    .about-team {
        padding: 60px 0;
    }

    .section-title-center {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .team-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-feature-card {
        padding: 30px 25px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .team-hero-title {
        font-size: 1.75rem;
    }

    .doctor-image-wrapper {
        height: 300px;
    }

    .doctor-content {
        padding: 25px 20px;
    }

    .section-title-center {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 0.938rem;
    }

    .team-feature-card {
        padding: 25px 20px;
    }

    .feature-icon-corner {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }

    .feature-icon-corner svg {
        width: 20px;
        height: 20px;
    }

    .team-feature-card h3 {
        font-size: 1.125rem;
        padding-right: 50px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}
