/* ============================================
   BLOGS SECTION STYLES (Home Page)
   Modern Design Inspired by "Cerita Kenes"
   ============================================ */

.blogs-section {
    background: linear-gradient(135deg, #ff6347 0%, #ff4520 100%);
    padding: 70px 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.blogs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.blogs-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: left;
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 0;
    letter-spacing: 1px;
    color: white;
    text-transform: uppercase;
    font-family: 'Barlow', sans-serif;
}

/* Slider Wrapper */
.slider_wrap {
    position: relative;
    margin-bottom: 40px;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loader.hide {
    display: none;
}

#blogs_slider.loading {
    opacity: 0.6;
    pointer-events: none;
}

.slider_status {
    position: absolute;
    left: -9999px;
}

/* Blog Slider */
#blogs_slider {
    position: relative;
}

#blogs_slider .slick-track {
    display: flex;
    align-items: stretch;
}

#blogs_slider .slick-slide {
    height: auto;
    display: flex;
}

#blogs_slider .slick-slide > div {
    width: 100%;
    display: flex;
}

.blog_item {
    padding: 0 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Blog Image */
.blog-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.blog-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

/* Blog Badge */
.blog-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #ff6347;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    backdrop-filter: blur(10px);
}

.blog-badge.category-badge {
    background: rgba(255, 99, 71, 0.95);
    color: white;
}

/* Blog Content */
.blog-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-title {
    font-size: 17px;
    font-weight: 700;
    color: #000000;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.blog-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: #ff6347;
}

/* Slider Dots */
#blogs_slider .slick-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 35px;
    list-style: none;
    padding: 0;
    position: relative;
    bottom: 0;
}

#blogs_slider .slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

#blogs_slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0;
    line-height: 0;
    display: block;
    outline: none;
    text-indent: -9999px;
    overflow: hidden;
    color: transparent;
    text-decoration: none;
}

#blogs_slider .slick-dots li button::before,
#blogs_slider .slick-dots li button::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

#blogs_slider .slick-dots li button:hover {
    background: rgba(255, 255, 255, 0.6);
}

#blogs_slider .slick-dots li.slick-active button {
    background: white;
    width: 35px;
    border-radius: 6px;
}

/* Section Footer */
.blogs-section-footer {
    text-align: center;
    margin-top: 40px;
}

.more-news-btn {
    display: inline-block;
    background: white;
    color: #ff6347;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.more-news-btn:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Empty State */
.empty-blog-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-blog-icon {
    margin-bottom: 24px;
}

.empty-blog-icon i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-blog-title {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-blog-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .blogs-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .blogs-section {
        padding: 60px 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .blog-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .blogs-section {
        padding: 50px 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .blog-image-wrapper {
        height: 240px;
    }

    .blog-content {
        padding: 24px;
    }

    .blog-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .blogs-section {
        padding: 50px 20px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 28px;
    }

    .blog-item {
        padding: 0 10px;
    }

    .blog-image-wrapper {
        height: 220px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 15px;
        min-height: 45px;
    }

    .blog-excerpt {
        font-size: 12px;
    }

    .more-news-btn {
        padding: 12px 35px;
        font-size: 13px;
    }

    .empty-blog-icon i {
        font-size: 60px;
    }

    .empty-blog-title {
        font-size: 24px;
    }

    .empty-blog-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .blogs-section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .blog-item {
        padding: 0 8px;
    }

    .blog-image-wrapper {
        height: 200px;
    }

    .blog-content {
        padding: 18px;
    }

    .blog-title {
        font-size: 14px;
        min-height: 40px;
    }

    .blog-excerpt {
        font-size: 11px;
    }

    .blog-meta {
        font-size: 11px;
    }

    .more-news-btn {
        padding: 10px 30px;
        font-size: 12px;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
