/* Team Page Styles */
.iw-team-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe4 100%);
    position: relative;
    overflow-x: hidden;
}

/* Hero Section */
.iw-team-hero {
    background: linear-gradient(135deg, #234e52 0%, #1a3a3d 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.iw-team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23ffffff10"><path d="M30,30 Q50,10 70,30 T90,30 T70,70 T30,70 T10,30 T30,30 Z"/></svg>') repeat;
    background-size: 200px;
}

.iw-team-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.iw-ayat-container {
    margin-bottom: 40px;
}

.iw-ayat-arabic {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #d4a373;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.iw-ayat-translation {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 10px;
    color: #f8f5f0;
}

.iw-ayat-reference {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.1rem;
    color: #a3be8c;
}

.iw-team-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #f8f5f0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Team Members Section */
.iw-team-members {
    padding: 100px 20px;
    position: relative;
}

.iw-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Connecting Path */
.iw-connecting-path {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    z-index: 1;
}

.iw-path-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #234e52, #d4a373, #234e52);
    border-radius: 10px;
}

.iw-path-dots {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 20px;
}

.iw-path-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #d4a373;
    border: 4px solid #234e52;
    border-radius: 50%;
    z-index: 2;
}

.iw-dot-1 { top: 25%; }
.iw-dot-2 { top: 50%; }
.iw-dot-3 { top: 75%; }

/* Team Cards Container */
.iw-team-cards-container {
    position: relative;
    z-index: 2;
}

/* Team Card Styles */
.iw-team-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(35, 78, 82, 0.15);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
}

.iw-team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(35, 78, 82, 0.2);
}

.iw-card-left {
    margin-right: auto;
    margin-left: 0;
    border-left: 5px solid #234e52;
}

.iw-card-right {
    margin-left: auto;
    margin-right: 0;
    border-right: 5px solid #7f1102;
}

/* Card Decorations */
.iw-card-decoration {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    z-index: 1;
}

.iw-dec-left {
    left: -30px;
    top: -30px;
    background: radial-gradient(circle, #234e52 0%, transparent 70%);
}

.iw-dec-right {
    right: -30px;
    top: -30px;
    background: radial-gradient(circle, #7f1102 0%, transparent 70%);
}

/* Card Content */
.iw-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.iw-team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.iw-team-card:hover .iw-team-image {
    transform: scale(1.05);
}

.iw-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(35, 78, 82, 0.3) 0%, transparent 100%);
}

.iw-team-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.iw-team-name {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #234e52;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.iw-team-position {
    font-family: 'Philosopher', sans-serif;
    font-size: 1.1rem;
    color: #7f1102;
    margin: 0 0 20px 0;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4a373;
}

.iw-team-bio {
    margin-bottom: 25px;
}

.iw-team-bio p {
    font-family: 'Philosopher', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #234e52;
    margin: 0;
}

.iw-team-contact {
    border-top: 1px solid rgba(35, 78, 82, 0.1);
    padding-top: 20px;
}

.iw-email-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    background: linear-gradient(135deg, #f8f5f0 0%, #f0ebe4 100%);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(212, 163, 115, 0.3);
}

.iw-email-icon {
    font-size: 1.2rem;
    color: #d4a373;
}

.iw-email-link {
    font-family: 'Philosopher', sans-serif;
    color: #234e52;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-weight: 600;
}

.iw-email-link:hover {
    color: #7f1102;
}

/* Desktop Layout */
@media (min-width: 1025px) {
    .iw-team-card {
        width: 45%;
    }
    
    .iw-card-left {
        transform: translateX(-20px);
    }
    
    .iw-card-right {
        transform: translateX(20px);
    }
    
    .iw-team-card:hover.iw-card-left {
        transform: translateX(-20px) translateY(-10px);
    }
    
    .iw-team-card:hover.iw-card-right {
        transform: translateX(20px) translateY(-10px);
    }
}

/* Tablet Layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .iw-team-card {
        width: 48%;
        max-width: 400px;
    }
    
    .iw-team-content {
        padding: 25px;
    }
    
    .iw-team-name {
        font-size: 1.3rem;
    }
    
    .iw-team-position {
        font-size: 1rem;
    }
    
    .iw-team-bio p {
        font-size: 0.95rem;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .iw-team-members {
        padding: 60px 15px;
    }
    
    .iw-connecting-path {
        display: none;
    }
    
    .iw-team-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 50px auto;
        border-left: 5px solid #234e52;
        border-right: 5px solid #234e52;
    }
    
    .iw-card-left,
    .iw-card-right {
        margin-left: auto;
        margin-right: auto;
    }
    
    .iw-team-hero {
        padding: 50px 15px;
    }
    
    .iw-ayat-arabic {
        font-size: 2rem;
    }
    
    .iw-ayat-translation {
        font-size: 1.2rem;
    }
    
    .iw-team-title {
        font-size: 2.2rem;
    }
    
    .iw-team-content {
        padding: 25px 20px;
    }
    
    .iw-team-name {
        font-size: 1.3rem;
    }
    
    .iw-team-position {
        font-size: 1rem;
    }
    
    .iw-team-bio p {
        font-size: 0.95rem;
    }
    
    .iw-email-container {
        padding: 10px 15px;
    }
    
    .iw-email-link {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .iw-team-members {
        padding: 40px 10px;
    }
    
    .iw-team-hero {
        padding: 40px 15px;
    }
    
    .iw-ayat-arabic {
        font-size: 1.6rem;
    }
    
    .iw-ayat-translation {
        font-size: 1.1rem;
    }
    
    .iw-team-title {
        font-size: 1.8rem;
    }
    
    .iw-team-card {
        margin-bottom: 40px;
        border-radius: 20px;
    }
    
    .iw-image-container {
        height: 180px;
    }
    
    .iw-team-content {
        padding: 20px 15px;
    }
    
    .iw-team-name {
        font-size: 1.2rem;
    }
    
    .iw-team-position {
        font-size: 0.95rem;
    }
    
    .iw-team-bio p {
        font-size: 0.9rem;
    }
}

/* Animation for cards */
.iw-team-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.iw-card-left {
    animation-delay: 0.1s;
}

.iw-card-right {
    animation-delay: 0.3s;
}

.iw-team-card:last-child {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure proper spacing */
.iw-team-card:last-child {
    margin-bottom: 0;
}