.ld-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.ld-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ld-page-description {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.ld-grid {
    display: grid;
    /* Define a 3-column layout */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0;
}

.ld-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffddab;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transition: transform 0.2s;
    max-width: 400px;
    margin: 0 auto;
}

.ld-item:hover {
    transform: translateY(-5px);
}

.ld-thumbnail img {
    width: 100%;
    height: 109%;
    display: block;
}

.ld-content {
    flex: 1;
    padding: 15px;
    background-color: #ffddab;
    display: flex;
    flex-direction: column;
}

.ld-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.ld-title a {
    color: #333;
    text-decoration: none;
}

.ld-thumbnail {
    position: relative;
    overflow: hidden;
}

.ld-season-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 0 8px 0 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 40px;
    text-align: center;
}

.ld-age-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 6px 12px;
    border-radius: 8px 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 40px;
    text-align: center;
}


.ld-filters {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ld-filter-group {
    flex: 1;
    min-width: 200px;
}

.ld-filter-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ld-filter-group select {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    height: 48px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
}

.ld-filter-reset-group {
    display: flex;
    align-items: flex-end;
}

.ld-filter-reset {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 120px;
    height: 48px; /* Match select height exactly */
    box-sizing: border-box;
    font-size: 14px;
}


.ld-filter-reset {
    background-color: #dc3545;
    color: white;
}

.ld-filter-reset:hover {
    background-color: #c82333;
    color: white;
}

.ld-course-count {
    margin: 20px 0;
    text-align: right;
}

.ld-course-count p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 1140px) {
    .ld-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ld-grid {
        grid-template-columns: 1fr;
    }
        .ld-thumbnail img {
        width: 100%;
        height: 109%;
        display: block;
}
}

