.blog-hero-section {
    background-color: var(--brand-cream);
    margin-top: 0;
    padding: 2.5rem 1rem; 
}

.blog-hero-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.0rem, 6vw, 4rem); 
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-hero-section .subtitle {
    font-size: 0.9rem; 
    color: var(--brand-light-text);
    margin-bottom: 0; 
}
.featured-article-section {
    background-color: var(--brand-light);
    padding-top: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.featured-image img {
    border-radius: 0.5rem;
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-height: 400px;
}

.featured-content .tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    display: inline-block;
}
.tag-gold { background-color: var(--brand-gold); color: var(--brand-dark); }
.tag-light { background-color: var(--brand-light); color: var(--brand-dark); }
.tag-default { background-color: var(--brand-cream); color: var(--brand-dark); } /* Added default tag */


.featured-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.featured-content p {
    color: var(--brand-light-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.featured-content .button {
    margin-top: 0.75rem;
}

.blog-section {
    background-color: var(--brand-cream);
}

.blog-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    margin-bottom: 1rem;
}

.blog-section .subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    color: var(--brand-light-text);
    text-align: center; 
}

.menu-select option[disabled] {
    color: #999;
}
.menu-select:invalid { 
    color: #999;
}

.blog-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.blog-search-bar {
    flex: 1 1 300px;
    position: relative;
}

.blog-search-bar .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-gold);
    width: 18px;
    height: 18px;
}

.blog-controls .menu-select {
    padding-left: 0.75rem;
    width: 100%;
}

#blog-search-input-desktop,
#blog-search-input-mobile {
    padding-left: 2.5rem !important;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
}

.blog-filters .menu-filter-group {
    min-width: 180px; 
}

.blog-controls-mobile {
    display: none; 
    gap: 0.5rem;
    align-items: stretch;
}

.blog-controls-mobile .blog-search-bar {
    flex-grow: 1; 
    min-width: 100px;
}

.blog-filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0; 
}

.blog-icon-button {
    background-color: var(--brand-light);
    border: 2px solid var(--brand-cream);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--brand-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-icon-button:hover {
    border-color: var(--brand-gold);
}

.blog-icon-button svg {
    width: 20px;
    height: 20px;
}

/* Load More Button Styling */
#load-more-blog {
    display: block;
    margin: 3rem auto 0 auto;
}
#load-more-blog.is-hidden {
    display: none !important;
}

.modal-apply-button {
    width: 100%; 
    margin-top: 1rem;
}


#blog-filter-modal-content .menu-select-modal {
    height: 3rem; 
    width: 100%;
    margin-bottom: 0;
}
#blog-filter-modal-content h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
}

/* Combined Modal View Styling */
.blog-modal-combined-view {
    width: 100%;
}
.blog-modal-combined-view .menu-filter-group-modal {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    gap: 0.5rem; /* Jarak antara label dan select */
}
.blog-modal-combined-view .menu-filter-group-modal:last-of-type {
    margin-bottom: 0;
}
.blog-modal-combined-view label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
}


.blog-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

.grid-no-results {
    grid-column: 1 / -1; 
    text-align: center;
    color: var(--brand-light-text);
    padding: 2rem 1rem;
    font-size: 1.1rem;
    font-style: italic;
}

.article-card {
    background-color: var(--brand-light);
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
}

.article-card .article-content {
    padding: 1.25rem; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.article-card .tag {
    font-size: 0.7rem; 
    font-weight: 600;
    padding: 0.15rem 0.5rem; 
    border-radius: 9999px;
    margin-bottom: 0;
    display: inline-block;
    align-self: flex-start;
    background-color: var(--brand-cream); 
    color: var(--brand-text);
    white-space: nowrap;
}

.article-meta {
    font-size: 0.7rem; 
    font-weight: 500;
    color: var(--brand-light-text);
    margin-bottom: 0;
    white-space: nowrap;
    text-align: right;
}

.article-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; 
    line-height: 1.3;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.article-card p {
    color: var(--brand-light-text);
    font-size: 0.8rem; 
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.article-card .read-more {
    color: var(--brand-gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem; 
}

.article-card .read-more:hover {
    color: var(--brand-dark);
}

.faq-section {
    background-color: var(--brand-light);
}

.faq-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    margin-bottom: 1rem;
}

.faq-section .subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    color: var(--brand-light-text);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--brand-cream);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--brand-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question.active {
    color: var(--brand-gold);
}

.faq-question .faq-icon {
    color: var(--brand-gold);
    transition: transform 0.3s ease;
    flex-shrink: 0; 
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-question:hover {
    color: var(--brand-gold);
}


/* Menggunakan CSS Variable untuk max-height yang dinamis */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--brand-cream);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    max-height: var(--answer-height, 0); 
}

.faq-answer p, .faq-answer ul {
    color: var(--brand-light-text);
    line-height: 1.7;
    margin-bottom: 1rem; 
    padding-bottom: 0;
}

.faq-answer ul {
    margin-top: 1rem; 
    padding-left: 1.5rem;
}

.faq-answer a {
    color: var(--brand-gold);
    font-weight: 600;
}

.faq-answer li {
    margin-bottom: 0.5rem; 
}

.faq-answer > :first-child {
     padding-top: 1.5rem;
}

.faq-answer > :last-child {
     padding-bottom: 1.5rem;
     margin-bottom: 0;
}

.blog-detail-section {
    background-color: var(--brand-light);
}
.blog-detail-section .container {
    max-width: 800px; 
    margin: 0 auto;
}
.blog-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

body .blog-detail-header #blog-meta-tag {
    font-size: 1rem;
    background-color: var(--brand-cream);
    color: var(--brand-dark);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.blog-detail-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 2.8rem); 
    line-height: 1.2;
    margin-bottom: 1rem;
}
.blog-detail-header p {
    color: var(--brand-light-text);
    font-weight: 500;
}

.blog-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--brand-text);
}
.blog-detail-content p {
    margin-bottom: 1.5rem;
}
.blog-detail-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.blog-detail-content ul,
.blog-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.blog-detail-content li {
    margin-bottom: 0.5rem;
}
.blog-detail-content blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--brand-dark);
    padding-left: 1.5rem;
    border-left: 4px solid var(--brand-gold);
    margin: 2rem 0;
}
.blog-detail-content a {
    color: var(--brand-gold);
    font-weight: 600;
    text-decoration: underline;
}
.blog-detail-content strong {
    font-weight: 600;
    color: var(--brand-dark);
}
.blog-back-link-container {
    padding-top: 2rem;
    padding-bottom: 0;
    max-width: 800px; 
    margin-left: auto;
    margin-right: auto;
}
.blog-back-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--brand-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}
.blog-back-link svg {
    width: 20px;
    height: 20px;
    margin-right: 0.25rem;
    transition: transform 0.3s ease;
}

.blog-detail-section {
    padding-top: 1.5rem;
}

#blog-meta-date {
    color: var(--brand-light-text); 
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 2.5rem; 
    text-align: left; 
}

@media (max-width: 767px) {
    .blog-hero-section {
        padding: 2rem 1rem 1.5rem 1rem; 
    }
    .blog-hero-section h2 {
        font-size: 2.2rem;
    }
    .featured-article-section {
        padding-top: 1.5rem;
    }
    .blog-controls-desktop {
        display: none;
    }
    
    .blog-controls-mobile {
        display: flex;
        gap: 0.5rem;
        align-items: center; 
        width: 100%; 
    }
    
    .blog-controls-mobile .blog-search-bar {
        flex-grow: 1; 
        min-width: 0; 
    }

    #blog-search-input-mobile {
        width: 100%; 
        height: auto;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .blog-filter-buttons {
        flex-shrink: 0;
    }
    
    /* Mengganti dua tombol ikon mobile dengan satu tombol */
    .blog-filter-buttons {
        display: flex;
        gap: 0.5rem; /* Menjaga konsistensi gap jika di masa depan ingin ada tombol lain */
    }
    
    /* Revisi modal content untuk mobile */
    .modal-content {
        max-width: 90%;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    /* Menyembunyikan modal-title-sort yang tidak lagi dipakai */
    #blog-modal-title-sort {
        display: none;
    }

    #blog-modal-apply{
        margin-top: 20px;
    }
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .blog-controls-desktop {
        display: flex;
    }
    .blog-controls-mobile {
        display: none;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-hero-section {
        margin-top: 4rem;
        padding: 5rem 1rem 2rem 1rem; 
    }
    .blog-hero-section h2 {
        font-size: clamp(2.0rem, 6vw, 4rem);
    }
    .featured-article-section {
        padding-top: 3rem;
    }

    .featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .blog-back-link-container {
        margin-top: 5rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}