
.social-media-slider-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* Slider Container */
.social-media-slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    cursor: grab;
    padding: 40px 0;
    margin-top: -20px;
}

.social-media-slider-viewport:active {
    cursor: grabbing;
}

.social-media-slider-track {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
    padding-left: 20px;
    align-items: center;
}

/* Social Media Card */
.social-media-card {
    width: 280px;
    height: 400px; /* Fixed height for consistency */
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden; /* Clip image corners */
}

.social-media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

.social-media-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* New Image Styles */
.social-media-img-container {
    width: 100%;
    height: 75%; /* 75% of card height */
    position: relative;
}

.social-media-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Gradient Overlay for Fade Effect */
.social-media-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Fade starts from bottom 40% of image */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

/* Info Container */
.social-media-info-container {
    height: 25%;
    padding: 0 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    background: #fff;
    position: relative;
    z-index: 1;
}

.social-media-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.social-media-profession {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.social-icon {
    font-size: 18px;
    color: #fff;
    background-color: #d1d1d1;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Robust Circle Fixes */
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;

    border-radius: 50%;
    text-decoration: none;
    box-sizing: border-box;

    /* Prevent dragging issues */
    user-select: none;
    -webkit-user-drag: none;
}

.social-icon i {
    pointer-events: none; /* Prevent icon from capturing clicks/drags */
}

/* Hover Effects Logic */

/* Only fade out others if we are hovering the container AND a specific icon */
.social-media-icons:has(.social-icon:hover) .social-icon:not(:hover) {
    transform: scale(0.9);
    opacity: 0.7;
}

.social-icon:hover {
    transform: scale(1.3);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-icon.instagram:hover { background: #E1306C; }
.social-icon.facebook:hover { background: #4267B2; }
.social-icon.tiktok:hover { background: #000000; }
.social-icon.youtube:hover { background: #FF0000; }

/* Член на екипа без качена снимка — инициали вместо счупена картинка */
.social-media-card-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #E8EDE6 0%, #D3DCCF 100%);
    color: #4A5A4C;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: .04em;
}
