﻿    :root {
        --primary-color: #0c4b33;
        --secondary-color: #f8b400;
        --accent-color: #e74c3c;
        --light-color: #f5f5f5;
        --dark-color: #333;
        --text-color: #444;
        --border-radius: 8px;
        --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Poppins', sans-serif;
        background-color: #f9f9f9;
        color: var(--text-color);
        line-height: 1.6;
    }
    
    a {
        text-decoration: none;
    }
    
    /* Header Styles */
    header {
        background: linear-gradient(135deg, var(--primary-color), #1a6d4f);
        color: white;
        padding: 1rem;
        box-shadow: var(--box-shadow);
        position: sticky;
        top: 0;
        z-index: 1000;
        direction: ltr;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logo img {
        height: 50px;
        width: auto;
    }
    
    .logo-text {
        font-weight: 700;
        font-size: 1.5rem;
    }
    
    .logo-text span {
        color: var(--secondary-color);
    }
    
    .nav-tools {
        display: flex;
        gap: 15px;
        align-items: center;
    }
    
    .nav-icon {
        color: white;
        font-size: 1.5rem;
        transition: var(--transition);
    }
    
    .nav-icon:hover {
        color: var(--secondary-color);
        transform: translateY(-2px);
    }
    
    /* Back Button */
    .back-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--primary-color);
        background: var(--light-color);
        padding: 8px 15px;
        border-radius: var(--border-radius);
        text-decoration: none;
        margin-bottom: 20px;
        transition: var(--transition);
    }
    
    .back-btn:hover {
        background: #e0e0e0;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        display: none;
        background: white;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    
    .mobile-menu-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--dark-color);
        text-decoration: none;
        font-size: 0.8rem;
    }
a.mobile-menu-item:hover{
    color: #0c4b33 ;
	}
a.mobile-menu-item.active{
    color: #0c4b33 ;
	}
.active{
    color: #f8b400 ;
	}

}
    .mobile-menu-item i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    /* Main Content */
    main {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .page-title {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--primary-color);
        position: relative;
        padding-bottom: 10px;
    }
    
    .page-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: var(--secondary-color);
    }
    
    /* Channels Grid */
    .channels-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
        margin-bottom: 2rem;
    }
    
    .channel-card {
        background: white;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        text-align: center;
        position: relative;
    }
    
    .channel-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    
    .channel-logo {
        width: 100%;
        height: 100px;
        object-fit: contain;
        padding: 10px;
        background: white;
    }
    
    .channel-name {
        padding: 10px;
        background: var(--primary-color);
        color: white;
        font-weight: 500;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }
    
    /* Offline Label Styles */
    .offline-label {
        position: absolute;
        top: 8px;
        left: 8px;
        background: #e74c3c;
        color: white;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: normal;
        z-index: 2;
        text-transform: uppercase;
        line-height: 1.2;
    }
    
    /* تأثيرات إضافية للقنوات الغير متاحة */
    .channel-card[href*="almaarifatv"] .channel-logo {
        opacity: 0.8;
    }
    
    .channel-card[href*="almaarifatv"]:hover .channel-logo {
        opacity: 0.6;
    }
    
    /* Channel Info Section */
    .channel-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .channel-logo-large {
        width: 80px;
        height: auto;
        margin-bottom: 1rem;
        border-radius: 3px;
    }
    
    .channel-title {
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }
    
    .channel-category {
        background: var(--secondary-color);
        color: white;
        padding: 3px 10px;
        border-radius: 50px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Live Stream Container */
    .stream-container {
        width: 100%;
        margin-bottom: 2rem;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
    }
    
    .stream-iframe {
        width: 100%;
        height: 500px;
        border: none;
    }
    
    /* Description Sections */
    .description, .channel-description {
        background: white;
        padding: 2rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-bottom: 2rem;
    }
    
    .description h2, .channel-description h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }
    
    .channel-description h3 {
        padding-bottom: 5px;
        border-bottom: 2px solid var(--secondary-color);
    }
    
    /* Social Sharing/Links */
    .social-sharing, .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 2rem 0;
        direction: ltr;
    }
    
    .social-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 15px;
        border-radius: 50px;
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }
    
    .social-btn i, .social-link i {
        font-size: 1.2rem;
    }
    
    .facebook-btn {
        background: #3b5998;
    }
    
    .twitter-btn {
        background: #1da1f2;
    }
    
    .social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--primary-color);
        color: white;
        font-size: 1.2rem;
        transition: var(--transition);
    }
    
    .social-btn:hover, .social-link:hover {
        transform: translateY(-3px);
        opacity: 0.9;
    }
    
    .social-link:hover {
        background: var(--secondary-color);
    }
    
    /* Related Channels */
    .related-channels {
        margin-top: 3rem;
    }
    
    .related-title {
        text-align: center;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        position: relative;
    }
    
    .related-title:after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 2px;
        background: var(--secondary-color);
    }
    
    /* Pagination Styles */
    .pagination {
        display: flex;
        justify-content: center;
        margin: 2rem 0;
        gap: 8px;
    }
    
    .pagination a {
        color: var(--primary-color);
        padding: 8px 16px;
        text-decoration: none;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    .pagination a.active {
        background-color: var(--primary-color);
        color: white;
        border: 1px solid var(--primary-color);
    }
    
    .pagination a:hover:not(.active) {
        background-color: #f1f1f1;
    }
    
    .pagination a.disabled {
        color: #aaa;
        pointer-events: none;
        cursor: default;
    }
    
    /* Footer */
    footer {
        background: var(--primary-color);
        color: white;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin: 1rem 0;
    }
    
    .footer-link {
        color: white;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .footer-link:hover {
        color: var(--secondary-color);
    }
    
    .copyright {
        margin-top: 1rem;
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    /* Ad Block Detection */
    .adblock-alert {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 15px;
        text-align: center;
        z-index: 9999;
    }
    
    .adblock-alert button {
        background: var(--secondary-color);
        color: var(--dark-color);
        border: none;
        padding: 5px 15px;
        border-radius: 4px;
        margin-top: 10px;
        cursor: pointer;
        font-weight: bold;
    }
    
    /* Cookie Consent */
    .cookie-consent {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        color: white;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 999;
    }
    
    .cookie-consent button {
        background: var(--secondary-color);
        color: var(--dark-color);
        border: none;
        padding: 5px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .channels-grid {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        }
        
        .logo-text {
            font-size: 1.2rem;
        }
            .menuPc {
        display: none !important;
    }
        .mobile-menu {
            display: flex;
            justify-content: space-around;
        }
        
        .pagination {
            flex-wrap: wrap;
        }
        
        .stream-iframe {
            height: 400px;
        }
        
        .channel-logo-large {
            width: 150px;
        }
        
        .offline-label {
            font-size: 0.6rem;
            padding: 2px 6px;
            top: 5px;
            left: 5px;
        }
    }
    
    @media (max-width: 480px) {
        .channels-grid {
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
        }
        
        .channel-logo {
            height: 80px;
        }
        
        .logo img {
            height: 40px;
        }
            .menuPc {
        display: none !important;
    }
        .pagination a {
            padding: 6px 12px;
            font-size: 0.9rem;
        }
        
        .stream-iframe {
            height: 250px;
        }
        
        .channel-logo-large {
            width: 120px;
        }
        
        .offline-label {
            font-size: 0.55rem;
            padding: 1px 4px;
        }
    }
