/* --- Team Page Specific Styles --- */

/* --- Hero Section --- */
.team-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 4rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent);
}

.team-hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: #ccc;
}

/* --- General Section Styling --- */
.team-section {
    padding: 4rem 0; /* Changed padding for full-width carousel */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
    padding: 0 5%; /* Add padding back for titles */
}

/* --- Team Grid Layout --- */
.team-grid {
    display: grid;
    gap: 2rem;
    padding: 0 5%; /* Add padding back for grids */
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.editor-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --- Profile Card Styling --- */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
}

.profile-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.profile-card .title {
    color: #ccc;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.profile-card.small img {
    width: 120px;
    height: 120px;
}

/* --- Social Links Styling --- */
.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}


/* --- NEW: Creator Carousel Styling --- */
.creator-section {
    background: rgba(64, 4, 140, 0.1); /* Use secondary color accent */
    padding: 4rem 0;
}

.creator-carousel-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.creator-carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content; /* Critical for getting the total width */
    animation: scroll-horizontal 80s linear infinite;
}

/* Pause animation on hover for better UX */
.creator-carousel-container:hover .creator-carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Move by the width of the original set */
    }
}

.creator-card {
    width: 320px;   /* Fixed width for each card */
    flex-shrink: 0; /* Prevent cards from shrinking */
}

.creator-card img {
    width: 180px;
    height: 180px;
}


/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .team-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}