/* Homepage: featured article + recommended videos */

.featured-section {
    margin-bottom: 2rem;
}

.featured-section .row {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2rem;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.featured-section .row > .col-md-7,
.featured-section .row > .col-md-5 {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .featured-section .row {
        grid-template-columns: 1fr;
    }
}

/* Sidebar category count badges */
.category-list a span {
    background: var(--kb-blue-light, #e8f6fd);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--kb-gray-700, #374151);
}

/* Recommended videos */
.video-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-section-header {
    padding: 1.2rem;
    border-bottom: 1px solid #e5edf3;
    background: linear-gradient(to right, #e8f6fd, #fafcfe);
}

.video-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111111;
    font-weight: 600;
}

.video-section-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8fafc;
}

.video-section-content::-webkit-scrollbar {
    width: 6px;
}

.video-section-content::-webkit-scrollbar-track {
    background: #f8fafc;
}

.video-section-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eef2f6;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #f8fafc;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    padding: 1rem;
}

.video-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.video-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-empty {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.video-empty-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

@media (max-width: 768px) {
    .video-section {
        margin-top: 1.5rem;
    }

    .video-section-header {
        padding: 1rem;
    }

    .video-section-content {
        padding: 1rem;
    }

    .video-list {
        gap: 1rem;
    }

    .video-content {
        padding: 0.875rem;
    }

    .video-title {
        font-size: 0.9375rem;
    }

    .video-description {
        font-size: 0.8125rem;
    }
}
