/**
 * Team Page Styles
 * Primary: #19868b | Secondary: #e1273d | Dark: #0d6b6f
 */

/* ===========================================
   Hero Section
   =========================================== */
.team-hero-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.team-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.team-hero-gradient {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 50%, #095456 100%);
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.team-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.team-hero-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.team-hero-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.team-hero-section .breadcrumb-item a:hover {
    color: #ffffff;
}

.team-hero-section .breadcrumb-item.active {
    color: #ffffff;
}

.team-hero-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.team-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.team-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   Section Labels & Titles
   =========================================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.section-label.justify-content-center {
    justify-content: center;
}

.label-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #19868b 0%, #0d6b6f 100%);
    border-radius: 2px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: #19868b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===========================================
   Board of Directors Section - Premium Theme with Main Colors
   =========================================== */
.board-section {
    background: linear-gradient(180deg, #0d5c5f 0%, #0a4a4d 50%, #073638 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.board-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e1273d 0%, #19868b 50%, #e1273d 100%);
}

.board-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(25, 134, 139, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(225, 39, 61, 0.08) 0%, transparent 35%);
    pointer-events: none;
}

/* Board Section Header */
.board-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.board-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(25, 134, 139, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.board-icon-wrapper i {
    font-size: 28px;
    color: #ffffff;
}

.board-label-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.board-section .section-title.board-title-special {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.board-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.board-card {
    perspective: 1000px;
    width: 300px;
    height: 480px;
}

.board-card-inner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(25, 134, 139, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.board-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(25, 134, 139, 0.6);
}

.board-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6b6f 0%, #073638 100%);
    flex-shrink: 0;
}

.board-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-card-inner:hover .board-image {
    transform: scale(1.05);
}

.board-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6b6f 0%, #073638 100%);
}

.board-image-placeholder i {
    font-size: 70px;
    color: rgba(255, 255, 255, 0.2);
}

/* Star Badge - Top Right with Red Background */
.board-star-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e1273d 0%, #c41f33 100%);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(225, 39, 61, 0.5);
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.board-star-badge i {
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .board-star-badge {
    right: auto;
    left: 15px;
}

/* Rank Label in Content - Above Job Title */
.board-rank-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(25, 134, 139, 0.15);
    color: #4dd4d9;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(25, 134, 139, 0.3);
}

.board-content {
    padding: 20px 16px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.board-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.board-card-inner:hover .board-name {
    color: #4dd4d9;
}

.board-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.4;
}

.board-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #19868b 0%, #e1273d 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-card-inner:hover .board-accent {
    transform: scaleX(1);
}

/* ===========================================
   Team Members Section
   =========================================== */
.team-section {
    background: #ffffff;
    padding: 80px 0;
}

.team-section.bg-light {
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.team-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(25, 134, 139, 0.08);
    cursor: default;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(25, 134, 139, 0.1);
    border-color: rgba(25, 134, 139, 0.15);
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

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

.team-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.team-image-placeholder i {
    font-size: 50px;
    color: #94a3b8;
}

.team-content {
    padding: 20px 16px;
    text-align: center;
}

.team-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.team-card:hover .team-name {
    color: #19868b;
}

.team-job-title {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.team-rank {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.1) 0%, rgba(13, 107, 111, 0.12) 100%);
    color: #19868b;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

/* ===========================================
   Empty State
   =========================================== */
.team-empty-section {
    background: #f8fafc;
}

.empty-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.1) 0%, rgba(13, 107, 111, 0.15) 100%);
    border-radius: 50%;
    margin: 0 auto;
}

.empty-icon i {
    font-size: 50px;
    color: #19868b;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.empty-text {
    font-size: 16px;
    color: #64748b;
}

/* ===========================================
   CTA Section
   =========================================== */
.team-cta-section {
    background: #ffffff;
}

.team-cta-wrapper {
    background: linear-gradient(135deg, #19868b 0%, #0d6b6f 100%);
    border-radius: 24px;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
}

.team-cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.team-cta-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #ffffff;
    color: #19868b;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    background: #ffffff;
    color: #0d6b6f;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* ===========================================
   Animation Classes
   =========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 1199px) {
    .board-grid {
        grid-template-columns: repeat(auto-fit, 280px);
        gap: 25px;
    }
    
    .board-card {
        width: 280px;
        height: 450px;
    }
    
    .board-image-wrapper {
        height: 300px;
        min-height: 300px;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .team-hero-title {
        font-size: 36px;
    }
    
    .team-hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .board-section {
        padding: 60px 0;
    }
    
    .board-grid {
        grid-template-columns: repeat(auto-fit, 260px);
        gap: 20px;
    }
    
    .board-card {
        width: 260px;
        height: 420px;
    }
    
    .board-image-wrapper {
        height: 270px;
        min-height: 270px;
    }
    
    .board-name {
        font-size: 16px;
    }
    
    .board-title {
        font-size: 13px;
    }
    
    .team-section {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .team-image-wrapper {
        height: 180px;
    }
    
    .team-cta-wrapper {
        padding: 40px 30px;
        text-align: center;
    }
    
    .text-lg-right {
        text-align: center !important;
    }
}

@media (max-width: 767px) {
    .team-hero-section {
        min-height: 320px;
    }
    
    .team-hero-content {
        padding: 60px 0;
    }
    
    .team-hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .board-section {
        padding: 50px 0;
    }
    
    .board-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .board-icon-wrapper i {
        font-size: 24px;
    }
    
    .board-grid {
        grid-template-columns: repeat(2, 170px);
        gap: 15px;
        justify-content: center;
    }
    
    .board-card {
        width: 170px;
        height: 310px;
    }
    
    .board-image-wrapper {
        height: 190px;
        min-height: 190px;
    }
    
    .board-name {
        font-size: 13px;
    }
    
    .board-title {
        font-size: 11px;
    }
    
    .board-content {
        padding: 12px 10px;
    }
    
    .board-rank-label {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 6px;
    }
    
    .board-star-badge {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .board-star-badge i {
        font-size: 14px;
    }
    
    [dir="rtl"] .board-star-badge {
        right: auto;
        left: 8px;
    }
    
    .team-section {
        padding: 50px 0;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .team-image-wrapper {
        height: 160px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .team-job-title {
        font-size: 12px;
    }
    
    .team-content {
        padding: 16px 12px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .btn-cta {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .board-grid {
        grid-template-columns: 280px;
        gap: 20px;
        justify-content: center;
    }
    
    .board-card {
        width: 280px;
        height: 420px;
    }
    
    .board-image-wrapper {
        height: 270px;
        min-height: 270px;
    }
    
    .board-star-badge {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
    
    .board-star-badge i {
        font-size: 18px;
    }
    
    [dir="rtl"] .board-star-badge {
        right: auto;
        left: 12px;
    }
    
    .board-content {
        padding: 16px 14px;
    }
    
    .board-name {
        font-size: 16px;
    }
    
    .board-title {
        font-size: 13px;
    }
    
    .board-rank-label {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 8px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .team-image-wrapper {
        height: 140px;
    }
}

/* ===========================================
   RTL Support
   =========================================== */
[dir="rtl"] .label-line {
    background: linear-gradient(-90deg, #19868b 0%, #0d6b6f 100%);
}

[dir="rtl"] .btn-cta:hover i {
    transform: translateX(-5px);
}

[dir="rtl"] .board-accent {
    transform-origin: right;
}

[dir="rtl"] .text-lg-right {
    text-align: left !important;
}

@media (max-width: 991px) {
    [dir="rtl"] .text-lg-right {
        text-align: center !important;
    }
}
