/* Team Page Styles */

/* Hero Carousel */
.team-hero-carousel {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    height: 600px;
}

.team-swiper {
    width: 100%;
    height: 100%;
}

.team-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.team-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 10;
}

.team-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.team-hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Swiper Custom Styles */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    transition: all 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--color-gold);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .team-hero-carousel {
        height: 400px;
    }
    .team-hero-content h1 {
        font-size: 2rem;
    }
}

/* Navigation Bar */
.team-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 100;
    transition: all 0.3s ease;
}

.team-nav-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.team-nav-list {
    display: flex;
    list-style: none;
    gap: 4rem;
    height: 60px;
    align-items: center;
}

.team-nav-link {
    color: var(--color-neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.team-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-gold);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

.team-nav-link:hover,
.team-nav-link.active {
    color: var(--color-gold-dark);
    font-weight: 600;
}

.team-nav-link:hover::after,
.team-nav-link.active::after {
    width: 100%;
}

/* Module Section */
.module-section {
    padding: var(--section-padding);
    background-color: var(--color-white);
}

.module-section:nth-child(even) {
    background-color: var(--color-neutral-100);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.item-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-neutral-100);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-gold-light);
    z-index: 10;
}

.item-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-card:hover .item-image {
    transform: scale(1.1);
}

/* Overlay Content */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover .item-overlay {
    opacity: 1;
}

/* Static Info (Default) */
.item-info-static {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    transition: opacity 0.3s ease;
}

.item-card:hover .item-info-static {
    opacity: 0;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.item-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.item-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-link {
    display: inline-block;
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.item-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .team-hero {
        padding: 4rem 0;
    }
    .team-hero h1 {
        font-size: 2rem;
    }
}

/* Equipment Module Single Item Layout */
.items-grid.single-featured-item {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
    margin-top: 3rem;
}

.single-featured-item .item-card {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .single-featured-item .item-card {
        max-width: 100%;
        aspect-ratio: 4/3;
    }
}

/* Equipment Carousel specific styles */
.equipment-swiper {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 50px;
    position: relative;
    box-sizing: border-box;
}

.equipment-slide-content {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: #fff;
}

.equipment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.equipment-slide-content:hover .equipment-overlay {
    opacity: 1;
    transform: translateY(0);
}

.equipment-slide-content:hover .equipment-image {
    transform: scale(1.05);
}
