/* Recently Added Members Carousel Styling */
.members-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.members-section .section-header h2 {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.members-section .section-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.member-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.member-avatar {
    padding: 25px 15px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    text-align: center;
}

.member-avatar img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    left: 27%;
}

.member-card:hover .member-avatar img {
    transform: scale(1.1);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 15px 0 10px;
    transition: color 0.3s ease;
}

.member-card:hover .member-name {
    color: #4CAF50;
}

.member-profession {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

.member-email {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
    word-break: break-all;
}

.member-email i {
    margin-right: 5px;
    color: #4CAF50;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    margin: 8px auto;
    display: inline-block;
    font-weight: 600;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

/* Owl Carousel Controls */
.members-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.members-carousel .owl-nav button {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(76, 175, 80, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.members-carousel .owl-nav button:hover {
    background: rgba(76, 175, 80, 1);
    transform: translateY(-50%) scale(1.1);
}

.members-carousel .owl-prev {
    left: -25px;
}

.members-carousel .owl-next {
    right: -25px;
}

.members-carousel .owl-prev span,
.members-carousel .owl-next span {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .members-carousel .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .members-carousel .owl-prev {
        left: 0;
    }

    .members-carousel .owl-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .members-section {
        padding: 30px 0;
    }

    .members-section .section-header h2 {
        font-size: 2rem;
    }

    .member-avatar img,
    .avatar-placeholder {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        font-size: 30px;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-profession,
    .member-email {
        font-size: 0.8rem;
    }

    .members-carousel .owl-nav button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .member-card {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .members-section .section-header h2 {
        font-size: 1.5rem;
    }

    .members-section .section-header p {
        font-size: 0.9rem;
    }

    .member-avatar img,
    .avatar-placeholder {
        width: 70px;
        height: 70px;
        font-size: 25px;
    }

    .member-name {
        font-size: 0.95rem;
        margin: 10px 0 5px;
    }

    .member-card {
        border-radius: 8px;
    }

    .members-carousel .owl-nav {
        display: none;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-card {
    animation: slideIn 0.5s ease-out forwards;
}

.member-card:nth-child(1) {
    animation-delay: 0.1s;
}

.member-card:nth-child(2) {
    animation-delay: 0.2s;
}

.member-card:nth-child(3) {
    animation-delay: 0.3s;
}

.member-card:nth-child(4) {
    animation-delay: 0.4s;
}
