/*--------------------------------------------------------------
# Agent Gallery — Horizontal Expanding Accordion (Refined)
--------------------------------------------------------------*/

.agent-showcase-section {
    padding: 120px 0;
    background: var(--ink);
    overflow: hidden;
    min-height: 800px; /* Ensure section has height */
}

.agent-showcase-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.agent-showcase-header {
    text-align: center;
    margin-bottom: 80px;
}

.agent-showcase-heading {
    font-family: var(--font-primary);
    font-size: clamp(34px, 4.5vw, 48px);
    font-weight: 300;
    color: #111;
    margin: 24px 0;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.agent-showcase-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* ── Accordion Layout ── */
.ag-accordion {
    display: flex;
    width: 100%;
    height: 550px;
    min-height: 500px;
    gap: 12px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.ag-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    border-radius: 16px !important;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    z-index: 1;
}

/* Expanded State */
.ag-panel.active {
    flex: 4; /* Even more expansion for content */
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
}

/* Background Visuals */
.ag-panel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    z-index: 1;
    opacity: 1; /* Full original image opacity */
}

.ag-panel:hover .ag-panel-bg,
.ag-panel.active .ag-panel-bg {
    transform: scale(1.1);
    opacity: 1;
}

.ag-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(10,10,12,0.3) 0%, 
        rgba(10,10,12,0.6) 40%, 
        rgba(10,10,12,0.95) 100%
    );
    z-index: 2;
}

/* ── Content Area ── */
.ag-panel-content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* Label (when collapsed) */
.ag-panel-vertical-title {
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
}

.ag-panel.active .ag-panel-vertical-title {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.ag-panel-v-label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

/* Main Content (when expanded) */
.ag-panel-main {
    opacity: 0;
    transform: translateY(20px);
    margin-top: auto;
    max-width: 600px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ag-panel.active .ag-panel-main {
    opacity: 1;
    transform: translateY(0);
}

/* Icon wrap removed */

.ag-panel-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}

.ag-panel-desc {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: 30px;
}

.ag-panel-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.ag-agent-pill {
    padding: 8px 18px;
    background: rgba(255, 61, 138, 0.08);
    border: 1px solid rgba(255, 61, 138, 0.2);
    border-radius: 16px !important;
    color: var(--pink);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.3s ease;
}

.ag-agent-pill:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #000000;
}

.ag-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.ag-panel-link::after {
    content: '→';
    transition: transform 0.3s ease;
    display: inline-block;
}

.ag-panel-link:hover {
    color: var(--pink);
}

.ag-panel-link:hover::after {
    transform: translateX(5px);
}

/* Footer */
.agent-showcase-footer {
    text-align: center;
}

.agent-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-cream-dark);
    text-decoration: none;
    padding: 18px 45px;
    background: transparent;
    border: 1px solid var(--color-border-cream-dark);
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-showcase-cta:hover {
    background: var(--pink) !important;
    color: #000000 !important;
    border-color: var(--pink) !important;
    box-shadow: 0 8px 24px rgba(255, 61, 138, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
    .agent-showcase-section { padding: 80px 0; }
    .agent-showcase-container { padding: 0 20px; }
    .agent-showcase-header { margin-bottom: 48px; }
    .ag-accordion {
        height: auto;
        flex-direction: column;
    }
    .ag-panel {
        height: 140px;
        flex: none !important;
    }
    .ag-panel.active {
        height: auto;
        min-height: 420px;
    }
    .ag-panel-vertical-title {
        position: static;
        transform: none !important;
        padding: 30px 24px;
        flex-direction: row;
        justify-content: flex-start;
        opacity: 1 !important;
    }
    .ag-panel-num {
        transform: none !important;
    }
    .ag-panel.active .ag-panel-vertical-title {
        display: none;
    }
    .ag-panel-content {
        padding: 24px;
    }
    .ag-panel-title {
        font-size: 26px;
    }
    .ag-panel-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .ag-panel-agents {
        gap: 8px;
        margin-bottom: 24px;
    }
    .ag-agent-pill {
        padding: 6px 14px;
        font-size: 12px;
    }
}
