/* Cập nhật Styles cho Tiêu đề */
.mrel-commune-list-section h3 {
    text-align: center;
    font-size: 30px; /* Cỡ chữ lớn hơn một chút */
    font-weight: bold;
    margin-bottom: 20px;
    
    /* Hiệu ứng màu cam và gạch chân */
    color: #ff8800; /* Màu cam tươi */
    text-transform: capitalize;
    display: inline-block;
    position: relative;
    /* Căn giữa khối tiêu đề */
    left: 50%;
    transform: translateX(-50%);
}

/* Tạo gạch chân ngắn dưới tiêu đề */
.mrel-commune-list-section h3::after {
    content: "";
    display: block;
    width: 50%; /* Độ dài gạch dưới */
    height: 3px;
    background-color: #ff8800;
    margin: 4px auto 0;
    border-radius: 2px;
}

/* Styles chung cho danh sách */
.mrel-commune-list-section {
    margin: 0 auto;
    max-width: 900px;
    padding: 20px;
    background-color: #fcfcfc;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.mrel-commune-list-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.mrel-commune-list-section li {
    margin: 0;
}

.mrel-commune-list-section a {
    display: block;
    padding: 10px;
    background-color: #f7f9fa;
    border: 1px solid #dcdfe6;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    word-wrap: break-word;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mrel-commune-list-section a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mrel-commune-list-section a span.count {
    font-size: 0.8em;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

/* Hiệu ứng nổi bật cho các mục có bài viết */
.mrel-commune-list-section a.has-post {
    background-color: #e6f7ff;
    border: 2px solid #3399ff;
    color: #1a202c;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.2);
}

.mrel-commune-list-section a.has-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(51, 153, 255, 0.3);
}

/* Media query cho màn hình mobile (nhỏ hơn 768px) */
@media (max-width: 768px) {
    .mrel-commune-list-section h3 {
        font-size: 20px;
    }
    .mrel-commune-list-section ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .mrel-commune-list-section a {
        font-size: 12px;
        padding: 8px 5px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .mrel-commune-list-section a span.count {
        font-size: 0.7em;
    }
}
