/* Goals Section Styles */
.goals {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.goals-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.goals-sub {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories (Tabs) */
.goals-categories {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    /* Prevent wrapping for horizontal scroll */
    overflow-x: auto;
    /* Allow scroll on mobile */
    gap: 0.5rem;
    margin-bottom: 3rem;

    /* Sticky Styles */
    position: sticky;
    top: 70px;
    /* Header height */
    z-index: 99;
    background: var(--bg-color);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);

    /* Hide scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.goals-categories::-webkit-scrollbar {
    display: none;
}

.goals-category-btn {
    flex: 0 0 auto;
    /* Don't shrink */
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    /* Match formats tab radius */
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.goals-category-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.goals-category-btn.active {
    background: #292c32;
    color: #fff;
    border-color: #292c32;
    font-weight: 600;
}

/* Content Area */
.goals-list {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    animation: fadeIn 0.5s ease-out;
}

.goals-list.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Column */
.goals-video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    box-shadow: 0 20px 40px var(--shadow-color);
    /* max-height: 600px; */
    margin: 0 auto;
    width: 100%;
    /* max-width: 350px; */
    /* Phone size */
}

.goals-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goals-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.goals-video:hover .goals-video-overlay {
    opacity: 0;
}

.goals-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 2;
}

.goals-video-play:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.goals-video-play svg {
    width: 24px;
    height: 24px;
}

.goals-video-play .pause-icon {
    display: none;
}

.goals-video.playing .play-icon {
    display: none;
}

.goals-video.playing .pause-icon {
    display: block;
}

.goals-video.playing .goals-video-play {
    opacity: 0;
}

.goals-video.playing:hover .goals-video-play {
    opacity: 1;
}

/* Cards Column */
.goals-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.goals-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goals-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.goals-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.goals-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .goals {
        padding: 4rem 0;
    }

    .goals-title {
        font-size: 2.5rem;
    }

    .goals-list {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .goals-video {
        max-width: 100%;
        /* aspect-ratio: 16/9; */
        /* Landscape on mobile? Or keep portrait? Let's try landscape or square-ish if it's a video player, but these look like vertical videos. Let's keep vertical but smaller max-width or just fit content. */
        /* max-width: 300px; */
    }
}