/* ===================================
   YOUR EXISTING STYLES - DON'T CHANGE
   =================================== */

   .learning-path-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.learning-item-card {
    margin: 3rem auto;
    width: 800px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    min-height: 350px;
    cursor: pointer;
    position: relative;
}

.learning-item-card:hover {
    transform: translateY(-2px);
}

.learning-item-card.completed {
    border: 2px solid var(--intermediateLevel);
}

.learning-item-card.in-progress {
    border: 2px solid var(--upperIntermediateLevel);
}

.learning-item-card.locked {
    border: 2px solid var(--entryLevel);
}

.learning-item-image {
    width: 400px;
    min-height: 260px;
    background: var(--steelBlueLight);
    position: relative;
    flex-shrink: 0;
}

.learning-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.image-overlay.completed {
    background: rgba(55, 116, 55, 0.7);
}

.image-overlay.locked {
    background: rgba(178, 34, 34, 0.7);
}

.overlay-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.overlay-text {
    font-size: 0.9rem;
    text-align: center;
}

.learning-item-position {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.learning-item-position.completed {
    background: var(--intermediateLevel);
    color: white;
}

.learning-item-position.in-progress {
    background: var(--upperIntermediateLevel);
    color: white;
}

.learning-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.learning-item-card .learning-item-description {
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
} 

.learning-item-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.learning-item-badges .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-required {
    background: var(--entryLevel);
}

.badge-optional {
    background: #6b7280;
}

.learning-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--textBlue);
    margin-bottom: 0rem;
}

.learning-item-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.learning-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin: 1rem 0;
}

.learning-item-meta svg {
    width: 16px;
    height: 16px;
}

.progress-bar-container {
    margin: 1rem 0;
}

.progress-bar {
    height: 6px;
    background: var(--steelBlueLight);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--upperIntermediateLevel);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.learning-item-action {
    margin-top: auto;
}

.learning-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.learning-item-link:hover {
    text-decoration: none;
}

.action-indicator {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    transition: all 0.2s ease;
}

.action-indicator.button-a1 {
    background: var(--entryLevel);
}

.action-indicator.button-a2 {
    background: var(--beginnerLevel);
}

.action-indicator.button-b1 {
    background: var(--intermediateLevel);
}

.action-indicator.button-b2 {
    background: var(--upperIntermediateLevel);
}

.action-indicator.button-c1 {
    background: var(--advancedLevel);
}

.learning-path-content {
    position: relative;
}

/* ===================================
   DESKTOP BACKGROUNDS (1200px+)
   =================================== */
@media screen and (min-width: 1200px) {
    /* .learning-item-link {
        height: 500px;
    }

    .learning-item-card {
        height: 450px;
    }
     */
    /* Background images with zigzag pattern */
    /* .learning-item-link:first-of-type {
        background-image: url('/images/dottedBackgroundFirst.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    
    .learning-item-link:nth-of-type(even) {
        background-image: url('/images/dottedEven.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }
    
    .learning-item-link:nth-of-type(odd):not(:first-of-type) {
        background-image: url('/images/dottedOdd.png');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    } */
}

/* ===================================
   TABLET (768px - 1199px)
   =================================== */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    /* Remove backgrounds on tablet */
    .learning-item-link {
        background-image: none !important;
        margin-bottom: 2rem;
        height: auto !important;
    }
    
    .learning-item-card {
        width: 90%;
        max-width: 750px;
        height: auto !important;
        min-height: 250px;
    }
    
    .learning-item-image {
        width: 50%;
        height: auto;
        min-height: 100%;
    }
}

/* ===================================
   MOBILE (max-width: 767px)
   =================================== */
@media screen and (max-width: 767px) {
    .learning-item-link {
        background-image: none !important;
        margin-bottom: 1.5rem;
    }
    
    .learning-item-card {
        width: 95%;
        height: auto;
        flex-direction: column;
    }
    
    .learning-item-image {
        width: 100%;
        height: 200px;
        min-height: 200px;
    }
    
    .learning-item-content {
        padding: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
   =================================== */
@media screen and (max-width: 480px) {
    .learning-item-card {
        width: 100%;
        border-radius: 10px;
    }
    
    .learning-item-content {
        padding: 1rem;
    }
    
    .learning-item-title {
        font-size: 1.1rem;
    }
    
    .learning-item-description {
        font-size: 0.875rem;
    }
}