/* Articles Page Specific Styles */

/* Hero Section */
.articles-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.articles-hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.articles-hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Categories */
.article-categories {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.categories-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

.category-btn:hover {
    background-color: var(--gray-medium);
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
    background-color: var(--gray-light);
}

.featured-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-text {
    flex: 1;
    padding: 40px;
}

.featured-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 15px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 1;
}

.article-category.tips {
    background-color: #3498db;
}

.article-category.safety {
    background-color: #e74c3c;
}

.article-category.beginners {
    background-color: #2ecc71;
}

.article-category.news {
    background-color: #f39c12;
}

/* Article Grid */
.article-grid {
    padding: 60px 0;
}

.articles-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

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

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

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

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

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.article-content p {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-bottom: 60px;
}

/* Newsletter Box */
.newsletter-box {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    outline: none;
}

.newsletter-form .btn {
    padding: 12px 30px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .featured-content {
        flex-direction: column;
    }
    
    .featured-image {
        max-width: 100%;
        width: 100%;
    }
    
    .featured-text {
        padding: 30px;
    }
    
    .featured-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .articles-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .categories-list {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .articles-hero {
        padding: 80px 0 40px;
    }
    
    .articles-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .featured-text {
        padding: 20px;
    }
    
    .featured-text h2 {
        font-size: 1.5rem;
    }
}

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

.article-card {
    animation: fadeInUp 0.5s ease forwards;
}