
.font-custom1 {
    font-family: inherit;
}
.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.category-main-wrapper {
    width: 100%;
    min-height: 100vh;
    margin-top: 73.59px; /* Add space to avoid logo overlap */
}

@media (min-width: 1024px) {
    .category-main-wrapper {
        margin-top: 108px;
    }
}

.custom_height {
    min-height: calc(100vh - 108px);
}

.category-header {
    margin-top: 33px;
    padding-left: 32px;
    padding-right: 32px;
    border-top: 0.5px solid black;
    border-bottom: 0.5px solid black;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
}

.category-title {
    font-size: 44px;
    font-weight: 700;
    color: black;
    margin: 0;
    text-transform: uppercase;
}

/* News Details Styling */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.back-navigation {
    padding: 40px 0 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #000;
    text-decoration: none;
}

.back-button i {
    margin-right: 8px;
    font-size: 1rem;
}

.ar .back-button i {
    margin-right: 0;
    margin-left: 8px;
}

/* Article Header */
.article-header {
    padding: 20px 0 40px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #000;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item {
    margin-top:25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999 !important;
    font-size: 1rem !important;
}

.meta-item i {
    font-size: 1rem !important;
    color: #999 !important;
}

.sort-controls-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-controls-mobile {
    display: none;
}

/* Featured Image */
.featured-image-container {
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 9px;
}

/* Article Content */
.article-content {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #333;
    margin: 0 25px 60px 25px;
    text-align: justify;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 600;
    color: #000;
    margin: 2rem 0 1rem 0;
}

.article-content h1 {
    font-size: 1.8rem;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.3rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid #000;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.ar .article-content blockquote {
    border-left: none;
    border-right: 4px solid #000;
    padding-left: 0;
    padding-right: 2rem;
}

/* Related News Section */
.related-news {
   
}

.related-news-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-news-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-news-item:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.related-news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.related-news-date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-news-title-item {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 0 15px;
    }
    
    .back-navigation {
        padding: 30px 0 15px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-news {
        padding-top: 40px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    
    .category-title {
    font-size: 18px;
    }
    .category-main-wrapper {
    margin-top: 100.59px;
}

.featured-image {
    width: 70%;
    height: auto;
    border-radius: 9px;
    margin: 0 auto;
    display: block;
}

.news-details-container {
    display: block !important;
}
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 1.5rem;
    }
    
    .article-content blockquote {
        padding-left: 1.5rem;
    }
    
    .ar .article-content blockquote {
        padding-right: 1.5rem;
    }
}

/* Arabic text direction support */
.ar .article-header,
.ar .article-content,
.ar .related-news {
    text-align: right;
    direction: rtl;
}

.ar .article-meta {
    flex-direction: row-reverse;
}

.ar .back-navigation {
    text-align: right;
}

.ar .article-content ul,
.ar .article-content ol {
    padding-left: 0;
    padding-right: 2rem;
}

/* Share buttons (optional addition) */
.share-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.share-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}


.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    color: black;
    text-decoration: none;
    border: 1px solid #ddd;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-button:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}
