/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

/* ======== BAGIAN UTAMA BLOG ======== */
.blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .blog-container {
        grid-template-columns: 3fr 1fr;
    }
}

.blog-content {
    background: var(--light);
    border-radius: 3px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: justify;
    display: flex;
    flex-direction: column;
}

.blog-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta-item i {
    color: var(--primary);
}

.blog-image {
    max-width: 80%;
    border-radius: 3px;
    overflow: hidden;
    margin: 2rem auto;
    display: block;
    background: linear-gradient(45deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 400% 400%;
    animation: shimmer 1.5s infinite;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    opacity: 0;
    transform: scale(0.95);
}

.blog-image img.loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.blog-text {
    color: var(--dark-gray);
    line-height: 1.8;
}

.blog-text p {
    margin-bottom: 1.5rem;
}

.blog-text h3 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
    position: relative;
    padding-left: 15px;
}

.blog-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: 25px;
    width: 5px;
    background-color: var(--primary);
    border-radius: 3px;
}

.blog-quote {
    background: rgba(200, 11, 11, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 5px 5px 0;
}

.blog-tags {
    display: flex;
    gap: 10px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.blog-tag {
    background: rgba(200, 11, 11, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--primary);
    color: white;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.share-title {
    font-weight: 600;
    color: var(--secondary);
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200, 11, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.share-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ======== SIDEBAR UTAMA ======== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    gap: 30px;
}

.sidebar-widget {
    background: var(--light);
    border-radius: 3px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.widget-title,
.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    position: relative;
    color: var(--secondary);
}

.widget-title::after,
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* Recent Posts */
.recent-post {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recent-post:hover {
    transform: translateY(-5px);
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
    position: relative;
    background: linear-gradient(45deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%);
    background-size: 400% 400%;
    animation: shimmer 1.5s infinite;
}

.recent-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
}

.recent-post-img img.loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
    line-height: 1.4;
}

.recent-post-date {
    font-size: 0.85rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
}

.recent-post-date i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 0.9rem;
}

/* Filter Section */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.filter-header i {
    transition: transform 0.3s ease;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
}

.filter-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.filter-option label {
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-option label:hover {
    color: var(--primary);
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 1rem;
}

.btn-filter {
    padding: 0.75rem;
    border-radius: 3px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-apply:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #a0001a 100%);
    transform: translateY(-2px);
}

.btn-reset {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-reset:hover {
    background: #e9ecef;
    color: var(--primary);
}

/* ======== WIDGET KONTEN SAMPING ======== */
.contact-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    border-radius: 3px;
    padding: 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-info {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-bg {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.15 !important;
    background-attachment: fixed !important;
}

.contact-info i {
    color: var(--primary);
}

.btn-contact {
    width: 100%;
    margin-top: 10px;
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-contact:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Brochure Widget */
.brochure-widget {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 3px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brochure-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.brochure-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.brochure-text {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.btn-brochure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-brochure:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 11, 11, 0.2);
}

/* ======== KOMPONEN UMUM ======== */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(200, 11, 11, 0.2);
}

.view-all-btn:hover {
    background: #a30202;
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 20px rgba(200, 11, 11, 0.3);
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(4px);
}

.blog-container2 {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); 
    padding: 2rem; 
    border-radius: 3px
}

/* ======== LAYOUT BLOG ======== */
.blog-page {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Pagination */
.pagination-container {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    border: 1px solid #ddd;
    color: var(--secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .sidebar-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .brochure-widget,
    .contact-banner {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .blog-image {
        max-width: 100%;
    }
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-text {
        font-size: 0.95rem;
    }
    
    .blog-text h3 {
        font-size: 1.3rem;
    }
    
    .sidebar-title,
    .widget-title {
        font-size: 1.3rem;
    }
    
    .recent-post-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-share {
        align-self: flex-end;
    }
    
    .contact-banner,
    .brochure-widget {
        min-width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.02);
        text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
}

    /* Gaya CSS yang sudah ada */
    .blog-image {
        width: 50%;
        margin: 0 auto 20px auto; /* Menengahkan gambar utama */
    }

    
    .recent-posts {
        background: none;
        box-shadow: none;
    }

    .gallery-carousel .carousel-control-prev,
    .gallery-carousel .carousel-control-next {
        top: 50%;
    }

    /* Styling Carousel Item untuk menampilkan satu gambar */
    .carousel-item {
        height: 600px; /* Tinggi tetap untuk item carousel, sesuaikan jika perlu */
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* Penting: menyembunyikan bagian gambar yang meluap */
        position: relative; /* Diperlukan untuk animasi */
        opacity: 0; /* Mulai dengan opasitas 0 */
        transform: scale(0.95); /* Sedikit mengecil */
        /* DURASI ANIMASI DIPERCEPAT DARI 0.8s MENJADI 0.5s */
        transition: opacity 0.1s ease-in-out, transform 0.2s ease-in-out; /* Animasi gabungan */
        margin-bottom:100px;
    }

    .carousel-item.active {
        opacity: 1; /* Tampilkan saat aktif */
        transform: scale(1); /* Kembali ke ukuran normal */
    }

    .carousel-item::before {
        background: none;
    }

    /* Gaya tambahan untuk gambar tunggal di galeri */
    .single-gallery-image {
        max-width: 600px; /* Sesuaikan lebar maksimum gambar tunggal */
        margin: 20px auto; /* Menengahkan gambar tunggal */
        text-align: center;
    }
    .single-gallery-image img {
        display: block; /* Menghilangkan spasi bawah gambar */
        width: 100%;
        height: auto;
        border-radius: 8px; /* Menambahkan sudut membulat */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Menambahkan bayangan */
    }

    /* Styling untuk gambar di dalam carousel */
    .gallery-carousel .about-image {
        width: 100%;
        height: 100%; /* Mengambil tinggi penuh dari item carousel */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .gallery-carousel .about-image img {
        width: 100%; /* Membuat gambar mengisi lebar kontainernya */
        height: 100%; /* Membuat gambar mengisi tinggi kontainernya */
        object-fit: contain; /* Menskala gambar agar sesuai dengan kontainer tanpa memotong, menjaga rasio aspek */
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Bayangan lebih kuat untuk gambar carousel */
    }

    /* Gaya untuk pratinjau gambar (thumbnails) */
        .carousel-thumbnails {
        display: flex;
        justify-content: center;
        /* margin-top: 100px; */
        gap: 10px;
        flex-wrap: wrap;
        /*top: 940px;*/
        bottom:0px;
    }

    .carousel-thumbnail-item {
        width: 80px; /* Lebar thumbnail */
        height: 60px; /* Tinggi thumbnail */
        border-radius: 3px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent; /* Border default */
        transition: border-color 0.3s ease, transform 0.2s ease;
    }

    .carousel-thumbnail-item:hover {
        border-color: var(--primary);
        transform: scale(1.05);
    }

    .carousel-thumbnail-item.active {
        border-color: var(--primary);
        transform: scale(1.05);
    }

    .carousel-thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Memastikan gambar mengisi area thumbnail */
    }
    @media (max-width: 992px) {
        body.show-thumbnails .carousel-thumbnails {
            display: block !important;
        }
    }
    @media (max-width: 768px) {
        .blog-image {
            width: 100%;
        }
        .carousel-item {
            height: 40vh;
        }
        /*.carousel-thumbnails {*/
        /*    top:340px;*/
        /*}*/
        .about-image {
            height:auto;
        }
        .gallery-carousel .carousel-control-prev, .gallery-carousel .carousel-control-next {
            display:none;
        }
    }
    
    .gallery-carousel .carousel-control-prev {
        left:115px !important;
    }
    
    .gallery-carousel .carousel-control-next {
        right:115px !important;
    }
    
    .gallery-carousel .carousel-control-next,
    .gallery-carousel .carousel-control-prev, 
    .gallery-carousel .carousel-control-next:focus,
    .gallery-carousel .carousel-control-prev:focus {
      color: var(--primary);
    }
    
    .gallery-carousel .carousel-control-next:hover,
    .gallery-carousel .carousel-control-prev:hover {
      color: white !important;
    }

