/* Blog Page Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #a0ff00 0%, #7dd300 100%);
    padding: 8rem 0 4rem;
    text-align: center;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-hero-content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-hero-description {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Blog Articles Section */
.blog-articles {
    background: #fff;
    padding: 4rem 0;
}

.blog-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    font-size: 0.8rem;
    color: #a0ff00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    color: #a0ff00;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.article-link:hover {
    color: #7dd300;
}

.article-link::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.article-link:hover::after {
    transform: translateX(3px);
}

/* Active Navigation Link */
.nav-link.active {
    color: #a0ff00;
    font-weight: 600;
}

/* Responsive Design for Blog Page */
@media (max-width: 1024px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .article-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-description {
        font-size: 1rem;
    }
    
    .blog-articles {
        padding: 3rem 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
}

/* Animation for article cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
.article-card:nth-child(7) { animation-delay: 0.7s; }
.article-card:nth-child(8) { animation-delay: 0.8s; }
.article-card:nth-child(9) { animation-delay: 0.9s; }
.article-card:nth-child(10) { animation-delay: 1.0s; }

/* Hover effects for article cards */
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(160, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.article-card:hover::before {
    opacity: 1;
}

/* Enhanced article link styles */
.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-link::before {
    content: '';
    width: 0;
    height: 2px;
    background: #a0ff00;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.article-link:hover::before {
    width: 100%;
}

/* Category badge styling */
.article-category {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(160, 255, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(160, 255, 0, 0.3);
}

/* Image overlay effect */
.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(160, 255, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-image::after {
    opacity: 1;
}

/* Loading animation for images */
.article-img {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Grid layout adjustments for better spacing */
@media (min-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
