/* ==========================================================================
   USAFI Card Components (Services, Team, Galleries)
   ========================================================================== */

/* Universal Grid Layout */
.lux-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* ==========================================================================
   1. The Base Card Foundation
   ========================================================================== */
.usafi-service-card,
.lux-team-card,
.lux-album-card {
    background: var(--lux-surface);
    border: 1px solid var(--lux-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block; /* Ensures anchor tags behave like block containers */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Unified Premium Hover State */
.usafi-service-card:hover,
.lux-team-card:hover,
.lux-album-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: rgba(0, 212, 255, 0.3); /* USAFI Accent Glow */
}

/* ==========================================================================
   2. Service Cards (Plugin Overrides)
   ========================================================================== */
.usafi-service-image-wrap {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid var(--lux-border);
}

.usafi-service-content {
    padding: 25px;
}

.usafi-service-title {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 400;
}

.usafi-service-subtitle {
    color: var(--lux-accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
}

.usafi-service-excerpt {
    color: var(--lux-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   3. Team / Staff Cards
   ========================================================================== */
.lux-team-img {
    height: 350px;
    width: 100%;
    overflow: hidden;
    background: #0f151e;
    position: relative;
}

/* Grayscale to Color Effect */
.lux-team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.lux-team-card:hover .lux-team-img img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.lux-team-info {
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--lux-border);
}

.lux-team-info h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.lux-team-info .lux-team-role {
    color: var(--lux-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
}