:root {
    --blog-home-glass-bg: rgba(255, 255, 255, 0.8);
    --blog-home-gradient-primary: linear-gradient(135deg, var(--brand-main), var(--accent));
    --blog-home-gradient-hot: linear-gradient(135deg, #ff7675, #fab1a0);
    --blog-home-animation-speed: 0.6s;
}

/* --- Layout & Header --- */
.blog-home .blog-hero {
    position: relative;
    padding: 100px 20px;
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 206, 201, 0.15) 0%, transparent 50%);
    text-align: center;
    color: white;
    overflow: hidden;
}

.blog-home .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: blog-home-fadeInUp var(--blog-home-animation-speed) ease-out;
}

.blog-home .hero-tag {
    display: inline-block;
    background: var(--blog-home-gradient-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.blog-home .hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

/* --- Blog Grid --- */
.blog-home .blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.blog-home .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-home .blog-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.5);
    animation: blog-home-fadeIn 0.8s ease forwards;
}

.blog-home .blog-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(108, 92, 231, 0.25);
}

.blog-home .card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    display: block; /* Ensure a tag fills space */
}

.blog-home .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-home .blog-card:hover .card-image img {
    transform: scale(1.1);
}

.blog-home .card-content {
    padding: 30px;
}

.blog-home .card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-home .card-link-title {
    text-decoration: none;
    display: block;
}

.blog-home .card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--bg-dark);
    transition: var(--transition);
}

.blog-home .blog-card:hover h2 {
    color: var(--brand-main);
}

.blog-home .card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-home .read-more {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-main);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.blog-home .read-more i {
    transition: transform 0.3s ease;
}

.blog-home .read-more:hover i {
    transform: translateX(5px);
}

/* --- Pagination Section --- */
.blog-home .blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.blog-home .page-numbers {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.blog-home .page-numbers:hover {
    background: var(--brand-secondary);
    color: white;
    transform: translateY(-3px);
}

.blog-home .page-numbers.current {
    background: var(--brand-main);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(108, 92, 231, 0.4);
}
.blog-home .page-numbers.prev,
.blog-home .page-numbers.next{
    width: 100%;
}

/* --- Animations --- */
@keyframes blog-home-fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blog-home-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .blog-home .blog-grid { grid-template-columns: 1fr; }
}