.library-hero {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/hero/library.webp") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 100px 20px 40px;
    margin-top: 60px;
}

.library-hero .hero-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.library-hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.library-hero p {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.stat .label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.category-description p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #fff;
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.category-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent-2);
}

.category-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.category-content .category-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.category-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.category-stats .stat i {
    color: var(--color-primary);
}

.category-courses {
    margin-bottom: 1.5rem;
}

.category-courses h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--color-tertiary);
}

.category-courses ul {
    list-style: none;
    margin-bottom: 1rem;
}

.category-courses li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.category-courses li:last-child {
    border-bottom: none;
}

.category-courses li i {
    color: var(--color-primary);
    font-size: 0.9rem;
}

.category-courses .more-courses {
    color: #666;
    font-style: italic;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    height: auto !important;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--color-accent-2);
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}

.how-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.how-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: var(--color-text-light);
}

.overlay-content h4 {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.overlay-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.steps-list {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--color-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-tertiary);
}

/* CTA Section */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-outline-light:hover {
    background: var(--color-text-light);
    color: var(--color-accent-2);
}

.text-center {
    text-align: center !important;
}

.library-hero,
.category-hero {
    min-height: auto !important;
    padding: 100px 20px 40px !important;
    margin-top: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

section {
    overflow: visible !important;
}

.category-card,
.course-card,
.feature-card {
    height: auto !important;
    overflow: visible !important;
}

.section-padding {
    padding: 80px 0;
}

h2 {
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .library-hero,
    .category-hero {
        padding: 90px 20px 35px;
        margin-top: 50px;
    }

    .library-hero h2,
    .category-hero h2 {
        font-size: 1.6rem;
    }

    .course-hero {
        padding: 90px 20px 35px;
        margin-top: 50px;
    }

    .course-hero h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .library-hero,
    .category-hero {
        padding: 80px 15px 30px;
        margin-top: 45px;
    }

    .library-hero h2,
    .category-hero h2 {
        font-size: 1.5rem;
    }

    .hero-stats,
    .category-stats-hero {
        gap: 1.5rem;
    }

    .hero-stats .number,
    .category-stats-hero .number,
    .stat .number {
        font-size: 1.8rem;
    }

    .course-hero {
        padding: 80px 15px 30px;
        margin-top: 45px;
    }

    .course-hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .library-hero,
    .category-hero {
        padding: 70px 15px 25px;
        margin-top: 40px;
    }

    .library-hero h2,
    .category-hero h2 {
        font-size: 1.4rem;
    }

    .course-hero {
        padding: 70px 15px 25px;
        margin-top: 40px;
    }

    .course-hero h2 {
        font-size: 1.4rem;
    }
}

.category-hero {
    position: relative;
    width: 100%;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/hero/category-bg.webp") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 120px 20px 60px;
}
.category-hero .hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--color-text-light);
    opacity: 0.8;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.category-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.category-content .category-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.category-stats-hero {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.category-stats-hero .stat {
    text-align: center;
}

.category-stats-hero .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.category-stats-hero .label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--color-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible !important;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.course-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
    align-items: center;
}

.course-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent-2);
}
.courses-header h2 {
    text-align: center;
}

.course-short-name {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-body {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.course-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.course-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.course-stats .stat i {
    color: var(--color-primary);
}

.course-footer {
    text-align: center;
}

.course-footer small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.8rem;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.exam-card {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.exam-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.exam-header {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.exam-header h3 {
    font-size: 1.3rem;
    color: var(--color-accent-2);
    margin-bottom: 0.5rem;
}

.exam-body {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.exam-body p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.exam-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.exam-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.exam-stats .stat i {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

.exam-footer {
    margin-top: auto;
}

.exam-footer .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-bg-light);
    border-radius: 10px;
    border: 2px dashed var(--color-border);
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-tertiary);
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.library-hero,
.category-hero {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-blend-mode: multiply;
    padding: 100px 20px 40px;
    margin-top: 60px;
}

.library-hero h2,
.category-hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 5;
    white-space: nowrap;
    overflow: hidden;
}

.course-hero {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/hero/course-bg.webp") no-repeat center center;
    background-size: cover;
    background-blend-mode: multiply;
    padding: 100px 20px 40px;
    margin-top: 60px;
}

.course-hero .hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.course-hero h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.course-hero .course-description {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.course-stats-hero {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.course-stats-hero .stat {
    text-align: center;
}

.course-stats-hero .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.course-stats-hero .label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

@media (max-width: 992px) {
    .library-hero,
    .category-hero {
        padding: 90px 20px 35px;
        margin-top: 50px;
    }

    .library-hero h2,
    .category-hero h2 {
        font-size: 1.6rem;
    }

    .course-hero {
        padding: 90px 20px 35px;
        margin-top: 50px;
    }

    .course-hero h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .library-hero,
    .category-hero {
        padding: 80px 15px 30px;
        margin-top: 45px;
    }

    .library-hero h2,
    .category-hero h2 {
        font-size: 1.5rem;
    }

    .hero-stats,
    .category-stats-hero {
        gap: 1.5rem;
    }

    .hero-stats .number,
    .category-stats-hero .number,
    .stat .number {
        font-size: 1.8rem;
    }

    .course-hero {
        padding: 80px 15px 30px;
        margin-top: 45px;
    }

    .course-hero h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .library-hero,
    .category-hero {
        padding: 70px 15px 25px;
        margin-top: 40px;
    }

    .library-hero h2,
    .category-hero h2 {
        font-size: 1.4rem;
    }

    .course-hero {
        padding: 70px 15px 25px;
        margin-top: 40px;
    }

    .course-hero h2 {
        font-size: 1.4rem;
    }
}

.breadcrumb a,
.breadcrumb span {
    display: inline-block;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .breadcrumb a,
    .breadcrumb span {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .breadcrumb a,
    .breadcrumb span {
        max-width: 80px;
    }
}