/* --- Gym Career Hub Specific Styles --- */

/* Hero Background System */
.gym-career-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gym-career-hero-bg .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2) brightness(0.3);
}

.gym-career-hero-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(2, 6, 23, 0.4) 0%, 
        rgba(2, 6, 23, 0.8) 70%, 
        rgba(2, 6, 23, 1) 100%
    );
}

/* Tightened Spacing */
main section {
    padding-top: clamp(2.5rem, 4vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

/* Path Cards Refinement */
.path-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 2.25rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    min-height: 280px;
    border-top-width: 4px;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.path-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
    background: rgba(15, 23, 42, 0.6);
}

/* Selected State for Deep Linking */
.path-card.is-selected {
    border-color: var(--combat-indigo);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 30px var(--combat-indigo-glow);
    transform: translateY(-4px);
}

.path-pill {
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #64748b;
    margin-bottom: 1.25rem;
    display: block;
}

.path-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.path-card p {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.5;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 2rem;
}

.open-link {
    margin-top: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--combat-indigo);
    transition: all 0.3s ease;
}

.path-card:hover .open-link {
    color: #fff;
    padding-left: 0.5rem;
}

/* Path Accents */
.path-indigo { border-top-color: #6366f1; }
.path-emerald { border-top-color: #10b981; }
.path-amber { border-top-color: #f59e0b; }
.path-purple { border-top-color: #a855f7; }
.path-blue { border-top-color: #3b82f6; }
.path-red { border-top-color: #ef4444; }
.path-teal { border-top-color: #14b8a6; }
.path-gold { border-top-color: #fbbf24; }

/* Framework Pillars Enhanced */
.framework-pillar {
    position: relative;
    padding: 2px; /* For the gradient border effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 2rem;
    height: 100%;
}

.pillar-inner {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: calc(2rem - 2px);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
    transition: background 0.3s ease;
}

.framework-pillar:hover .pillar-inner {
    background: rgba(15, 23, 42, 0.4);
}

.framework-pillar .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 950;
    color: rgba(99, 102, 241, 0.15);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.framework-pillar h4 {
    font-size: 1.35rem;
    font-weight: 950;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.framework-pillar p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.6;
    font-style: italic;
}

/* FAQ Accordion Polish */
.accordion-item {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 0, 0, 0.15);
}

.accordion-content p {
    padding: 0 2rem 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.accordion-item.is-open {
    border-color: var(--combat-indigo);
    background: rgba(15, 23, 42, 0.6);
}

.accordion-item.is-open .accordion-content {
    max-height: 500px; /* Increased to accommodate longer content */
}

.accordion-item.is-open .accordion-trigger i {
    transform: rotate(45deg);
    color: var(--combat-indigo);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
    .path-card { min-height: 240px; padding: 1.75rem; }
}

@media (max-width: 768px) {
    .path-card { min-height: auto; border-radius: 1.5rem; }
    .pillar-inner { padding: 2rem; }
    .accordion-trigger { padding: 1.25rem 1.5rem; font-size: 0.8rem; }
    .accordion-content p { padding: 0 1.5rem 1.25rem; }
}