/* ============================================
   BLOG SLIDER SECTION (Home Page)
   ============================================ */
.blog-section-home {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Dark Mode */
:root[data-theme="dark"] .blog-section-home,
.dark .blog-section-home {
    background: linear-gradient(135deg, #1e1e2d 0%, #151521 100%);
}

.blog-slider-wrapper {
    position: relative;
    margin-top: 40px;
    min-height: 700px;
    overflow: hidden;
    width: 100%;
}

.blog-slider {
    display: flex;
    overflow: visible;
    position: relative;
    transition: transform 0.5s ease;
    width: 100%;
}

.blog-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
    display: block;
    visibility: visible;
    opacity: 1;
}

.blog-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 650px;
    max-width: 900px;
    margin: 0 auto;
    visibility: visible;
    opacity: 1;
}

.blog-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(125, 60, 255, 0.2);
}

:root[data-theme="dark"] .blog-card-modern:hover,
.dark .blog-card-modern:hover {
    box-shadow: 0 20px 60px rgba(125, 60, 255, 0.3);
}

:root[data-theme="dark"] .blog-card-modern,
.dark .blog-card-modern {
    background: #2d2d3d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #3d3d4d;
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
    flex-shrink: 0;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-modern:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

.blog-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #7d3cff 0%, #ff7f32 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(125, 60, 255, 0.4);
}

.blog-category-badge i {
    margin-right: 6px;
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #6c757d;
}

.blog-date {
    font-size: 11px;
    color: #6c757d;
}

:root[data-theme="dark"] .blog-date,
.dark .blog-date {
    color: #adb5bd;
}

.blog-views {
    font-size: 11px;
    color: #6c757d;
}

:root[data-theme="dark"] .blog-views,
.dark .blog-views {
    color: #adb5bd;
}

:root[data-theme="dark"] .blog-meta,
.dark .blog-meta {
    color: #adb5bd;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #7d3cff;
    font-size: 11px;
}

.blog-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    color: #1e1e2d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #7d3cff;
}

:root[data-theme="dark"] .blog-title a,
.dark .blog-title a {
    color: #ffffff;
}

.blog-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 52px;
}

:root[data-theme="dark"] .blog-excerpt,
.dark .blog-excerpt {
    color: #ced4da;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    border-top: 2px solid #e9ecef;
}

:root[data-theme="dark"] .blog-footer,
.dark .blog-footer {
    border-top-color: #495057;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

:root[data-theme="dark"] .blog-author,
.dark .blog-author {
    color: #adb5bd;
}

.blog-author i {
    font-size: 20px;
    color: #7d3cff;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7d3cff 0%, #ff7f32 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 60, 255, 0.3);
}

.blog-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(125, 60, 255, 0.5);
    color: white;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Blog Navigation - Positioned at middle row like other sliders */
.blog-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7d3cff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

:root[data-theme="dark"] .blog-nav,
.dark .blog-nav {
    background: #2d2d3d;
    color: #7d3cff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.blog-nav:hover {
    background: #7d3cff;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(125, 60, 255, 0.4);
}

.blog-prev {
    left: 20px;
}

.blog-next {
    right: 20px;
}

/* Blog Dots */
.blog-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.blog-dot {
    width: 12px;
    height: 12px;
    background: rgba(125, 60, 255, 0.3);
    border: 2px solid #7d3cff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.blog-dot:hover {
    background: rgba(125, 60, 255, 0.6);
    transform: scale(1.2);
}

.blog-dot.active {
    background: #7d3cff;
    width: 40px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-section-home {
        padding: 60px 0;
    }
    
    .blog-slider-wrapper {
        padding: 0 50px;
    }
    
    .blog-image-wrapper {
        height: 250px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 22px;
    }
    
    .blog-excerpt {
        font-size: 14px;
    }
    
    .blog-meta {
        font-size: 10px;
        gap: 2vw;
        margin-bottom: 1.5vh;
    }
    
    .blog-date,
    .blog-views {
        font-size: 10px;
    }
    
    .blog-meta i {
        font-size: 10px;
    }
    
    .blog-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2vw;
        padding-top: 2vh;
    }
    
    .blog-author {
        font-size: 12px;
        gap: 1.5vw;
    }
    
    .blog-author i {
        font-size: 16px;
    }
    
    .blog-read-more {
        padding: 1.5vh 4vw;
        font-size: 11px;
        gap: 1.5vw;
    }
    
    .blog-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .blog-prev {
        left: 10px;
    }
    
    .blog-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .blog-slider-wrapper {
        padding: 0 15px;
    }
    
    .blog-image-wrapper {
        height: 220px;
    }
    
    .blog-title {
        font-size: 20px;
    }
    
    .blog-meta {
        font-size: 9.5px;
        gap: 1.8vw;
        margin-bottom: 1.2vh;
    }
    
    .blog-date,
    .blog-views {
        font-size: 9.5px;
    }
    
    .blog-meta i {
        font-size: 9.5px;
    }
    
    .blog-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.8vw;
        padding-top: 1.8vh;
    }
    
    .blog-author {
        font-size: 11px;
        gap: 1.2vw;
    }
    
    .blog-author i {
        font-size: 15px;
    }
    
    .blog-read-more {
        padding: 1.3vh 3.5vw;
        font-size: 10px;
        gap: 1.2vw;
    }
}

@media (max-width: 480px) {
    .blog-slider-wrapper {
        padding: 0 10px;
    }
    
    .blog-image-wrapper {
        height: 200px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-category-badge {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .blog-meta {
        font-size: 9px;
        gap: 1.5vw;
        margin-bottom: 1vh;
    }
    
    .blog-date,
    .blog-views {
        font-size: 9px;
    }
    
    .blog-meta i {
        font-size: 9px;
    }
    
    .blog-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5vw;
        padding-top: 1.5vh;
    }
    
    .blog-author {
        font-size: 10px;
        gap: 1vw;
    }
    
    .blog-author i {
        font-size: 14px;
    }
    
    .blog-read-more {
        padding: 1.2vh 3vw;
        font-size: 9px;
        gap: 1vw;
    }
    
    /* Hide navigation buttons on small mobile screens */
    .blog-nav {
        display: none;
    }
}

@media (max-width: 390px) {
    .blog-slider-wrapper {
        padding: 0 8px;
    }
    
    .blog-image-wrapper {
        height: 180px;
    }
    
    .blog-title {
        font-size: 16px;
        margin-bottom: 1.5vh;
    }
    
    .blog-excerpt {
        font-size: 13px;
        margin-bottom: 1.2vh;
    }
    
    .blog-category-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .blog-meta {
        font-size: 8px;
        gap: 1.2vw;
        margin-bottom: 0.8vh;
    }
    
    .blog-date,
    .blog-views {
        font-size: 8px;
    }
    
    .blog-meta i {
        font-size: 8px;
    }
    
    .blog-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.2vw;
        padding-top: 1.2vh;
    }
    
    .blog-author {
        font-size: 9px;
        gap: 0.8vw;
    }
    
    .blog-author i {
        font-size: 12px;
    }
    
    .blog-read-more {
        padding: 1vh 2.5vw;
        font-size: 8px;
        gap: 0.8vw;
    }
}
