/* ===========================
   Degree Tracks Section - Refined UI
   =========================== */
.degree-tracks-section {
    width: 100%;
    padding: 96px 0 104px;
    background: var(--bg-secondary);
    position: relative;
}

.degree-tracks-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 50%, transparent);
}

.degree-tracks-container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0 0 14px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.degree-tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.degree-tracks-slider .splide__arrow {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    box-shadow: var(--shadow-md);
}

.degree-tracks-slider:hover .splide__arrow {
    opacity: 1;
}

.degree-tracks-slider .splide__arrow:hover {
    background: var(--surface-hover);
    border-color: var(--border-color-hover);
}

.degree-tracks-slider .splide__arrow--prev {
    left: -60px;
}

.degree-tracks-slider .splide__arrow--next {
    right: -60px;
}

/* Card Styles */
.degree-track-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.degree-track-card:hover {
    box-shadow: var(--shadow-lg);
}

.track-hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.track-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.degree-track-card:hover .track-media {
    transform: scale(1.03);
}

.track-placeholder {
    background: var(--brand-gradient-135);
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-placeholder-content {
    color: var(--text-inverse);
    opacity: 0.75;
}

.track-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.88) 100%);
    transition: background 0.4s ease;
}

.degree-track-card:hover .track-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.4) 45%,
            rgba(0, 0, 0, 0.92) 100%);
}

.track-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.72) 60%,
            rgba(0, 0, 0, 0.4) 100%);
}

.track-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 4px;
}

.track-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.track-badge svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.track-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.track-description {
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: -0.006em;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 16px;
}

.instructor-avatars {
    display: flex;
    align-items: center;
}

.instructor-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
    background: var(--brand-gradient);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    margin-left: -10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.instructor-avatar:first-child {
    margin-left: 0;
}

.instructor-avatar:hover {
    transform: translateY(-2px);
    z-index: 10;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-avatar.instructor-more {
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    border: 2.5px solid rgba(255, 255, 255, 0.95);
}

.track-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #ffffff;
    color: var(--text-primary);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.track-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.24), 0 3px 6px rgba(0, 0, 0, 0.14);
}

.track-cta-btn svg {
    flex-shrink: 0;
    margin-left: 2px;
}

/* Responsive Styles */
@media (max-width: 1280px) {
    .degree-tracks-slider .splide__arrow--prev {
        left: -44px;
    }

    .degree-tracks-slider .splide__arrow--next {
        right: -44px;
    }
}

@media (max-width: 1024px) {
    .degree-tracks-slider .splide__arrow--prev {
        left: 0;
    }

    .degree-tracks-slider .splide__arrow--next {
        right: 0;
    }

    .degree-track-card {
        height: 440px;
    }
}

@media (max-width: 768px) {
    .degree-tracks-section {
        padding: 72px 0 80px;
    }

    .degree-tracks-container {
        padding: 0 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .degree-tracks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .degree-track-card {
        height: 420px;
    }

    .track-content {
        padding: 24px;
        gap: 14px;
    }

    .track-title {
        font-size: 22px;
    }

    .track-description {
        font-size: 13px;
    }

    .track-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .instructor-avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .track-cta-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}