/* بسم الله الرحمن الرحيم
// Bismillah Hir Rahman Nir Raheem
// In the name of Allah, The Most Gracious, The Most Merciful
*/







/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1f3a 0%, #2d1b69 50%, #1a1f3a 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
}


/* Featured Post */
.featured-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #f43f5e);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.featured-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-list {
    list-style: none;
    padding: 0;
}

.featured-list li {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-list li::before {
    content: '•';
    color: #8b5cf6;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 800px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-filter {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    transform: translateY(-2px);
}

/* Blog Grid - 3 columns */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

/* Blog Card - Smaller */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.blog-card:hover::before {
    left: 100%;
}

.card-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6, #f43f5e);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.card-header {
    margin-bottom: 0.75rem;
}

.card-category {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    align-items: center;
}

.share-btn {
    padding: 0.25rem 0.5rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.375rem;
    color: #a78bfa;
    font-size: 0.625rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.share-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-image {
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .hero-section {
        padding: 2rem 0;
        margin-top: 70px;
    }

    .featured-post {
        margin: 1rem;
        padding: 1.5rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}