/* Blogs Page Specific Styles */

/* Hero Section */
.blogs-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.hero-features .feature-item i {
    font-size: 1.2rem;
}

/* Featured Articles Section */
.featured-articles {
    background-color: #ffffff;
}

.featured-article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-meta {
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-tags .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Sidebar Articles */
.sidebar-article {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.article-image-small {
    position: relative;
    overflow: hidden;
}

.article-image-small img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-article:hover .article-image-small img {
    transform: scale(1.05);
}

.article-meta-small {
    font-size: 0.8rem;
}

.article-meta-small i {
    margin-right: 0.3rem;
}

/* Article Categories Section */
.article-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.category-icon {
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(218, 161, 76, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

.category-card h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.category-stats .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Recent Articles Section */
.recent-articles {
    background-color: #ffffff;
}

.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.article-card .article-image img {
    height: 200px;
}

.article-card .article-content h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.article-card .article-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.newsletter-form .input-group {
    max-width: 400px;
}

.newsletter-form .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 161, 76, 0.25);
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blogs-hero-section {
        padding: 60px 0;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .sidebar-articles {
        margin-top: 2rem;
    }
    
    .newsletter-form .input-group {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .main-heading {
        font-size: 2rem !important;
    }
    
    .featured-article {
        margin-bottom: 2rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-card {
        margin-bottom: 1rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .newsletter-section .row {
        text-align: center;
    }
    
    .newsletter-form {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .blogs-hero-section {
        padding: 40px 0;
    }
    
    .hero-features .feature-item {
        justify-content: center;
    }
    
    .article-image img {
        height: 200px;
    }
    
    .article-image-small img {
        height: 120px;
    }
    
    .article-category {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .article-tags .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .category-stats .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b98b4e;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Article Card Hover Effects */
.article-card:hover .article-content h5 {
    color: var(--primary-color);
}

.article-tags .badge {
    transition: all 0.3s ease;
}

.article-tags .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Category Card Icon Animations */
.category-card:hover .category-icon {
    background: rgba(218, 161, 76, 0.2);
    transform: scale(1.1);
}

.category-card:hover h5 {
    color: var(--primary-color);
}

/* Sidebar Article Animations */
.sidebar-article:hover .article-content-small h5 {
    color: var(--primary-color);
}

/* Featured Article Animations */
.featured-article:hover .article-content h3 {
    color: var(--primary-color);
}

/* Button Hover Effects */
.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.3);
}

/* Newsletter Form Animations */
.newsletter-form .form-control {
    transition: all 0.3s ease;
}

.newsletter-form .form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.2);
}

/* Article Meta Animations */
.article-meta span {
    transition: all 0.3s ease;
}

.article-meta span:hover {
    color: var(--primary-color) !important;
}

/* Category Stats Animations */
.category-stats .badge {
    transition: all 0.3s ease;
}

.category-stats .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Staggered Animation for Cards */
.featured-article { transition-delay: 0.1s; }

.sidebar-article:nth-child(1) { transition-delay: 0.1s; }
.sidebar-article:nth-child(2) { transition-delay: 0.2s; }

.category-card:nth-child(1) { transition-delay: 0.1s; }
.category-card:nth-child(2) { transition-delay: 0.2s; }
.category-card:nth-child(3) { transition-delay: 0.3s; }
.category-card:nth-child(4) { transition-delay: 0.4s; }

.article-card:nth-child(1) { transition-delay: 0.1s; }
.article-card:nth-child(2) { transition-delay: 0.2s; }
.article-card:nth-child(3) { transition-delay: 0.3s; }

/* Image Hover Effects */
.article-image img {
    transition: all 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-image-small img {
    transition: all 0.3s ease;
}

.article-image-small:hover img {
    transform: scale(1.05);
}

/* Content Fade In Animation */
.featured-article .article-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.featured-article:hover .article-content {
    opacity: 1;
    transform: translateY(0);
}

/* Article Category Badge Animations */
.article-category {
    transition: all 0.3s ease;
}

.article-card:hover .article-category {
    transform: scale(1.1);
}

/* Newsletter Button Animation */
.newsletter-form .btn {
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 161, 76, 0.3);
}

/* Article Link Animations */
.article-content a {
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* Sidebar Article Link Animations */
.article-content-small a {
    transition: all 0.3s ease;
}

.article-content-small a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* Featured Article Content Animation */
.featured-article .article-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.featured-article:hover .article-content {
    opacity: 1;
    transform: translateY(0);
}

/* Category Card Content Animation */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Article Card Content Animation */
.article-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sidebar Article Animation */
.sidebar-article {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.sidebar-article.visible {
    opacity: 1;
    transform: translateY(0);
} 