.dc-patient-education {
    padding: 0;
    margin: 0;
}

.library-content-wrapper {
    display: flex;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
}

.library-title {
    text-align: center;
    font-family: "SAIRA CONDENSED", sans-serif;
    font-size: 48px;
    margin-bottom: 24px;
}

.library-title .highlight {
    background: #ffeb3b;
    padding: 0 8px;
}

/* Education Filters */
.education-filters {
    background: #7ec1ad;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
    top: 24px;
    margin: 0 0 50px 0;
}

.filter-heading {
    font-family: "SAIRA CONDENSED", sans-serif;
    font-size: 20px;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff8f;
    cursor: pointer;
    font-family: "SAIRA CONDENSED", sans-serif;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-align: left;
}

.filter-btn:hover:not([disabled]),
.filter-btn.active:not([disabled]) {
    background:rgb(255, 255, 255);
    color: black;
    border-color: #7ac1a8;
}


/* Education Grid */
.education-grid {
    margin: 0 0 50px 0;
    padding: 0;
    position: relative !important;
    overflow: hidden;
}

.education-grid-sizer,
.education-card {
    background: white;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    width: calc(33.333% - 16px); 
    margin-bottom: 24px;
    border: 1px solid #00000030;
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 10px, rgba(0, 0, 0, 0.07) 0px 2px 10px, rgba(0, 0, 0, 0.07) 0px 10px 10px, rgba(0, 0, 0, 0.07) 0px 15px 10px, rgba(0, 0, 0, 0.07) 0px 25px 25px;
}

.education-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.education-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.play-overlay i {
    color: white;
    font-size: 48px;
}

.education-thumbnail:hover .play-overlay {
    opacity: 1;
}

.education-content {
    padding: 20px;
}

.education-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-family: "SAIRA CONDENSED", sans-serif;
}

.education-title a {
    color: #333;
    text-decoration: none;
    font-family: "SAIRA SEMI BOLD", sans-serif;
}

.education-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.education-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: aliceblue;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .education-grid-sizer,
    .education-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 1024px) {
    .library-content-wrapper {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .library-content-wrapper {
        grid-template-columns: 1fr;
    }

    .education-filters {
        position: relative;
        top: 0;
    }

    .filter-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn {
        flex: 1;
        min-width: 150px;
        text-align: center;
    }

    .education-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .education-card {
        width: 100%;
    }
    .filter-btn {
        width: 100%;
    }
}
