/**
 * [BLOCK STYLE: EXPERTISE SLIDER]
 * LOCATION: logic/blocks/expertisesliderblock/style.css
 */

.block-expertise {
    background-color: var(--c-navy-900, #0b1124);
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

/* --- HEADER --- */
.block-expertise__header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.block-expertise__headline {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #fff;
    font-weight: 700;
    display: inline-block;
    border-bottom: 1px solid var(--c-accent, #c5a059);
    padding-bottom: 0.5rem;
}

/* --- TRACK (SCROLL CONTAINER) --- */
.block-expertise__track-wrapper {
    width: 100%;
    /* No padding on wrapper to allow cards to touch edges on mobile */
}

.block-expertise__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 1.5rem 2rem 1.5rem; /* Bottom padding for scrollbar/shadow */
    scrollbar-width: none;
    
    /* Drag Physics */
    cursor: grab;
}
.block-expertise__track::-webkit-scrollbar { display: none; }

.block-expertise__track.active {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

@media (min-width: 900px) {
    .block-expertise__track {
        justify-content: center; /* Center cards on desktop if few */
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* --- THE CARD --- */
.exp-card {
    position: relative;
    flex: 0 0 85vw; /* Mobile: Show 85% of card to encourage scroll */
    max-width: 350px;
    height: 500px; /* Tall portrait aspect ratio */
    
    border-radius: 4px;
    overflow: hidden;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    
    background-color: #1a202c; /* Fallback color */
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.05);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text at bottom */
    
    transition: transform 0.3s ease;
    user-select: none;
}

/* Card with Image */
.exp-card--has-bg .exp-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient: Clear at top -> Dark at bottom for text readability */
    background: linear-gradient(to bottom, rgba(11,17,36,0) 0%, rgba(11,17,36,0.6) 50%, rgba(11,17,36,0.95) 100%);
    z-index: 1;
}

/* Solid Card (Geometric/Creds) */
.exp-card--solid {
    background: radial-gradient(circle at top right, #1f2937, #0f172a);
    border: 1px solid var(--c-accent, #c5a059);
}

.exp-card--solid::before {
    /* Geometric decoration */
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transform: rotate(45deg);
}

.exp-card__content {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 6rem 2rem;
}

/* --- TYPOGRAPHY --- */
.exp-card__title {
    color: var(--c-accent, #c5a059);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.exp-card__body {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- LIST STYLES --- */
.exp-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exp-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.exp-card__list .check-icon {
    color: var(--c-accent);
    font-weight: bold;
}
.exp-card.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--c-accent, #c5a059);
}

/* --- BUTTON HINT (Replaces Tap Hint) --- */
.exp-card__tap-hint {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    
    /* Button Styling */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--c-accent, #c5a059);
    border-radius: 4px;
    backdrop-filter: blur(4px);
    
    /* Text */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    
    /* Animation State */
    opacity: 1; /* Always visible now */
    transform: translateY(0);
    transition: all 0.3s ease;
}

.exp-card__tap-hint svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

/* Hover Effect */
.exp-card:hover .exp-card__tap-hint {
    background: var(--c-accent, #c5a059);
    color: #000;
}

.exp-card:hover .exp-card__tap-hint svg {
    transform: translateX(4px);
}

/* --- ANIMATION --- */
.block-expertise.reveal-group .exp-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.block-expertise.reveal-active .exp-card {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered load */
.block-expertise.reveal-active .exp-card:nth-child(2) { transition-delay: 0.15s; }
.block-expertise.reveal-active .exp-card:nth-child(3) { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .exp-card__tap-hint {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Adjust padding for mobile to match the smaller button */
    .exp-card__content {
        padding: 1.5rem 1.5rem 4.5rem 1.5rem;
    }
}