.blog-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-tools {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a855f7;
    cursor: pointer;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(168, 85, 247, 0.1);
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.blog-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.08);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(168, 85, 247, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 20px;
    line-height: 1.4;
    color: #f3f4f6;
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: #a855f7;
}

.blog-excerpt {
    font-size: 15px;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.blog-readmore svg {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-readmore svg {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover, .page-btn.active {
    background: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Single Article */
.article-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 42px;
    line-height: 1.3;
    color: #fff;
    margin: 20px 0;
    font-weight: 800;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #9ca3af;
    font-size: 15px;
}

.article-thumb-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #d1d5db;
}

.article-content h2 {
    font-size: 30px;
    color: #fff;
    margin: 50px 0 25px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 24px;
    color: #f3f4f6;
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #fff;
}

.article-content a {
    color: #a855f7;
    text-decoration: none;
    border-bottom: 1px dashed rgba(168, 85, 247, 0.5);
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #d8b4fe;
    border-bottom-color: #d8b4fe;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] .search-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a2e;
}
[data-theme="light"] .search-input::placeholder {
    color: #6b7280;
}
[data-theme="light"] .search-input:focus {
    background: rgba(0, 0, 0, 0.06);
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.12);
}
[data-theme="light"] .blog-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .blog-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(168, 85, 247, 0.08);
}
[data-theme="light"] .blog-card-title {
    color: #111827;
}
[data-theme="light"] .blog-card:hover .blog-card-title {
    color: #7c3aed;
}
[data-theme="light"] .blog-excerpt {
    color: #4b5563;
}
[data-theme="light"] .blog-meta {
    color: #6b7280;
}
[data-theme="light"] .blog-readmore {
    color: #7c3aed;
}
[data-theme="light"] .page-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}
[data-theme="light"] .page-btn:hover,
[data-theme="light"] .page-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

/* Article Detail - Light Mode */
[data-theme="light"] .article-title {
    color: #111827;
}
[data-theme="light"] .article-meta {
    color: #6b7280;
}
[data-theme="light"] .article-thumb-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .article-content,
[data-theme="light"] .article-content p,
[data-theme="light"] .article-content li,
[data-theme="light"] .article-content span {
    color: #000000;
}
[data-theme="light"] .article-content h2 {
    color: #111827;
}
[data-theme="light"] .article-content h3 {
    color: #1f2937;
}
[data-theme="light"] .article-content strong {
    color: #111827;
}
[data-theme="light"] .article-content a {
    color: #7c3aed;
    border-bottom-color: rgba(124, 58, 237, 0.3);
}
[data-theme="light"] .article-content a:hover {
    color: #5b21b6;
    border-bottom-color: #5b21b6;
}

.related-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .blog-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .blog-content {
        padding: 15px;
    }
    .blog-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .blog-category {
        font-size: 10px;
        padding: 4px 8px;
        top: 10px;
        left: 10px;
    }
    .blog-excerpt {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    .blog-meta {
        font-size: 11px;
        gap: 10px;
    }
    .article-title {
        font-size: 32px;
    }
    .article-content {
        font-size: 16px;
    }
    .article-meta {
        flex-wrap: wrap;
    }
}
