:root {
    --primary: #9d50bb;
    --primary-gradient: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    --bg-dark: #0a0a0c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --accent-red: #ff4757;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Kufi Arabic', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

/* Header */
.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.live-tag {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main Content */
.blog-main {
    max-width: 800px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

.featured-article {
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.post-badge {
    background: var(--primary-gradient);
    color: white;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.featured-article h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.video-preview-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.video-preview-container:hover .main-img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(157, 80, 187, 0.6);
}

.play-overlay i {
    font-size: 2.5rem;
    color: white;
    margin-left: 5px;
    /* Visual center adjustment */
}

.article-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.read-more-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.read-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(157, 80, 187, 0.4);
}

/* Trending Grid */
.trending-section {
    margin-top: 50px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-right: 15px;
    border-right: 4px solid var(--primary);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.card-img {
    position: relative;
    height: 180px;
}

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

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 1rem;
    line-height: 1.4;
}

/* Utilities */
.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-article h1 {
        font-size: 1.5rem;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .blog-main {
        margin-top: 80px;
    }
}