/* ===== Blogs Carousel Section ===== */
.blogs-carousel-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.blogs-carousel-section .section-header {
    margin-bottom: 40px;
}

.blogs-carousel-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.blogs-carousel-section .section-header p {
    font-size: 1rem;
    color: #999;
    margin: 0;
}

/* ===== Blog Card Styling ===== */
.blog-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ===== Blog Image Container ===== */
.blog-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.08);
}

/* ===== Blog Overlay (Read Button) ===== */
.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.read-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-btn:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.15);
}

/* ===== Blog Body ===== */
.blog-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: #667eea;
}

.blog-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #667eea;
}

.blog-content {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-body .btn {
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-body .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

.blog-body .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    transform: translateX(4px);
}

/* ===== Owl Carousel Navigation ===== */
.blogs-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    left: auto;
    display: flex;
    gap: 10px;
}

.blogs-carousel .owl-nav button {
    width: 42px;
    height: 42px;
    background: #e8e8e8;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blogs-carousel .owl-nav button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: scale(1.1);
}

.blogs-carousel .owl-nav button span {
    font-size: 18px;
}

/* ===== Owl Carousel Pagination ===== */
.blogs-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.blogs-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.blogs-carousel .owl-dots .owl-dot.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

/* ===== Responsive Design ===== */
/* Desktop (1024px and above) */
@media (max-width: 1199px) {
    .blogs-carousel-section .section-header h2 {
        font-size: 2.2rem;
    }
    
    .blogs-image {
        height: 180px;
    }
    
    .read-btn {
        width: 45px;
        height: 45px;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 991px) {
    .blogs-carousel-section {
        padding: 50px 0;
    }

    .blogs-carousel-section .section-header h2 {
        font-size: 2rem;
    }

    .blogs-image {
        height: 160px;
    }

    .blog-title {
        font-size: 1.15rem;
    }

    .blog-content {
        font-size: 0.9rem;
    }

    .read-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .blogs-carousel .owl-nav {
        top: -50px;
    }

    .blogs-carousel .owl-nav button {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* Mobile Tablet (600px to 767px) */
@media (max-width: 767px) {
    .blogs-carousel-section {
        padding: 40px 0;
    }

    .blogs-carousel-section .section-header {
        margin-bottom: 30px;
    }

    .blogs-carousel-section .section-header h2 {
        font-size: 1.8rem;
    }

    .blogs-carousel-section .section-header p {
        font-size: 0.95rem;
    }

    .blog-card {
        margin: 0 10px;
    }

    .blog-image {
        height: 140px;
    }

    .blog-body {
        padding: 15px !important;
    }

    .blog-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .blog-meta {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .blog-content {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .blog-body .btn {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .read-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .blogs-carousel .owl-nav {
        top: -40px;
        gap: 6px;
    }

    .blogs-carousel .owl-nav button {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Mobile (below 600px) */
@media (max-width: 599px) {
    .blogs-carousel-section {
        padding: 30px 0;
    }

    .blogs-carousel-section .section-header {
        margin-bottom: 25px;
    }

    .blogs-carousel-section .section-header h2 {
        font-size: 1.5rem;
    }

    .blogs-carousel-section .section-header p {
        font-size: 0.9rem;
    }

    .blog-card {
        margin: 0;
        border-radius: 10px;
    }

    .blog-image {
        height: 120px;
    }

    .blog-body {
        padding: 12px !important;
    }

    .blog-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .blog-meta {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .blog-content {
        font-size: 0.8rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .blog-body .btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .read-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .blogs-carousel .owl-nav {
        top: -35px;
        gap: 5px;
    }

    .blogs-carousel .owl-nav button {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .blogs-carousel .owl-dots .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* Extra Small (below 480px) */
@media (max-width: 479px) {
    .blogs-carousel-section {
        padding: 25px 0;
    }

    .blogs-carousel-section .section-header h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .blogs-carousel-section .section-header p {
        font-size: 0.85rem;
    }

    .blog-card {
        border-radius: 8px;
    }

    .blog-image {
        height: 100px;
    }

    .blog-body {
        padding: 10px !important;
    }

    .blog-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .blog-meta {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .blog-content {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .blog-body .btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .read-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .blogs-carousel .owl-nav {
        top: -30px;
    }

    .blogs-carousel .owl-nav button {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}
