.blog-section {
    background: #ffffff;
    padding: 80px 2%;
    overflow: hidden;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-header p {
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-carousel {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.blog-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding: 10px 0;
}

.loading-articles {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.loading-spinner {
    border: 4px solid rgba(255, 81, 0, 0.2);
    border-radius: 50%;
    border-top: 4px solid #ff5100;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: calc(33.333% - 20px);
    flex: 0 0 calc(33.333% - 20px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff5100;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #ff5100;
    color: white;
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ff5100;
    transform: scale(1.2);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff5100;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    line-height: 1;
}

.date-day {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.blog-category {
    color: #ff5100;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #ff5100;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #e04800;
}

.read-more:hover i {
    transform: translateX(5px);
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff5100, #ff8c00);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,81,0,0.3);
    border: 2px solid #ff5100;
}

.view-all-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255,81,0,0.4);
}

.view-all-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.view-all-button:hover::before {
    left: 100%;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .blog-card {
        min-width: calc(50% - 15px);
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 5%;
    }
    
    .blog-header h2 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .blog-card {
        min-width: calc(100% - 20px);
        flex: 0 0 calc(100% - 20px);
    }
    
    .blog-image {
        height: 200px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 50px 15px;
    }
    
    .blog-header h2 {
        font-size: 1.8rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
    }

    .prev-btn {
        left: -0px;
    }

    .next-btn {
        right: -0px;
    }
}