/* Channel Page Styles */

/* Channel Section */
.channel-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.channel-content {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    margin-top: 30px;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body ul,
.content-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-body li {
    margin-bottom: 10px;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sub Channels Section */
.sub-channels-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sub-channel-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 1px solid #e9ecef;
}

.sub-channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sub-channel-card .channel-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.sub-channel-card .channel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sub-channel-card:hover .channel-image img {
    transform: scale(1.05);
}

.sub-channel-card .channel-content {
    padding: 25px;
}

.sub-channel-card .channel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.sub-channel-card .channel-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sub-channel-card .channel-title a:hover {
    color: #3498db;
}

.sub-channel-card .channel-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar */
.channel-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.channel-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.channel-info .info-item:last-child {
    border-bottom: none;
}

.channel-info .info-item strong {
    color: #2c3e50;
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

.channel-info .info-item span {
    color: #555;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}

.channel-info .channel-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Related Channels */
.related-channels {
    max-height: 400px;
    overflow-y: auto;
}

.related-channel-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f4;
}

.related-channel-item:last-child {
    border-bottom: none;
}

.related-channel-link {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.related-channel-link:hover {
    color: #3498db;
}

.related-channel-desc {
    display: block;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Not Found Section */
.not-found-section {
    padding: 80px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.not-found-icon {
    font-size: 80px;
    color: #e74c3c;
    margin-bottom: 30px;
}

.not-found-section h2 {
    color: #2c3e50;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.not-found-section p {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

/* Section Headers */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-title i {
    color: #3498db;
    margin-right: 10px;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin: 0 auto;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .channel-section {
        padding: 40px 0;
    }
    
    .channel-content,
    .sub-channels-section,
    .sidebar-section {
        padding: 25px 20px;
    }
    
    .channel-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .sub-channel-card .channel-image {
        height: 180px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .not-found-section {
        padding: 60px 20px;
    }
    
    .not-found-icon {
        font-size: 60px;
    }
    
    .not-found-section h2 {
        font-size: 28px;
    }
    
    .not-found-section p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .channel-info .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .channel-info .info-item span {
        margin-left: 0;
        margin-top: 5px;
        text-align: left;
    }
    
    .sub-channel-card .channel-image {
        height: 160px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.channel-content,
.sub-channels-section,
.sidebar-section {
    animation: fadeInUp 0.6s ease-out;
}

.sub-channel-card {
    animation: fadeInUp 0.6s ease-out;
}

.sub-channel-card:nth-child(2) {
    animation-delay: 0.1s;
}

.sub-channel-card:nth-child(3) {
    animation-delay: 0.2s;
}

.sub-channel-card:nth-child(4) {
    animation-delay: 0.3s;
} 



.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-title i {
    color: #3b82f6;
    font-size: 2.8rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #b3d9ff;
    margin-bottom: 30px;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 12px 25px;
    margin: 0 auto;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-item a {
    color: #b3d9ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
}

.breadcrumb-item.active {
    color: #ffffff;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #94a3b8;
    margin: 0 10px;
}
