/**
 * Teams Page Styles
 * Dedicated CSS for team member displays with unique class names
 * All classes prefixed with 'cosmick-team-' to avoid conflicts
 *
 * @package Cosmick_Media_Project_Theme
 */

/* ========================================
   Base Team Page Styles
========================================== */

.cosmick-team-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.cosmick-team-hero {
    background: linear-gradient(135deg, #2d1839 0%, #ff675b 100%);
    color: white;
    padding: 60px 0 60px;
    position: relative;
    overflow: hidden;
}

.cosmick-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"><defs><pattern id="teamDots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23teamDots)"/></svg>');
    opacity: 0.4;
}

.cosmick-team-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cosmick-team-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.cosmick-team-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* ========================================
   Section Headers
========================================== */

.cosmick-team-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cosmick-team-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 15px;
    position: relative;
}

.cosmick-team-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ff675b;
    border-radius: 2px;
}

.cosmick-team-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Featured Team Members
========================================== */

.cosmick-team-featured-section {
    padding: 80px 0;
    background: white;
}

.cosmick-team-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.cosmick-team-featured-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cosmick-team-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff675b, #fdc785);
}

.cosmick-team-featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.cosmick-team-member-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.cosmick-team-member-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f8f9fa;
    margin-right: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cosmick-team-member-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cosmick-team-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 2rem;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cosmick-team-photo-placeholder:hover {
    transform: scale(1.05);
    background: #dee2e6;
}

.cosmick-team-member-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 5px;
}

.cosmick-team-member-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cosmick-team-member-info h3 a:hover {
    color: #ff675b;
}

.cosmick-team-member-title {
    font-size: 1rem;
    color: #ff675b;
    font-weight: 600;
    margin-bottom: 5px;
}

.cosmick-team-member-department {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cosmick-team-member-quote {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    border-left: 4px solid #ff675b;
    position: relative;
}

.cosmick-team-member-quote i {
    color: #ff675b;
    font-size: 1.2rem;
    margin-right: 8px;
}

.cosmick-team-member-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cosmick-team-skills-section {
    margin-bottom: 30px;
}

.cosmick-team-skills-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d1839;
    margin-bottom: 12px;
    display: block;
}

.cosmick-team-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cosmick-team-skill-badge {
    background: #e0e0e0;
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 32px;
    border: 1px solid #d0d0d0;
}

.cosmick-team-skill-badge::before {
    content: '✓';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff675b;
    font-weight: bold;
    font-size: 0.9rem;
}

.cosmick-team-member-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.cosmick-team-view-profile-btn {
    background: #ff675b;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 103, 91, 0.3);
}

.cosmick-team-view-profile-btn:hover {
    background: #e55a4e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.4);
    text-decoration: none;
}

.cosmick-team-social-links {
    display: none;
}

.cosmick-team-social-link {
    display: none;
}

/* ========================================
   Department Team Members
========================================== */

.cosmick-team-department-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.cosmick-team-department-section:nth-child(even) {
    background: white;
}

.cosmick-team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cosmick-team-member-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
}

.cosmick-team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: #ff675b;
}

.cosmick-team-member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 4px solid #f8f9fa;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cosmick-team-member-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cosmick-team-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cosmick-team-avatar-placeholder:hover {
    transform: scale(1.05);
    background: #dee2e6;
}

.cosmick-team-member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
}

.cosmick-team-member-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #ff675b;
    border-radius: 1px;
}

.cosmick-team-member-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cosmick-team-member-name a:hover {
    color: #ff675b;
}

.cosmick-team-member-position {
    color: #ff675b;
    font-weight: 600;
    margin-bottom: 15px;
}

.cosmick-team-member-location {
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.cosmick-team-member-location i {
    margin-right: 5px;
}

.cosmick-team-member-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cosmick-team-member-skills {
    margin-bottom: 25px;
}

.cosmick-team-skill-tag {
    background: #e0e0e0;
    color: #333;
    padding: 6px 12px 6px 24px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
    display: inline-block;
    position: relative;
    border: 1px solid #d0d0d0;
}

.cosmick-team-skill-tag::before {
    content: '✓';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff675b;
    font-weight: bold;
    font-size: 0.8rem;
}

.cosmick-team-skill-tag.more {
    background: #ff675b;
    color: white;
    padding: 4px 10px;
}

.cosmick-team-skill-tag.more::before {
    display: none;
}

.cosmick-team-member-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.cosmick-team-view-profile-small {
    background: #ff675b;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cosmick-team-view-profile-small:hover {
    background: #e55a4e;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.cosmick-team-member-social {
    display: none;
}

.cosmick-team-social-link-small {
    display: none;
}

/* ========================================
   Call to Action Section
========================================== */

.cosmick-team-cta-section {
    background: linear-gradient(135deg, #2d1839 0%, #ff675b 100%);
    color: white;
    padding: 80px 0;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cosmick-team-cta-section::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"><defs><pattern id="ctaDots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23ctaDots)"/></svg>');
    opacity: 0.3;
}

.cosmick-team-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cosmick-team-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.cosmick-team-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cosmick-team-cta-btn {
    background: white;
    color: #2d1839;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cosmick-team-cta-btn:hover {
    background: #f8f9fa;
    color: #2d1839;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* ========================================
   Empty State
========================================== */

.cosmick-team-empty-section {
    padding: 100px 0;
    text-align: center;
    background: white;
}

.cosmick-team-empty-content {
    max-width: 500px;
    margin: 0 auto;
}

.cosmick-team-empty-content i {
    font-size: 4rem;
    color: #e9ecef;
    margin-bottom: 30px;
    display: block;
}

.cosmick-team-empty-content h2 {
    font-size: 2rem;
    color: #2d1839;
    margin-bottom: 15px;
}

.cosmick-team-empty-content p {
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   Single Team Member Page
========================================== */

.cosmick-single-team {
    margin-bottom: 200px;
}

/* Professional Hero Section */
.cosmick-single-team .professional-hero {
    background: linear-gradient(135deg, #262626 0%, #525252 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.cosmick-single-team .hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 199, 133, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 103, 91, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
    background-position: 0 0, 25px 25px, 15px 35px;
    opacity: 0.6;
    z-index: 1;
}

.cosmick-single-team .professional-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 24, 57, 0.2);
    z-index: 2;
}

.cosmick-single-team .hero-content {
    position: relative;
    z-index: 3;
}

.cosmick-single-team .hero-headshot {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 4px solid rgba(255,255,255,0.2);
}

.cosmick-single-team .hero-headshot-placeholder {
    width: 100%;
    max-width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.5);
    border: 4px solid rgba(255,255,255,0.2);
}

.cosmick-single-team-status-badges {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cosmick-single-team-title-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.cosmick-single-team-department-badge {
    background: rgba(253, 199, 133, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 199, 133, 0.4);
}

.cosmick-single-team .member-name {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cosmick-single-team .member-title {
    font-size: 1.5rem;
    color: white;
    font-weight: 400;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cosmick-single-team .member-hero-quote {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 4px solid #fdc785;
    backdrop-filter: blur(10px);
}

.cosmick-single-team .member-hero-quote p {
    color: white;
    margin: 0;
}

.cosmick-single-team .member-hero-quote i {
    font-size: 1.5rem;
    color: #fdc785;
    margin-right: 10px;
}

.cosmick-single-team .member-hero-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
}

/* Enhanced Contact Buttons */
.cosmick-single-team .member-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.cosmick-single-team .contact-btn {
    background: white;
    color: #2d1839;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.cosmick-single-team .contact-btn:hover {
    background: #fdc785;
    color: #2d1839;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
    border-color: white;
    text-decoration: none;
}

.cosmick-single-team .contact-btn i {
    font-size: 1.1rem;
}

.cosmick-single-team .member-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cosmick-single-team .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.cosmick-single-team .stat-item i {
    color: #fdc785;
}

/* Main Content Section */
.cosmick-single-team .team-member-content {
    padding-top: 0;
    margin-top: 0;
}

/* Biography Section */
.cosmick-single-team .biography-section {
    margin-top: 50px;
}

/* Left Sidebar Layout */
.cosmick-single-team .team-member-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: fit-content;
    padding: 0;
    margin: 0;
}

/* Contact Form */
.cosmick-single-team-contact-form {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    border: 1px solid #e5e5e5;
    order: 1;
    margin-bottom: 15px;
}

/* Sidebar Sections Consistent Styling */
.cosmick-single-team .sidebar-section {
    background: white;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    border: 1px solid #e5e5e5;
    margin-bottom: 15px;
}

.cosmick-single-team .specialties-section {
    order: 2;
}

.cosmick-single-team .certifications-section {
    order: 3;
}

.cosmick-single-team .social-section {
    order: 4;
}

.cosmick-single-team .alt-photo-section {
    order: 5;
}

/* Certification Styling */
.cosmick-single-team .certification-item {
    margin-bottom: 15px;
}

/* Carousel Styles */
.projects-carousel-container,
.gallery-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.projects-carousel {
    display: flex;
    overflow: hidden;
    gap: 20px;
    padding: 20px 0;
    position: relative;
    min-height: 400px;
}

.gallery-carousel {
    display: flex;
    overflow: hidden;
    gap: 20px;
    padding: 20px 0;
    position: relative;
    min-height: 450px;
}

.projects-carousel .project-card,
.gallery-carousel .gallery-item {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 20px;
    left: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.projects-carousel .project-card.active,
.gallery-carousel .gallery-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: auto;
    left: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff675b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 103, 91, 0.3);
}

.carousel-btn:hover {
    background: #e55a4e;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.4);
}

.carousel-btn-left {
    left: 10px;
}

.carousel-btn-right {
    right: 10px;
}

.carousel-btn i {
    font-size: 1.2rem;
}

/* Projects Carousel */
.projects-carousel .project-card {
    width: 100%;
    max-width: 500px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.projects-carousel .project-card:hover {
    transform: translateY(-5px);
}

.projects-carousel .project-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f8f9fa;
}

.projects-carousel .project-info {
    padding: 20px;
}

.projects-carousel .project-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.projects-carousel .project-title a {
    color: #2d1839;
    text-decoration: none;
}

.projects-carousel .project-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.projects-carousel .project-link {
    color: #ff675b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Gallery Grid */
.team-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.team-gallery-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-gallery-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-gallery-grid-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.team-gallery-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-gallery-grid-item:hover .team-gallery-grid-image {
    transform: scale(1.1);
}

/* Responsive Gallery Grid */
@media (max-width: 991px) {
    .team-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Lightbox */
.team-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.team-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.team-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}

.team-lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.team-lightbox-caption {
    color: white;
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: center;
    max-width: 800px;
}

.team-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.team-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.team-lightbox-prev,
.team-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 103, 91, 0.9);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 15px 20px;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.team-lightbox-prev:hover,
.team-lightbox-next:hover {
    background: #ff675b;
    transform: translateY(-50%) scale(1.1);
}

.team-lightbox-prev {
    left: 20px;
}

.team-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .team-lightbox-content {
        padding: 20px;
    }

    .team-lightbox-image {
        max-width: 95%;
        max-height: 80vh;
    }

    .team-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    .team-lightbox-prev,
    .team-lightbox-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .team-lightbox-prev {
        left: 10px;
    }

    .team-lightbox-next {
        right: 10px;
    }

    .team-lightbox-caption {
        font-size: 0.95rem;
        margin-top: 15px;
    }
}

.cosmick-single-team-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cosmick-single-team-form-title i {
    color: #ff675b;
    font-size: 1.2rem;
}

.cosmick-single-team-form-wrapper {
    position: relative;
}

/* Gravity Forms Styling */
.cosmick-single-team-form-wrapper .gform_wrapper {
    max-width: 100%;
}

.cosmick-single-team-form-wrapper .gform_wrapper .gform_body {
    background: transparent;
}

.cosmick-single-team-form-wrapper .gform_wrapper .gfield {
    margin-bottom: 20px;
}

.cosmick-single-team-form-wrapper .gform_wrapper .gfield_label {
    font-weight: 600;
    color: #2d1839;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.cosmick-single-team-form-wrapper .gform_wrapper input[type="text"],
.cosmick-single-team-form-wrapper .gform_wrapper input[type="email"],
.cosmick-single-team-form-wrapper .gform_wrapper input[type="tel"],
.cosmick-single-team-form-wrapper .gform_wrapper textarea,
.cosmick-single-team-form-wrapper .gform_wrapper select,
.cosmick-single-team-form-wrapper .gform_wrapper .gfield_select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc !important;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.cosmick-single-team-form-wrapper .gform_wrapper input:focus,
.cosmick-single-team-form-wrapper .gform_wrapper textarea:focus,
.cosmick-single-team-form-wrapper .gform_wrapper select:focus {
    border-color: #ff675b !important;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 103, 91, 0.1);
    outline: none;
}

.cosmick-single-team-form-wrapper .gform_wrapper .gform_footer {
    margin-top: 25px;
    padding: 0;
}

.cosmick-single-team-form-wrapper .gform_wrapper .gform_footer input[type="submit"] {
    background: #ff675b;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 103, 91, 0.3);
    width: 100%;
}

.cosmick-single-team-form-wrapper .gform_wrapper .gform_footer input[type="submit"]:hover {
    background: #e55a4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.4);
}

/* Skills and Specialties Updates */
.cosmick-single-team .specialties-section .specialty-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #ff675b;
    transition: all 0.3s ease;
}

.cosmick-single-team .specialties-section .specialty-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.cosmick-single-team .specialty-name {
    font-weight: 600;
    color: #2d1839;
    font-size: 1rem;
}

.cosmick-single-team .specialty-level {
    background: #ff675b;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
}

.cosmick-single-team .specialty-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.cosmick-single-team .specialty-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff675b, #fdc785);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cosmick-single-team .specialty-progress.level-beginner { width: 25%; }
.cosmick-single-team .specialty-progress.level-intermediate { width: 50%; }
.cosmick-single-team .specialty-progress.level-advanced { width: 75%; }
.cosmick-single-team .specialty-progress.level-expert { width: 100%; }

/* Featured Projects Grid */
.cosmick-single-team .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.cosmick-single-team .project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.cosmick-single-team .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff675b;
}

.cosmick-single-team .project-image {
    position: relative;
    overflow: hidden;
    height: 150px;
}

.cosmick-single-team .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cosmick-single-team .project-card:hover .project-image img {
    transform: scale(1.05);
}

.cosmick-single-team .project-info {
    padding: 20px;
}

.cosmick-single-team .project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cosmick-single-team .project-title a {
    color: #2d1839;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cosmick-single-team .project-title a:hover {
    color: #ff675b;
}

.cosmick-single-team .project-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cosmick-single-team .project-link {
    color: #ff675b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cosmick-single-team .project-link:hover {
    color: #e55a4e;
    text-decoration: none;
    transform: translateX(3px);
}

/* Gallery Updates */
.cosmick-single-team .member-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.cosmick-single-team .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.cosmick-single-team .gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cosmick-single-team .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cosmick-single-team .gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* ========================================
   Responsive Design
========================================== */

@media (max-width: 768px) {
    .cosmick-team-hero h1 {
        font-size: 2.5rem;
    }

    .cosmick-team-hero p {
        font-size: 1.1rem;
    }

    .cosmick-team-section-title {
        font-size: 2rem;
    }

    .cosmick-team-featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cosmick-team-featured-card {
        padding: 30px 25px;
    }

    .cosmick-team-member-header {
        flex-direction: column;
        text-align: center;
    }

    .cosmick-team-member-photo,
    .cosmick-team-photo-placeholder {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .cosmick-team-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .cosmick-team-member-actions,
    .cosmick-team-member-footer {
        flex-direction: column;
        gap: 15px;
    }

    .cosmick-team-cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .cosmick-team-hero {
        padding: 60px 0 40px;
    }

    .cosmick-team-hero h1 {
        font-size: 2rem;
    }

    .cosmick-team-members-grid {
        grid-template-columns: 1fr;
    }

    .cosmick-team-featured-card {
        padding: 25px 20px;
    }

    .cosmick-team-member-card {
        padding: 25px 20px;
    }

    .cosmick-team-skills-grid {
        justify-content: center;
    }
}